<select id="getStatDetail" parameterType="com.huaxia.cai.center.collection.api.stub.dto.QueueStatDto" resultType="com.huaxia.cai.center.collection.api.stub.vo.QueueStatDetailVo">
select
c.queue_no queueNo, c.business_category businessCategory, c.input_orgid inputOrgid,
c.user_id userId,c.user_name userName, c.follow_up_time followUpTime,
c.contract_no contractNo
from clt_collection_info c
where c.status = 0 and c.queue_no is not null and c.queue_no != ''
<foreach collection="mainList" separator="or" item="item" open="and (" close=")">
<trim prefix="(" suffix=")" prefixOverrides="and">
<if test="item.inputOrgid != null and item.inputOrgid != ''">
and c.input_orgid = #{item.inputOrgid,jdbcType=VARCHAR}
</if>
<if test="item.userId != null and item.userId != ''">
and c.user_id = #{item.userId,jdbcType=VARCHAR}
</if>
<if test="item.queueNo != null and item.queueNo != ''">
and c.queue_no = #{item.queueNo,jdbcType=VARCHAR}
</if>
<if test="item.businessCategory != null and item.businessCategory != ''">
and c.business_category = #{item.businessCategory,jdbcType=VARCHAR}
</if>
</trim>
</foreach>
</select>
foreach
最新推荐文章于 2024-03-29 17:56:08 发布