Merge remote-tracking branch 'remotes/origin/develop' into feature/checkImport
This commit is contained in:
commit
83d5533322
|
|
@ -162,7 +162,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -183,11 +183,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -260,11 +260,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -342,7 +342,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -363,11 +363,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -419,7 +419,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -440,11 +440,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -500,7 +500,7 @@
|
|||
or (param.subcompanyIds != null and param.subcompanyIds.size()>0)
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -528,11 +528,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -563,7 +563,7 @@
|
|||
or (param.subcompanyIds != null and param.subcompanyIds.size()>0)
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -591,11 +591,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -635,7 +635,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -656,11 +656,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -690,7 +690,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -711,11 +711,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -738,7 +738,7 @@
|
|||
or (param.subcompanyIds != null and param.subcompanyIds.size()>0)
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -767,11 +767,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -790,7 +790,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -811,11 +811,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -834,7 +834,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -855,11 +855,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -917,7 +917,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -938,11 +938,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -982,7 +982,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -1003,11 +1003,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -1067,7 +1067,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -1088,11 +1088,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
@ -1132,7 +1132,7 @@
|
|||
<if test="(param.employeeName != null and param.employeeName != '')
|
||||
or (param.departmentIds != null and param.departmentIds.size()>0)
|
||||
or (param.positionIds != null and param.positionIds.size()>0)
|
||||
or (param.status != null and param.status != 'ALL')">
|
||||
or (param.status != null and param.status.toString != 'ALL')">
|
||||
AND employee_id IN
|
||||
(
|
||||
SELECT id FROM hrmresource em WHERE em.status not in (7)
|
||||
|
|
@ -1153,11 +1153,11 @@
|
|||
</foreach>
|
||||
</if>
|
||||
-- 在职
|
||||
<if test="param.status != null and param.status == 'NORMAL'">
|
||||
<if test="param.status != null and param.status.toString == 'NORMAL'">
|
||||
AND em.status in (0,1,2,3)
|
||||
</if>
|
||||
-- 离职
|
||||
<if test="param.status != null and param.status == 'UNAVAILABLE'">
|
||||
<if test="param.status != null and param.status.toString == 'UNAVAILABLE'">
|
||||
AND em.status in (4,5,6)
|
||||
</if>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
package com.engine.salary.sys.entity.param;
|
||||
|
||||
import com.engine.salary.util.valid.DataCheck;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 保存人员定位规则参数
|
||||
* <p>Copyright: Copyright (c) 2022</p>
|
||||
* <p>Company: 泛微软件</p>
|
||||
*
|
||||
* @author qiantao
|
||||
* @version 1.0
|
||||
**/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MatchEmployeeModeSaveParam {
|
||||
|
||||
@DataCheck(require = true,message = "规则为空")
|
||||
private String rule;
|
||||
}
|
||||
|
|
@ -199,7 +199,7 @@ public class SalarySysConfServiceImpl extends Service implements SalarySysConfSe
|
|||
if (po == null) {
|
||||
SalarySysConfPO build = SalarySysConfPO.builder()
|
||||
.id(IdGenerator.generate())
|
||||
.confKey(ASCORDESC_CODE)
|
||||
.confKey(MATCH_EMPLOYEE_MODE)
|
||||
.confValue(rule)
|
||||
.title("定位人员规则")
|
||||
.orderWeight(0)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.engine.salary.web;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.salary.sys.entity.param.MatchEmployeeModeSaveParam;
|
||||
import com.engine.salary.sys.entity.param.OrderRuleParam;
|
||||
import com.engine.salary.sys.entity.param.SalarySysConfQueryParam;
|
||||
import com.engine.salary.sys.entity.po.SalarySysConfPO;
|
||||
|
|
@ -172,9 +173,9 @@ public class SalarySystemConfigController {
|
|||
@POST
|
||||
@Path("/saveMatchEmployeeModeRule")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public String saveMatchEmployeeModeRule(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody String param) {
|
||||
public String saveMatchEmployeeModeRule(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody MatchEmployeeModeSaveParam param) {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return new ResponseResult<String, String>(user).run(getSalarySystemConfigWrapper(user)::saveMatchEmployeeModeRule, param);
|
||||
return new ResponseResult<MatchEmployeeModeSaveParam, String>(user).run(getSalarySystemConfigWrapper(user)::saveMatchEmployeeModeRule, param);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.engine.salary.wrapper;
|
|||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.salary.sys.entity.param.MatchEmployeeModeSaveParam;
|
||||
import com.engine.salary.sys.entity.param.OrderRuleParam;
|
||||
import com.engine.salary.sys.entity.param.SalarySysConfQueryParam;
|
||||
import com.engine.salary.sys.entity.po.SalarySysConfPO;
|
||||
|
|
@ -113,7 +114,8 @@ public class SalarySystemConfigWrapper extends Service {
|
|||
return getSalarySysConfService(user).orderRule();
|
||||
}
|
||||
|
||||
public void saveMatchEmployeeModeRule(String rule) {
|
||||
getSalarySysConfService(user).saveMatchEmployeeModeRule(rule);
|
||||
public void saveMatchEmployeeModeRule(MatchEmployeeModeSaveParam param) {
|
||||
ValidUtil.doValidator(param);
|
||||
getSalarySysConfService(user).saveMatchEmployeeModeRule(param.getRule());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue