Commit 0f5a5c78 by zhiwj

门店分组叶子节点判断

parent a1f8cdaa
......@@ -115,7 +115,7 @@ public class ClerkPositionApiServiceImpl implements ClerkPositionApiService {
}
Map<Integer, Integer> map = clerkService.countMapByPosition(clerkPosition.getEnterpriseId(), Collections.singletonList(clerkPosition.getClerkPositionId()));
Integer count = map.get(clerkPosition.getClerkPositionId());
if (count > 0) {
if (count != null && count > 0) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "角色正在被使用中,无法删除");
}
this.clerkPositionService.deleteById(clerkPositionId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment