|
|
|
@ -107,6 +107,7 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|
|
|
|
// 更新编制表
|
|
|
|
|
staffPO.setStaffNum(staffPO.getStaffNum() + changeNum);
|
|
|
|
|
}
|
|
|
|
|
OrganizationAssert.isFalse(staffPO.getStaffNum() < 0, "调整后编制数小于0,请更正");
|
|
|
|
|
StaffBO.buildStaffDesc(staffPO);
|
|
|
|
|
// 更新主表
|
|
|
|
|
return getStaffMapper().updateStaff(staffPO);
|
|
|
|
@ -205,7 +206,6 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|
|
|
|
SearchConditionItem descriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 60, "描述说明", "description");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 编辑状态下赋值操作
|
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
|
if (!StringUtil.isEmpty(id)) {
|
|
|
|
@ -245,7 +245,10 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|
|
|
|
selectItems.add(descriptionItem);
|
|
|
|
|
String operateType = (String) params.get("operateType");
|
|
|
|
|
if ("2".equals(operateType)) {
|
|
|
|
|
selectItems.forEach(item->item.setViewAttr(1));
|
|
|
|
|
selectItems.forEach(item -> {
|
|
|
|
|
item.setViewAttr(1);
|
|
|
|
|
item.setRules(null);
|
|
|
|
|
});
|
|
|
|
|
SearchConditionItem changeNumItem = OrganizationFormItemUtil.inputNumberItem(user, 2, 16, 3, "调整数量", "changeNum");
|
|
|
|
|
staffNumItem.setRules("required");
|
|
|
|
|
selectItems.add(changeNumItem);
|
|
|
|
|