| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.ydtech.modules.esm.dao.EsmSalaryMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.esm.model.EsmSalary">
- <id column="id" jdbcType="BIGINT" property="id"/>
- <result column="check_id" jdbcType="VARCHAR" property="checkId"/>
- <result column="dept_id" jdbcType="VARCHAR" property="deptId"/>
- <result column="dept_name" jdbcType="VARCHAR" property="deptName"/>
- <result column="user_id" jdbcType="VARCHAR" property="userId"/>
- <result column="user_name" jdbcType="VARCHAR" property="userName"/>
- <result column="pay_date" jdbcType="TIMESTAMP" property="payDate"/>
- <result column="user_type" jdbcType="VARCHAR" property="userType"/>
- <result column="ydgdgz" jdbcType="VARCHAR" property="ydgdgz"/>
- <result column="ydkhgz" jdbcType="VARCHAR" property="ydkhgz"/>
- <result column="yfndmbjxkhgz" jdbcType="VARCHAR" property="yfndmbjxkhgz"/>
- <result column="gdgz" jdbcType="VARCHAR" property="gdgz"/>
- <result column="fdyx" jdbcType="VARCHAR" property="fdyx"/>
- <result column="nzj" jdbcType="VARCHAR" property="nzj"/>
- <result column="hsbt" jdbcType="VARCHAR" property="hsbt"/>
- <result column="syqkk" jdbcType="VARCHAR" property="syqkk"/>
- <result column="rlskk" jdbcType="VARCHAR" property="rlskk"/>
- <result column="sqqt" jdbcType="VARCHAR" property="sqqt"/>
- <result column="qtfl1" jdbcType="VARCHAR" property="qtfl1"/>
- <result column="fsqnf" jdbcType="VARCHAR" property="fsqnf"/>
- <result column="qtfl2" jdbcType="VARCHAR" property="qtfl2"/>
- <result column="jxjj" jdbcType="VARCHAR" property="jxjj"/>
- <result column="txbt" jdbcType="VARCHAR" property="txbt"/>
- <result column="jtbt" jdbcType="VARCHAR" property="jtbt"/>
- <result column="nzgwsf" jdbcType="VARCHAR" property="nzgwsf"/>
- <result column="kqkk" jdbcType="VARCHAR" property="kqkk"/>
- <result column="yfgz" jdbcType="VARCHAR" property="yfgz"/>
- <result column="ylaobx" jdbcType="VARCHAR" property="ylaobx"/>
- <result column="yliaobx" jdbcType="VARCHAR" property="yliaobx"/>
- <result column="sybx" jdbcType="VARCHAR" property="sybx"/>
- <result column="zfgjj" jdbcType="VARCHAR" property="zfgjj"/>
- <result column="grsds" jdbcType="VARCHAR" property="grsds"/>
- <result column="sfgz" jdbcType="VARCHAR" property="sfgz"/>
- <result column="standard_salary" jdbcType="VARCHAR" property="standardSalary"/>
- <result column="surveynum" jdbcType="VARCHAR" property="surveynum"/>
- <result column="expense_reward" jdbcType="VARCHAR" property="expenseReward"/>
- <result column="festival_subsidy" jdbcType="VARCHAR" property="festivalSubsidy"/>
- <result column="claim_assess_deduc" jdbcType="VARCHAR" property="claimAssessDeduc"/>
- <result column="assess_deduc" jdbcType="VARCHAR" property="assessDeduc"/>
- <result column="punish_deduc" jdbcType="VARCHAR" property="punishDeduc"/>
- <result column="gsbx" jdbcType="VARCHAR" property="gsbx"/>
- <result column="quality" jdbcType="VARCHAR" property="quality"/>
- <result column="create_user" jdbcType="VARCHAR" property="createUser"/>
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
- <result column="submit_date" jdbcType="TIMESTAMP" property="submitDate"/>
- <result column="review_status" jdbcType="VARCHAR" property="reviewStatus"/>
- </resultMap>
- <resultMap id="esmSalaryResMap" type="com.ydtech.modules.esm.model.vo.res.EsmSalaryRes">
- <id column="check_id_b" jdbcType="VARCHAR" property="checkId"/>
- <result column="reviewer_b" jdbcType="VARCHAR" property="reviewer"/>
- <result column="review_status_b" jdbcType="VARCHAR" property="reviewStatus"/>
- <result column="review_time_b" jdbcType="TIMESTAMP" property="reviewTime"/>
- <result column="comment_b" jdbcType="VARCHAR" property="comment"/>
- <collection property="esmSalaryList" ofType="com.ydtech.modules.esm.model.EsmSalary">
- <id column="id" jdbcType="BIGINT" property="id"/>
- <result column="check_id" jdbcType="VARCHAR" property="checkId"/>
- <result column="dept_id" jdbcType="VARCHAR" property="deptId"/>
- <result column="dept_name" jdbcType="VARCHAR" property="deptName"/>
- <result column="user_id" jdbcType="VARCHAR" property="userId"/>
- <result column="user_name" jdbcType="VARCHAR" property="userName"/>
- <result column="pay_date" jdbcType="TIMESTAMP" property="payDate"/>
- <result column="user_type" jdbcType="VARCHAR" property="userType"/>
- <result column="ydgdgz" jdbcType="VARCHAR" property="ydgdgz"/>
- <result column="ydkhgz" jdbcType="VARCHAR" property="ydkhgz"/>
- <result column="yfndmbjxkhgz" jdbcType="VARCHAR" property="yfndmbjxkhgz"/>
- <result column="gdgz" jdbcType="VARCHAR" property="gdgz"/>
- <result column="fdyx" jdbcType="VARCHAR" property="fdyx"/>
- <result column="nzj" jdbcType="VARCHAR" property="nzj"/>
- <result column="hsbt" jdbcType="VARCHAR" property="hsbt"/>
- <result column="syqkk" jdbcType="VARCHAR" property="syqkk"/>
- <result column="rlskk" jdbcType="VARCHAR" property="rlskk"/>
- <result column="sqqt" jdbcType="VARCHAR" property="sqqt"/>
- <result column="qtfl1" jdbcType="VARCHAR" property="qtfl1"/>
- <result column="fsqnf" jdbcType="VARCHAR" property="fsqnf"/>
- <result column="qtfl2" jdbcType="VARCHAR" property="qtfl2"/>
- <result column="jxjj" jdbcType="VARCHAR" property="jxjj"/>
- <result column="txbt" jdbcType="VARCHAR" property="txbt"/>
- <result column="jtbt" jdbcType="VARCHAR" property="jtbt"/>
- <result column="nzgwsf" jdbcType="VARCHAR" property="nzgwsf"/>
- <result column="kqkk" jdbcType="VARCHAR" property="kqkk"/>
- <result column="yfgz" jdbcType="VARCHAR" property="yfgz"/>
- <result column="ylaobx" jdbcType="VARCHAR" property="ylaobx"/>
- <result column="yliaobx" jdbcType="VARCHAR" property="yliaobx"/>
- <result column="sybx" jdbcType="VARCHAR" property="sybx"/>
- <result column="zfgjj" jdbcType="VARCHAR" property="zfgjj"/>
- <result column="grsds" jdbcType="VARCHAR" property="grsds"/>
- <result column="sfgz" jdbcType="VARCHAR" property="sfgz"/>
- <result column="standard_salary" jdbcType="VARCHAR" property="standardSalary"/>
- <result column="surveynum" jdbcType="VARCHAR" property="surveynum"/>
- <result column="expense_reward" jdbcType="VARCHAR" property="expenseReward"/>
- <result column="festival_subsidy" jdbcType="VARCHAR" property="festivalSubsidy"/>
- <result column="claim_assess_deduc" jdbcType="VARCHAR" property="claimAssessDeduc"/>
- <result column="assess_deduc" jdbcType="VARCHAR" property="assessDeduc"/>
- <result column="punish_deduc" jdbcType="VARCHAR" property="punishDeduc"/>
- <result column="gsbx" jdbcType="VARCHAR" property="gsbx"/>
- <result column="quality" jdbcType="VARCHAR" property="quality"/>
- <result column="create_user" jdbcType="VARCHAR" property="createUser"/>
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
- <result column="submit_date" jdbcType="TIMESTAMP" property="submitDate"/>
- <result column="review_status" jdbcType="VARCHAR" property="reviewStatus"/>
- </collection>
- </resultMap>
- <sql id="Base_Column_List">
- id, check_id, dept_id, dept_name, user_id, user_name, pay_date, user_type, ydgdgz,
- ydkhgz, yfndmbjxkhgz, gdgz, fdyx, nzj, hsbt, syqkk, rlskk, sqqt, qtfl1, fsqnf, qtfl2,
- jxjj, txbt, jtbt, nzgwsf, kqkk, yfgz, ylaobx, yliaobx, sybx, zfgjj, grsds, sfgz,
- standard_salary, surveynum, expense_reward, festival_subsidy, claim_assess_deduc,
- assess_deduc, punish_deduc, gsbx, quality, create_user, create_time, submit_date,
- review_status
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from esm_salary
- where id = #{id,jdbcType=BIGINT}
- </select>
- <select id="getByPayDate" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from esm_salary
- where 1=1
- AND DATE_FORMAT(pay_date, '%Y-%m-%d') = DATE_FORMAT(#{esmSalary.payDate,jdbcType=TIMESTAMP}, '%Y-%m-%d')
- AND user_id = #{esmSalary.userId,jdbcType=VARCHAR}
- </select>
- <select id="selectSalaryByCheckId" resultMap="esmSalaryResMap">
- select a.id,
- a.check_id,
- a.dept_id,
- a.dept_name,
- a.user_id,
- a.user_name,
- a.pay_date,
- a.user_type,
- ydgdgz,
- ydkhgz,
- yfndmbjxkhgz,
- gdgz,
- fdyx,
- nzj,
- hsbt,
- syqkk,
- rlskk,
- sqqt,
- qtfl1,
- fsqnf,
- qtfl2,
- jxjj,
- txbt,
- jtbt,
- nzgwsf,
- kqkk,
- yfgz,
- ylaobx,
- yliaobx,
- sybx,
- zfgjj,
- grsds,
- sfgz,
- standard_salary,
- surveynum,
- expense_reward,
- festival_subsidy,
- claim_assess_deduc,
- assess_deduc,
- punish_deduc,
- gsbx,
- a.quality,
- a.create_user,
- a.create_time,
- a.submit_date,
- b.check_id check_id_b,
- b.review_status review_status_b,
- b.reviewer reviewer_b,
- b.review_time review_time_b,
- b.comment comment_b
- from esm_salary a
- join esm_salary_check b on a.check_id = b.check_id
- where b.check_id = #{submitcheckid}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete
- from esm_salary
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <delete id="deleteBatch">
- delete from esm_salary where (DATE_FORMAT(pay_date, '%Y-%m-%d'), user_id) in
- <foreach collection="esmList" item="item" index="index" separator="," open="(" close=")">
- (
- DATE_FORMAT(#{item.payDate,jdbcType=TIMESTAMP}, '%Y-%m-%d'),
- #{item.userId, jdbcType=VARCHAR}
- )
- </foreach>
- </delete>
- <delete id="deleteByCheckId">
- delete
- from esm_salary
- where check_id = #{oldChcekId}
- </delete>
- <insert id="insert" parameterType="com.ydtech.modules.esm.model.EsmSalary">
- insert into esm_salary (id, check_id, dept_id,
- dept_name, user_id, user_name,
- pay_date, user_type, ydgdgz,
- ydkhgz, yfndmbjxkhgz, gdgz,
- fdyx, nzj, hsbt, syqkk,
- rlskk, sqqt, qtfl1,
- fsqnf, qtfl2, jxjj,
- txbt, jtbt, nzgwsf,
- kqkk, yfgz, ylaobx,
- yliaobx, sybx, zfgjj,
- grsds, sfgz, standard_salary,
- surveynum, expense_reward, festival_subsidy,
- claim_assess_deduc, assess_deduc, punish_deduc,
- gsbx, quality, create_user,
- create_time, submit_date, review_status)
- values (#{id,jdbcType=BIGINT}, #{checkId,jdbcType=VARCHAR}, #{deptId,jdbcType=VARCHAR},
- #{deptName,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
- #{payDate,jdbcType=TIMESTAMP}, #{userType,jdbcType=VARCHAR}, #{ydgdgz,jdbcType=VARCHAR},
- #{ydkhgz,jdbcType=VARCHAR}, #{yfndmbjxkhgz,jdbcType=VARCHAR}, #{gdgz,jdbcType=VARCHAR},
- #{fdyx,jdbcType=VARCHAR}, #{nzj,jdbcType=VARCHAR}, #{hsbt,jdbcType=VARCHAR}, #{syqkk,jdbcType=VARCHAR},
- #{rlskk,jdbcType=VARCHAR}, #{sqqt,jdbcType=VARCHAR}, #{qtfl1,jdbcType=VARCHAR},
- #{fsqnf,jdbcType=VARCHAR}, #{qtfl2,jdbcType=VARCHAR}, #{jxjj,jdbcType=VARCHAR},
- #{txbt,jdbcType=VARCHAR}, #{jtbt,jdbcType=VARCHAR}, #{nzgwsf,jdbcType=VARCHAR},
- #{kqkk,jdbcType=VARCHAR}, #{yfgz,jdbcType=VARCHAR}, #{ylaobx,jdbcType=VARCHAR},
- #{yliaobx,jdbcType=VARCHAR}, #{sybx,jdbcType=VARCHAR}, #{zfgjj,jdbcType=VARCHAR},
- #{grsds,jdbcType=VARCHAR}, #{sfgz,jdbcType=VARCHAR}, #{standardSalary,jdbcType=VARCHAR},
- #{surveynum,jdbcType=VARCHAR}, #{expenseReward,jdbcType=VARCHAR}, #{festivalSubsidy,jdbcType=VARCHAR},
- #{claimAssessDeduc,jdbcType=VARCHAR}, #{assessDeduc,jdbcType=VARCHAR}, #{punishDeduc,jdbcType=VARCHAR},
- #{gsbx,jdbcType=VARCHAR}, #{quality,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
- #{createTime,jdbcType=TIMESTAMP}, #{submitDate,jdbcType=TIMESTAMP}, #{reviewStatus,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ydtech.modules.esm.model.EsmSalary">
- insert into esm_salary
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="checkId != null">
- check_id,
- </if>
- <if test="deptId != null">
- dept_id,
- </if>
- <if test="deptName != null">
- dept_name,
- </if>
- <if test="userId != null">
- user_id,
- </if>
- <if test="userName != null">
- user_name,
- </if>
- <if test="payDate != null">
- pay_date,
- </if>
- <if test="userType != null">
- user_type,
- </if>
- <if test="ydgdgz != null">
- ydgdgz,
- </if>
- <if test="ydkhgz != null">
- ydkhgz,
- </if>
- <if test="yfndmbjxkhgz != null">
- yfndmbjxkhgz,
- </if>
- <if test="gdgz != null">
- gdgz,
- </if>
- <if test="fdyx != null">
- fdyx,
- </if>
- <if test="nzj != null">
- nzj,
- </if>
- <if test="hsbt != null">
- hsbt,
- </if>
- <if test="syqkk != null">
- syqkk,
- </if>
- <if test="rlskk != null">
- rlskk,
- </if>
- <if test="sqqt != null">
- sqqt,
- </if>
- <if test="qtfl1 != null">
- qtfl1,
- </if>
- <if test="fsqnf != null">
- fsqnf,
- </if>
- <if test="qtfl2 != null">
- qtfl2,
- </if>
- <if test="jxjj != null">
- jxjj,
- </if>
- <if test="txbt != null">
- txbt,
- </if>
- <if test="jtbt != null">
- jtbt,
- </if>
- <if test="nzgwsf != null">
- nzgwsf,
- </if>
- <if test="kqkk != null">
- kqkk,
- </if>
- <if test="yfgz != null">
- yfgz,
- </if>
- <if test="ylaobx != null">
- ylaobx,
- </if>
- <if test="yliaobx != null">
- yliaobx,
- </if>
- <if test="sybx != null">
- sybx,
- </if>
- <if test="zfgjj != null">
- zfgjj,
- </if>
- <if test="grsds != null">
- grsds,
- </if>
- <if test="sfgz != null">
- sfgz,
- </if>
- <if test="standardSalary != null">
- standard_salary,
- </if>
- <if test="surveynum != null">
- surveynum,
- </if>
- <if test="expenseReward != null">
- expense_reward,
- </if>
- <if test="festivalSubsidy != null">
- festival_subsidy,
- </if>
- <if test="claimAssessDeduc != null">
- claim_assess_deduc,
- </if>
- <if test="assessDeduc != null">
- assess_deduc,
- </if>
- <if test="punishDeduc != null">
- punish_deduc,
- </if>
- <if test="gsbx != null">
- gsbx,
- </if>
- <if test="quality != null">
- quality,
- </if>
- <if test="createUser != null">
- create_user,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="submitDate != null">
- submit_date,
- </if>
- <if test="reviewStatus != null">
- review_status,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=BIGINT},
- </if>
- <if test="checkId != null">
- #{checkId,jdbcType=VARCHAR},
- </if>
- <if test="deptId != null">
- #{deptId,jdbcType=VARCHAR},
- </if>
- <if test="deptName != null">
- #{deptName,jdbcType=VARCHAR},
- </if>
- <if test="userId != null">
- #{userId,jdbcType=VARCHAR},
- </if>
- <if test="userName != null">
- #{userName,jdbcType=VARCHAR},
- </if>
- <if test="payDate != null">
- #{payDate,jdbcType=TIMESTAMP},
- </if>
- <if test="userType != null">
- #{userType,jdbcType=VARCHAR},
- </if>
- <if test="ydgdgz != null">
- #{ydgdgz,jdbcType=VARCHAR},
- </if>
- <if test="ydkhgz != null">
- #{ydkhgz,jdbcType=VARCHAR},
- </if>
- <if test="yfndmbjxkhgz != null">
- #{yfndmbjxkhgz,jdbcType=VARCHAR},
- </if>
- <if test="gdgz != null">
- #{gdgz,jdbcType=VARCHAR},
- </if>
- <if test="fdyx != null">
- #{fdyx,jdbcType=VARCHAR},
- </if>
- <if test="nzj != null">
- #{nzj,jdbcType=VARCHAR},
- </if>
- <if test="hsbt != null">
- #{hsbt,jdbcType=VARCHAR},
- </if>
- <if test="syqkk != null">
- #{syqkk,jdbcType=VARCHAR},
- </if>
- <if test="rlskk != null">
- #{rlskk,jdbcType=VARCHAR},
- </if>
- <if test="sqqt != null">
- #{sqqt,jdbcType=VARCHAR},
- </if>
- <if test="qtfl1 != null">
- #{qtfl1,jdbcType=VARCHAR},
- </if>
- <if test="fsqnf != null">
- #{fsqnf,jdbcType=VARCHAR},
- </if>
- <if test="qtfl2 != null">
- #{qtfl2,jdbcType=VARCHAR},
- </if>
- <if test="jxjj != null">
- #{jxjj,jdbcType=VARCHAR},
- </if>
- <if test="txbt != null">
- #{txbt,jdbcType=VARCHAR},
- </if>
- <if test="jtbt != null">
- #{jtbt,jdbcType=VARCHAR},
- </if>
- <if test="nzgwsf != null">
- #{nzgwsf,jdbcType=VARCHAR},
- </if>
- <if test="kqkk != null">
- #{kqkk,jdbcType=VARCHAR},
- </if>
- <if test="yfgz != null">
- #{yfgz,jdbcType=VARCHAR},
- </if>
- <if test="ylaobx != null">
- #{ylaobx,jdbcType=VARCHAR},
- </if>
- <if test="yliaobx != null">
- #{yliaobx,jdbcType=VARCHAR},
- </if>
- <if test="sybx != null">
- #{sybx,jdbcType=VARCHAR},
- </if>
- <if test="zfgjj != null">
- #{zfgjj,jdbcType=VARCHAR},
- </if>
- <if test="grsds != null">
- #{grsds,jdbcType=VARCHAR},
- </if>
- <if test="sfgz != null">
- #{sfgz,jdbcType=VARCHAR},
- </if>
- <if test="standardSalary != null">
- #{standardSalary,jdbcType=VARCHAR},
- </if>
- <if test="surveynum != null">
- #{surveynum,jdbcType=VARCHAR},
- </if>
- <if test="expenseReward != null">
- #{expenseReward,jdbcType=VARCHAR},
- </if>
- <if test="festivalSubsidy != null">
- #{festivalSubsidy,jdbcType=VARCHAR},
- </if>
- <if test="claimAssessDeduc != null">
- #{claimAssessDeduc,jdbcType=VARCHAR},
- </if>
- <if test="assessDeduc != null">
- #{assessDeduc,jdbcType=VARCHAR},
- </if>
- <if test="punishDeduc != null">
- #{punishDeduc,jdbcType=VARCHAR},
- </if>
- <if test="gsbx != null">
- #{gsbx,jdbcType=VARCHAR},
- </if>
- <if test="quality != null">
- #{quality,jdbcType=VARCHAR},
- </if>
- <if test="createUser != null">
- #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="submitDate != null">
- #{submitDate,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewStatus != null">
- #{reviewStatus,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <insert id="inserBatch">
- insert into esm_salary (id, check_id, dept_id,
- dept_name, user_id, user_name,
- pay_date, user_type, ydgdgz,
- ydkhgz, yfndmbjxkhgz, gdgz,
- fdyx, nzj, hsbt, syqkk,
- rlskk, sqqt, qtfl1,
- fsqnf, qtfl2, jxjj,
- txbt, jtbt, nzgwsf,
- kqkk, yfgz, ylaobx,
- yliaobx, sybx, zfgjj,
- grsds, sfgz, standard_salary,
- surveynum, expense_reward, festival_subsidy,
- claim_assess_deduc, assess_deduc, punish_deduc,
- gsbx, quality, create_user,
- create_time, submit_date, review_status
- )
- values
- <foreach collection="esmList" item="item" separator=",">
- (
- null, #{item.checkId,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR},
- #{item.deptName,jdbcType=VARCHAR}, #{item.userId,jdbcType=VARCHAR}, #{item.userName,jdbcType=VARCHAR},
- #{item.payDate,jdbcType=TIMESTAMP}, #{item.userType,jdbcType=VARCHAR}, #{item.ydgdgz,jdbcType=VARCHAR},
- #{item.ydkhgz,jdbcType=VARCHAR}, #{item.yfndmbjxkhgz,jdbcType=VARCHAR}, #{item.gdgz,jdbcType=VARCHAR},
- #{item.fdyx,jdbcType=VARCHAR}, #{item.nzj,jdbcType=VARCHAR}, #{item.hsbt,jdbcType=VARCHAR},
- #{item.syqkk,jdbcType=VARCHAR},
- #{item.rlskk,jdbcType=VARCHAR}, #{item.sqqt,jdbcType=VARCHAR}, #{item.qtfl1,jdbcType=VARCHAR},
- #{item.fsqnf,jdbcType=VARCHAR}, #{item.qtfl2,jdbcType=VARCHAR}, #{item.jxjj,jdbcType=VARCHAR},
- #{item.txbt,jdbcType=VARCHAR}, #{item.jtbt,jdbcType=VARCHAR}, #{item.nzgwsf,jdbcType=VARCHAR},
- #{item.kqkk,jdbcType=VARCHAR}, #{item.yfgz,jdbcType=VARCHAR}, #{item.ylaobx,jdbcType=VARCHAR},
- #{item.yliaobx,jdbcType=VARCHAR}, #{item.sybx,jdbcType=VARCHAR}, #{item.zfgjj,jdbcType=VARCHAR},
- #{item.grsds,jdbcType=VARCHAR}, #{item.sfgz,jdbcType=VARCHAR}, #{item.standardSalary,jdbcType=VARCHAR},
- #{item.surveynum,jdbcType=VARCHAR}, #{item.expenseReward,jdbcType=VARCHAR},
- #{item.festivalSubsidy,jdbcType=VARCHAR},
- #{item.claimAssessDeduc,jdbcType=VARCHAR}, #{item.assessDeduc,jdbcType=VARCHAR},
- #{item.punishDeduc,jdbcType=VARCHAR},
- #{item.gsbx,jdbcType=VARCHAR}, #{item.quality,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR},
- #{item.createTime,jdbcType=TIMESTAMP}, #{item.submitDate,jdbcType=TIMESTAMP},
- #{item.reviewStatus,jdbcType=VARCHAR}
- )
- </foreach>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.ydtech.modules.esm.model.EsmSalary">
- update esm_salary
- <set>
- <if test="checkId != null">
- check_id = #{checkId,jdbcType=VARCHAR},
- </if>
- <if test="deptId != null">
- dept_id = #{deptId,jdbcType=VARCHAR},
- </if>
- <if test="deptName != null">
- dept_name = #{deptName,jdbcType=VARCHAR},
- </if>
- <if test="userId != null">
- user_id = #{userId,jdbcType=VARCHAR},
- </if>
- <if test="userName != null">
- user_name = #{userName,jdbcType=VARCHAR},
- </if>
- <if test="payDate != null">
- pay_date = #{payDate,jdbcType=TIMESTAMP},
- </if>
- <if test="userType != null">
- user_type = #{userType,jdbcType=VARCHAR},
- </if>
- <if test="ydgdgz != null">
- ydgdgz = #{ydgdgz,jdbcType=VARCHAR},
- </if>
- <if test="ydkhgz != null">
- ydkhgz = #{ydkhgz,jdbcType=VARCHAR},
- </if>
- <if test="yfndmbjxkhgz != null">
- yfndmbjxkhgz = #{yfndmbjxkhgz,jdbcType=VARCHAR},
- </if>
- <if test="gdgz != null">
- gdgz = #{gdgz,jdbcType=VARCHAR},
- </if>
- <if test="fdyx != null">
- fdyx = #{fdyx,jdbcType=VARCHAR},
- </if>
- <if test="nzj != null">
- nzj = #{nzj,jdbcType=VARCHAR},
- </if>
- <if test="hsbt != null">
- hsbt = #{hsbt,jdbcType=VARCHAR},
- </if>
- <if test="syqkk != null">
- syqkk = #{syqkk,jdbcType=VARCHAR},
- </if>
- <if test="rlskk != null">
- rlskk = #{rlskk,jdbcType=VARCHAR},
- </if>
- <if test="sqqt != null">
- sqqt = #{sqqt,jdbcType=VARCHAR},
- </if>
- <if test="qtfl1 != null">
- qtfl1 = #{qtfl1,jdbcType=VARCHAR},
- </if>
- <if test="fsqnf != null">
- fsqnf = #{fsqnf,jdbcType=VARCHAR},
- </if>
- <if test="qtfl2 != null">
- qtfl2 = #{qtfl2,jdbcType=VARCHAR},
- </if>
- <if test="jxjj != null">
- jxjj = #{jxjj,jdbcType=VARCHAR},
- </if>
- <if test="txbt != null">
- txbt = #{txbt,jdbcType=VARCHAR},
- </if>
- <if test="jtbt != null">
- jtbt = #{jtbt,jdbcType=VARCHAR},
- </if>
- <if test="nzgwsf != null">
- nzgwsf = #{nzgwsf,jdbcType=VARCHAR},
- </if>
- <if test="kqkk != null">
- kqkk = #{kqkk,jdbcType=VARCHAR},
- </if>
- <if test="yfgz != null">
- yfgz = #{yfgz,jdbcType=VARCHAR},
- </if>
- <if test="ylaobx != null">
- ylaobx = #{ylaobx,jdbcType=VARCHAR},
- </if>
- <if test="yliaobx != null">
- yliaobx = #{yliaobx,jdbcType=VARCHAR},
- </if>
- <if test="sybx != null">
- sybx = #{sybx,jdbcType=VARCHAR},
- </if>
- <if test="zfgjj != null">
- zfgjj = #{zfgjj,jdbcType=VARCHAR},
- </if>
- <if test="grsds != null">
- grsds = #{grsds,jdbcType=VARCHAR},
- </if>
- <if test="sfgz != null">
- sfgz = #{sfgz,jdbcType=VARCHAR},
- </if>
- <if test="standardSalary != null">
- standard_salary = #{standardSalary,jdbcType=VARCHAR},
- </if>
- <if test="surveynum != null">
- surveynum = #{surveynum,jdbcType=VARCHAR},
- </if>
- <if test="expenseReward != null">
- expense_reward = #{expenseReward,jdbcType=VARCHAR},
- </if>
- <if test="festivalSubsidy != null">
- festival_subsidy = #{festivalSubsidy,jdbcType=VARCHAR},
- </if>
- <if test="claimAssessDeduc != null">
- claim_assess_deduc = #{claimAssessDeduc,jdbcType=VARCHAR},
- </if>
- <if test="assessDeduc != null">
- assess_deduc = #{assessDeduc,jdbcType=VARCHAR},
- </if>
- <if test="punishDeduc != null">
- punish_deduc = #{punishDeduc,jdbcType=VARCHAR},
- </if>
- <if test="gsbx != null">
- gsbx = #{gsbx,jdbcType=VARCHAR},
- </if>
- <if test="quality != null">
- quality = #{quality,jdbcType=VARCHAR},
- </if>
- <if test="createUser != null">
- create_user = #{createUser,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="submitDate != null">
- submit_date = #{submitDate,jdbcType=TIMESTAMP},
- </if>
- <if test="reviewStatus != null">
- review_status = #{reviewStatus,jdbcType=VARCHAR},
- </if>
- </set>
- where check_id = #{checkId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ydtech.modules.esm.model.EsmSalary">
- update esm_salary
- set check_id = #{checkId,jdbcType=VARCHAR},
- dept_id = #{deptId,jdbcType=VARCHAR},
- dept_name = #{deptName,jdbcType=VARCHAR},
- user_id = #{userId,jdbcType=VARCHAR},
- user_name = #{userName,jdbcType=VARCHAR},
- pay_date = #{payDate,jdbcType=TIMESTAMP},
- user_type = #{userType,jdbcType=VARCHAR},
- ydgdgz = #{ydgdgz,jdbcType=VARCHAR},
- ydkhgz = #{ydkhgz,jdbcType=VARCHAR},
- yfndmbjxkhgz = #{yfndmbjxkhgz,jdbcType=VARCHAR},
- gdgz = #{gdgz,jdbcType=VARCHAR},
- fdyx = #{fdyx,jdbcType=VARCHAR},
- nzj = #{nzj,jdbcType=VARCHAR},
- hsbt = #{hsbt,jdbcType=VARCHAR},
- syqkk = #{syqkk,jdbcType=VARCHAR},
- rlskk = #{rlskk,jdbcType=VARCHAR},
- sqqt = #{sqqt,jdbcType=VARCHAR},
- qtfl1 = #{qtfl1,jdbcType=VARCHAR},
- fsqnf = #{fsqnf,jdbcType=VARCHAR},
- qtfl2 = #{qtfl2,jdbcType=VARCHAR},
- jxjj = #{jxjj,jdbcType=VARCHAR},
- txbt = #{txbt,jdbcType=VARCHAR},
- jtbt = #{jtbt,jdbcType=VARCHAR},
- nzgwsf = #{nzgwsf,jdbcType=VARCHAR},
- kqkk = #{kqkk,jdbcType=VARCHAR},
- yfgz = #{yfgz,jdbcType=VARCHAR},
- ylaobx = #{ylaobx,jdbcType=VARCHAR},
- yliaobx = #{yliaobx,jdbcType=VARCHAR},
- sybx = #{sybx,jdbcType=VARCHAR},
- zfgjj = #{zfgjj,jdbcType=VARCHAR},
- grsds = #{grsds,jdbcType=VARCHAR},
- sfgz = #{sfgz,jdbcType=VARCHAR},
- standard_salary = #{standardSalary,jdbcType=VARCHAR},
- surveynum = #{surveynum,jdbcType=VARCHAR},
- expense_reward = #{expenseReward,jdbcType=VARCHAR},
- festival_subsidy = #{festivalSubsidy,jdbcType=VARCHAR},
- claim_assess_deduc = #{claimAssessDeduc,jdbcType=VARCHAR},
- assess_deduc = #{assessDeduc,jdbcType=VARCHAR},
- punish_deduc = #{punishDeduc,jdbcType=VARCHAR},
- gsbx = #{gsbx,jdbcType=VARCHAR},
- quality = #{quality,jdbcType=VARCHAR},
- create_user = #{createUser,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- submit_date = #{submitDate,jdbcType=TIMESTAMP},
- review_status = #{reviewStatus,jdbcType=VARCHAR}
- where id = #{id,jdbcType=BIGINT}
- </update>
- </mapper>
|