|
@@ -19,6 +19,7 @@ import com.unis.module.coding.dal.dataobject.kqxx.KqxxDO;
|
19
|
19
|
import com.unis.module.coding.dal.dataobject.province.ProvinceDO;
|
20
|
20
|
import com.unis.module.coding.dal.dataobject.users.UsersDO;
|
21
|
21
|
import com.unis.module.coding.dal.mysql.bank.BankMapper;
|
|
22
|
+import com.unis.module.coding.dal.mysql.caxx.CaxxMapper;
|
22
|
23
|
import com.unis.module.coding.dal.mysql.cwxx.CwxxMapper;
|
23
|
24
|
import com.unis.module.coding.dal.mysql.cwxxyear.CwxxYearMapper;
|
24
|
25
|
import com.unis.module.coding.dal.mysql.dk.DkMapper;
|
|
@@ -39,6 +40,7 @@ import org.springframework.validation.annotation.Validated;
|
39
|
40
|
import javax.annotation.Resource;
|
40
|
41
|
import java.time.LocalDateTime;
|
41
|
42
|
import java.util.List;
|
|
43
|
+import java.util.Objects;
|
42
|
44
|
import java.util.Set;
|
43
|
45
|
|
44
|
46
|
import static com.unis.framework.common.exception.util.ServiceExceptionUtil.exception;
|
|
@@ -72,7 +74,8 @@ public class TaskServiceImpl implements TaskService {
|
72
|
74
|
private BankMapper bankMapper;
|
73
|
75
|
@Resource
|
74
|
76
|
private UsersMapper usersMapper;
|
75
|
|
-
|
|
77
|
+ @Resource
|
|
78
|
+ private CaxxMapper caxxMapper;
|
76
|
79
|
@Override
|
77
|
80
|
public IPage<TaskRespVO> getTaskList(TaskPageReqVO pageReqVO) {
|
78
|
81
|
// 根据角色不同,查询不同数据
|
|
@@ -85,7 +88,7 @@ public class TaskServiceImpl implements TaskService {
|
85
|
88
|
@Override
|
86
|
89
|
public IPage<TaskRespVO> getAllStoreroomList(TaskPageReqVO pageReqVO) {
|
87
|
90
|
// 根据角色不同,查询不同数据
|
88
|
|
- addParamDeptIds(pageReqVO);
|
|
91
|
+ addParamDeptIds(pageReqVO);
|
89
|
92
|
|
90
|
93
|
IPage<TaskRespVO> page = new Page<>(pageReqVO.getPageNo(), pageReqVO.getPageSize());
|
91
|
94
|
return dkMapper.getAllStoreroomList(page, pageReqVO);
|
|
@@ -126,8 +129,13 @@ public class TaskServiceImpl implements TaskService {
|
126
|
129
|
.setHyState(reqVO.getHyState())
|
127
|
130
|
.setHyryId(SecurityFrameworkUtils.getLoginUserId())
|
128
|
131
|
.setHyryName(SecurityFrameworkUtils.getLoginUserNickname());
|
129
|
|
- provinceMapper.updateByKqId(provinceDO, kqId);
|
|
132
|
+ provinceMapper.updateByKqId(provinceDO, kqId, reqVO.getCaIds());
|
130
|
133
|
});
|
|
134
|
+
|
|
135
|
+ //修改仓房信息:备选状态:
|
|
136
|
+ if(Objects.equals(DeliveryHyState.YES_HY.getCode(), reqVO.getHyState())){
|
|
137
|
+// caxxMapper.updateByKqId();
|
|
138
|
+ }
|
131
|
139
|
}
|
132
|
140
|
// 银行核验人员
|
133
|
141
|
if(roleCodes.contains(RoleCodeEnum.BANK_VERIFICATION_PERSONNEL.getCode())) {
|
|
@@ -136,8 +144,13 @@ public class TaskServiceImpl implements TaskService {
|
136
|
144
|
.setHyState(reqVO.getHyState())
|
137
|
145
|
.setHyryId(SecurityFrameworkUtils.getLoginUserId())
|
138
|
146
|
.setHyryName(SecurityFrameworkUtils.getLoginUserNickname());
|
139
|
|
- bankMapper.updateByKqId(bankDO, kqId);
|
|
147
|
+ bankMapper.updateByKqId(bankDO, kqId, reqVO.getCaIds());
|
140
|
148
|
});
|
|
149
|
+
|
|
150
|
+ //修改仓房信息:备选状态:todo
|
|
151
|
+ if(Objects.equals(DeliveryHyState.YES_HY.getCode(), reqVO.getHyState())){
|
|
152
|
+// caxxMapper.updateByKqId();
|
|
153
|
+ }
|
141
|
154
|
}
|
142
|
155
|
return true;
|
143
|
156
|
}
|
|
@@ -165,6 +178,11 @@ public class TaskServiceImpl implements TaskService {
|
165
|
178
|
.setId(YitIdHelper.nextId())
|
166
|
179
|
.setKqId(taskCaxxRespVO.getKqId())
|
167
|
180
|
.setCaId(taskCaxxRespVO.getCaId())));
|
|
181
|
+
|
|
182
|
+ //修改仓房信息:备选状态:
|
|
183
|
+ if(Objects.equals(DeliveryHyState.YES_HY.getCode(), reqVO.getHyState())){
|
|
184
|
+// caxxMapper.updateByKqId();
|
|
185
|
+ }
|
168
|
186
|
}
|
169
|
187
|
|
170
|
188
|
return true;
|