HtFilesMapper.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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.tofly.feesapi.dzht.mapper.HtFilesMapper">
  4. <resultMap id="htFilesMap" type="com.tofly.feesapi.dzht.entity.HtFiles">
  5. <id property="id" column="ID"/>
  6. <result property="wjlj" column="WJLJ"/>
  7. <result property="wjmc" column="WJMC"/>
  8. <result property="wjmcYs" column="WJMC_YS"/>
  9. <result property="wjdx" column="WJDX"/>
  10. <result property="wjxh" column="WJXH"/>
  11. <result property="wjfl" column="WJFL"/>
  12. <result property="czry" column="CZRY"/>
  13. <result property="czsj" column="CZSJ"/>
  14. <result property="zfbz" column="ZFBZ"/>
  15. <result property="zfyy" column="ZFYY"/>
  16. <result property="zfry" column="ZFRY"/>
  17. <result property="zfsj" column="ZFSJ"/>
  18. <result property="ssgs" column="SSGS"/>
  19. <result property="ywb" column="YWB"/>
  20. <result property="ywlx" column="YWLX"/>
  21. <result property="ywbh" column="YWBH"/>
  22. <result property="ywlcjd" column="YWLCJD"/>
  23. <result property="yhbh" column="YHBH"/>
  24. <result property="yhxm" column="YHXM"/>
  25. <result property="lxdh" column="LXDH"/>
  26. <result property="htHtlx" column="HT_HTLX"/>
  27. <result property="htHtbh" column="HT_HTBH"/>
  28. <result property="htQyr" column="HT_QYR"/>
  29. <result property="htQysj" column="HT_QYSJ"/>
  30. <result property="htHtmbid" column="HT_HTMBID"/>
  31. <result property="mid" column="MID"/>
  32. </resultMap>
  33. <select id="getHtReplaceParameter" resultType="com.tofly.feesapi.dzht.entity.vo.HtReplaceParameter">
  34. select a.yhbh,
  35. a.yhxm,
  36. a.zjhm,
  37. a.yhbh,
  38. a.email as dzyx,
  39. a.lxdh,
  40. b.sbbh,
  41. (select name from bm_yslx where code in (select yslx from bm_sj where code = b.sjbm)) ysxz,
  42. (select ccname from sys_child_code where pcid = '15' and CCCODE = b.bjwz) sbazwz,
  43. (select ccname from sys_child_code where pcid = '12' and CCCODE = b.sbkj) sbkj,
  44. (select ccname from sys_child_code where pcid = '13' and CCCODE = b.sblc) sblc,
  45. '1' as sbsl,
  46. (select name from bm_sblb where code = b.sblb) sblx
  47. from yh_khjbxx a
  48. left join yh_cbkxx b on a.yhbh = b.yhbh and b.cbkh = '1'
  49. where a.yhbh = #{yhbh}
  50. </select>
  51. <select id="getQfState" resultType="int">
  52. select count(*) from yy_qfmx where yhbh=#{yhbh} and sfbz=0
  53. </select>
  54. </mapper>