Commit 466b437b by 林永健

refactor(digitalmanagement): 注释掉模板绑定员工过滤逻辑

- 注释掉数字化管理督导列表中过滤已绑定模板员工的代码
- 注释掉数字化管理模板服务中检查员工是否已绑定其他模板的逻辑
- 保留原有代码结构,方便后续恢复或修改
- 去除模板绑定校验以简化当前业务流程
1 parent 02bc0522
...@@ -401,11 +401,11 @@ public class DigitalManagementTemplateService { ...@@ -401,11 +401,11 @@ public class DigitalManagementTemplateService {
} }
} else { } else {
// 检查新绑定列表是否存在其他模板管理 // 检查新绑定列表是否存在其他模板管理
if (!CollectionUtils.isEmpty(dto.getStaffUuidList()) && !isLightChangeTemplate) { // if (!CollectionUtils.isEmpty(dto.getStaffUuidList()) && !isLightChangeTemplate) {
Collection<String> alreadyBindingTemplateStaff = this.getTemplateBindingStaff(dto.getTypeName(), newStaffUuidList); // Collection<String> alreadyBindingTemplateStaff = this.getTemplateBindingStaff(dto.getTypeName(), newStaffUuidList);
log.info("参数:{},已绑定员工:{}", newStaffUuidList, alreadyBindingTemplateStaff); // log.info("参数:{},已绑定员工:{}", newStaffUuidList, alreadyBindingTemplateStaff);
RpcAssert.assertIsTrue(CollectionUtils.isEmpty(alreadyBindingTemplateStaff), DigitalManagementErrorEnum.TEMPLATE_STAFF_ALREADY_BIND, "员工已绑定其他模板,请先解绑"); // RpcAssert.assertIsTrue(CollectionUtils.isEmpty(alreadyBindingTemplateStaff), DigitalManagementErrorEnum.TEMPLATE_STAFF_ALREADY_BIND, "员工已绑定其他模板,请先解绑");
} // }
exist = templateStaffRefMapper.findByCodeAndTime(templateCode, refTime); exist = templateStaffRefMapper.findByCodeAndTime(templateCode, refTime);
// 修改时,删除被圈出员工日报 // 修改时,删除被圈出员工日报
if (Objects.nonNull(exist) && StringUtils.hasLength(exist.getStaffUuidListStr())){ if (Objects.nonNull(exist) && StringUtils.hasLength(exist.getStaffUuidListStr())){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!