BisInspQaScoreDao.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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="cn.com.goldenwater.dcproj.dao.BisInspQaScoreDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspQaScore" id="bisInspQaScoreResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="qaMgr" column="QA_MGR"/>
  8. <result property="qaDst" column="QA_DST"/>
  9. <result property="qaNewEta" column="QA_NEW_ETA"/>
  10. <result property="qaBuld" column="QA_BULD"/>
  11. <result property="qaApply" column="QA_APPLY"/>
  12. <result property="qaPlan" column="QA_PLAN"/>
  13. <result property="qaPrjDiv" column="QA_PRJ_DIV"/>
  14. <result property="qaStan" column="QA_STAN"/>
  15. <result property="qaRvqn" column="QA_RVQN"/>
  16. <result property="qaPrjBuld" column="QA_PRJ_BULD"/>
  17. <result property="qaChkRun" column="QA_CHK_RUN"/>
  18. <result property="qaQaChk" column="QA_QA_CHK"/>
  19. <result property="qaChkCnl" column="QA_CHK_CNL"/>
  20. <result property="qaPblmHnd" column="QA_PBLM_HND"/>
  21. <result property="qaPrjDuty" column="QA_PRJ_DUTY"/>
  22. <result property="qaPrjIdea" column="QA_PRJ_IDEA"/>
  23. <result property="qaBuldJar" column="QA_BULD_JAR"/>
  24. <result property="qaAccp" column="QA_ACCP"/>
  25. <result property="qaSys" column="QA_SYS"/>
  26. <result property="qaMgrUp" column="QA_MGR_UP"/>
  27. <result property="total" column="TOTAL"/>
  28. <result property="subTotal" column="SUB_TOTAL"/>
  29. <result property="addTotal" column="ADD_TOTAL"/>
  30. <result property="note" column="NOTE"/>
  31. <result property="persId" column="PERS_ID"/>
  32. <result property="intm" column="INTM"/>
  33. <result property="uptm" column="UPTM"/>
  34. <result property="dataStat" column="DATA_STAT"/>
  35. </resultMap>
  36. <sql id="table_columns">
  37. ID,
  38. RGSTR_ID,
  39. QA_MGR,
  40. QA_DST,
  41. QA_NEW_ETA,
  42. QA_BULD,
  43. QA_APPLY,
  44. QA_PLAN,
  45. QA_PRJ_DIV,
  46. QA_STAN,
  47. QA_RVQN,
  48. QA_PRJ_BULD,
  49. QA_CHK_RUN,
  50. QA_QA_CHK,
  51. QA_CHK_CNL,
  52. QA_PBLM_HND,
  53. QA_PRJ_DUTY,
  54. QA_PRJ_IDEA,
  55. QA_BULD_JAR,
  56. QA_ACCP,
  57. QA_SYS,
  58. QA_MGR_UP,
  59. TOTAL,
  60. SUB_TOTAL,
  61. ADD_TOTAL,
  62. NOTE,
  63. PERS_ID,
  64. INTM,
  65. UPTM,
  66. DATA_STAT
  67. </sql>
  68. <sql id="entity_properties">
  69. #{id},
  70. #{rgstrId},
  71. #{qaMgr},
  72. #{qaDst},
  73. #{qaNewEta},
  74. #{qaBuld},
  75. #{qaApply},
  76. #{qaPlan},
  77. #{qaPrjDiv},
  78. #{qaStan},
  79. #{qaRvqn},
  80. #{qaPrjBuld},
  81. #{qaChkRun},
  82. #{qaQaChk},
  83. #{qaChkCnl},
  84. #{qaPblmHnd},
  85. #{qaPrjDuty},
  86. #{qaPrjIdea},
  87. #{qaBuldJar},
  88. #{qaAccp},
  89. #{qaSys},
  90. #{qaMgrUp},
  91. #{total},
  92. #{subTotal},
  93. #{addTotal},
  94. #{note},
  95. #{persId},
  96. #{intm},
  97. #{uptm},
  98. #{dataStat}
  99. </sql>
  100. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  101. <sql id="page_where">
  102. <trim prefix="where" prefixOverrides="and | or ">
  103. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  104. <if test="qaMgr != null">and QA_MGR = #{qaMgr}</if>
  105. <if test="qaDst != null">and QA_DST = #{qaDst}</if>
  106. <if test="qaNewEta != null">and QA_NEW_ETA = #{qaNewEta}</if>
  107. <if test="qaBuld != null">and QA_BULD = #{qaBuld}</if>
  108. <if test="qaApply != null">and QA_APPLY = #{qaApply}</if>
  109. <if test="qaPlan != null">and QA_PLAN = #{qaPlan}</if>
  110. <if test="qaPrjDiv != null">and QA_PRJ_DIV = #{qaPrjDiv}</if>
  111. <if test="qaStan != null">and QA_STAN = #{qaStan}</if>
  112. <if test="qaRvqn != null">and QA_RVQN = #{qaRvqn}</if>
  113. <if test="qaPrjBuld != null">and QA_PRJ_BULD = #{qaPrjBuld}</if>
  114. <if test="qaChkRun != null">and QA_CHK_RUN = #{qaChkRun}</if>
  115. <if test="qaQaChk != null">and QA_QA_CHK = #{qaQaChk}</if>
  116. <if test="qaChkCnl != null">and QA_CHK_CNL = #{qaChkCnl}</if>
  117. <if test="qaPblmHnd != null">and QA_PBLM_HND = #{qaPblmHnd}</if>
  118. <if test="qaPrjDuty != null">and QA_PRJ_DUTY = #{qaPrjDuty}</if>
  119. <if test="qaPrjIdea != null">and QA_PRJ_IDEA = #{qaPrjIdea}</if>
  120. <if test="qaBuldJar != null">and QA_BULD_JAR = #{qaBuldJar}</if>
  121. <if test="qaAccp != null">and QA_ACCP = #{qaAccp}</if>
  122. <if test="qaSys != null">and QA_SYS = #{qaSys}</if>
  123. <if test="qaMgrUp != null">and QA_MGR_UP = #{qaMgrUp}</if>
  124. <if test="total != null">and TOTAL = #{total}</if>
  125. <if test="subTotal != null">and SUB_TOTAL = #{subTotal}</if>
  126. <if test="addTotal != null">and ADD_TOTAL = #{addTotal}</if>
  127. <if test="note != null and note != ''">and NOTE = #{note}</if>
  128. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  129. <if test="intm != null">and INTM = #{intm}</if>
  130. <if test="uptm != null">and UPTM = #{uptm}</if>
  131. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  132. and DATA_STAT='0'
  133. </trim>
  134. </sql>
  135. <select id="get" resultMap="bisInspQaScoreResultMap" parameterType="String" >
  136. select <include refid="table_columns" /> from BIS_INSP_QA_SCORE where RGSTR_ID = #{id}
  137. </select>
  138. <select id="getBy" resultMap="bisInspQaScoreResultMap">
  139. select <include refid="table_columns" /> from BIS_INSP_QA_SCORE <include refid="page_where" />
  140. </select>
  141. <select id="findAll" resultMap="bisInspQaScoreResultMap">
  142. select <include refid="table_columns" /> from BIS_INSP_QA_SCORE
  143. </select>
  144. <select id="findList" resultMap="bisInspQaScoreResultMap">
  145. select <include refid="table_columns" /> from BIS_INSP_QA_SCORE <include refid="page_where" />
  146. </select>
  147. <select id="selectCount" resultType="int" >
  148. select count(ID) from BIS_INSP_QA_SCORE <include refid="page_where" />
  149. </select>
  150. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScore">
  151. insert into BIS_INSP_QA_SCORE( <include refid="table_columns" /> )
  152. values ( <include refid="entity_properties" /> )
  153. </insert>
  154. <delete id="delete" parameterType="java.lang.String">
  155. update BIS_INSP_QA_SCORE set DATA_STAT='9' where ID = #{id}
  156. </delete>
  157. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScore">
  158. update BIS_INSP_QA_SCORE set DATA_STAT='9' <include refid="page_where" />
  159. </delete>
  160. <update id="deleteInFlag" parameterType="java.lang.String">
  161. update BIS_INSP_QA_SCORE set DATA_STAT = '9' where ID = #{id}
  162. </update>
  163. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScore">
  164. update BIS_INSP_QA_SCORE
  165. <trim prefix="set" suffixOverrides=",">
  166. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  167. <if test="qaMgr != null">QA_MGR = #{qaMgr},</if>
  168. <if test="qaDst != null">QA_DST = #{qaDst},</if>
  169. <if test="qaNewEta != null">QA_NEW_ETA = #{qaNewEta},</if>
  170. <if test="qaBuld != null">QA_BULD = #{qaBuld},</if>
  171. <if test="qaApply != null">QA_APPLY = #{qaApply},</if>
  172. <if test="qaPlan != null">QA_PLAN = #{qaPlan},</if>
  173. <if test="qaPrjDiv != null">QA_PRJ_DIV = #{qaPrjDiv},</if>
  174. <if test="qaStan != null">QA_STAN = #{qaStan},</if>
  175. <if test="qaRvqn != null">QA_RVQN = #{qaRvqn},</if>
  176. <if test="qaPrjBuld != null">QA_PRJ_BULD = #{qaPrjBuld},</if>
  177. <if test="qaChkRun != null">QA_CHK_RUN = #{qaChkRun},</if>
  178. <if test="qaQaChk != null">QA_QA_CHK = #{qaQaChk},</if>
  179. <if test="qaChkCnl != null">QA_CHK_CNL = #{qaChkCnl},</if>
  180. <if test="qaPblmHnd != null">QA_PBLM_HND = #{qaPblmHnd},</if>
  181. <if test="qaPrjDuty != null">QA_PRJ_DUTY = #{qaPrjDuty},</if>
  182. <if test="qaPrjIdea != null">QA_PRJ_IDEA = #{qaPrjIdea},</if>
  183. <if test="qaBuldJar != null">QA_BULD_JAR = #{qaBuldJar},</if>
  184. <if test="qaAccp != null">QA_ACCP = #{qaAccp},</if>
  185. <if test="qaSys != null">QA_SYS = #{qaSys},</if>
  186. <if test="qaMgrUp != null">QA_MGR_UP = #{qaMgrUp},</if>
  187. <if test="total != null">TOTAL = #{total},</if>
  188. <if test="subTotal != null">SUB_TOTAL = #{subTotal},</if>
  189. <if test="addTotal != null">ADD_TOTAL = #{addTotal},</if>
  190. <if test="note != null and note != ''">NOTE = #{note},</if>
  191. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  192. <if test="intm != null">INTM = #{intm},</if>
  193. <if test="uptm != null">UPTM = #{uptm},</if>
  194. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  195. </trim>
  196. <where>ID = #{id}</where>
  197. </update>
  198. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspQaScore">
  199. update BIS_INSP_QA_SCORE
  200. <trim prefix="set" suffixOverrides=",">
  201. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  202. <if test="qaMgr != null">QA_MGR = #{qaMgr},</if>
  203. <if test="qaDst != null">QA_DST = #{qaDst},</if>
  204. <if test="qaNewEta != null">QA_NEW_ETA = #{qaNewEta},</if>
  205. <if test="qaBuld != null">QA_BULD = #{qaBuld},</if>
  206. <if test="qaApply != null">QA_APPLY = #{qaApply},</if>
  207. <if test="qaPlan != null">QA_PLAN = #{qaPlan},</if>
  208. <if test="qaPrjDiv != null">QA_PRJ_DIV = #{qaPrjDiv},</if>
  209. <if test="qaStan != null">QA_STAN = #{qaStan},</if>
  210. <if test="qaRvqn != null">QA_RVQN = #{qaRvqn},</if>
  211. <if test="qaPrjBuld != null">QA_PRJ_BULD = #{qaPrjBuld},</if>
  212. <if test="qaChkRun != null">QA_CHK_RUN = #{qaChkRun},</if>
  213. <if test="qaQaChk != null">QA_QA_CHK = #{qaQaChk},</if>
  214. <if test="qaChkCnl != null">QA_CHK_CNL = #{qaChkCnl},</if>
  215. <if test="qaPblmHnd != null">QA_PBLM_HND = #{qaPblmHnd},</if>
  216. <if test="qaPrjDuty != null">QA_PRJ_DUTY = #{qaPrjDuty},</if>
  217. <if test="qaPrjIdea != null">QA_PRJ_IDEA = #{qaPrjIdea},</if>
  218. <if test="qaBuldJar != null">QA_BULD_JAR = #{qaBuldJar},</if>
  219. <if test="qaAccp != null">QA_ACCP = #{qaAccp},</if>
  220. <if test="qaSys != null">QA_SYS = #{qaSys},</if>
  221. <if test="qaMgrUp != null">QA_MGR_UP = #{qaMgrUp},</if>
  222. <if test="total != null">TOTAL = #{total},</if>
  223. <if test="subTotal != null">SUB_TOTAL = #{subTotal},</if>
  224. <if test="addTotal != null">ADD_TOTAL = #{addTotal},</if>
  225. <if test="note != null and note != ''">NOTE = #{note},</if>
  226. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  227. <if test="intm != null">INTM = #{intm},</if>
  228. <if test="uptm != null">UPTM = #{uptm},</if>
  229. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  230. </trim>
  231. <include refid="page_where" />
  232. </update>
  233. <!-- 其他自定义SQL -->
  234. </mapper>