ludc
2025-01-16 5203081b68e3a8dc139d1807b2f8774e4a00a82a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
package com.vci.web.service.impl;
 
import com.vci.web.service.OrgDutyQueryServiceI;
import com.vci.pagemodel.OrgDutyVO;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.pagemodel.DataGrid;
import com.vci.starter.web.pagemodel.PageHelper;
import com.vci.starter.web.pagemodel.Tree;
import com.vci.starter.web.pagemodel.TreeQueryObject;
import org.springframework.stereotype.Service;
 
import java.util.Collection;
import java.util.List;
import java.util.Map;
 
/**
 * 职务查询的服务,兼容老的平台
 * @author xiejun
 * @date 2020/3/10
 */
@Service
public class OrgDutyQueryServiceImpl implements OrgDutyQueryServiceI {
     /**
     * 根据职务主键获取职务的信息
     * @param dutyOid 职务主键
     * @return 职务的显示对象,如果职务不存在则返回null,不会抛出异常
     * @throws VciBaseException 参数为空或者数据库存在问题的时候会抛出异常
     */
    @Override
    public OrgDutyVO getDutyByDutyOid(String dutyOid) throws VciBaseException {
        // TODO Auto-generated method stub
        return null;
    }
 
    /**
     * 批量获取职务的信息 (根据职务主键)
     * @param dutyOidCollections 职务主键的集合,可以超过1000个
     * @return 职务的显示对象,如果职务不存在则返回空的列表,不会抛出异常
     * @throws VciBaseException 参数为空或者数据库存在问题的时候会抛出异常
     */
    @Override
    public List<OrgDutyVO> listDutyByDutyOids(
            Collection<String> dutyOidCollections) throws VciBaseException {
        // TODO Auto-generated method stub
        return null;
    }
 
    /**
     * 获取职务的列表,默认会以职务名称升序排列,职务的编辑页面列表不要使用这个接口
     * @param queryMap 查询条件
     * @param pageHelper 分页和排序的信息,在兼容老平台的时候会自动兼容,如果属性不存在会自动忽略
     * @return 职务的显示对象列表
     * @throws VciBaseException 参数为空的时候会抛出异常
     */
    @Override
    public DataGrid<OrgDutyVO> gridDutys(Map<String, String> queryMap,
                                         PageHelper pageHelper) throws VciBaseException {
        // TODO Auto-generated method stub
        return null;
    }
     /**
     * 根据职务主键获取职务的姓名
     * @param dutyOid 职务主键
     * @return 职务姓名,如果不存在会返回null
     */
    @Override
    public String getDutyNameByDutyOid(String dutyOid) {
        // TODO Auto-generated method stub
        return null;
    }
    /**
     * 根据用户主键获取关联的职务
     * @param userOid 用户主键
     * @param queryMap 查询条件,如果需要使用用户的属性来查询可以使用pkUser.xxxx
     * @return 职务的显示对象
     */
    @Override
    public OrgDutyVO listDutyByUserOid(String userOid,
            Map<String, String> queryMap) {
        // TODO Auto-generated method stub
        return null;
    }
    /**
     * 获取未关联某个用户的职务
     * @param userOid 用户主键
     * @param queryMap 查询条件,如果需要使用用户的属性来查询可以使用pkUser.xxxx
     * @return 职务的显示对象
     */
    @Override
    public List<OrgDutyVO> listDutyUnInUserOid(String userOid,
            Map<String, String> queryMap) {
        // TODO Auto-generated method stub
        return null;
    }
    /**
     * 获取未关联某个用户的职务
     * @param userOid 用户主键
     * @param queryMap 查询条件,如果需要使用用户的属性来查询可以使用pkUser.xxxx
     * @param pageHelper 分页和排序对象,老平台不支持使用职务编号来排序
     * @return 职务的显示对象
     */
    @Override
    public DataGrid<OrgDutyVO> gridDutyUninUserOid(String userOid,
            Map<String, String> queryMap, PageHelper pageHelper) {
        // TODO Auto-generated method stub
        return null;
    }
    /**
     * 批量根据用户的主键来获取职务
     * @param userOidCollection 用户主键集合
     * @param queryMap 查询条件,如果需要使用用户的属性来查询可以使用pkUser.xxxx
     * @return 职务的显示对象,key是用户主键,value是这个用户关联的职务
     */
    @Override
    public Map<String, List<OrgDutyVO>> batchListDutyByUserOids(
            Collection<String> userOidCollection, Map<String, String> queryMap) {
        // TODO Auto-generated method stub
        return null;
    }
     /**
     * 参照职务的列表,默认会以职务名称升序排列,只显示启用的职务
     * @param queryMap 查询条件
     * @param pageHelper 分页和排序的信息,在兼容老平台的时候会自动兼容,如果属性不存在会自动忽略
     * @return 职务的显示对象列表
     * @throws VciBaseException 参数为空的时候会抛出异常
     */
    @Override
    public DataGrid<OrgDutyVO> refGridDutys(Map<String, String> queryMap,
            PageHelper pageHelper) throws VciBaseException {
        // TODO Auto-generated method stub
        return null;
    }
 
    /**
     * 职务的参照树
     * @param treeQueryObject 树形的查询对象
     * @return 职务树,会包含职务的所有属性
     * @throws VciBaseException
     */
    @Override
    public List<Tree> refTreeDutys(TreeQueryObject treeQueryObject)
            throws VciBaseException {
        // TODO Auto-generated method stub
        return null;
    }
 
}