BisInspJspwiuUnitDao.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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.BisInspJspwiuUnitDao">
  4. <resultMap type="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit" id="bisInspJspwiuUnitResultMap">
  5. <result property="id" column="ID"/>
  6. <result property="rgstrId" column="RGSTR_ID"/>
  7. <result property="intskName" column="INTSK_NAME"/>
  8. <result property="intskPers" column="INTSK_PERS"/>
  9. <result property="intskNo" column="INTSK_NO"/>
  10. <result property="intskCount" column="INTSK_COUNT"/>
  11. <result property="intskCntPers" column="INTSK_CNT_PERS"/>
  12. <result property="appDepPers" column="APP_DEP_PERS"/>
  13. <result property="isPlanMend" column="IS_PLAN_MEND"/>
  14. <result property="isAppDsc" column="IS_APP_DSC"/>
  15. <result property="isAppChk" column="IS_APP_CHK"/>
  16. <result property="isNormChk" column="IS_NORM_CHK"/>
  17. <result property="isChkInus" column="IS_CHK_INUS"/>
  18. <result property="isChkExt" column="IS_CHK_EXT"/>
  19. <result property="isChkCext" column="IS_CHK_CEXT"/>
  20. <result property="isChkUse" column="IS_CHK_USE"/>
  21. <result property="isAppRep" column="IS_APP_REP"/>
  22. <result property="isSpotChk" column="IS_SPOT_CHK"/>
  23. <result property="isDepApp" column="IS_DEP_APP"/>
  24. <result property="lyearCost" column="LYEAR_COST"/>
  25. <result property="isOverCost" column="IS_OVER_COST"/>
  26. <result property="isNappPlan" column="IS_NAPP_PLAN"/>
  27. <result property="isOverYear" column="IS_OVER_YEAR"/>
  28. <result property="lyearEpt" column="LYEAR_EPT"/>
  29. <result property="isOver" column="IS_OVER"/>
  30. <result property="isOusrCost" column="IS_OUSR_COST"/>
  31. <result property="isDataOnly" column="IS_DATA_ONLY"/>
  32. <result property="isBldData" column="IS_BLD_DATA"/>
  33. <result property="isJarNorm" column="IS_JAR_NORM"/>
  34. <result property="isJarBld" column="IS_JAR_BLD"/>
  35. <result property="isJarLogo" column="IS_JAR_LOGO"/>
  36. <result property="isNnormBld" column="IS_NNORM_BLD"/>
  37. <result property="isNappChk" column="IS_NAPP_CHK"/>
  38. <result property="isNrunSys" column="IS_NRUN_SYS"/>
  39. <result property="note" column="NOTE"/>
  40. <result property="persId" column="PERS_ID"/>
  41. <result property="intm" column="INTM"/>
  42. <result property="uptm" column="UPTM"/>
  43. <result property="dataStat" column="DATA_STAT"/>
  44. <result property="state" column="STATE"/>
  45. </resultMap>
  46. <sql id="table_columns">
  47. ID,
  48. RGSTR_ID,
  49. INTSK_NAME,
  50. INTSK_PERS,
  51. INTSK_NO,
  52. INTSK_COUNT,
  53. INTSK_CNT_PERS,
  54. APP_DEP_PERS,
  55. IS_PLAN_MEND,
  56. IS_APP_DSC,
  57. IS_APP_CHK,
  58. IS_NORM_CHK,
  59. IS_CHK_INUS,
  60. IS_CHK_EXT,
  61. IS_CHK_CEXT,
  62. IS_CHK_USE,
  63. IS_APP_REP,
  64. IS_SPOT_CHK,
  65. IS_DEP_APP,
  66. LYEAR_COST,
  67. IS_OVER_COST,
  68. IS_NAPP_PLAN,
  69. IS_OVER_YEAR,
  70. LYEAR_EPT,
  71. IS_OVER,
  72. IS_OUSR_COST,
  73. IS_DATA_ONLY,
  74. IS_BLD_DATA,
  75. IS_JAR_NORM,
  76. IS_JAR_BLD,
  77. IS_JAR_LOGO,
  78. IS_NNORM_BLD,
  79. IS_NAPP_CHK,
  80. IS_NRUN_SYS,
  81. NOTE,
  82. PERS_ID,
  83. INTM,
  84. UPTM,
  85. DATA_STAT,
  86. STATE
  87. </sql>
  88. <sql id="entity_properties">
  89. #{id},
  90. #{rgstrId},
  91. #{intskName},
  92. #{intskPers},
  93. #{intskNo},
  94. #{intskCount},
  95. #{intskCntPers},
  96. #{appDepPers},
  97. #{isPlanMend},
  98. #{isAppDsc},
  99. #{isAppChk},
  100. #{isNormChk},
  101. #{isChkInus},
  102. #{isChkExt},
  103. #{isChkCext},
  104. #{isChkUse},
  105. #{isAppRep},
  106. #{isSpotChk},
  107. #{isDepApp},
  108. #{lyearCost},
  109. #{isOverCost},
  110. #{isNappPlan},
  111. #{isOverYear},
  112. #{lyearEpt},
  113. #{isOver},
  114. #{isOusrCost},
  115. #{isDataOnly},
  116. #{isBldData},
  117. #{isJarNorm},
  118. #{isJarBld},
  119. #{isJarLogo},
  120. #{isNnormBld},
  121. #{isNappChk},
  122. #{isNrunSys},
  123. #{note},
  124. #{persId},
  125. #{intm},
  126. #{uptm},
  127. #{dataStat},
  128. #{state}
  129. </sql>
  130. <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
  131. <sql id="page_where">
  132. <trim prefix="where" prefixOverrides="and | or ">
  133. <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
  134. <if test="intskName != null and intskName != ''">and INTSK_NAME = #{intskName}</if>
  135. <if test="intskPers != null and intskPers != ''">and INTSK_PERS = #{intskPers}</if>
  136. <if test="intskNo != null and intskNo != ''">and INTSK_NO = #{intskNo}</if>
  137. <if test="intskCount != null and intskCount != ''">and INTSK_COUNT = #{intskCount}</if>
  138. <if test="intskCntPers != null and intskCntPers != ''">and INTSK_CNT_PERS = #{intskCntPers}</if>
  139. <if test="appDepPers != null and appDepPers != ''">and APP_DEP_PERS = #{appDepPers}</if>
  140. <if test="isPlanMend != null and isPlanMend != ''">and IS_PLAN_MEND = #{isPlanMend}</if>
  141. <if test="isAppDsc != null and isAppDsc != ''">and IS_APP_DSC = #{isAppDsc}</if>
  142. <if test="isAppChk != null and isAppChk != ''">and IS_APP_CHK = #{isAppChk}</if>
  143. <if test="isNormChk != null and isNormChk != ''">and IS_NORM_CHK = #{isNormChk}</if>
  144. <if test="isChkInus != null and isChkInus != ''">and IS_CHK_INUS = #{isChkInus}</if>
  145. <if test="isChkExt != null and isChkExt != ''">and IS_CHK_EXT = #{isChkExt}</if>
  146. <if test="isChkCext != null and isChkCext != ''">and IS_CHK_CEXT = #{isChkCext}</if>
  147. <if test="isChkUse != null and isChkUse != ''">and IS_CHK_USE = #{isChkUse}</if>
  148. <if test="isAppRep != null and isAppRep != ''">and IS_APP_REP = #{isAppRep}</if>
  149. <if test="isSpotChk != null and isSpotChk != ''">and IS_SPOT_CHK = #{isSpotChk}</if>
  150. <if test="isDepApp != null and isDepApp != ''">and IS_DEP_APP = #{isDepApp}</if>
  151. <if test="lyearCost != null and lyearCost != ''">and LYEAR_COST = #{lyearCost}</if>
  152. <if test="isOverCost != null and isOverCost != ''">and IS_OVER_COST = #{isOverCost}</if>
  153. <if test="isNappPlan != null and isNappPlan != ''">and IS_NAPP_PLAN = #{isNappPlan}</if>
  154. <if test="isOverYear != null and isOverYear != ''">and IS_OVER_YEAR = #{isOverYear}</if>
  155. <if test="lyearEpt != null and lyearEpt != ''">and LYEAR_EPT = #{lyearEpt}</if>
  156. <if test="isOver != null and isOver != ''">and IS_OVER = #{isOver}</if>
  157. <if test="isOusrCost != null and isOusrCost != ''">and IS_OUSR_COST = #{isOusrCost}</if>
  158. <if test="isDataOnly != null and isDataOnly != ''">and IS_DATA_ONLY = #{isDataOnly}</if>
  159. <if test="isBldData != null and isBldData != ''">and IS_BLD_DATA = #{isBldData}</if>
  160. <if test="isJarNorm != null and isJarNorm != ''">and IS_JAR_NORM = #{isJarNorm}</if>
  161. <if test="isJarBld != null and isJarBld != ''">and IS_JAR_BLD = #{isJarBld}</if>
  162. <if test="isJarLogo != null and isJarLogo != ''">and IS_JAR_LOGO = #{isJarLogo}</if>
  163. <if test="isNnormBld != null and isNnormBld != ''">and IS_NNORM_BLD = #{isNnormBld}</if>
  164. <if test="isNappChk != null and isNappChk != ''">and IS_NAPP_CHK = #{isNappChk}</if>
  165. <if test="isNrunSys != null and isNrunSys != ''">and IS_NRUN_SYS = #{isNrunSys}</if>
  166. <if test="note != null and note != ''">and NOTE = #{note}</if>
  167. <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
  168. <if test="intm != null">and INTM = #{intm}</if>
  169. <if test="uptm != null">and UPTM = #{uptm}</if>
  170. <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
  171. <if test="state != null and state != ''">and STATE = #{state}</if>
  172. </trim>
  173. </sql>
  174. <select id="get" resultMap="bisInspJspwiuUnitResultMap" parameterType="String" >
  175. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT where RGSTR_ID = #{id}
  176. </select>
  177. <select id="getBy" resultMap="bisInspJspwiuUnitResultMap">
  178. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
  179. </select>
  180. <select id="findAll" resultMap="bisInspJspwiuUnitResultMap">
  181. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT
  182. </select>
  183. <select id="findList" resultMap="bisInspJspwiuUnitResultMap">
  184. select <include refid="table_columns" /> from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
  185. </select>
  186. <select id="selectCount" resultType="int" >
  187. select count(ID) from BIS_INSP_JSPWIU_UNIT <include refid="page_where" />
  188. </select>
  189. <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
  190. insert into BIS_INSP_JSPWIU_UNIT( <include refid="table_columns" /> )
  191. values ( <include refid="entity_properties" /> )
  192. </insert>
  193. <delete id="delete" parameterType="java.lang.String">
  194. update BIS_INSP_JSPWIU_UNIT set DATA_STAT='9' where ID = #{id}
  195. </delete>
  196. <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
  197. delete from BIS_INSP_JSPWIU_UNIT
  198. <include refid="page_where" />
  199. </delete>
  200. <update id="deleteInFlag" parameterType="java.lang.String">
  201. update BIS_INSP_JSPWIU_UNIT set flag_valid = 0 where ID = #{id}
  202. </update>
  203. <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
  204. update BIS_INSP_JSPWIU_UNIT
  205. <trim prefix="set" suffixOverrides=",">
  206. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  207. <if test="intskName != null and intskName != ''">INTSK_NAME = #{intskName},</if>
  208. <if test="intskPers != null and intskPers != ''">INTSK_PERS = #{intskPers},</if>
  209. <if test="intskNo != null and intskNo != ''">INTSK_NO = #{intskNo},</if>
  210. <if test="intskCount != null and intskCount != ''">INTSK_COUNT = #{intskCount},</if>
  211. <if test="intskCntPers != null and intskCntPers != ''">INTSK_CNT_PERS = #{intskCntPers},</if>
  212. <if test="appDepPers != null and appDepPers != ''">APP_DEP_PERS = #{appDepPers},</if>
  213. <if test="isPlanMend != null and isPlanMend != ''">IS_PLAN_MEND = #{isPlanMend},</if>
  214. <if test="isAppDsc != null and isAppDsc != ''">IS_APP_DSC = #{isAppDsc},</if>
  215. <if test="isAppChk != null and isAppChk != ''">IS_APP_CHK = #{isAppChk},</if>
  216. <if test="isNormChk != null and isNormChk != ''">IS_NORM_CHK = #{isNormChk},</if>
  217. <if test="isChkInus != null and isChkInus != ''">IS_CHK_INUS = #{isChkInus},</if>
  218. <if test="isChkExt != null and isChkExt != ''">IS_CHK_EXT = #{isChkExt},</if>
  219. <if test="isChkCext != null and isChkCext != ''">IS_CHK_CEXT = #{isChkCext},</if>
  220. <if test="isChkUse != null and isChkUse != ''">IS_CHK_USE = #{isChkUse},</if>
  221. <if test="isAppRep != null and isAppRep != ''">IS_APP_REP = #{isAppRep},</if>
  222. <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
  223. <if test="isDepApp != null and isDepApp != ''">IS_DEP_APP = #{isDepApp},</if>
  224. <if test="lyearCost != null and lyearCost != ''">LYEAR_COST = #{lyearCost},</if>
  225. <if test="isOverCost != null and isOverCost != ''">IS_OVER_COST = #{isOverCost},</if>
  226. <if test="isNappPlan != null and isNappPlan != ''">IS_NAPP_PLAN = #{isNappPlan},</if>
  227. <if test="isOverYear != null and isOverYear != ''">IS_OVER_YEAR = #{isOverYear},</if>
  228. <if test="lyearEpt != null and lyearEpt != ''">LYEAR_EPT = #{lyearEpt},</if>
  229. <if test="isOver != null and isOver != ''">IS_OVER = #{isOver},</if>
  230. <if test="isOusrCost != null and isOusrCost != ''">IS_OUSR_COST = #{isOusrCost},</if>
  231. <if test="isDataOnly != null and isDataOnly != ''">IS_DATA_ONLY = #{isDataOnly},</if>
  232. <if test="isBldData != null and isBldData != ''">IS_BLD_DATA = #{isBldData},</if>
  233. <if test="isJarNorm != null and isJarNorm != ''">IS_JAR_NORM = #{isJarNorm},</if>
  234. <if test="isJarBld != null and isJarBld != ''">IS_JAR_BLD = #{isJarBld},</if>
  235. <if test="isJarLogo != null and isJarLogo != ''">IS_JAR_LOGO = #{isJarLogo},</if>
  236. <if test="isNnormBld != null and isNnormBld != ''">IS_NNORM_BLD = #{isNnormBld},</if>
  237. <if test="isNappChk != null and isNappChk != ''">IS_NAPP_CHK = #{isNappChk},</if>
  238. <if test="isNrunSys != null and isNrunSys != ''">IS_NRUN_SYS = #{isNrunSys},</if>
  239. <if test="note != null and note != ''">NOTE = #{note},</if>
  240. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  241. <if test="intm != null">INTM = #{intm},</if>
  242. <if test="uptm != null">UPTM = #{uptm},</if>
  243. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  244. <if test="state != null and state != ''">STATE = #{state},</if>
  245. </trim>
  246. <where>ID = #{id}</where>
  247. </update>
  248. <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspJspwiuUnit">
  249. update BIS_INSP_JSPWIU_UNIT
  250. <trim prefix="set" suffixOverrides=",">
  251. <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
  252. <if test="intskName != null and intskName != ''">INTSK_NAME = #{intskName},</if>
  253. <if test="intskPers != null and intskPers != ''">INTSK_PERS = #{intskPers},</if>
  254. <if test="intskNo != null and intskNo != ''">INTSK_NO = #{intskNo},</if>
  255. <if test="intskCount != null and intskCount != ''">INTSK_COUNT = #{intskCount},</if>
  256. <if test="intskCntPers != null and intskCntPers != ''">INTSK_CNT_PERS = #{intskCntPers},</if>
  257. <if test="appDepPers != null and appDepPers != ''">APP_DEP_PERS = #{appDepPers},</if>
  258. <if test="isPlanMend != null and isPlanMend != ''">IS_PLAN_MEND = #{isPlanMend},</if>
  259. <if test="isAppDsc != null and isAppDsc != ''">IS_APP_DSC = #{isAppDsc},</if>
  260. <if test="isAppChk != null and isAppChk != ''">IS_APP_CHK = #{isAppChk},</if>
  261. <if test="isNormChk != null and isNormChk != ''">IS_NORM_CHK = #{isNormChk},</if>
  262. <if test="isChkInus != null and isChkInus != ''">IS_CHK_INUS = #{isChkInus},</if>
  263. <if test="isChkExt != null and isChkExt != ''">IS_CHK_EXT = #{isChkExt},</if>
  264. <if test="isChkCext != null and isChkCext != ''">IS_CHK_CEXT = #{isChkCext},</if>
  265. <if test="isChkUse != null and isChkUse != ''">IS_CHK_USE = #{isChkUse},</if>
  266. <if test="isAppRep != null and isAppRep != ''">IS_APP_REP = #{isAppRep},</if>
  267. <if test="isSpotChk != null and isSpotChk != ''">IS_SPOT_CHK = #{isSpotChk},</if>
  268. <if test="isDepApp != null and isDepApp != ''">IS_DEP_APP = #{isDepApp},</if>
  269. <if test="lyearCost != null and lyearCost != ''">LYEAR_COST = #{lyearCost},</if>
  270. <if test="isOverCost != null and isOverCost != ''">IS_OVER_COST = #{isOverCost},</if>
  271. <if test="isNappPlan != null and isNappPlan != ''">IS_NAPP_PLAN = #{isNappPlan},</if>
  272. <if test="isOverYear != null and isOverYear != ''">IS_OVER_YEAR = #{isOverYear},</if>
  273. <if test="lyearEpt != null and lyearEpt != ''">LYEAR_EPT = #{lyearEpt},</if>
  274. <if test="isOver != null and isOver != ''">IS_OVER = #{isOver},</if>
  275. <if test="isOusrCost != null and isOusrCost != ''">IS_OUSR_COST = #{isOusrCost},</if>
  276. <if test="isDataOnly != null and isDataOnly != ''">IS_DATA_ONLY = #{isDataOnly},</if>
  277. <if test="isBldData != null and isBldData != ''">IS_BLD_DATA = #{isBldData},</if>
  278. <if test="isJarNorm != null and isJarNorm != ''">IS_JAR_NORM = #{isJarNorm},</if>
  279. <if test="isJarBld != null and isJarBld != ''">IS_JAR_BLD = #{isJarBld},</if>
  280. <if test="isJarLogo != null and isJarLogo != ''">IS_JAR_LOGO = #{isJarLogo},</if>
  281. <if test="isNnormBld != null and isNnormBld != ''">IS_NNORM_BLD = #{isNnormBld},</if>
  282. <if test="isNappChk != null and isNappChk != ''">IS_NAPP_CHK = #{isNappChk},</if>
  283. <if test="isNrunSys != null and isNrunSys != ''">IS_NRUN_SYS = #{isNrunSys},</if>
  284. <if test="note != null and note != ''">NOTE = #{note},</if>
  285. <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
  286. <if test="intm != null">INTM = #{intm},</if>
  287. <if test="uptm != null">UPTM = #{uptm},</if>
  288. <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
  289. <if test="state != null and state != ''">STATE = #{state},</if>
  290. </trim>
  291. <include refid="page_where" />
  292. </update>
  293. <!-- 其他自定义SQL -->
  294. </mapper>