TacProvincePblmMendInfoDao.xml 29 KB

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