mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-15 06:02:06 +08:00
bug修改
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ public class ProcessServiceImpl implements ProcessService {
|
|||||||
|
|
||||||
processUserService.deleteProcessUserByProcess(updateReqVO.getId());
|
processUserService.deleteProcessUserByProcess(updateReqVO.getId());
|
||||||
// 确保updateReqVO不是null,避免NullPointerException
|
// 确保updateReqVO不是null,避免NullPointerException
|
||||||
if (updateReqVO != null && (updateReqVO.getUsers() != null || updateReqVO.getUsers() != "")) {
|
if (updateReqVO != null && updateReqVO.getUsers() != null && updateReqVO.getUsers() != "") {
|
||||||
String[] usersId = updateReqVO.getUsers().split(",");
|
String[] usersId = updateReqVO.getUsers().split(",");
|
||||||
for (String user : usersId) {
|
for (String user : usersId) {
|
||||||
// 增加了对无法解析的用户ID的异常处理
|
// 增加了对无法解析的用户ID的异常处理
|
||||||
|
|||||||
+3
-1
@@ -44,7 +44,9 @@ public class ProcessUserServiceImpl implements ProcessUserService {
|
|||||||
@Override
|
@Override
|
||||||
public void updateProcessUser(ProcessAndUserSaveReqVO updateReqVO) {
|
public void updateProcessUser(ProcessAndUserSaveReqVO updateReqVO) {
|
||||||
// 校验存在
|
// 校验存在
|
||||||
validateProcessUserExists(updateReqVO.getProcessId());
|
if (processUserMapper.selectById(updateReqVO.getProcessId(), updateReqVO.getUserId()).size() != 0) {
|
||||||
|
throw exception(PROCESS_USER_EXISTS);
|
||||||
|
}
|
||||||
// 更新
|
// 更新
|
||||||
ProcessUserDO updateObj = BeanUtils.toBean(updateReqVO, ProcessUserDO.class);
|
ProcessUserDO updateObj = BeanUtils.toBean(updateReqVO, ProcessUserDO.class);
|
||||||
processUserMapper.updateById(updateObj);
|
processUserMapper.updateById(updateObj);
|
||||||
|
|||||||
Reference in New Issue
Block a user