EntMapper.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  4. <mapper namespace="com.zhyc.xps.sys.mapper.EntMapper">
  5. <resultMap id="EntResultMap" type="com.zhyc.xps.sys.entity.Ent">
  6. <id column="oc_id" property="ocId" jdbcType="BIGINT"/>
  7. <result column="ent_name" property="entName" jdbcType="VARCHAR"/><!--企业名称-->
  8. <result column="ent_cat_id" property="entCatId" jdbcType="BIGINT"/> <!--企业类别ID-->
  9. <result column="ent_zch" property="entZch" jdbcType="VARCHAR"/><!--注册号-->
  10. <result column="ent_tyshxydm" property="entTyshxydm" jdbcType="VARCHAR"/><!--组织机构代码-->
  11. <result column="ent_clrq" property="entClrq" jdbcType="DATE"/><!--成立日期-->
  12. <result column="ent_fddbr" property="entFddbr" jdbcType="VARCHAR"/><!--法定代表人-->
  13. <result column="ent_lxdh" property="entLxdh" jdbcType="VARCHAR"/><!--联系电话-->
  14. <result column="ent_dzyx" property="entDzyx" jdbcType="VARCHAR"/><!--电子邮箱-->
  15. <result column="ent_zcdz" property="entZcdz" jdbcType="VARCHAR"/><!--注册地址-->
  16. <result column="ent_yzbm" property="entYzbm" jdbcType="VARCHAR"/><!--邮政编码-->
  17. <result column="ent_jjlxdm" property="entJjlxdm" jdbcType="INTEGER"/><!--经济类型代码-->
  18. <result column="ent_xzqhdm" property="entXzqhdm" jdbcType="VARCHAR"/><!--行政区划代码-->
  19. <result column="ent_xzqhmc" property="entXzqhmc" jdbcType="VARCHAR"/><!--行政区划名称-->
  20. <result column="ent_hylbdm" property="entHylbdm" jdbcType="VARCHAR"/><!--行业类别代码-->
  21. <result column="ent_jyfw" property="entJyfw" jdbcType="VARCHAR"/><!--经营范围-->
  22. <result column="ent_qyzt" property="entQyzt" jdbcType="BIT"/><!--企业状态-->
  23. <result column="ent_qywzjd" property="entQywzjd" jdbcType="DECIMAL"/><!--企业位置经度-->
  24. <result column="ent_qywzwd" property="entQywzwd" jdbcType="DECIMAL"/><!--企业位置纬度-->
  25. <result column="ent_scjydz" property="entScjydz" jdbcType="VARCHAR"/> <!--生产/经营地址-->
  26. <result column="ent_gmqk" property="entGmqk" jdbcType="BIT"/> <!--规模情况-->
  27. <result column="ent_qygm" property="entQygm" jdbcType="BIT"/> <!--企业规模-->
  28. <result column="ent_zyfzr" property="entZyfzr" jdbcType="VARCHAR"/> <!--主要负责人-->
  29. <result column="ent_zyfzrgddhhm" property="entZyfzrgddhhm" jdbcType="VARCHAR"/> <!--主要负责人固定电话号码-->
  30. <result column="ent_zyfzryddhhm" property="entZyfzryddhhm" jdbcType="VARCHAR"/> <!--主要负责人移动电话号码-->
  31. <result column="ent_zyfzrdzyx" property="entZyfzrdzyx" jdbcType="VARCHAR"/> <!--主要负责人电子邮箱-->
  32. <result column="ent_aqfzr" property="entAqfzr" jdbcType="VARCHAR"/> <!--安全负责人-->
  33. <result column="ent_aqfzrgddhhm" property="entAqfzrgddhhm" jdbcType="VARCHAR"/> <!--安全负责人固定电话号码-->
  34. <result column="ent_aqfzryddhhm" property="entAqfzryddhhm" jdbcType="VARCHAR"/> <!--安全负责人移动电话号码-->
  35. <result column="ent_aqfzrdzyx" property="entAqfzrdzyx" jdbcType="VARCHAR"/> <!--安全负责人电子邮箱-->
  36. <result column="ent_aqjgszqk" property="entAqjgszqk" jdbcType="BIT"/> <!--安全机构设置情况-->
  37. <result column="ent_cyrysl" property="entCyrysl" jdbcType="INTEGER"/> <!--从业人员数量-->
  38. <result column="ent_tzzyrysl" property="entTzzyrysl" jdbcType="INTEGER"/> <!--特种作业人员数量-->
  39. <result column="ent_zzaqscglrys" property="entZzaqscglrys" jdbcType="INTEGER"/> <!--专职安全生产管理人员数-->
  40. <result column="ent_zzyjglrys" property="entZzyjglrys" jdbcType="INTEGER"/> <!--专职应急管理人员数-->
  41. <result column="ent_zcaqgcsrys" property="entZcaqgcsrys" jdbcType="INTEGER"/> <!--注册安全工程师人员数-->
  42. <result column="ent_aqjgjcjg" property="entAqjgjcjg" jdbcType="VARCHAR"/> <!--安全监管监察机构-->
  43. <result column="created_by" property="createdBy" jdbcType="BIGINT"/>
  44. <result column="created_at" property="createdAt" jdbcType="TIMESTAMP"/>
  45. <result column="updated_by" property="updatedBy" jdbcType="BIGINT"/>
  46. <result column="updated_at" property="updatedAt" jdbcType="TIMESTAMP"/>
  47. </resultMap>
  48. <!--CompanyDto-->
  49. <resultMap id="EntDtoResultMap" type="com.zhyc.xps.sys.dto.EntDto" extends="EntResultMap">
  50. <result column="ent_cat_title" property="entCatTitle" jdbcType="VARCHAR"/>
  51. <result column="root_id" property="rootId" jdbcType="BIGINT"/>
  52. <result column="parent_id" property="parentId" jdbcType="BIGINT"/>
  53. <result column="admin_id" property="adminId" jdbcType="BIGINT"/>
  54. <result column="group_id" property="groupId" jdbcType="BIGINT"/>
  55. <result column="node_left" property="nodeLeft" jdbcType="BIGINT"/>
  56. <result column="node_right" property="nodeRight" jdbcType="BIGINT"/>
  57. <result column="node_level" property="nodeLevel" jdbcType="BIGINT"/>
  58. <result column="is_leaf" property="isLeaf" jdbcType="BIGINT"/>
  59. <result column="status" property="status" jdbcType="BIGINT"/>
  60. <result column="admin_name" property="adminName" jdbcType="VARCHAR"/>
  61. </resultMap>
  62. <sql id="EntDto_Column_List">
  63. A.oc_id,
  64. A.ent_name,
  65. A.ent_cat_id,
  66. D.ent_cat_title,
  67. A.ent_zch,
  68. A.ent_tyshxydm,
  69. A.ent_clrq,
  70. A.ent_fddbr,
  71. A.ent_lxdh,
  72. A.ent_dzyx,
  73. A.ent_zcdz,
  74. A.ent_yzbm,
  75. A.ent_jjlxdm,
  76. A.ent_xzqhdm,
  77. A.ent_xzqhmc,
  78. A.ent_jyfw,
  79. A.ent_qyzt,
  80. A.ent_qywzjd,
  81. A.ent_qywzwd,
  82. A.ent_scjydz,
  83. A.ent_gmqk,
  84. A.ent_qygm,
  85. A.ent_zyfzr,
  86. A.ent_zyfzrgddhhm,
  87. A.ent_zyfzryddhhm,
  88. A.ent_zyfzrdzyx,
  89. A.ent_aqfzr,
  90. A.ent_aqfzrgddhhm,
  91. A.ent_aqfzryddhhm,
  92. A.ent_aqfzrdzyx,
  93. A.ent_aqjgszqk,
  94. A.ent_cyrysl,
  95. A.ent_tzzyrysl,
  96. A.ent_zzaqscglrys,
  97. A.ent_zzyjglrys,
  98. A.ent_zcaqgcsrys,
  99. A.ent_aqjgjcjg,
  100. B.parent_id,
  101. B.root_id,
  102. B.admin_id,
  103. C.account_name AS admin_name,
  104. B.group_id,
  105. B.node_left,
  106. B.node_right,
  107. B.node_level,
  108. B.is_leaf,
  109. B.status
  110. </sql>
  111. <!--根据公司ID主键查询公司信息+安全信息-->
  112. <select id="getById" resultMap="EntDtoResultMap">
  113. SELECT
  114. <include refid="EntDto_Column_List"/>
  115. FROM ent AS A
  116. LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
  117. LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
  118. LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
  119. WHERE 1 = 1 AND A.deleted_flag = 0
  120. <if test="ocId != null">
  121. AND A.oc_id = #{ocId ,jdbcType = BIGINT}
  122. </if>
  123. </select>
  124. <select id="getByPage" parameterType="java.util.Map" resultMap="EntDtoResultMap">
  125. SELECT
  126. <include refid="EntDto_Column_List"/>
  127. FROM ent AS A
  128. LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
  129. LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
  130. LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
  131. WHERE 1 = 1 AND A.deleted_flag = 0
  132. <if test="ocId != null">
  133. AND A.oc_id = #{ocId ,jdbcType = BIGINT}
  134. </if>
  135. <if test="keywords != null and keywords != ''">
  136. AND ( A.oc_name LIKE "%"#{keyword}"%" )
  137. </if>
  138. ORDER BY A.oc_id DESC
  139. </select>
  140. <select id="getByList" parameterType="java.util.Map" resultMap="EntDtoResultMap">
  141. SELECT
  142. <include refid="EntDto_Column_List"/>
  143. FROM ent AS A
  144. LEFT JOIN oc AS B ON (A.oc_id = B.oc_id)
  145. LEFT JOIN account AS C ON (B.oc_id = C.oc_id AND B.admin_id = C.account_id)
  146. LEFT JOIN ent_cat AS D ON (A.ent_cat_id = D.ent_cat_id)
  147. WHERE 1 = 1 AND A.deleted_flag = 0
  148. <if test="ocId != null">
  149. AND A.oc_id = #{ocId ,jdbcType = BIGINT}
  150. </if>
  151. <if test="keywords != null and keywords != ''">
  152. AND ( A.oc_name LIKE "%"#{keyword}"%" )
  153. </if>
  154. ORDER BY A.oc_id DESC
  155. </select>
  156. <insert id="create" parameterType="com.zhyc.xps.sys.entity.Ent">
  157. insert into ent
  158. <trim prefix="(" suffix=")" suffixOverrides=",">
  159. <if test="ocId != null">
  160. oc_id,
  161. </if>
  162. <if test="entName != null and entName != ''">
  163. ent_name,
  164. </if>
  165. <if test="entCatId != null">
  166. ent_cat_id,
  167. </if>
  168. <if test="entZch != null and entZch != ''">
  169. ent_zch,
  170. </if>
  171. <if test="entTyshxydm != null and entTyshxydm != ''">
  172. ent_tyshxydm,
  173. </if>
  174. <if test="entClrq != null">
  175. ent_clrq,
  176. </if>
  177. <if test="entFddbr != null and entFddbr != ''">
  178. ent_fddbr,
  179. </if>
  180. <if test="entLxdh != null and entLxdh != ''">
  181. ent_lxdh,
  182. </if>
  183. <if test="entDzyx != null and entDzyx != ''">
  184. ent_dzyx,
  185. </if>
  186. <if test="entZcdz != null and entZcdz != ''">
  187. ent_zcdz,
  188. </if>
  189. <if test="entYzbm != null and entYzbm != ''">
  190. ent_yzbm,
  191. </if>
  192. <if test="entJjlxdm != null">
  193. ent_jjlxdm,
  194. </if>
  195. <if test="entXzqhdm != null and entXzqhdm != ''">
  196. ent_xzqhdm,
  197. </if>
  198. <if test="entXzqhmc != null and entXzqhmc != ''">
  199. ent_xzqhmc,
  200. </if>
  201. <if test="entJyfw != null and entJyfw != ''">
  202. ent_jyfw,
  203. </if>
  204. <if test="entQyzt != null">
  205. ent_qyzt,
  206. </if>
  207. <if test="entQywzjd != null">
  208. ent_qywzjd,
  209. </if>
  210. <if test="entQywzwd != null">
  211. ent_qywzwd,
  212. </if>
  213. <if test="entScjydz != null and entScjydz != ''">
  214. ent_scjydz,
  215. </if>
  216. <if test="entGmqk != null">
  217. ent_gmqk,
  218. </if>
  219. <if test="entQygm != null">
  220. ent_qygm,
  221. </if>
  222. <if test="entZyfzr != null and entZyfzr != ''">
  223. ent_zyfzr,
  224. </if>
  225. <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
  226. ent_zyfzrgddhhm,
  227. </if>
  228. <if test="entZyfzryddhhm != null and entZyfzryddhhm != '' ">
  229. ent_zyfzryddhhm,
  230. </if>
  231. <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
  232. ent_zyfzrdzyx,
  233. </if>
  234. <if test="entAqfzr != null and entAqfzr != ''">
  235. ent_aqfzr,
  236. </if>
  237. <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
  238. ent_aqfzrgddhhm,
  239. </if>
  240. <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
  241. ent_aqfzryddhhm,
  242. </if>
  243. <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
  244. ent_aqfzrdzyx,
  245. </if>
  246. <if test="entAqjgszqk != null">
  247. ent_aqjgszqk,
  248. </if>
  249. <if test="entCyrysl != null">
  250. ent_cyrysl,
  251. </if>
  252. <if test="entTzzyrysl != null">
  253. ent_tzzyrysl,
  254. </if>
  255. <if test="entZzaqscglrys != null">
  256. ent_zzaqscglrys,
  257. </if>
  258. <if test="entZzyjglrys != null">
  259. ent_zzyjglrys,
  260. </if>
  261. <if test="entZcaqgcsrys != null">
  262. ent_zcaqgcsrys,
  263. </if>
  264. <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
  265. ent_aqjgjcjg,
  266. </if>
  267. <if test="createdBy != null">
  268. created_by,
  269. </if>
  270. <if test="createdAt != null">
  271. created_at,
  272. </if>
  273. </trim>
  274. <trim prefix="values (" suffix=")" suffixOverrides=",">
  275. <if test="ocId != null">
  276. #{ocId, jdbcType=BIGINT},
  277. </if>
  278. <if test="entName != null and entName != ''">
  279. #{entName,jdbcType=VARCHAR},
  280. </if>
  281. <if test="entCatId != null">
  282. #{entCatId, jdbcType=BIGINT},
  283. </if>
  284. <if test="entZch != null and entZch != ''">
  285. #{entZch, jdbcType=VARCHAR},
  286. </if>
  287. <if test="entTyshxydm != null and entTyshxydm != ''">
  288. #{entTyshxydm, jdbcType=VARCHAR},
  289. </if>
  290. <if test="entClrq != null">
  291. #{entClrq, jdbcType=DATE},
  292. </if>
  293. <if test="entFddbr != null and entFddbr != ''">
  294. #{entFddbr, jdbcType=VARCHAR},
  295. </if>
  296. <if test="entLxdh != null and entLxdh != ''">
  297. #{entLxdh, jdbcType=VARCHAR},
  298. </if>
  299. <if test="entDzyx != null and entDzyx != ''">
  300. #{entDzyx, jdbcType=VARCHAR},
  301. </if>
  302. <if test="entZcdz != null and entZcdz != ''">
  303. #{entZcdz, jdbcType=VARCHAR},
  304. </if>
  305. <if test="entYzbm != null and entYzbm != ''">
  306. #{entYzbm,jdbcType=VARCHAR},
  307. </if>
  308. <if test="entJjlxdm != null">
  309. #{entJjlxdm, jdbcType=INTEGER},
  310. </if>
  311. <if test="entXzqhdm != null and entXzqhdm != ''">
  312. #{entXzqhdm, jdbcType=VARCHAR},
  313. </if>
  314. <if test="entXzqhmc != null and entXzqhmc != ''">
  315. #{entXzqhmc, jdbcType=VARCHAR},
  316. </if>
  317. <if test="entJyfw != null and entJyfw != ''">
  318. #{entJyfw, jdbcType=VARCHAR},
  319. </if>
  320. <if test="entQyzt != null">
  321. #{entQyzt, jdbcType=BIT},
  322. </if>
  323. <if test="entQywzjd != null">
  324. #{entQywzjd, jdbcType=DECIMAL},
  325. </if>
  326. <if test="entQywzwd != null">
  327. #{entQywzwd, jdbcType=DECIMAL},
  328. </if>
  329. <if test="entScjydz != null and entScjydz != ''">
  330. #{entScjydz, jdbcType=VARCHAR},
  331. </if>
  332. <if test="entGmqk != null">
  333. #{entGmqk, jdbcType=INTEGER},
  334. </if>
  335. <if test="entQygm != null">
  336. #{entQygm, jdbcType=INTEGER},
  337. </if>
  338. <if test="entZyfzr != null and entZyfzr != ''">
  339. #{entZyfzr, jdbcType=VARCHAR},
  340. </if>
  341. <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
  342. #{entZyfzrgddhhm, jdbcType=VARCHAR},
  343. </if>
  344. <if test="entZyfzryddhhm != null and entZyfzryddhhm != ''">
  345. #{entZyfzryddhhm, jdbcType=VARCHAR},
  346. </if>
  347. <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
  348. #{entZyfzrdzyx, jdbcType=VARCHAR},
  349. </if>
  350. <if test="entAqfzr != null and entAqfzr != ''">
  351. #{entAqfzr, jdbcType=VARCHAR},
  352. </if>
  353. <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
  354. #{entAqfzrgddhhm, jdbcType=VARCHAR},
  355. </if>
  356. <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
  357. #{entAqfzryddhhm, jdbcType=VARCHAR},
  358. </if>
  359. <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
  360. #{entAqfzrdzyx, jdbcType=VARCHAR},
  361. </if>
  362. <if test="entAqjgszqk != null">
  363. #{entAqjgszqk, jdbcType=INTEGER},
  364. </if>
  365. <if test="entCyrysl != null">
  366. #{entCyrysl, jdbcType=INTEGER},
  367. </if>
  368. <if test="entTzzyrysl != null">
  369. #{entTzzyrysl, jdbcType=INTEGER},
  370. </if>
  371. <if test="entZzaqscglrys != null">
  372. #{entZzaqscglrys, jdbcType=INTEGER},
  373. </if>
  374. <if test="entZzyjglrys != null">
  375. #{entZzyjglrys, jdbcType=INTEGER},
  376. </if>
  377. <if test="entZcaqgcsrys != null">
  378. #{entZcaqgcsrys, jdbcType=INTEGER},
  379. </if>
  380. <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
  381. #{entAqjgjcjg, jdbcType=VARCHAR},
  382. </if>
  383. <if test="createdBy != null">
  384. #{createdBy, jdbcType=INTEGER},
  385. </if>
  386. <if test="createdAt != null">
  387. #{createdAt, jdbcType=TIMESTAMP},
  388. </if>
  389. </trim>
  390. </insert>
  391. <!--Update更新-->
  392. <update id="update" parameterType="com.zhyc.xps.sys.entity.Ent">
  393. UPDATE ent
  394. <set>
  395. <if test="entName != null and entName != ''">
  396. ent_name = #{entName,jdbcType=VARCHAR},
  397. </if>
  398. <if test="entCatId != null">
  399. ent_cat_id = #{entCatId, jdbcType=BIGINT},
  400. </if>
  401. <if test="entZch != null and entZch !=''">
  402. zch = #{entZch,jdbcType=VARCHAR},
  403. </if>
  404. <if test="entTyshxydm != null and entTyshxydm != ''">
  405. ent_tyshxydm = #{entTyshxydm,jdbcType=VARCHAR},
  406. </if>
  407. <if test="entClrq != null">
  408. ent_clrq = #{entClrq,jdbcType=DATE},
  409. </if>
  410. <if test="entFddbr != null and entFddbr != ''">
  411. ent_fddbr = #{entFddbr,jdbcType=VARCHAR},
  412. </if>
  413. <if test="entLxdh != null and entLxdh != ''">
  414. ent_lxdh = #{entLxdh,jdbcType=VARCHAR},
  415. </if>
  416. <if test="entDzyx != null and entDzyx != ''">
  417. ent_dzyx = #{entDzyx,jdbcType=VARCHAR},
  418. </if>
  419. <if test="entZcdz != null and entZcdz != ''">
  420. ent_zcdz = #{entZcdz,jdbcType=VARCHAR},
  421. </if>
  422. <if test="entYzbm != null and entYzbm != ''">
  423. ent_yzbm = #{entYzbm,jdbcType=VARCHAR},
  424. </if>
  425. <if test="entJjlxdm != null">
  426. ent_jjlxdm = #{entJjlxdm,jdbcType=INTEGER},
  427. </if>
  428. <if test="entXzqhdm != null and entXzqhdm != ''">
  429. ent_xzqhdm = #{entXzqhdm,jdbcType=VARCHAR},
  430. </if>
  431. <if test="entXzqhmc != null and entXzqhmc != ''">
  432. ent_xzqhmc = #{entXzqhmc,jdbcType=VARCHAR},
  433. </if>
  434. <if test="entJyfw != null and entJyfw != ''">
  435. ent_jyfw = #{entJyfw,jdbcType=VARCHAR},
  436. </if>
  437. <if test="entQyzt != null">
  438. ent_qyzt = #{entQyzt,jdbcType=BIT},
  439. </if>
  440. <if test="entQywzjd != null">
  441. ent_qywzjd = #{entQywzjd,jdbcType=DECIMAL},
  442. </if>
  443. <if test="entQywzwd != null">
  444. ent_qywzwd = #{entQywzwd,jdbcType=DECIMAL},
  445. </if>
  446. <if test="entScjydz != null and entScjydz !=''">
  447. ent_scjydz = #{entScjydz,jdbcType=VARCHAR},
  448. </if>
  449. <if test="entGmqk != null">
  450. ent_gmqk = #{entGmqk, jdbcType=INTEGER},
  451. </if>
  452. <if test="entQygm != null">
  453. ent_qygm = #{entQygm,jdbcType=INTEGER},
  454. </if>
  455. <if test="entZyfzr != null and entZyfzr != ''">
  456. ent_zyfzr = #{entZyfzr,jdbcType=VARCHAR},
  457. </if>
  458. <if test="entZyfzrgddhhm != null and entZyfzrgddhhm != ''">
  459. ent_zyfzrgddhhm = #{entZyfzrgddhhm,jdbcType=VARCHAR},
  460. </if>
  461. <if test="entZyfzryddhhm != null and entZyfzryddhhm != ''">
  462. ent_zyfzryddhhm = #{entZyfzryddhhm,jdbcType=VARCHAR},
  463. </if>
  464. <if test="entZyfzrdzyx != null and entZyfzrdzyx != ''">
  465. ent_zyfzrdzyx = #{entZyfzrdzyx,jdbcType=VARCHAR},
  466. </if>
  467. <if test="entAqfzr != null and entAqfzr != ''">
  468. ent_aqfzr = #{entAqfzr,jdbcType=VARCHAR},
  469. </if>
  470. <if test="entAqfzrgddhhm != null and entAqfzrgddhhm != ''">
  471. ent_aqfzrgddhhm = #{entAqfzrgddhhm,jdbcType=VARCHAR},
  472. </if>
  473. <if test="entAqfzryddhhm != null and entAqfzryddhhm != ''">
  474. ent_aqfzryddhhm = #{entAqfzryddhhm,jdbcType=VARCHAR},
  475. </if>
  476. <if test="entAqfzrdzyx != null and entAqfzrdzyx != ''">
  477. ent_aqfzrdzyx = #{entAqfzrdzyx,jdbcType=VARCHAR},
  478. </if>
  479. <if test="entAqjgszqk != null">
  480. ent_aqjgszqk = #{entAqjgszqk,jdbcType=INTEGER},
  481. </if>
  482. <if test="entCyrysl != null">
  483. ent_cyrysl = #{entCyrysl,jdbcType=INTEGER},
  484. </if>
  485. <if test="entTzzyrysl != null">
  486. ent_tzzyrysl = #{entTzzyrysl,jdbcType=INTEGER},
  487. </if>
  488. <if test="entZzaqscglrys != null">
  489. ent_zzaqscglrys = #{entZzaqscglrys,jdbcType=INTEGER},
  490. </if>
  491. <if test="entZzyjglrys != null">
  492. ent_zzyjglrys = #{entZzyjglrys,jdbcType=INTEGER},
  493. </if>
  494. <if test="entZcaqgcsrys != null">
  495. ent_zcaqgcsrys = #{entZcaqgcsrys,jdbcType=INTEGER},
  496. </if>
  497. <if test="entAqjgjcjg != null and entAqjgjcjg != ''">
  498. ent_aqjgjcjg = #{entAqjgjcjg,jdbcType=VARCHAR},
  499. </if>
  500. <if test="updatedBy != null">
  501. updated_by = #{updatedBy,jdbcType=BIGINT},
  502. </if>
  503. <if test="updatedAt != null">
  504. updated_at = #{updatedAt,jdbcType=TIMESTAMP}
  505. </if>
  506. </set>
  507. WHERE oc_id = #{ocId,jdbcType=BIGINT}
  508. </update>
  509. <update id="delete" parameterType="java.util.Map">
  510. UPDATE ent
  511. <trim suffixOverrides=",">
  512. <set>
  513. <if test="deletedBy != null">
  514. deleted_by = #{deletedBy ,jdbcType=BIGINT},
  515. </if>
  516. <if test="deletedAt != null">
  517. deleted_at = #{deletedAt ,jdbcType=DATE},
  518. </if>
  519. <if test="deletedFlag != null">
  520. deleted_flag = #{deletedFlag ,jdbcType=BIGINT}
  521. </if>
  522. </set>
  523. </trim>
  524. WHERE oc_id = #{ocId, jdbcType=BIGINT}
  525. </update>
  526. </mapper>