YhKhjbxxDbhlsMapper.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.yhgl.mapper.YhKhjbxxDbhlsMapper">
  4. <resultMap id="yhKhjbxxDbhlsMap" type="com.tofly.feesapi.yhgl.entity.YhKhjbxxDbhls">
  5. <id property="id" column="ID"/>
  6. <result property="yhbh" column="YHBH"/>
  7. <result property="ssgs" column="SSGS"/>
  8. <result property="sscbpq" column="SSCBPQ"/>
  9. <result property="sscbb" column="SSCBB"/>
  10. <result property="yhxm" column="YHXM"/>
  11. <result property="yhdz" column="YHDZ"/>
  12. <result property="lxdh" column="LXDH"/>
  13. <result property="dbhndljl" column="DBHNDLJL"/>
  14. <result property="dbhyhsdsl" column="DBHYHSDSL"/>
  15. <result property="dbhyhsdyf" column="DBHYHSDYF"/>
  16. <result property="yhyear" column="YHYEAR"/>
  17. </resultMap>
  18. <insert id="insertDbh">
  19. insert into YH_KHJBXX_DBHLS
  20. SELECT SYS_GUID(),
  21. a.yhbh,
  22. a.ssgs,
  23. a.sscbpq,
  24. a.sscbb,
  25. a.yhxm,
  26. a.yhdz,
  27. a.lxdh,
  28. a.dbhndljl,
  29. b.sdsl as dbhyhsdsl,
  30. b.sdys as dbhyhsdyf,
  31. #{year} as yhyear
  32. FROM yh_khjbxx a
  33. left join bm_dbhysyh b on b.YEAR = #{year}
  34. where a.khlb = '2'
  35. </insert>
  36. </mapper>