|
|
@ -160,14 +160,14 @@ public class AsServiceGroupService extends MybatisBaseService<AsServiceGroupMapp |
|
|
|
} |
|
|
|
int i = baseMapper.checkByCodeAndUseOrgSid(dto.getGroupName(), dto.getUseOrgSid()); |
|
|
|
if (i > 0) { |
|
|
|
return rb.setMsg("编码已存在"); |
|
|
|
return rb.setMsg("班组名称已存在"); |
|
|
|
} |
|
|
|
this.insertByDto(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
int i = baseMapper.checkSidByCodeAndUseOrgSid(dto.getGroupName(), dto.getUseOrgSid(), dtoSid); |
|
|
|
if (i > 0) { |
|
|
|
return rb.setMsg("编码已存在"); |
|
|
|
return rb.setMsg("班组名称已存在"); |
|
|
|
} |
|
|
|
this.updateByDto(dto); |
|
|
|
return rb.success(); |
|
|
|