|
|
|
@ -182,10 +182,10 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
@Override
|
|
|
|
|
public int updateForbiddenTagById(DeptSearchParam params) {
|
|
|
|
|
HasRightUtil.hasRight(user, RIGHT_NAME, false);
|
|
|
|
|
DepartmentPO departmentPO = DepartmentPO.builder().id(params.getId()).canceled(params.getCanceled() ? 0 : 1).build();
|
|
|
|
|
DepartmentPO departmentPO = DepartmentPO.builder().id(params.getId()).canceled(params.getForbiddenTag() ? 0 : 1).build();
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
map.put("id", departmentPO.getId());
|
|
|
|
|
map.put("forbiddenTag", departmentPO.getCanceled());
|
|
|
|
|
map.put("id", Util.null2String(departmentPO.getId()));
|
|
|
|
|
map.put("forbiddenTag", Util.null2String(departmentPO.getCanceled()));
|
|
|
|
|
new OrganizationSyncEc(user, LogModuleNameEnum.DEPARTMENT, OperateTypeEnum.CANCELED, map).sync();
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|