组织人事测试、优化
This commit is contained in:
parent
52087d24a1
commit
de1d4a8944
|
|
@ -75,4 +75,9 @@ public class StaffSearchParam {
|
|||
* 调整数量
|
||||
*/
|
||||
private Integer changeNum;
|
||||
|
||||
/**
|
||||
* 调整说明
|
||||
*/
|
||||
private String changeDescription;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ public class StaffsPO {
|
|||
*/
|
||||
private Integer requestId;
|
||||
|
||||
/**
|
||||
* 调整说明
|
||||
*/
|
||||
private String description;
|
||||
|
||||
private Long creator;
|
||||
private int deleteType;
|
||||
private Date createTime;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@
|
|||
<if test="requestId != null ">
|
||||
requestid,
|
||||
</if>
|
||||
<if test="description != null ">
|
||||
description,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
||||
<if test="creator != null">
|
||||
|
|
@ -89,6 +92,9 @@
|
|||
<if test="requestId != null ">
|
||||
#{requestId},
|
||||
</if>
|
||||
<if test="description != null ">
|
||||
#{description},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|||
|
||||
} else {
|
||||
// 插入明细表数据
|
||||
StaffsPO staffsPO = StaffsPO.builder().staffId(staffPO.getId()).businessType(2).changeNum(changeNum).businessSource(1).build();
|
||||
StaffsPO staffsPO = StaffsPO.builder().staffId(staffPO.getId()).businessType(2).changeNum(changeNum).businessSource(1).description(param.getChangeDescription()).build();
|
||||
MapperProxyFactory.getProxy(StaffsMapper.class).insertIgnoreNull(staffsPO);
|
||||
// 更新编制表
|
||||
staffPO.setStaffNum(staffPO.getStaffNum() + changeNum);
|
||||
|
|
@ -252,6 +252,9 @@ public class StaffServiceImpl extends Service implements StaffService {
|
|||
SearchConditionItem changeNumItem = OrganizationFormItemUtil.inputNumberItem(user, 2, 16, 3, "调整数量", "changeNum");
|
||||
staffNumItem.setRules("required");
|
||||
selectItems.add(changeNumItem);
|
||||
SearchConditionItem changeDescriptionItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, false, 2, 50, "变更说明", "changeDescription");
|
||||
selectItems.add(changeDescriptionItem);
|
||||
|
||||
}
|
||||
|
||||
addGroups.add(new SearchConditionGroup("基本信息", true, selectItems));
|
||||
|
|
|
|||
Loading…
Reference in New Issue