|
@@ -11,7 +11,6 @@ import com.unis.framework.security.core.LoginUser;
|
11
|
11
|
import com.unis.framework.security.core.util.SecurityFrameworkUtils;
|
12
|
12
|
import com.unis.module.coding.controller.admin.task.vo.*;
|
13
|
13
|
import com.unis.module.coding.dal.dataobject.bank.BankDO;
|
14
|
|
-import com.unis.module.coding.dal.dataobject.caxx.CaxxDO;
|
15
|
14
|
import com.unis.module.coding.dal.dataobject.cwxx.CwxxDO;
|
16
|
15
|
import com.unis.module.coding.dal.dataobject.cwxxyear.CwxxYearDO;
|
17
|
16
|
import com.unis.module.coding.dal.dataobject.dk.DkDO;
|
|
@@ -20,7 +19,6 @@ import com.unis.module.coding.dal.dataobject.kqxx.KqxxDO;
|
20
|
19
|
import com.unis.module.coding.dal.dataobject.province.ProvinceDO;
|
21
|
20
|
import com.unis.module.coding.dal.dataobject.users.UsersDO;
|
22
|
21
|
import com.unis.module.coding.dal.mysql.bank.BankMapper;
|
23
|
|
-import com.unis.module.coding.dal.mysql.caxx.CaxxMapper;
|
24
|
22
|
import com.unis.module.coding.dal.mysql.cwxx.CwxxMapper;
|
25
|
23
|
import com.unis.module.coding.dal.mysql.cwxxyear.CwxxYearMapper;
|
26
|
24
|
import com.unis.module.coding.dal.mysql.dk.DkMapper;
|
|
@@ -32,7 +30,6 @@ import com.unis.module.core.enums.ErrorCodeConstants;
|
32
|
30
|
import com.unis.module.core.enums.project.DeliveryHyState;
|
33
|
31
|
import com.unis.module.system.api.permission.PermissionApi;
|
34
|
32
|
import com.unis.module.system.enums.permission.RoleCodeEnum;
|
35
|
|
-import com.unis.module.system.service.user.AdminUserService;
|
36
|
33
|
import lombok.extern.slf4j.Slf4j;
|
37
|
34
|
import org.jetbrains.annotations.NotNull;
|
38
|
35
|
import org.springframework.stereotype.Service;
|
|
@@ -41,7 +38,6 @@ import org.springframework.validation.annotation.Validated;
|
41
|
38
|
|
42
|
39
|
import javax.annotation.Resource;
|
43
|
40
|
import java.time.LocalDateTime;
|
44
|
|
-import java.util.ArrayList;
|
45
|
41
|
import java.util.List;
|
46
|
42
|
import java.util.Set;
|
47
|
43
|
|
|
@@ -65,8 +61,6 @@ public class TaskServiceImpl implements TaskService {
|
65
|
61
|
@Resource
|
66
|
62
|
private ProvinceMapper provinceMapper;
|
67
|
63
|
@Resource
|
68
|
|
- private CaxxMapper caxxMapper;
|
69
|
|
- @Resource
|
70
|
64
|
private KqxxMapper kqxxMapper;
|
71
|
65
|
@Resource
|
72
|
66
|
private DwxxMapper dwxxMapper;
|
|
@@ -78,8 +72,6 @@ public class TaskServiceImpl implements TaskService {
|
78
|
72
|
private BankMapper bankMapper;
|
79
|
73
|
@Resource
|
80
|
74
|
private UsersMapper usersMapper;
|
81
|
|
- @Resource
|
82
|
|
- private AdminUserService userService;
|
83
|
75
|
|
84
|
76
|
@Override
|
85
|
77
|
public IPage<TaskRespVO> getTaskList(TaskPageReqVO pageReqVO) {
|
|
@@ -180,22 +172,10 @@ public class TaskServiceImpl implements TaskService {
|
180
|
172
|
|
181
|
173
|
@Override
|
182
|
174
|
public List<TaskCaxxRespVO> getCaxxByKqId(TaskPageReqVO reqVO) {
|
|
175
|
+ // 根据角色不同,查询不同数据
|
|
176
|
+ addParamDeptIds(reqVO);
|
183
|
177
|
|
184
|
|
- List<CaxxDO> caxxDOS = caxxMapper.selectListByKqId(reqVO.getKqId());
|
185
|
|
-
|
186
|
|
- if(ObjectUtils.isEmpty(caxxDOS)) {
|
187
|
|
- List<TaskCaxxRespVO> list = BeanUtils.toBean(caxxDOS, TaskCaxxRespVO.class);
|
188
|
|
-
|
189
|
|
- KqxxDO kqxxDO = kqxxMapper.selectById(list.get(0).getKqId());
|
190
|
|
- list.forEach(taskCaxxRespVO -> {
|
191
|
|
- taskCaxxRespVO.setZcckj(kqxxDO.getZcckj());
|
192
|
|
- taskCaxxRespVO.setWtbgckj(kqxxDO.getWtbgckj());
|
193
|
|
- });
|
194
|
|
-
|
195
|
|
- return list;
|
196
|
|
- }
|
197
|
|
-
|
198
|
|
- return new ArrayList<>();
|
|
178
|
+ return dkMapper.selectCaxxListByKqId(reqVO);
|
199
|
179
|
}
|
200
|
180
|
|
201
|
181
|
@Override
|