EsmSalaryMapper.xml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  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="com.ydtech.modules.esm.dao.EsmSalaryMapper">
  4. <resultMap id="BaseResultMap" type="com.ydtech.modules.esm.model.EsmSalary">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="check_id" jdbcType="VARCHAR" property="checkId"/>
  7. <result column="dept_id" jdbcType="VARCHAR" property="deptId"/>
  8. <result column="dept_name" jdbcType="VARCHAR" property="deptName"/>
  9. <result column="user_id" jdbcType="VARCHAR" property="userId"/>
  10. <result column="user_name" jdbcType="VARCHAR" property="userName"/>
  11. <result column="pay_date" jdbcType="TIMESTAMP" property="payDate"/>
  12. <result column="user_type" jdbcType="VARCHAR" property="userType"/>
  13. <result column="ydgdgz" jdbcType="VARCHAR" property="ydgdgz"/>
  14. <result column="ydkhgz" jdbcType="VARCHAR" property="ydkhgz"/>
  15. <result column="yfndmbjxkhgz" jdbcType="VARCHAR" property="yfndmbjxkhgz"/>
  16. <result column="gdgz" jdbcType="VARCHAR" property="gdgz"/>
  17. <result column="fdyx" jdbcType="VARCHAR" property="fdyx"/>
  18. <result column="nzj" jdbcType="VARCHAR" property="nzj"/>
  19. <result column="hsbt" jdbcType="VARCHAR" property="hsbt"/>
  20. <result column="syqkk" jdbcType="VARCHAR" property="syqkk"/>
  21. <result column="rlskk" jdbcType="VARCHAR" property="rlskk"/>
  22. <result column="sqqt" jdbcType="VARCHAR" property="sqqt"/>
  23. <result column="qtfl1" jdbcType="VARCHAR" property="qtfl1"/>
  24. <result column="fsqnf" jdbcType="VARCHAR" property="fsqnf"/>
  25. <result column="qtfl2" jdbcType="VARCHAR" property="qtfl2"/>
  26. <result column="jxjj" jdbcType="VARCHAR" property="jxjj"/>
  27. <result column="txbt" jdbcType="VARCHAR" property="txbt"/>
  28. <result column="jtbt" jdbcType="VARCHAR" property="jtbt"/>
  29. <result column="nzgwsf" jdbcType="VARCHAR" property="nzgwsf"/>
  30. <result column="kqkk" jdbcType="VARCHAR" property="kqkk"/>
  31. <result column="yfgz" jdbcType="VARCHAR" property="yfgz"/>
  32. <result column="ylaobx" jdbcType="VARCHAR" property="ylaobx"/>
  33. <result column="yliaobx" jdbcType="VARCHAR" property="yliaobx"/>
  34. <result column="sybx" jdbcType="VARCHAR" property="sybx"/>
  35. <result column="zfgjj" jdbcType="VARCHAR" property="zfgjj"/>
  36. <result column="grsds" jdbcType="VARCHAR" property="grsds"/>
  37. <result column="sfgz" jdbcType="VARCHAR" property="sfgz"/>
  38. <result column="standard_salary" jdbcType="VARCHAR" property="standardSalary"/>
  39. <result column="surveynum" jdbcType="VARCHAR" property="surveynum"/>
  40. <result column="expense_reward" jdbcType="VARCHAR" property="expenseReward"/>
  41. <result column="festival_subsidy" jdbcType="VARCHAR" property="festivalSubsidy"/>
  42. <result column="claim_assess_deduc" jdbcType="VARCHAR" property="claimAssessDeduc"/>
  43. <result column="assess_deduc" jdbcType="VARCHAR" property="assessDeduc"/>
  44. <result column="punish_deduc" jdbcType="VARCHAR" property="punishDeduc"/>
  45. <result column="gsbx" jdbcType="VARCHAR" property="gsbx"/>
  46. <result column="quality" jdbcType="VARCHAR" property="quality"/>
  47. <result column="create_user" jdbcType="VARCHAR" property="createUser"/>
  48. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  49. <result column="submit_date" jdbcType="TIMESTAMP" property="submitDate"/>
  50. <result column="review_status" jdbcType="VARCHAR" property="reviewStatus"/>
  51. </resultMap>
  52. <resultMap id="esmSalaryResMap" type="com.ydtech.modules.esm.model.vo.res.EsmSalaryRes">
  53. <id column="check_id_b" jdbcType="VARCHAR" property="checkId"/>
  54. <result column="reviewer_b" jdbcType="VARCHAR" property="reviewer"/>
  55. <result column="review_status_b" jdbcType="VARCHAR" property="reviewStatus"/>
  56. <result column="review_time_b" jdbcType="TIMESTAMP" property="reviewTime"/>
  57. <result column="comment_b" jdbcType="VARCHAR" property="comment"/>
  58. <collection property="esmSalaryList" ofType="com.ydtech.modules.esm.model.EsmSalary">
  59. <id column="id" jdbcType="BIGINT" property="id"/>
  60. <result column="check_id" jdbcType="VARCHAR" property="checkId"/>
  61. <result column="dept_id" jdbcType="VARCHAR" property="deptId"/>
  62. <result column="dept_name" jdbcType="VARCHAR" property="deptName"/>
  63. <result column="user_id" jdbcType="VARCHAR" property="userId"/>
  64. <result column="user_name" jdbcType="VARCHAR" property="userName"/>
  65. <result column="pay_date" jdbcType="TIMESTAMP" property="payDate"/>
  66. <result column="user_type" jdbcType="VARCHAR" property="userType"/>
  67. <result column="ydgdgz" jdbcType="VARCHAR" property="ydgdgz"/>
  68. <result column="ydkhgz" jdbcType="VARCHAR" property="ydkhgz"/>
  69. <result column="yfndmbjxkhgz" jdbcType="VARCHAR" property="yfndmbjxkhgz"/>
  70. <result column="gdgz" jdbcType="VARCHAR" property="gdgz"/>
  71. <result column="fdyx" jdbcType="VARCHAR" property="fdyx"/>
  72. <result column="nzj" jdbcType="VARCHAR" property="nzj"/>
  73. <result column="hsbt" jdbcType="VARCHAR" property="hsbt"/>
  74. <result column="syqkk" jdbcType="VARCHAR" property="syqkk"/>
  75. <result column="rlskk" jdbcType="VARCHAR" property="rlskk"/>
  76. <result column="sqqt" jdbcType="VARCHAR" property="sqqt"/>
  77. <result column="qtfl1" jdbcType="VARCHAR" property="qtfl1"/>
  78. <result column="fsqnf" jdbcType="VARCHAR" property="fsqnf"/>
  79. <result column="qtfl2" jdbcType="VARCHAR" property="qtfl2"/>
  80. <result column="jxjj" jdbcType="VARCHAR" property="jxjj"/>
  81. <result column="txbt" jdbcType="VARCHAR" property="txbt"/>
  82. <result column="jtbt" jdbcType="VARCHAR" property="jtbt"/>
  83. <result column="nzgwsf" jdbcType="VARCHAR" property="nzgwsf"/>
  84. <result column="kqkk" jdbcType="VARCHAR" property="kqkk"/>
  85. <result column="yfgz" jdbcType="VARCHAR" property="yfgz"/>
  86. <result column="ylaobx" jdbcType="VARCHAR" property="ylaobx"/>
  87. <result column="yliaobx" jdbcType="VARCHAR" property="yliaobx"/>
  88. <result column="sybx" jdbcType="VARCHAR" property="sybx"/>
  89. <result column="zfgjj" jdbcType="VARCHAR" property="zfgjj"/>
  90. <result column="grsds" jdbcType="VARCHAR" property="grsds"/>
  91. <result column="sfgz" jdbcType="VARCHAR" property="sfgz"/>
  92. <result column="standard_salary" jdbcType="VARCHAR" property="standardSalary"/>
  93. <result column="surveynum" jdbcType="VARCHAR" property="surveynum"/>
  94. <result column="expense_reward" jdbcType="VARCHAR" property="expenseReward"/>
  95. <result column="festival_subsidy" jdbcType="VARCHAR" property="festivalSubsidy"/>
  96. <result column="claim_assess_deduc" jdbcType="VARCHAR" property="claimAssessDeduc"/>
  97. <result column="assess_deduc" jdbcType="VARCHAR" property="assessDeduc"/>
  98. <result column="punish_deduc" jdbcType="VARCHAR" property="punishDeduc"/>
  99. <result column="gsbx" jdbcType="VARCHAR" property="gsbx"/>
  100. <result column="quality" jdbcType="VARCHAR" property="quality"/>
  101. <result column="create_user" jdbcType="VARCHAR" property="createUser"/>
  102. <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
  103. <result column="submit_date" jdbcType="TIMESTAMP" property="submitDate"/>
  104. <result column="review_status" jdbcType="VARCHAR" property="reviewStatus"/>
  105. </collection>
  106. </resultMap>
  107. <sql id="Base_Column_List">
  108. id, check_id, dept_id, dept_name, user_id, user_name, pay_date, user_type, ydgdgz,
  109. ydkhgz, yfndmbjxkhgz, gdgz, fdyx, nzj, hsbt, syqkk, rlskk, sqqt, qtfl1, fsqnf, qtfl2,
  110. jxjj, txbt, jtbt, nzgwsf, kqkk, yfgz, ylaobx, yliaobx, sybx, zfgjj, grsds, sfgz,
  111. standard_salary, surveynum, expense_reward, festival_subsidy, claim_assess_deduc,
  112. assess_deduc, punish_deduc, gsbx, quality, create_user, create_time, submit_date,
  113. review_status
  114. </sql>
  115. <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
  116. select
  117. <include refid="Base_Column_List"/>
  118. from esm_salary
  119. where id = #{id,jdbcType=BIGINT}
  120. </select>
  121. <select id="getByPayDate" resultMap="BaseResultMap">
  122. select
  123. <include refid="Base_Column_List"/>
  124. from esm_salary
  125. where 1=1
  126. AND DATE_FORMAT(pay_date, '%Y-%m-%d') = DATE_FORMAT(#{esmSalary.payDate,jdbcType=TIMESTAMP}, '%Y-%m-%d')
  127. AND user_id = #{esmSalary.userId,jdbcType=VARCHAR}
  128. </select>
  129. <select id="selectSalaryByCheckId" resultMap="esmSalaryResMap">
  130. select a.id,
  131. a.check_id,
  132. a.dept_id,
  133. a.dept_name,
  134. a.user_id,
  135. a.user_name,
  136. a.pay_date,
  137. a.user_type,
  138. ydgdgz,
  139. ydkhgz,
  140. yfndmbjxkhgz,
  141. gdgz,
  142. fdyx,
  143. nzj,
  144. hsbt,
  145. syqkk,
  146. rlskk,
  147. sqqt,
  148. qtfl1,
  149. fsqnf,
  150. qtfl2,
  151. jxjj,
  152. txbt,
  153. jtbt,
  154. nzgwsf,
  155. kqkk,
  156. yfgz,
  157. ylaobx,
  158. yliaobx,
  159. sybx,
  160. zfgjj,
  161. grsds,
  162. sfgz,
  163. standard_salary,
  164. surveynum,
  165. expense_reward,
  166. festival_subsidy,
  167. claim_assess_deduc,
  168. assess_deduc,
  169. punish_deduc,
  170. gsbx,
  171. a.quality,
  172. a.create_user,
  173. a.create_time,
  174. a.submit_date,
  175. b.check_id check_id_b,
  176. b.review_status review_status_b,
  177. b.reviewer reviewer_b,
  178. b.review_time review_time_b,
  179. b.comment comment_b
  180. from esm_salary a
  181. join esm_salary_check b on a.check_id = b.check_id
  182. where b.check_id = #{submitcheckid}
  183. </select>
  184. <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
  185. delete
  186. from esm_salary
  187. where id = #{id,jdbcType=BIGINT}
  188. </delete>
  189. <delete id="deleteBatch">
  190. delete from esm_salary where (DATE_FORMAT(pay_date, '%Y-%m-%d'), user_id) in
  191. <foreach collection="esmList" item="item" index="index" separator="," open="(" close=")">
  192. (
  193. DATE_FORMAT(#{item.payDate,jdbcType=TIMESTAMP}, '%Y-%m-%d'),
  194. #{item.userId, jdbcType=VARCHAR}
  195. )
  196. </foreach>
  197. </delete>
  198. <delete id="deleteByCheckId">
  199. delete
  200. from esm_salary
  201. where check_id = #{oldChcekId}
  202. </delete>
  203. <insert id="insert" parameterType="com.ydtech.modules.esm.model.EsmSalary">
  204. insert into esm_salary (id, check_id, dept_id,
  205. dept_name, user_id, user_name,
  206. pay_date, user_type, ydgdgz,
  207. ydkhgz, yfndmbjxkhgz, gdgz,
  208. fdyx, nzj, hsbt, syqkk,
  209. rlskk, sqqt, qtfl1,
  210. fsqnf, qtfl2, jxjj,
  211. txbt, jtbt, nzgwsf,
  212. kqkk, yfgz, ylaobx,
  213. yliaobx, sybx, zfgjj,
  214. grsds, sfgz, standard_salary,
  215. surveynum, expense_reward, festival_subsidy,
  216. claim_assess_deduc, assess_deduc, punish_deduc,
  217. gsbx, quality, create_user,
  218. create_time, submit_date, review_status)
  219. values (#{id,jdbcType=BIGINT}, #{checkId,jdbcType=VARCHAR}, #{deptId,jdbcType=VARCHAR},
  220. #{deptName,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
  221. #{payDate,jdbcType=TIMESTAMP}, #{userType,jdbcType=VARCHAR}, #{ydgdgz,jdbcType=VARCHAR},
  222. #{ydkhgz,jdbcType=VARCHAR}, #{yfndmbjxkhgz,jdbcType=VARCHAR}, #{gdgz,jdbcType=VARCHAR},
  223. #{fdyx,jdbcType=VARCHAR}, #{nzj,jdbcType=VARCHAR}, #{hsbt,jdbcType=VARCHAR}, #{syqkk,jdbcType=VARCHAR},
  224. #{rlskk,jdbcType=VARCHAR}, #{sqqt,jdbcType=VARCHAR}, #{qtfl1,jdbcType=VARCHAR},
  225. #{fsqnf,jdbcType=VARCHAR}, #{qtfl2,jdbcType=VARCHAR}, #{jxjj,jdbcType=VARCHAR},
  226. #{txbt,jdbcType=VARCHAR}, #{jtbt,jdbcType=VARCHAR}, #{nzgwsf,jdbcType=VARCHAR},
  227. #{kqkk,jdbcType=VARCHAR}, #{yfgz,jdbcType=VARCHAR}, #{ylaobx,jdbcType=VARCHAR},
  228. #{yliaobx,jdbcType=VARCHAR}, #{sybx,jdbcType=VARCHAR}, #{zfgjj,jdbcType=VARCHAR},
  229. #{grsds,jdbcType=VARCHAR}, #{sfgz,jdbcType=VARCHAR}, #{standardSalary,jdbcType=VARCHAR},
  230. #{surveynum,jdbcType=VARCHAR}, #{expenseReward,jdbcType=VARCHAR}, #{festivalSubsidy,jdbcType=VARCHAR},
  231. #{claimAssessDeduc,jdbcType=VARCHAR}, #{assessDeduc,jdbcType=VARCHAR}, #{punishDeduc,jdbcType=VARCHAR},
  232. #{gsbx,jdbcType=VARCHAR}, #{quality,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
  233. #{createTime,jdbcType=TIMESTAMP}, #{submitDate,jdbcType=TIMESTAMP}, #{reviewStatus,jdbcType=VARCHAR})
  234. </insert>
  235. <insert id="insertSelective" parameterType="com.ydtech.modules.esm.model.EsmSalary">
  236. insert into esm_salary
  237. <trim prefix="(" suffix=")" suffixOverrides=",">
  238. <if test="id != null">
  239. id,
  240. </if>
  241. <if test="checkId != null">
  242. check_id,
  243. </if>
  244. <if test="deptId != null">
  245. dept_id,
  246. </if>
  247. <if test="deptName != null">
  248. dept_name,
  249. </if>
  250. <if test="userId != null">
  251. user_id,
  252. </if>
  253. <if test="userName != null">
  254. user_name,
  255. </if>
  256. <if test="payDate != null">
  257. pay_date,
  258. </if>
  259. <if test="userType != null">
  260. user_type,
  261. </if>
  262. <if test="ydgdgz != null">
  263. ydgdgz,
  264. </if>
  265. <if test="ydkhgz != null">
  266. ydkhgz,
  267. </if>
  268. <if test="yfndmbjxkhgz != null">
  269. yfndmbjxkhgz,
  270. </if>
  271. <if test="gdgz != null">
  272. gdgz,
  273. </if>
  274. <if test="fdyx != null">
  275. fdyx,
  276. </if>
  277. <if test="nzj != null">
  278. nzj,
  279. </if>
  280. <if test="hsbt != null">
  281. hsbt,
  282. </if>
  283. <if test="syqkk != null">
  284. syqkk,
  285. </if>
  286. <if test="rlskk != null">
  287. rlskk,
  288. </if>
  289. <if test="sqqt != null">
  290. sqqt,
  291. </if>
  292. <if test="qtfl1 != null">
  293. qtfl1,
  294. </if>
  295. <if test="fsqnf != null">
  296. fsqnf,
  297. </if>
  298. <if test="qtfl2 != null">
  299. qtfl2,
  300. </if>
  301. <if test="jxjj != null">
  302. jxjj,
  303. </if>
  304. <if test="txbt != null">
  305. txbt,
  306. </if>
  307. <if test="jtbt != null">
  308. jtbt,
  309. </if>
  310. <if test="nzgwsf != null">
  311. nzgwsf,
  312. </if>
  313. <if test="kqkk != null">
  314. kqkk,
  315. </if>
  316. <if test="yfgz != null">
  317. yfgz,
  318. </if>
  319. <if test="ylaobx != null">
  320. ylaobx,
  321. </if>
  322. <if test="yliaobx != null">
  323. yliaobx,
  324. </if>
  325. <if test="sybx != null">
  326. sybx,
  327. </if>
  328. <if test="zfgjj != null">
  329. zfgjj,
  330. </if>
  331. <if test="grsds != null">
  332. grsds,
  333. </if>
  334. <if test="sfgz != null">
  335. sfgz,
  336. </if>
  337. <if test="standardSalary != null">
  338. standard_salary,
  339. </if>
  340. <if test="surveynum != null">
  341. surveynum,
  342. </if>
  343. <if test="expenseReward != null">
  344. expense_reward,
  345. </if>
  346. <if test="festivalSubsidy != null">
  347. festival_subsidy,
  348. </if>
  349. <if test="claimAssessDeduc != null">
  350. claim_assess_deduc,
  351. </if>
  352. <if test="assessDeduc != null">
  353. assess_deduc,
  354. </if>
  355. <if test="punishDeduc != null">
  356. punish_deduc,
  357. </if>
  358. <if test="gsbx != null">
  359. gsbx,
  360. </if>
  361. <if test="quality != null">
  362. quality,
  363. </if>
  364. <if test="createUser != null">
  365. create_user,
  366. </if>
  367. <if test="createTime != null">
  368. create_time,
  369. </if>
  370. <if test="submitDate != null">
  371. submit_date,
  372. </if>
  373. <if test="reviewStatus != null">
  374. review_status,
  375. </if>
  376. </trim>
  377. <trim prefix="values (" suffix=")" suffixOverrides=",">
  378. <if test="id != null">
  379. #{id,jdbcType=BIGINT},
  380. </if>
  381. <if test="checkId != null">
  382. #{checkId,jdbcType=VARCHAR},
  383. </if>
  384. <if test="deptId != null">
  385. #{deptId,jdbcType=VARCHAR},
  386. </if>
  387. <if test="deptName != null">
  388. #{deptName,jdbcType=VARCHAR},
  389. </if>
  390. <if test="userId != null">
  391. #{userId,jdbcType=VARCHAR},
  392. </if>
  393. <if test="userName != null">
  394. #{userName,jdbcType=VARCHAR},
  395. </if>
  396. <if test="payDate != null">
  397. #{payDate,jdbcType=TIMESTAMP},
  398. </if>
  399. <if test="userType != null">
  400. #{userType,jdbcType=VARCHAR},
  401. </if>
  402. <if test="ydgdgz != null">
  403. #{ydgdgz,jdbcType=VARCHAR},
  404. </if>
  405. <if test="ydkhgz != null">
  406. #{ydkhgz,jdbcType=VARCHAR},
  407. </if>
  408. <if test="yfndmbjxkhgz != null">
  409. #{yfndmbjxkhgz,jdbcType=VARCHAR},
  410. </if>
  411. <if test="gdgz != null">
  412. #{gdgz,jdbcType=VARCHAR},
  413. </if>
  414. <if test="fdyx != null">
  415. #{fdyx,jdbcType=VARCHAR},
  416. </if>
  417. <if test="nzj != null">
  418. #{nzj,jdbcType=VARCHAR},
  419. </if>
  420. <if test="hsbt != null">
  421. #{hsbt,jdbcType=VARCHAR},
  422. </if>
  423. <if test="syqkk != null">
  424. #{syqkk,jdbcType=VARCHAR},
  425. </if>
  426. <if test="rlskk != null">
  427. #{rlskk,jdbcType=VARCHAR},
  428. </if>
  429. <if test="sqqt != null">
  430. #{sqqt,jdbcType=VARCHAR},
  431. </if>
  432. <if test="qtfl1 != null">
  433. #{qtfl1,jdbcType=VARCHAR},
  434. </if>
  435. <if test="fsqnf != null">
  436. #{fsqnf,jdbcType=VARCHAR},
  437. </if>
  438. <if test="qtfl2 != null">
  439. #{qtfl2,jdbcType=VARCHAR},
  440. </if>
  441. <if test="jxjj != null">
  442. #{jxjj,jdbcType=VARCHAR},
  443. </if>
  444. <if test="txbt != null">
  445. #{txbt,jdbcType=VARCHAR},
  446. </if>
  447. <if test="jtbt != null">
  448. #{jtbt,jdbcType=VARCHAR},
  449. </if>
  450. <if test="nzgwsf != null">
  451. #{nzgwsf,jdbcType=VARCHAR},
  452. </if>
  453. <if test="kqkk != null">
  454. #{kqkk,jdbcType=VARCHAR},
  455. </if>
  456. <if test="yfgz != null">
  457. #{yfgz,jdbcType=VARCHAR},
  458. </if>
  459. <if test="ylaobx != null">
  460. #{ylaobx,jdbcType=VARCHAR},
  461. </if>
  462. <if test="yliaobx != null">
  463. #{yliaobx,jdbcType=VARCHAR},
  464. </if>
  465. <if test="sybx != null">
  466. #{sybx,jdbcType=VARCHAR},
  467. </if>
  468. <if test="zfgjj != null">
  469. #{zfgjj,jdbcType=VARCHAR},
  470. </if>
  471. <if test="grsds != null">
  472. #{grsds,jdbcType=VARCHAR},
  473. </if>
  474. <if test="sfgz != null">
  475. #{sfgz,jdbcType=VARCHAR},
  476. </if>
  477. <if test="standardSalary != null">
  478. #{standardSalary,jdbcType=VARCHAR},
  479. </if>
  480. <if test="surveynum != null">
  481. #{surveynum,jdbcType=VARCHAR},
  482. </if>
  483. <if test="expenseReward != null">
  484. #{expenseReward,jdbcType=VARCHAR},
  485. </if>
  486. <if test="festivalSubsidy != null">
  487. #{festivalSubsidy,jdbcType=VARCHAR},
  488. </if>
  489. <if test="claimAssessDeduc != null">
  490. #{claimAssessDeduc,jdbcType=VARCHAR},
  491. </if>
  492. <if test="assessDeduc != null">
  493. #{assessDeduc,jdbcType=VARCHAR},
  494. </if>
  495. <if test="punishDeduc != null">
  496. #{punishDeduc,jdbcType=VARCHAR},
  497. </if>
  498. <if test="gsbx != null">
  499. #{gsbx,jdbcType=VARCHAR},
  500. </if>
  501. <if test="quality != null">
  502. #{quality,jdbcType=VARCHAR},
  503. </if>
  504. <if test="createUser != null">
  505. #{createUser,jdbcType=VARCHAR},
  506. </if>
  507. <if test="createTime != null">
  508. #{createTime,jdbcType=TIMESTAMP},
  509. </if>
  510. <if test="submitDate != null">
  511. #{submitDate,jdbcType=TIMESTAMP},
  512. </if>
  513. <if test="reviewStatus != null">
  514. #{reviewStatus,jdbcType=VARCHAR},
  515. </if>
  516. </trim>
  517. </insert>
  518. <insert id="inserBatch">
  519. insert into esm_salary (id, check_id, dept_id,
  520. dept_name, user_id, user_name,
  521. pay_date, user_type, ydgdgz,
  522. ydkhgz, yfndmbjxkhgz, gdgz,
  523. fdyx, nzj, hsbt, syqkk,
  524. rlskk, sqqt, qtfl1,
  525. fsqnf, qtfl2, jxjj,
  526. txbt, jtbt, nzgwsf,
  527. kqkk, yfgz, ylaobx,
  528. yliaobx, sybx, zfgjj,
  529. grsds, sfgz, standard_salary,
  530. surveynum, expense_reward, festival_subsidy,
  531. claim_assess_deduc, assess_deduc, punish_deduc,
  532. gsbx, quality, create_user,
  533. create_time, submit_date, review_status
  534. )
  535. values
  536. <foreach collection="esmList" item="item" separator=",">
  537. (
  538. null, #{item.checkId,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR},
  539. #{item.deptName,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR}, #{item.userName,jdbcType=VARCHAR},
  540. #{item.payDate,jdbcType=TIMESTAMP}, #{item.userType,jdbcType=VARCHAR}, #{item.ydgdgz,jdbcType=VARCHAR},
  541. #{item.ydkhgz,jdbcType=VARCHAR}, #{item.yfndmbjxkhgz,jdbcType=VARCHAR}, #{item.gdgz,jdbcType=VARCHAR},
  542. #{item.fdyx,jdbcType=VARCHAR}, #{item.nzj,jdbcType=VARCHAR}, #{item.hsbt,jdbcType=VARCHAR},
  543. #{item.syqkk,jdbcType=VARCHAR},
  544. #{item.rlskk,jdbcType=VARCHAR}, #{item.sqqt,jdbcType=VARCHAR}, #{item.qtfl1,jdbcType=VARCHAR},
  545. #{item.fsqnf,jdbcType=VARCHAR}, #{item.qtfl2,jdbcType=VARCHAR}, #{item.jxjj,jdbcType=VARCHAR},
  546. #{item.txbt,jdbcType=VARCHAR}, #{item.jtbt,jdbcType=VARCHAR}, #{item.nzgwsf,jdbcType=VARCHAR},
  547. #{item.kqkk,jdbcType=VARCHAR}, #{item.yfgz,jdbcType=VARCHAR}, #{item.ylaobx,jdbcType=VARCHAR},
  548. #{item.yliaobx,jdbcType=VARCHAR}, #{item.sybx,jdbcType=VARCHAR}, #{item.zfgjj,jdbcType=VARCHAR},
  549. #{item.grsds,jdbcType=VARCHAR}, #{item.sfgz,jdbcType=VARCHAR}, #{item.standardSalary,jdbcType=VARCHAR},
  550. #{item.surveynum,jdbcType=VARCHAR}, #{item.expenseReward,jdbcType=VARCHAR},
  551. #{item.festivalSubsidy,jdbcType=VARCHAR},
  552. #{item.claimAssessDeduc,jdbcType=VARCHAR}, #{item.assessDeduc,jdbcType=VARCHAR},
  553. #{item.punishDeduc,jdbcType=VARCHAR},
  554. #{item.gsbx,jdbcType=VARCHAR}, #{item.quality,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR},
  555. #{item.createTime,jdbcType=TIMESTAMP}, #{item.submitDate,jdbcType=TIMESTAMP},
  556. #{item.reviewStatus,jdbcType=VARCHAR}
  557. )
  558. </foreach>
  559. </insert>
  560. <update id="updateByPrimaryKeySelective" parameterType="com.ydtech.modules.esm.model.EsmSalary">
  561. update esm_salary
  562. <set>
  563. <if test="checkId != null">
  564. check_id = #{checkId,jdbcType=VARCHAR},
  565. </if>
  566. <if test="deptId != null">
  567. dept_id = #{deptId,jdbcType=VARCHAR},
  568. </if>
  569. <if test="deptName != null">
  570. dept_name = #{deptName,jdbcType=VARCHAR},
  571. </if>
  572. <if test="userId != null">
  573. user_id = #{userId,jdbcType=VARCHAR},
  574. </if>
  575. <if test="userName != null">
  576. user_name = #{userName,jdbcType=VARCHAR},
  577. </if>
  578. <if test="payDate != null">
  579. pay_date = #{payDate,jdbcType=TIMESTAMP},
  580. </if>
  581. <if test="userType != null">
  582. user_type = #{userType,jdbcType=VARCHAR},
  583. </if>
  584. <if test="ydgdgz != null">
  585. ydgdgz = #{ydgdgz,jdbcType=VARCHAR},
  586. </if>
  587. <if test="ydkhgz != null">
  588. ydkhgz = #{ydkhgz,jdbcType=VARCHAR},
  589. </if>
  590. <if test="yfndmbjxkhgz != null">
  591. yfndmbjxkhgz = #{yfndmbjxkhgz,jdbcType=VARCHAR},
  592. </if>
  593. <if test="gdgz != null">
  594. gdgz = #{gdgz,jdbcType=VARCHAR},
  595. </if>
  596. <if test="fdyx != null">
  597. fdyx = #{fdyx,jdbcType=VARCHAR},
  598. </if>
  599. <if test="nzj != null">
  600. nzj = #{nzj,jdbcType=VARCHAR},
  601. </if>
  602. <if test="hsbt != null">
  603. hsbt = #{hsbt,jdbcType=VARCHAR},
  604. </if>
  605. <if test="syqkk != null">
  606. syqkk = #{syqkk,jdbcType=VARCHAR},
  607. </if>
  608. <if test="rlskk != null">
  609. rlskk = #{rlskk,jdbcType=VARCHAR},
  610. </if>
  611. <if test="sqqt != null">
  612. sqqt = #{sqqt,jdbcType=VARCHAR},
  613. </if>
  614. <if test="qtfl1 != null">
  615. qtfl1 = #{qtfl1,jdbcType=VARCHAR},
  616. </if>
  617. <if test="fsqnf != null">
  618. fsqnf = #{fsqnf,jdbcType=VARCHAR},
  619. </if>
  620. <if test="qtfl2 != null">
  621. qtfl2 = #{qtfl2,jdbcType=VARCHAR},
  622. </if>
  623. <if test="jxjj != null">
  624. jxjj = #{jxjj,jdbcType=VARCHAR},
  625. </if>
  626. <if test="txbt != null">
  627. txbt = #{txbt,jdbcType=VARCHAR},
  628. </if>
  629. <if test="jtbt != null">
  630. jtbt = #{jtbt,jdbcType=VARCHAR},
  631. </if>
  632. <if test="nzgwsf != null">
  633. nzgwsf = #{nzgwsf,jdbcType=VARCHAR},
  634. </if>
  635. <if test="kqkk != null">
  636. kqkk = #{kqkk,jdbcType=VARCHAR},
  637. </if>
  638. <if test="yfgz != null">
  639. yfgz = #{yfgz,jdbcType=VARCHAR},
  640. </if>
  641. <if test="ylaobx != null">
  642. ylaobx = #{ylaobx,jdbcType=VARCHAR},
  643. </if>
  644. <if test="yliaobx != null">
  645. yliaobx = #{yliaobx,jdbcType=VARCHAR},
  646. </if>
  647. <if test="sybx != null">
  648. sybx = #{sybx,jdbcType=VARCHAR},
  649. </if>
  650. <if test="zfgjj != null">
  651. zfgjj = #{zfgjj,jdbcType=VARCHAR},
  652. </if>
  653. <if test="grsds != null">
  654. grsds = #{grsds,jdbcType=VARCHAR},
  655. </if>
  656. <if test="sfgz != null">
  657. sfgz = #{sfgz,jdbcType=VARCHAR},
  658. </if>
  659. <if test="standardSalary != null">
  660. standard_salary = #{standardSalary,jdbcType=VARCHAR},
  661. </if>
  662. <if test="surveynum != null">
  663. surveynum = #{surveynum,jdbcType=VARCHAR},
  664. </if>
  665. <if test="expenseReward != null">
  666. expense_reward = #{expenseReward,jdbcType=VARCHAR},
  667. </if>
  668. <if test="festivalSubsidy != null">
  669. festival_subsidy = #{festivalSubsidy,jdbcType=VARCHAR},
  670. </if>
  671. <if test="claimAssessDeduc != null">
  672. claim_assess_deduc = #{claimAssessDeduc,jdbcType=VARCHAR},
  673. </if>
  674. <if test="assessDeduc != null">
  675. assess_deduc = #{assessDeduc,jdbcType=VARCHAR},
  676. </if>
  677. <if test="punishDeduc != null">
  678. punish_deduc = #{punishDeduc,jdbcType=VARCHAR},
  679. </if>
  680. <if test="gsbx != null">
  681. gsbx = #{gsbx,jdbcType=VARCHAR},
  682. </if>
  683. <if test="quality != null">
  684. quality = #{quality,jdbcType=VARCHAR},
  685. </if>
  686. <if test="createUser != null">
  687. create_user = #{createUser,jdbcType=VARCHAR},
  688. </if>
  689. <if test="createTime != null">
  690. create_time = #{createTime,jdbcType=TIMESTAMP},
  691. </if>
  692. <if test="submitDate != null">
  693. submit_date = #{submitDate,jdbcType=TIMESTAMP},
  694. </if>
  695. <if test="reviewStatus != null">
  696. review_status = #{reviewStatus,jdbcType=VARCHAR},
  697. </if>
  698. </set>
  699. where check_id = #{checkId,jdbcType=VARCHAR}
  700. </update>
  701. <update id="updateByPrimaryKey" parameterType="com.ydtech.modules.esm.model.EsmSalary">
  702. update esm_salary
  703. set check_id = #{checkId,jdbcType=VARCHAR},
  704. dept_id = #{deptId,jdbcType=VARCHAR},
  705. dept_name = #{deptName,jdbcType=VARCHAR},
  706. user_id = #{userId,jdbcType=VARCHAR},
  707. user_name = #{userName,jdbcType=VARCHAR},
  708. pay_date = #{payDate,jdbcType=TIMESTAMP},
  709. user_type = #{userType,jdbcType=VARCHAR},
  710. ydgdgz = #{ydgdgz,jdbcType=VARCHAR},
  711. ydkhgz = #{ydkhgz,jdbcType=VARCHAR},
  712. yfndmbjxkhgz = #{yfndmbjxkhgz,jdbcType=VARCHAR},
  713. gdgz = #{gdgz,jdbcType=VARCHAR},
  714. fdyx = #{fdyx,jdbcType=VARCHAR},
  715. nzj = #{nzj,jdbcType=VARCHAR},
  716. hsbt = #{hsbt,jdbcType=VARCHAR},
  717. syqkk = #{syqkk,jdbcType=VARCHAR},
  718. rlskk = #{rlskk,jdbcType=VARCHAR},
  719. sqqt = #{sqqt,jdbcType=VARCHAR},
  720. qtfl1 = #{qtfl1,jdbcType=VARCHAR},
  721. fsqnf = #{fsqnf,jdbcType=VARCHAR},
  722. qtfl2 = #{qtfl2,jdbcType=VARCHAR},
  723. jxjj = #{jxjj,jdbcType=VARCHAR},
  724. txbt = #{txbt,jdbcType=VARCHAR},
  725. jtbt = #{jtbt,jdbcType=VARCHAR},
  726. nzgwsf = #{nzgwsf,jdbcType=VARCHAR},
  727. kqkk = #{kqkk,jdbcType=VARCHAR},
  728. yfgz = #{yfgz,jdbcType=VARCHAR},
  729. ylaobx = #{ylaobx,jdbcType=VARCHAR},
  730. yliaobx = #{yliaobx,jdbcType=VARCHAR},
  731. sybx = #{sybx,jdbcType=VARCHAR},
  732. zfgjj = #{zfgjj,jdbcType=VARCHAR},
  733. grsds = #{grsds,jdbcType=VARCHAR},
  734. sfgz = #{sfgz,jdbcType=VARCHAR},
  735. standard_salary = #{standardSalary,jdbcType=VARCHAR},
  736. surveynum = #{surveynum,jdbcType=VARCHAR},
  737. expense_reward = #{expenseReward,jdbcType=VARCHAR},
  738. festival_subsidy = #{festivalSubsidy,jdbcType=VARCHAR},
  739. claim_assess_deduc = #{claimAssessDeduc,jdbcType=VARCHAR},
  740. assess_deduc = #{assessDeduc,jdbcType=VARCHAR},
  741. punish_deduc = #{punishDeduc,jdbcType=VARCHAR},
  742. gsbx = #{gsbx,jdbcType=VARCHAR},
  743. quality = #{quality,jdbcType=VARCHAR},
  744. create_user = #{createUser,jdbcType=VARCHAR},
  745. create_time = #{createTime,jdbcType=TIMESTAMP},
  746. submit_date = #{submitDate,jdbcType=TIMESTAMP},
  747. review_status = #{reviewStatus,jdbcType=VARCHAR}
  748. where id = #{id,jdbcType=BIGINT}
  749. </update>
  750. </mapper>