EnterPriseClassVariableMapper.xml 2.1 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.EnterPriseClassVariableDao">
  4. <sql id="enterpriseclassvariableColumns">
  5. blbm,blm,blz
  6. </sql>
  7. <sql id="enterpriseclassvariableJoins">
  8. </sql>
  9. <select id="selectList" resultType="com.unis.transaction.server.entity.creditevaluate.EnterPriseClassVariableDO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassVariableVO">
  10. SELECT
  11. <include refid="enterpriseclassvariableColumns" />
  12. FROM ty_jyqyfjblwh <include refid="enterpriseclassvariableJoins" />
  13. <where>
  14. </where>
  15. </select>
  16. <select id="selectPageList" resultType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassVariableVO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassVariableVO">
  17. SELECT
  18. <include refid="enterpriseclassvariableColumns" />
  19. FROM ty_jyqyfjblwh <include refid="enterpriseclassvariableJoins" />
  20. <where>
  21. and status = 1
  22. </where>
  23. order by blbm desc
  24. </select>
  25. <select id="selectDetail" resultType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassVariableVO" parameterType="com.unis.transaction.common.vo.creditevaluate.EnterPriseClassVariableVO">
  26. SELECT
  27. <include refid="enterpriseclassvariableColumns" />
  28. FROM ty_jyqyfjblwh <include refid="enterpriseclassvariableJoins" />
  29. WHERE blbm = #{blbm}
  30. </select>
  31. <insert id="insertEnterPriseClassVariable">
  32. INSERT INTO ty_jyqyfjblwh(
  33. blbm,blm,blz)
  34. VALUES (
  35. #{blbm},#{blm},#{blz})
  36. </insert>
  37. <update id="updateEnterPriseClassVariable">
  38. UPDATE ty_jyqyfjblwh SET
  39. blbm = #{blbm},blm = #{blm},blz = #{blz}
  40. WHERE blbm = #{blbm}
  41. </update>
  42. <update id="deleteEnterPriseClassVariable">
  43. DELETE FROM ty_jyqyfjblwh
  44. WHERE blbm = #{blbm}
  45. </update>
  46. </mapper>