TurnoverEndMapper.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.unis.transaction.server.dao.TurnoverEndDao">
  4. <sql id="end">
  5. title,jgbm,apcc,wtfmc,pzmc,jyxz,jyrq,jgrq,fbzt,fbztmc,jylx,jylxmc
  6. </sql>
  7. <sql id="sxf">
  8. jgbm,apcc,pzmc,jyxz,sxfl,sxflx,jylx,jylxmc,cjsl,jysl
  9. </sql>
  10. <sql id="turnoverdataJoins">
  11. </sql>
  12. <select id="selectTurnoverEndByCcbm"
  13. resultType="com.unis.transaction.server.entity.creditevaluate.TurnoverEndDO">
  14. select jgbm from ty_jyjg where ccbm = #{ccbm}
  15. </select>
  16. <select id="selectTurnoverEndPageList"
  17. resultType="com.unis.transaction.common.vo.creditevaluate.TurnoverEndVO">
  18. SELECT
  19. *
  20. FROM ty_jyjg <include refid="turnoverdataJoins" />
  21. <where>
  22. <if test="jylx != null">
  23. and jylx = #{jylx}
  24. </if>
  25. <if test="jyxz != null and jyxz != ''">
  26. and jyxz = #{jyxz}
  27. </if>
  28. <if test="pzbm != null and pzbm != ''">
  29. and pzbm = #{pzbm}
  30. </if>
  31. <if test="pzmc != null and pzmc != ''">
  32. and pzmc like '%' || #{pzmc} || '%'
  33. </if>
  34. <if test="lsxzbm != null and lsxzbm != ''">
  35. and lsxzbm = #{lsxzbm}
  36. </if>
  37. <if test="wtfmc != null and wtfmc != ''">
  38. and wtfmc like '%' || #{wtfmc} || '%'
  39. </if>
  40. <if test="fbzt != null and fbzt != ''">
  41. and fbzt = #{fbzt}
  42. </if>
  43. </where>
  44. </select>
  45. <select id="selectTurnoverSxfPageList"
  46. resultType="com.unis.transaction.common.vo.creditevaluate.TurnoverEndVO">
  47. SELECT
  48. *
  49. FROM ty_jyjg <include refid="turnoverdataJoins" />
  50. <where>
  51. <if test="jylx != null">
  52. and jylx = #{jylx}
  53. </if>
  54. <if test="jyxz != null and jyxz != ''">
  55. and jyxz = #{jyxz}
  56. </if>
  57. <if test="pzbm != null and pzbm != ''">
  58. and pzbm = #{pzbm}
  59. </if>
  60. <if test="pzmc != null and pzmc != ''">
  61. and pzmc like '%' || #{pzmc} || '%'
  62. </if>
  63. <if test="apcc != null and apcc != ''">
  64. and apcc like '%' || #{apcc} || '%'
  65. </if>
  66. <if test="lsxzbm != null and lsxzbm != ''">
  67. and lsxzbm = #{lsxzbm}
  68. </if>
  69. </where>
  70. </select>
  71. </mapper>