1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?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.TurnoverEndDao">
- <sql id="end">
- title,jgbm,apcc,wtfmc,pzmc,jyxz,jyrq,jgrq,fbzt,fbztmc,jylx,jylxmc
- </sql>
- <sql id="sxf">
- jgbm,apcc,pzmc,jyxz,sxfl,sxflx,jylx,jylxmc,cjsl,jysl
- </sql>
- <sql id="turnoverdataJoins">
-
- </sql>
-
- <select id="selectTurnoverEndByCcbm"
- resultType="com.unis.transaction.server.entity.creditevaluate.TurnoverEndDO">
- select jgbm from ty_jyjg where ccbm = #{ccbm}
- </select>
- <select id="selectTurnoverEndPageList"
- resultType="com.unis.transaction.common.vo.creditevaluate.TurnoverEndVO">
- SELECT
- *
- FROM ty_jyjg <include refid="turnoverdataJoins" />
- <where>
- <if test="jylx != null">
- and jylx = #{jylx}
- </if>
- <if test="jyxz != null and jyxz != ''">
- and jyxz = #{jyxz}
- </if>
- <if test="pzbm != null and pzbm != ''">
- and pzbm = #{pzbm}
- </if>
- <if test="pzmc != null and pzmc != ''">
- and pzmc like '%' || #{pzmc} || '%'
- </if>
- <if test="lsxzbm != null and lsxzbm != ''">
- and lsxzbm = #{lsxzbm}
- </if>
- <if test="wtfmc != null and wtfmc != ''">
- and wtfmc like '%' || #{wtfmc} || '%'
- </if>
- <if test="fbzt != null and fbzt != ''">
- and fbzt = #{fbzt}
- </if>
- </where>
- </select>
- <select id="selectTurnoverSxfPageList"
- resultType="com.unis.transaction.common.vo.creditevaluate.TurnoverEndVO">
- SELECT
- *
- FROM ty_jyjg <include refid="turnoverdataJoins" />
- <where>
- <if test="jylx != null">
- and jylx = #{jylx}
- </if>
- <if test="jyxz != null and jyxz != ''">
- and jyxz = #{jyxz}
- </if>
- <if test="pzbm != null and pzbm != ''">
- and pzbm = #{pzbm}
- </if>
- <if test="pzmc != null and pzmc != ''">
- and pzmc like '%' || #{pzmc} || '%'
- </if>
- <if test="apcc != null and apcc != ''">
- and apcc like '%' || #{apcc} || '%'
- </if>
- <if test="lsxzbm != null and lsxzbm != ''">
- and lsxzbm = #{lsxzbm}
- </if>
- </where>
- </select>
-
- </mapper>
|