Commit 1641f041 authored by 廖旭伟's avatar 廖旭伟

所有核查类型列表接口增加查询条件

parent ecff2c42
...@@ -40,4 +40,7 @@ public class CheckAllRecordQuery { ...@@ -40,4 +40,7 @@ public class CheckAllRecordQuery {
private transient List<OrderCol> orderColList = new ArrayList(); private transient List<OrderCol> orderColList = new ArrayList();
/** 扣分方式(1.系统自动,2.人工添加,3.大厅巡查)列表 */
private List <Integer> subMethodList;
} }
...@@ -74,6 +74,13 @@ ...@@ -74,6 +74,13 @@
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
) AS a ) AS a
where 1=1
<if test="subMethodList != null">
and subMethod in
<foreach collection="subMethodList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="orderColList != null and !orderColList.isEmpty()"> <if test="orderColList != null and !orderColList.isEmpty()">
order by order by
<trim suffixOverrides="," suffix=""> <trim suffixOverrides="," suffix="">
...@@ -159,6 +166,13 @@ ...@@ -159,6 +166,13 @@
<if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if> <if test="checkTimeEnd != null and checkTimeEnd!=''"> AND checkTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{checkTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s') </if>
<if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if> <if test="createUserId != null and createUserId!=''"> AND createUserId = #{createUserId} </if>
) AS a ) AS a
where 1=1
<if test="subMethodList != null">
and subMethod in
<foreach collection="subMethodList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
</select> </select>
<select id="getScoreSummary" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.check.model.vo.CheckAllScoreSummaryVo"> <select id="getScoreSummary" parameterType="com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery" resultType="com.mortals.xhx.module.check.model.vo.CheckAllScoreSummaryVo">
......
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