12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.unis.transaction.server.dao.ComplainDao">
-
- <sql id="complainColumns">
- csbm,apcc,htbh,lsxz,pz,csdwmc,ccmc,sgmc,cszt,csztmc,bcsdw,sgdw,ccdw,bcszt
- </sql>
-
- <sql id="complainJoins">
-
- </sql>
-
- <select id="selectPageList" resultType="com.unis.transaction.common.vo.givebackbail.ComplainVO"
- parameterType="com.unis.transaction.common.vo.givebackbail.ComplainVO">
- select
- <include refid="complainColumns" />
- from
- ty_jycs cs <include refid="complainJoins" />
- <where>
- <if test="csdwmc != null and csdwmc != ''">
- and cs.csdwmc like '%' || #{csdwmc} || '%'
- </if>
- <if test="htbh != null and htbh != ''">
- and cs.htbh like '%' || #{htbh} || '%'
- </if>
- <if test="csdw != null and csdw != ''">
- and cs.csdw = #{csdw}
- </if>
- <if test="bcsdw != null and bcsdw != ''">
- and cs.bcsdw = #{bcsdw}
- </if>
- <if test="sjlx != null">
- and cs.sjlx = #{sjlx}
- </if>
- <if test="cszt != null">
- and cs.cszt = #{cszt}
- </if>
- <if test="csdw != null and csdw != ''">
- and cs.csdw = #{csdw}
- </if>
- <if test="ztList!=null">
- and cs.cszt in
- <foreach collection="ztList" index="index" item="item" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- </where>
- order by cs.cssj desc
- </select>
-
-
- </mapper>
|