EnterPriseClassSetMapper.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.EnterPriseClassSetDao">
  4. <sql id="enterpriseclasssetColumns">
  5. szbm,zbxdtj,ybxdtj,zbxdzblm,ybxdzblm,zbxdzblz,ybxdzblz,zbxdzbm,ybxdzbm,fjmc
  6. </sql>
  7. <sql id="enterpriseclasssetJoins">
  8. </sql>
  9. <select id="selectList" resultType="com.unis.transaction.server.entity.creditevaluate.EnterPriseClassSetDO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassSetVO">
  10. SELECT
  11. <include refid="enterpriseclasssetColumns" />
  12. FROM ty_jyqyfjsz <include refid="enterpriseclasssetJoins" />
  13. <where>
  14. </where>
  15. </select>
  16. <select id="selectPageList" resultType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassSetVO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassSetVO">
  17. SELECT
  18. <include refid="enterpriseclasssetColumns" />
  19. FROM ty_jyqyfjsz <include refid="enterpriseclasssetJoins" />
  20. <where>
  21. and status = 1
  22. </where>
  23. order by szbm desc
  24. </select>
  25. <select id="selectDetail" resultType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassSetVO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassSetVO">
  26. SELECT
  27. <include refid="enterpriseclasssetColumns" />
  28. FROM ty_jyqyfjsz <include refid="enterpriseclasssetJoins" />
  29. WHERE szbm = #{szbm}
  30. </select>
  31. <insert id="insertEnterPriseClassSet">
  32. INSERT INTO ty_jyqyfjsz(
  33. szbm,zbxdtj,ybxdtj,zbxdzblm,ybxdzblm,zbxdzblz,ybxdzblz,zbxdzbm,ybxdzbm,fjmc)
  34. VALUES (
  35. #{szbm},#{zbxdtj},#{ybxdtj},#{zbxdzblm},#{ybxdzblm},#{zbxdzblz},#{ybxdzblz},#{zbxdzbm},#{ybxdzbm},#{fjmc})
  36. </insert>
  37. <update id="updateEnterPriseClassSet">
  38. UPDATE ty_jyqyfjsz SET
  39. szbm = #{szbm},zbxdtj = #{zbxdtj},ybxdtj = #{ybxdtj},zbxdzblm = #{zbxdzblm},ybxdzblm = #{ybxdzblm},zbxdzblz = #{zbxdzblz},ybxdzblz = #{ybxdzblz},zbxdzbm = #{zbxdzbm},ybxdzbm = #{ybxdzbm},fjmc = #{fjmc}
  40. WHERE szbm = #{szbm}
  41. </update>
  42. <update id="deleteEnterPriseClassSet">
  43. DELETE FROM ty_jyqyfjsz
  44. WHERE szbm = #{szbm}
  45. </update>
  46. </mapper>