Commit de6d1232 by hzc

修改查询添加status为数组

parent 66f29aea
......@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel("查询用户任务参数")
@Data
public class QueryAllTaskParam {
......@@ -25,9 +27,12 @@ public class QueryAllTaskParam {
private String keyword;
@ApiModelProperty("填报时间")
private String valueTime;
@ApiModelProperty("任务状态:1、填报中 2、审批中 3、审核通过 4、驳回")
@ApiModelProperty("任务状态:1、填报中 2、审批中 3、审核通过 4、驳回 5 任务下发")
private Integer status;
@ApiModelProperty("任务状态数组:1、填报中 2、审批中 3、审核通过 4、驳回 5 任务下发")
private List<Integer> statusArr;
@ApiModelProperty("归属部门,对应数据项的归属部门")
private String refIndDept;
......
......@@ -4,6 +4,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
@ApiModel("查询任务参数")
@Data
public class QueryTaskParam {
......@@ -30,6 +32,10 @@ public class QueryTaskParam {
private String valueTime;
@ApiModelProperty("任务状态:1、填报中 2、审批中 3、审核通过 4、驳回")
private Integer status;
@ApiModelProperty("任务状态数组:1、填报中 2、审批中 3、审核通过 4、驳回 5 任务下发")
private List<Integer> statusArr;
@ApiModelProperty("归属部门,对应数据项的归属部门")
private String refIndDept;
......
......@@ -80,11 +80,22 @@
<if test="keyword != null and keyword !=''">
and rule_name like concat('%', #{keyword}, '%')
</if>
<if test="valueTime != null and valueTime !=''">
and value_time = #{valueTime}
</if>
<if test="status != null ">
and status = #{status}
<!-- <if test="status != null">-->
<!-- and status =#{status}-->
<!-- </if>-->
<if test="statusArr != null">
and status in (
<foreach collection="statusArr" item="item" separator=",">
#{item}
</foreach>
)
</if>
<if test="createTimeFrom !=null and createTimeFrom !=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment