feat: 查询异常问题修改

This commit is contained in:
fcli 2022-12-01 17:41:10 +08:00
parent 4f9e2d8f80
commit c7b3341a13
3 changed files with 20 additions and 1 deletions

View File

@ -58,6 +58,12 @@ public class SalarySendInfoQueryParam extends BaseQueryParam {
// @ApiModelProperty("发送状态")
private SalarySendStatusEnum sendStatus;
/**
* true= [已发送]
* false= [未发送已撤回]
*/
private Boolean isGranted;
/**
* 发送状态
*/

View File

@ -1,5 +1,7 @@
package com.engine.salary.enums.salarybill;
import com.engine.salary.enums.BaseEnum;
import java.util.Arrays;
/**
@ -7,7 +9,7 @@ import java.util.Arrays;
* @Author: wangxiangzhong
* @Date: 2021/12/9 15:56
*/
public enum SalarySendStatusEnum {
public enum SalarySendStatusEnum implements BaseEnum<Integer> {
UNSEND(0, "未发放", 93286),
ALREADYSEND(1, "已发放", 93212),
@ -25,14 +27,17 @@ public enum SalarySendStatusEnum {
this.labelId = labelId;
}
@Override
public Integer getValue() {
return value;
}
@Override
public String getDefaultLabel() {
return defaultLabel;
}
@Override
public Integer getLabelId() {
return labelId;
}

View File

@ -318,6 +318,14 @@
<!-- 发送状态 -->
<if test="param.sendStatusVal != null">
AND t1.send_status = #{param.sendStatusVal}
</if>
<if test="param.isGranted != null">
<if test="param.isGranted">
and t1.send_status = 1
</if>
<if test="!param.isGranted">
and t1.send_status in (0, 2)
</if>
</if>
<include refid="paramSql"/>
<!-- 排序 -->