TacProvincePblmMendInfoDao.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  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.TacProvincePblmMendInfoDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo" id="tacProvincePblmMendInfoResultMap">
  5. <result property="sn" column="SN"/>
  6. <result property="pblmRevision" column="PBLM_REVISION"/>
  7. <result property="pblmRevisionProof" column="PBLM_REVISION_PROOF"/>
  8. <result property="pblmNendNote" column="PBLM_NEND_NOTE"/>
  9. <result property="pblmMendState" column="PBLM_MEND_STATE"/>
  10. <result property="pblmMendPers" column="PBLM_MEND_PERS"/>
  11. <result property="pblmMendPersId" column="PBLM_MEND_PERS_ID"/>
  12. <result property="pblmMendTm" column="PBLM_MEND_TM"/>
  13. <result property="pblmCrtm" column="PBLM_CRTM"/>
  14. <result property="isRect" column="IS_RECT"/>
  15. <result property="pblmPltm" column="PBLM_PLTM"/>
  16. <result property="pblmActm" column="PBLM_ACTM"/>
  17. <result property="crtState" column="CRT_STATE"/>
  18. <result property="crtInfo" column="CRT_INFO"/>
  19. <result property="pblmOut" column="PBLM_OUT"/>
  20. <result property="dataStat" column="DATA_STAT"/>
  21. <result property="isStart" column="IS_START"/>
  22. <result property="adCode" column="AD_CODE"/>
  23. <result property="location" column="LOCATION"/>
  24. <result property="prjtId" column="PRJT_ID"/>
  25. <result property="prjName" column="PRJ_NAME"/>
  26. <result property="pblmId" column="PBLM_ID"/>
  27. <result property="id" column="ID"/>
  28. <result property="objType" column="OBJ_TYPE"/>
  29. <result property="objId" column="OBJ_ID"/>
  30. <result property="pblmNm" column="PBLM_NM"/>
  31. <result property="pblmPasi" column="PBLM_PASI"/>
  32. <result property="ifCasePblm" column="IF_CASE_PBLM"/>
  33. <result property="subjectIds" column="SUBJECT_IDS"/>
  34. <result property="subjectNames" column="SUBJECT_NAMES"/>
  35. <result property="pblmDesc" column="PBLM_DESC"/>
  36. <result property="pblmReason" column="PBLM_REASON"/>
  37. <result property="pblmSggtn" column="PBLM_SGGTN"/>
  38. <result property="pblmSn" column="PBLM_SN"/>
  39. <result property="pblmstdId" column="PBLMSTD_ID"/>
  40. <result property="rectId" column="RECT_ID"/>
  41. <result property="rgstrId" column="RGSTR_ID"/>
  42. <result property="listType" column="LIST_TYPE"/>
  43. <result property="listId" column="LIST_ID"/>
  44. <result property="hasVedio" column="HAS_VEDIO"/>
  45. <result property="groupId" column="GROUP_ID"/>
  46. <result property="persId" column="PERS_ID"/>
  47. <result property="persNm" column="PERS_NM"/>
  48. <result property="intm" column="INTM"/>
  49. <result property="spclId" column="SPCL_ID"/>
  50. <result property="spclNm" column="SPCL_NM"/>
  51. <result property="spclRvwOptn" column="SPCL_RVW_OPTN"/>
  52. <result property="spclTm" column="SPCL_TM"/>
  53. <result property="uptm" column="UPTM"/>
  54. <result property="note" column="NOTE"/>
  55. <result property="pblmQlttvCd" column="PBLM_QLTTV_CD"/>
  56. <result property="pblmQlttvNm" column="PBLM_QLTTV_NM"/>
  57. <result property="isCpQa" column="IS_CP_QA"/>
  58. <result property="pblmTypeDesc" column="PBLM_TYPE_DESC"/>
  59. <result property="taskId" column="TASK_ID"/>
  60. <result property="stepId" column="STEP_ID"/>
  61. <result property="oldPblmId" column="OLD_PBLM_ID"/>
  62. <result property="state" column="STATE"/>
  63. <result property="province" column="PROVINCE"/>
  64. <result property="setpPblmId" column="SETP_PBLM_ID"/>
  65. <result property="bsnm" column="BSNM"/>
  66. </resultMap>
  67. <sql id="table_columns">
  68. SN,
  69. PBLM_REVISION,
  70. PBLM_REVISION_PROOF,
  71. PBLM_NEND_NOTE,
  72. PBLM_MEND_STATE,
  73. PBLM_MEND_PERS,
  74. PBLM_MEND_PERS_ID,
  75. PBLM_MEND_TM,
  76. PBLM_CRTM,
  77. IS_RECT,
  78. PBLM_PLTM,
  79. PBLM_ACTM,
  80. CRT_STATE,
  81. CRT_INFO,
  82. PBLM_OUT,
  83. DATA_STAT,
  84. IS_START,
  85. AD_CODE,
  86. LOCATION,
  87. PRJT_ID,
  88. PRJ_NAME,
  89. PBLM_ID,
  90. ID,
  91. OBJ_TYPE,
  92. OBJ_ID,
  93. PBLM_NM,
  94. PBLM_PASI,
  95. IF_CASE_PBLM,
  96. SUBJECT_IDS,
  97. SUBJECT_NAMES,
  98. PBLM_DESC,
  99. PBLM_REASON,
  100. PBLM_SGGTN,
  101. PBLM_SN,
  102. PBLMSTD_ID,
  103. RECT_ID,
  104. RGSTR_ID,
  105. LIST_TYPE,
  106. LIST_ID,
  107. HAS_VEDIO,
  108. GROUP_ID,
  109. PERS_ID,
  110. PERS_NM,
  111. INTM,
  112. SPCL_ID,
  113. SPCL_NM,
  114. SPCL_RVW_OPTN,
  115. SPCL_TM,
  116. UPTM,
  117. NOTE,
  118. PBLM_QLTTV_CD,
  119. PBLM_QLTTV_NM,
  120. IS_CP_QA,
  121. PBLM_TYPE_DESC,
  122. TASK_ID,
  123. STEP_ID,
  124. OLD_PBLM_ID,
  125. STATE,
  126. PROVINCE,
  127. SETP_PBLM_ID,
  128. BSNM
  129. </sql>
  130. <sql id="entity_properties">
  131. #{sn},
  132. #{pblmRevision},
  133. #{pblmRevisionProof},
  134. #{pblmNendNote},
  135. #{pblmMendState},
  136. #{pblmMendPers},
  137. #{pblmMendPersId},
  138. #{pblmMendTm},
  139. #{pblmCrtm},
  140. #{isRect},
  141. #{pblmPltm},
  142. #{pblmActm},
  143. #{crtState},
  144. #{crtInfo},
  145. #{pblmOut},
  146. #{dataStat},
  147. #{isStart},
  148. #{adCode},
  149. #{location},
  150. #{prjtId},
  151. #{prjName},
  152. #{pblmId},
  153. #{id},
  154. #{objType},
  155. #{objId},
  156. #{pblmNm},
  157. #{pblmPasi},
  158. #{ifCasePblm},
  159. #{subjectIds},
  160. #{subjectNames},
  161. #{pblmDesc},
  162. #{pblmReason},
  163. #{pblmSggtn},
  164. #{pblmSn},
  165. #{pblmstdId},
  166. #{rectId},
  167. #{rgstrId},
  168. #{listType},
  169. #{listId},
  170. #{hasVedio},
  171. #{groupId},
  172. #{persId},
  173. #{persNm},
  174. #{intm},
  175. #{spclId},
  176. #{spclNm},
  177. #{spclRvwOptn},
  178. #{spclTm},
  179. #{uptm},
  180. #{note},
  181. #{pblmQlttvCd},
  182. #{pblmQlttvNm},
  183. #{isCpQa},
  184. #{pblmTypeDesc},
  185. #{taskId},
  186. #{stepId},
  187. #{oldPblmId},
  188. #{state},
  189. #{province},
  190. #{setpPblmId},
  191. #{bsnm}
  192. </sql>
  193. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  194. <sql id="page_where">
  195. <trim prefix="where" prefixOverrides="and | or ">
  196. <if test="pblmRevision != null and pblmRevision != ''">and t.PBLM_REVISION = #{pblmRevision}</if>
  197. <if test="pblmRevisionProof != null and pblmRevisionProof != ''">and t.PBLM_REVISION_PROOF =
  198. #{pblmRevisionProof}
  199. </if>
  200. <if test="pblmNendNote != null and pblmNendNote != ''">and t.PBLM_NEND_NOTE = #{pblmNendNote}</if>
  201. <if test="pblmMendState != null and pblmMendState != ''">and t.PBLM_MEND_STATE = #{pblmMendState}</if>
  202. <if test="pblmMendPers != null and pblmMendPers != ''">and t.PBLM_MEND_PERS = #{pblmMendPers}</if>
  203. <if test="pblmMendPersId != null and pblmMendPersId != ''">and t.PBLM_MEND_PERS_ID = #{pblmMendPersId}</if>
  204. <if test="pblmMendTm != null">and t.PBLM_MEND_TM = #{pblmMendTm}</if>
  205. <if test="pblmCrtm != null">and t.PBLM_CRTM = #{pblmCrtm}</if>
  206. <if test="isRect != null and isRect != ''">and t.IS_RECT = #{isRect}</if>
  207. <if test="pblmPltm != null">and t.PBLM_PLTM = #{pblmPltm}</if>
  208. <if test="pblmActm != null">and t.PBLM_ACTM = #{pblmActm}</if>
  209. <if test="crtState != null and crtState != ''">and t.CRT_STATE = #{crtState}</if>
  210. <if test="crtInfo != null and crtInfo != ''">and t.CRT_INFO = #{crtInfo}</if>
  211. <if test="pblmOut != null and pblmOut != ''">
  212. <if test="pblmOut =='1'.toString()">
  213. and t.PBLM_OUT =#{pblmOut}
  214. </if>
  215. <if test="pblmOut =='0'.toString()">
  216. and (t.PBLM_OUT =#{pblmOut} or t.PBLM_OUT is null)
  217. </if>
  218. </if>
  219. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  220. <if test="isStart != null and isStart != ''">
  221. <if test="isStart =='1'.toString()">
  222. and IS_START =#{isStart}
  223. </if>
  224. <if test="isStart =='0'.toString()">
  225. and (IS_START =#{isStart} or IS_START is null)
  226. </if>
  227. </if>
  228. <if test="adCode != null and adCode != ''">and t.AD_CODE like '${adCode}%'</if>
  229. <if test="location != null and location != ''">and t.LOCATION = #{location}</if>
  230. <if test="prjtId != null and prjtId != ''">and t.PRJT_ID = #{prjtId}</if>
  231. <if test="prjName != null and prjName != ''">and t.PRJ_NAME like '%${prjName}%'</if>
  232. <if test="pblmId != null and pblmId != ''">and t.PBLM_ID = #{pblmId}</if>
  233. <if test="id != null and id != ''">and t.ID = #{id}</if>
  234. <if test="objType != null and objType != ''">and t.OBJ_TYPE = #{objType}</if>
  235. <if test="objId != null and objId != ''">and t.OBJ_ID = #{objId}</if>
  236. <if test="pblmNm != null and pblmNm != ''">and t.PBLM_NM like '%${pblmNm}%'</if>
  237. <if test="pblmPasi != null and pblmPasi != ''">and t.PBLM_PASI = #{pblmPasi}</if>
  238. <if test="ifCasePblm != null and ifCasePblm != ''">and t.IF_CASE_PBLM = #{ifCasePblm}</if>
  239. <if test="subjectIds != null and subjectIds != ''">and t.SUBJECT_IDS = #{subjectIds}</if>
  240. <if test="subjectNames != null and subjectNames != ''">and t.SUBJECT_NAMES like '%${subjectNames}%'</if>
  241. <if test="pblmDesc != null and pblmDesc != ''">and t.PBLM_DESC like '%${pblmDesc}%'</if>
  242. <if test="pblmReason != null and pblmReason != ''">and t.PBLM_REASON = #{pblmReason}</if>
  243. <if test="pblmSggtn != null and pblmSggtn != ''">and t.PBLM_SGGTN = #{pblmSggtn}</if>
  244. <if test="pblmSn != null and pblmSn != ''">and t.PBLM_SN = #{pblmSn}</if>
  245. <if test="pblmstdId != null and pblmstdId != ''">and t.PBLMSTD_ID = #{pblmstdId}</if>
  246. <if test="rectId != null and rectId != ''">and t.RECT_ID = #{rectId}</if>
  247. <if test="rgstrId != null and rgstrId != ''">and t.RGSTR_ID = #{rgstrId}</if>
  248. <if test="listType != null and listType != ''">and t.LIST_TYPE = #{listType}</if>
  249. <if test="listId != null and listId != ''">and t.LIST_ID = #{listId}</if>
  250. <if test="hasVedio != null and hasVedio != ''">and t.HAS_VEDIO = #{hasVedio}</if>
  251. <if test="groupId != null and groupId != ''">and t.GROUP_ID = #{groupId}</if>
  252. <if test="persId != null and persId != ''">and t.PERS_ID = #{persId}</if>
  253. <if test="persNm != null and persNm != ''">and t.PERS_NM = #{persNm}</if>
  254. <if test="intm != null">and t.INTM = #{intm}</if>
  255. <if test="spclId != null and spclId != ''">and t.SPCL_ID = #{spclId}</if>
  256. <if test="spclNm != null and spclNm != ''">and t.SPCL_NM = #{spclNm}</if>
  257. <if test="spclRvwOptn != null and spclRvwOptn != ''">and t.SPCL_RVW_OPTN = #{spclRvwOptn}</if>
  258. <if test="spclTm != null">and t.SPCL_TM = #{spclTm}</if>
  259. <if test="uptm != null">and t.UPTM = #{uptm}</if>
  260. <if test="note != null and note != ''">and t.NOTE = #{note}</if>
  261. <if test="pblmQlttvCd != null and pblmQlttvCd != ''">and t.PBLM_QLTTV_CD = #{pblmQlttvCd}</if>
  262. <if test="pblmQlttvNm != null and pblmQlttvNm != ''">and t.PBLM_QLTTV_NM = #{pblmQlttvNm}</if>
  263. <if test="isCpQa != null and isCpQa != ''">and t.IS_CP_QA = #{isCpQa}</if>
  264. <if test="pblmTypeDesc != null and pblmTypeDesc != ''">and t.PBLM_TYPE_DESC = #{pblmTypeDesc}</if>
  265. <if test="taskId != null and taskId != ''">and t.TASK_ID = #{taskId}</if>
  266. <if test="stepId != null and stepId != ''">and t.STEP_ID = #{stepId}</if>
  267. <if test="oldPblmId != null and oldPblmId != ''">and t.OLD_PBLM_ID = #{oldPblmId}</if>
  268. <if test="state != null and state != ''">and t.STATE = #{state}</if>
  269. <if test="province != null and province != ''">and t.PROVINCE = #{province}</if>
  270. <if test="area != null and area != ''">and t.AD_CODE = #{area}</if>
  271. <if test="pblmNub != null and pblmNub != ''">and t.PBLM_NUB LIKE '%${pblmNub}%'</if>
  272. <if test="pblmNubName != null and pblmNubName != ''">and t.PBLM_NUB_NAME LIKE '%${pblmNubName}%'</if>
  273. <if test="setpPblmId !=null and setpPblmId !=''"> and t.SETP_PBLM_ID =#{setpPblmId}</if>
  274. <if test="bsnm !=null and bsnm !=''"> and t.BSNM =#{bsnm}</if>
  275. AND t.DATA_STAT='0'
  276. </trim>
  277. </sql>
  278. <select id="get" resultMap="tacProvincePblmMendInfoResultMap" parameterType="String">
  279. select
  280. <include refid="table_columns"/>
  281. from TAC_PROVINCE_PBLM_MEND_INFO where ID = #{id}
  282. </select>
  283. <select id="getBy" resultMap="tacProvincePblmMendInfoResultMap">
  284. select
  285. <include refid="table_columns"/>
  286. from TAC_PROVINCE_PBLM_MEND_INFO t
  287. <include refid="page_where"/>
  288. </select>
  289. <select id="findAll" resultMap="tacProvincePblmMendInfoResultMap">
  290. select
  291. <include refid="table_columns"/>
  292. from TAC_PROVINCE_PBLM_MEND_INFO
  293. </select>
  294. <select id="findList" resultMap="tacProvincePblmMendInfoResultMap">
  295. select
  296. <include refid="table_columns"/>
  297. from TAC_PROVINCE_PBLM_MEND_INFO t
  298. <include refid="page_where"/>
  299. </select>
  300. <select id="selectCount" resultType="int">
  301. select count(ID) from TAC_PROVINCE_PBLM_MEND_INFO t
  302. <include refid="page_where"/>
  303. </select>
  304. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  305. insert into TAC_PROVINCE_PBLM_MEND_INFO(
  306. <include refid="table_columns"/>
  307. )
  308. values (
  309. <include refid="entity_properties"/>
  310. )
  311. </insert>
  312. <delete id="delete" parameterType="java.lang.String">
  313. update TAC_PROVINCE_PBLM_MEND_INFO set DATA_STAT='9' where ID = #{id}
  314. </delete>
  315. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  316. delete from TAC_PROVINCE_PBLM_MEND_INFO t
  317. <include refid="page_where"/>
  318. </delete>
  319. <update id="deleteInFlag" parameterType="java.lang.String">
  320. update TAC_PROVINCE_PBLM_MEND_INFO set flag_valid = 0 where ID = #{id}
  321. </update>
  322. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  323. update TAC_PROVINCE_PBLM_MEND_INFO
  324. <trim prefix="set" suffixOverrides=",">
  325. <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
  326. <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
  327. #{pblmRevisionProof},
  328. </if>
  329. <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
  330. <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
  331. <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
  332. <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
  333. <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
  334. <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</if>
  335. <if test="isRect != null and isRect != ''">IS_RECT = #{isRect},</if>
  336. <if test="pblmPltm != null">PBLM_PLTM = #{pblmPltm},</if>
  337. <if test="pblmActm != null">PBLM_ACTM = #{pblmActm},</if>
  338. <if test="crtState != null and crtState != ''">CRT_STATE = #{crtState},</if>
  339. <if test="crtInfo != null and crtInfo != ''">CRT_INFO = #{crtInfo},</if>
  340. <if test="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
  341. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  342. <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
  343. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  344. <if test="location != null and location != ''">LOCATION = #{location},</if>
  345. <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
  346. <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
  347. <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
  348. <if test="id != null and id != ''">ID = #{id},</if>
  349. <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
  350. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  351. <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
  352. <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
  353. <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
  354. <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
  355. <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
  356. <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
  357. <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
  358. <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
  359. <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
  360. <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
  361. <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
  362. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  363. <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
  364. <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
  365. <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
  366. <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
  367. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  368. <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
  369. <if test="intm != null">INTM = #{intm},</if>
  370. <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
  371. <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
  372. <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
  373. <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
  374. <if test="uptm != null">UPTM = #{uptm},</if>
  375. <if test="note != null and note != ''">NOTE = #{note},</if>
  376. <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
  377. <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
  378. <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
  379. <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
  380. <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
  381. <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
  382. <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
  383. <if test="state != null and state != ''">STATE = #{state},</if>
  384. <!-- <if test="province != null and province != ''">PROVINCE = #{province},</if>-->
  385. <if test="pblmNub != null and pblmNub != ''">PBLM_NUB = #{pblmNub},</if>
  386. <if test="pblmNubName != null and pblmNubName != ''">PBLM_NUB_NAME = #{pblmNubName},</if>
  387. <if test="setpPblmId != null and setpPblmId != ''">SETP_PBLM_ID = #{setpPblmId},</if>
  388. <if test="bsnm != null and bsnm != ''">BSNM = #{bsnm},</if>
  389. </trim>
  390. <where>ID = #{id}</where>
  391. </update>
  392. <update id="updateByPblmId" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  393. update TAC_PROVINCE_PBLM_MEND_INFO
  394. <trim prefix="set" suffixOverrides=",">
  395. <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
  396. <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
  397. #{pblmRevisionProof},
  398. </if>
  399. <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
  400. <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
  401. <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
  402. <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
  403. <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
  404. <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</if>
  405. <if test="isRect != null and isRect != ''">IS_RECT = #{isRect},</if>
  406. <if test="pblmPltm != null">PBLM_PLTM = #{pblmPltm},</if>
  407. <if test="pblmActm != null">PBLM_ACTM = #{pblmActm},</if>
  408. <if test="crtState != null and crtState != ''">CRT_STATE = #{crtState},</if>
  409. <if test="crtInfo != null and crtInfo != ''">CRT_INFO = #{crtInfo},</if>
  410. <if test="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
  411. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  412. <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
  413. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  414. <if test="location != null and location != ''">LOCATION = #{location},</if>
  415. <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
  416. <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
  417. <if test="id != null and id != ''">ID = #{id},</if>
  418. <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
  419. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  420. <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
  421. <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
  422. <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
  423. <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
  424. <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
  425. <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
  426. <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
  427. <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
  428. <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
  429. <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
  430. <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
  431. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  432. <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
  433. <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
  434. <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
  435. <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
  436. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  437. <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
  438. <if test="intm != null">INTM = #{intm},</if>
  439. <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
  440. <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
  441. <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
  442. <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
  443. <if test="uptm != null">UPTM = #{uptm},</if>
  444. <if test="note != null and note != ''">NOTE = #{note},</if>
  445. <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
  446. <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
  447. <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
  448. <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
  449. <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
  450. <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
  451. <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
  452. <if test="state != null and state != ''">STATE = #{state},</if>
  453. <if test="province != null and province != ''">PROVINCE = #{province},</if>
  454. <if test="setpPblmId != null and setpPblmId != ''">SETP_PBLM_ID = #{setpPblmId},</if>
  455. <if test="bsnm != null and bsnm != ''">BSNM = #{bsnm},</if>
  456. </trim>
  457. <where>PBLM_ID = #{pblmId}</where>
  458. </update>
  459. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  460. update TAC_PROVINCE_PBLM_MEND_INFO t
  461. <trim prefix="set" suffixOverrides=",">
  462. <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
  463. <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
  464. #{pblmRevisionProof},
  465. </if>
  466. <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
  467. <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
  468. <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
  469. <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
  470. <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
  471. <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</if>
  472. <if test="isRect != null and isRect != ''">IS_RECT = #{isRect},</if>
  473. <if test="pblmPltm != null">PBLM_PLTM = #{pblmPltm},</if>
  474. <if test="pblmActm != null">PBLM_ACTM = #{pblmActm},</if>
  475. <if test="crtState != null and crtState != ''">CRT_STATE = #{crtState},</if>
  476. <if test="crtInfo != null and crtInfo != ''">CRT_INFO = #{crtInfo},</if>
  477. <if test="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
  478. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  479. <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
  480. <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
  481. <if test="location != null and location != ''">LOCATION = #{location},</if>
  482. <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
  483. <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
  484. <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
  485. <if test="id != null and id != ''">ID = #{id},</if>
  486. <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
  487. <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
  488. <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
  489. <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
  490. <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
  491. <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
  492. <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
  493. <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
  494. <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
  495. <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
  496. <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
  497. <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
  498. <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
  499. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  500. <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
  501. <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
  502. <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
  503. <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
  504. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  505. <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
  506. <if test="intm != null">INTM = #{intm},</if>
  507. <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
  508. <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
  509. <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
  510. <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
  511. <if test="uptm != null">UPTM = #{uptm},</if>
  512. <if test="note != null and note != ''">NOTE = #{note},</if>
  513. <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
  514. <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
  515. <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
  516. <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
  517. <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
  518. <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
  519. <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
  520. <if test="state != null and state != ''">STATE = #{state},</if>
  521. <if test="province != null and province != ''">PROVINCE = #{province},</if>
  522. <if test="setpPblmId != null and setpPblmId != ''">SETP_PBLM_ID = #{setpPblmId},</if>
  523. <if test="bsnm != null and bsnm != ''">BSNM = #{bsnm},</if>
  524. </trim>
  525. <include refid="page_where"/>
  526. </update>
  527. <update id="updateAddvcd" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  528. update TAC_PROVINCE_PBLM_MEND_INFO set AD_CODE = #{adCode},LOCATION = (SELECT AD_FULL_NAME FROM ATT_AD_BASE WHERE AD_CODE = #{adCode}) where ID = #{id}
  529. </update>
  530. <!-- 其他自定义SQL -->
  531. <select id="getList" resultType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
  532. select t.* from TAC_PROVINCE_PBLM_MEND_INFO t
  533. left join TAC_INSP_YEAR_BATCH_OBJ BO ON BO.id = t.obj_id
  534. <include refid="page_where"/>
  535. and BO.YEAR is not null
  536. <if test="year != null and year != ''">and BO.YEAR = #{year}</if>
  537. <if test="batch != null and batch != ''">and BO.BATCH = #{batch}</if>
  538. order by t.intm desc
  539. </select>
  540. </mapper>