SysBankPhysicalDefenseConstructionMapper.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.xunmei.system.mapper.SysBankPhysicalDefenseConstructionMapper">
  6. <resultMap type="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction" id="SysBankPhysicalDefenseConstructionResult">
  7. <result property="id" column="id"/>
  8. <result property="standard" column="standard"/>
  9. <result property="dateOfCompliance" column="date_of_compliance"/>
  10. <result property="certificateEvidence" column="certificate_evidence"/>
  11. <result property="certificate" column="certificate"/>
  12. <result property="evidence" column="evidence"/>
  13. <result property="createTime" column="create_time"/>
  14. <result property="updateTime" column="update_time"/>
  15. <result property="createBy" column="create_by"/>
  16. <result property="updateBy" column="update_by"/>
  17. <result property="orgId" column="org_id"/>
  18. </resultMap>
  19. <sql id="selectSysBankPhysicalDefenseConstructionVo">
  20. select id, standard, date_of_compliance, certificate_evidence, certificate, evidence, create_time, update_time, create_by, update_by, org_id
  21. from sys_bank_physical_defense_construction
  22. </sql>
  23. <select id="selectSysBankPhysicalDefenseConstructionList" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction"
  24. resultMap="SysBankPhysicalDefenseConstructionResult">
  25. <include refid="selectSysBankPhysicalDefenseConstructionVo"/>
  26. <where>
  27. <if test="standard != null and standard != ''">
  28. and standard = #{standard}
  29. </if>
  30. <if test="dateOfCompliance != null ">
  31. and date_of_compliance = #{dateOfCompliance}
  32. </if>
  33. <if test="certificateEvidence != null ">
  34. and certificate_evidence = #{certificateEvidence}
  35. </if>
  36. <if test="certificate != null and certificate != ''">
  37. and certificate = #{certificate}
  38. </if>
  39. <if test="evidence != null and evidence != ''">
  40. and evidence = #{evidence}
  41. </if>
  42. <if test="orgId != null ">
  43. and org_id = #{orgId}
  44. </if>
  45. </where>
  46. </select>
  47. <select id="selectSysBankPhysicalDefenseConstructionById" parameterType="Long"
  48. resultMap="SysBankPhysicalDefenseConstructionResult">
  49. <include refid="selectSysBankPhysicalDefenseConstructionVo"/>
  50. where id = #{id}
  51. </select>
  52. <insert id="insertSysBankPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction">
  53. insert into sys_bank_physical_defense_construction
  54. <trim prefix="(" suffix=")" suffixOverrides=",">
  55. <if test="id != null">id,
  56. </if>
  57. <if test="standard != null">standard,
  58. </if>
  59. <if test="dateOfCompliance != null">date_of_compliance,
  60. </if>
  61. <if test="certificateEvidence != null">certificate_evidence,
  62. </if>
  63. <if test="certificate != null">certificate,
  64. </if>
  65. <if test="evidence != null">evidence,
  66. </if>
  67. <if test="createTime != null">create_time,
  68. </if>
  69. <if test="updateTime != null">update_time,
  70. </if>
  71. <if test="createBy != null">create_by,
  72. </if>
  73. <if test="updateBy != null">update_by,
  74. </if>
  75. <if test="orgId != null">org_id,
  76. </if>
  77. </trim>
  78. <trim prefix="values (" suffix=")" suffixOverrides=",">
  79. <if test="id != null">#{id},
  80. </if>
  81. <if test="standard != null">#{standard},
  82. </if>
  83. <if test="dateOfCompliance != null">#{dateOfCompliance},
  84. </if>
  85. <if test="certificateEvidence != null">#{certificateEvidence},
  86. </if>
  87. <if test="certificate != null">#{certificate},
  88. </if>
  89. <if test="evidence != null">#{evidence},
  90. </if>
  91. <if test="createTime != null">#{createTime},
  92. </if>
  93. <if test="updateTime != null">#{updateTime},
  94. </if>
  95. <if test="createBy != null">#{createBy},
  96. </if>
  97. <if test="updateBy != null">#{updateBy},
  98. </if>
  99. <if test="orgId != null">#{orgId},
  100. </if>
  101. </trim>
  102. </insert>
  103. <update id="updateSysBankPhysicalDefenseConstruction" parameterType="com.xunmei.system.domain.SysBankPhysicalDefenseConstruction">
  104. update sys_bank_physical_defense_construction
  105. <trim prefix="SET" suffixOverrides=",">
  106. <if test="standard != null">standard =
  107. #{standard},
  108. </if>
  109. <if test="dateOfCompliance != null">date_of_compliance =
  110. #{dateOfCompliance},
  111. </if>
  112. <if test="certificateEvidence != null">certificate_evidence =
  113. #{certificateEvidence},
  114. </if>
  115. <if test="certificate != null">certificate =
  116. #{certificate},
  117. </if>
  118. <if test="evidence != null">evidence =
  119. #{evidence},
  120. </if>
  121. <if test="createTime != null">create_time =
  122. #{createTime},
  123. </if>
  124. <if test="updateTime != null">update_time =
  125. #{updateTime},
  126. </if>
  127. <if test="createBy != null">create_by =
  128. #{createBy},
  129. </if>
  130. <if test="updateBy != null">update_by =
  131. #{updateBy},
  132. </if>
  133. <if test="orgId != null">org_id =
  134. #{orgId},
  135. </if>
  136. </trim>
  137. where id = #{id}
  138. </update>
  139. <delete id="deleteSysBankPhysicalDefenseConstructionById" parameterType="Long">
  140. delete
  141. from sys_bank_physical_defense_construction where id = #{id}
  142. </delete>
  143. <delete id="deleteSysBankPhysicalDefenseConstructionByIds" parameterType="String">
  144. delete from sys_bank_physical_defense_construction where id in
  145. <foreach item="id" collection="array" open="(" separator="," close=")">
  146. #{id}
  147. </foreach>
  148. </delete>
  149. </mapper>