编制上报 编制变更

pull/68/MERGE^2
dxfeng 3 years ago
parent 64cbb907e0
commit 9877308b84

@ -48,9 +48,10 @@
from jcl_org_staffs from jcl_org_staffs
where delete_type = 0 where delete_type = 0
</select> </select>
<select id="getStaffByFilter" resultType="com.engine.organization.entity.staff.po.StaffPO"> <select id="getStaffByFilter" resultMap="BaseResultMap">
select staff_id select
from jcl_org_staffs <include refid="baseColumns"/>
from jcl_org_staff t
where delete_type = 0 where delete_type = 0
<if test="companyId != null"> <if test="companyId != null">
and comp_id = #{companyId} and comp_id = #{companyId}
@ -58,8 +59,8 @@
<if test="departmentId != null"> <if test="departmentId != null">
and dept_id = #{departmentId} and dept_id = #{departmentId}
</if> </if>
<if test="JobId != null"> <if test="jobId != null">
and job_id = #{companyId} and job_id = #{jobId}
</if> </if>
</select> </select>

@ -12,6 +12,9 @@ import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.MainTableInfo; import weaver.soa.workflow.request.MainTableInfo;
import weaver.soa.workflow.request.Property; import weaver.soa.workflow.request.Property;
import weaver.soa.workflow.request.RequestInfo; import weaver.soa.workflow.request.RequestInfo;
import weaver.workflow.request.RequestManager;
import java.util.Date;
/** /**
* @description: TODO * @description: TODO
@ -27,7 +30,8 @@ public class StaffChangeAction implements Action {
Long departmentId = null; Long departmentId = null;
Long jobId = null; Long jobId = null;
Integer changeNum = null; Integer changeNum = null;
Integer businessSource = null; RequestManager requestManager = requestInfo.getRequestManager();
int creator = requestManager.getCreater();
MainTableInfo mainTableInfo = requestInfo.getMainTableInfo(); MainTableInfo mainTableInfo = requestInfo.getMainTableInfo();
Property[] property = mainTableInfo.getProperty(); Property[] property = mainTableInfo.getProperty();
// 取表单数据赋值 // 取表单数据赋值
@ -49,9 +53,6 @@ public class StaffChangeAction implements Action {
case "bzbds": case "bzbds":
changeNum = Integer.parseInt(value); changeNum = Integer.parseInt(value);
break; break;
case "ywly":
businessSource = Integer.parseInt(value);
break;
default: default:
break; break;
} }
@ -64,7 +65,7 @@ public class StaffChangeAction implements Action {
if (null != staffPO) { if (null != staffPO) {
// 插入明细表 // 插入明细表
StaffsPO staffsPO = StaffsPO.builder().staffId(staffPO.getId()).businessType(2).changeNum(changeNum).businessSource(businessSource).requestId(requestid).build(); StaffsPO staffsPO = StaffsPO.builder().staffId(staffPO.getId()).businessType(2).changeNum(changeNum).businessSource(2).requestId(requestid).deleteType(0).creator((long) creator).createTime(new Date()).build();
MapperProxyFactory.getProxy(StaffsMapper.class).insertIgnoreNull(staffsPO); MapperProxyFactory.getProxy(StaffsMapper.class).insertIgnoreNull(staffsPO);
// 更新编制表 // 更新编制表

Loading…
Cancel
Save