确认名单转义
This commit is contained in:
parent
590046b0a3
commit
1a4ab02bdc
|
|
@ -83,8 +83,10 @@ public class DeductionAmountDTO {
|
|||
/**
|
||||
* 报送状态
|
||||
*/
|
||||
@TableTitle(title = "报送状态", dataIndex = "declareStatus", key = "declareStatus")
|
||||
@TableTitle(title = "报送状态", dataIndex = "declareStatusName", key = "declareStatusName")
|
||||
private String declareStatusName;
|
||||
private Integer declareStatus;
|
||||
|
||||
private String declareErrorMsg;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ package com.engine.salary.enums.employeedeclare;
|
|||
|
||||
import com.engine.salary.enums.BaseEnum;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 人员报送状态
|
||||
* <p>Copyright: Copyright (c) 2023</p>
|
||||
|
|
@ -43,4 +45,13 @@ public enum DeclareStatusEnum implements BaseEnum<Integer> {
|
|||
public Integer getLabelId() {
|
||||
return labelId;
|
||||
}
|
||||
|
||||
public static DeclareStatusEnum getByValue(Integer value) {
|
||||
for (DeclareStatusEnum e : DeclareStatusEnum.values()) {
|
||||
if (Objects.equals(e.getValue(), value)) {
|
||||
return e;
|
||||
}
|
||||
}
|
||||
return NOT_DECLARE;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ public class DeductionAmountServiceImpl extends Service implements DeductionAmou
|
|||
.cardNum(deductionAmountPO.getCardNum())
|
||||
.cardType(deductionAmountPO.getCardType())
|
||||
.declareStatus(deductionAmountPO.getDeclareStatus())
|
||||
.declareStatusName(DeclareStatusEnum.getByValue(deductionAmountPO.getDeclareStatus()).getDefaultLabel())
|
||||
.declareErrorMsg(deductionAmountPO.getDeclareErrorMsg())
|
||||
.deductFlag(deductionAmountPO.getDeductFlag())
|
||||
.successfullyDeclared(deductionAmountPO.getSuccessfullyDeclared())
|
||||
|
|
@ -118,7 +119,7 @@ public class DeductionAmountServiceImpl extends Service implements DeductionAmou
|
|||
.cardType(employeeDeclarePO.getCardType())
|
||||
.nationality(employeeDeclarePO.getNationality())
|
||||
.declareStatus(DeclareStatusEnum.NOT_DECLARE.getValue())
|
||||
.deductFlag(SalaryOnOffEnum.OFF.getValue())
|
||||
.deductFlag(SalaryOnOffEnum.ON.getValue())
|
||||
.successfullyDeclared(SalaryOnOffEnum.OFF.getValue())
|
||||
.creator((long) user.getUID())
|
||||
.createTime(now)
|
||||
|
|
|
|||
Loading…
Reference in New Issue