|
|
|
@ -17,9 +17,9 @@
|
|
|
|
|
<result column="bmbm" property="bmbm"/>
|
|
|
|
|
<result column="bmd" property="bmd"/>
|
|
|
|
|
<result column="bm" property="bm"/>
|
|
|
|
|
<result column="khsx" property="khsx"/>
|
|
|
|
|
<result column="modedatamodifier" property="modedatamodifier"/>
|
|
|
|
|
<result column="modedatamodifydatetime" property="modedatamodifydatetime"/>
|
|
|
|
|
<result column="departmentId" property="departmentId"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<!-- 表字段 -->
|
|
|
|
@ -41,6 +41,7 @@
|
|
|
|
|
, t.bmbm
|
|
|
|
|
, t.bmd
|
|
|
|
|
, t.bm
|
|
|
|
|
, t.khsx
|
|
|
|
|
, t.modedatamodifier
|
|
|
|
|
, t.modedatamodifydatetime
|
|
|
|
|
</sql>
|
|
|
|
@ -49,274 +50,21 @@
|
|
|
|
|
<select id="listAll" resultMap="BaseResultMap">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="baseColumns"/>
|
|
|
|
|
,d.id as departmentId
|
|
|
|
|
FROM uf_hkrdzb t
|
|
|
|
|
left join hrmdepartment d on t.bmbm = d.departmentcode
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 根据主键获取单条记录 -->
|
|
|
|
|
<select id="getById" resultMap="BaseResultMap" parameterType="Integer">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="baseColumns"/>
|
|
|
|
|
FROM uf_hkrdzb t
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- 条件查询 -->
|
|
|
|
|
<select id="listSome" resultMap="BaseResultMap" parameterType="com.engine.salary.remote.cbs8.po.UfHkrdzbPO">
|
|
|
|
|
SELECT
|
|
|
|
|
<include refid="baseColumns"/>
|
|
|
|
|
FROM uf_hkrdzb t
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
AND requestId = #{requestId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formmodeid != null">
|
|
|
|
|
AND formmodeid = #{formmodeid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreater != null">
|
|
|
|
|
AND modedatacreater = #{modedatacreater}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatertype != null">
|
|
|
|
|
AND modedatacreatertype = #{modedatacreatertype}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatedate != null">
|
|
|
|
|
AND modedatacreatedate = #{modedatacreatedate}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatetime != null">
|
|
|
|
|
AND modedatacreatetime = #{modedatacreatetime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modeuuid != null">
|
|
|
|
|
AND MODEUUID = #{modeuuid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formBizId != null">
|
|
|
|
|
AND form_biz_id = #{formBizId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="gsbm != null">
|
|
|
|
|
AND gsbm = #{gsbm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khbm != null">
|
|
|
|
|
AND khbm = #{khbm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khmc != null">
|
|
|
|
|
AND khmc = #{khmc}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmbm != null">
|
|
|
|
|
AND bmbm = #{bmbm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmd != null">
|
|
|
|
|
AND bmd = #{bmd}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bm != null">
|
|
|
|
|
AND bm = #{bm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifier != null">
|
|
|
|
|
AND modedatamodifier = #{modedatamodifier}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifydatetime != null">
|
|
|
|
|
AND modedatamodifydatetime = #{modedatamodifydatetime}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ids != null and ids.size()>0">
|
|
|
|
|
AND id IN
|
|
|
|
|
<foreach collection="ids" open="(" item="id" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
ORDER BY id DESC
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 插入不为NULL的字段 -->
|
|
|
|
|
<insert id="insertIgnoreNull" parameterType="com.engine.salary.remote.cbs8.po.UfHkrdzbPO">
|
|
|
|
|
INSERT INTO uf_hkrdzb
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
requestId,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formmodeid != null">
|
|
|
|
|
formmodeid,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreater != null">
|
|
|
|
|
modedatacreater,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatertype != null">
|
|
|
|
|
modedatacreatertype,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatedate != null">
|
|
|
|
|
modedatacreatedate,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatetime != null">
|
|
|
|
|
modedatacreatetime,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modeuuid != null">
|
|
|
|
|
MODEUUID,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formBizId != null">
|
|
|
|
|
form_biz_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="gsbm != null">
|
|
|
|
|
gsbm,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khbm != null">
|
|
|
|
|
khbm,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khmc != null">
|
|
|
|
|
khmc,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmbm != null">
|
|
|
|
|
bmbm,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmd != null">
|
|
|
|
|
bmd,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bm != null">
|
|
|
|
|
bm,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifier != null">
|
|
|
|
|
modedatamodifier,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifydatetime != null">
|
|
|
|
|
modedatamodifydatetime,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
#{requestId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formmodeid != null">
|
|
|
|
|
#{formmodeid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreater != null">
|
|
|
|
|
#{modedatacreater},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatertype != null">
|
|
|
|
|
#{modedatacreatertype},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatedate != null">
|
|
|
|
|
#{modedatacreatedate},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatetime != null">
|
|
|
|
|
#{modedatacreatetime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modeuuid != null">
|
|
|
|
|
#{modeuuid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formBizId != null">
|
|
|
|
|
#{formBizId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="gsbm != null">
|
|
|
|
|
#{gsbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khbm != null">
|
|
|
|
|
#{khbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khmc != null">
|
|
|
|
|
#{khmc},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmbm != null">
|
|
|
|
|
#{bmbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmd != null">
|
|
|
|
|
#{bmd},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bm != null">
|
|
|
|
|
#{bm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifier != null">
|
|
|
|
|
#{modedatamodifier},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifydatetime != null">
|
|
|
|
|
#{modedatamodifydatetime},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 更新,更新全部字段 -->
|
|
|
|
|
<update id="update" parameterType="com.engine.salary.remote.cbs8.po.UfHkrdzbPO">
|
|
|
|
|
UPDATE uf_hkrdzb
|
|
|
|
|
<set>
|
|
|
|
|
requestId=#{requestId},
|
|
|
|
|
formmodeid=#{formmodeid},
|
|
|
|
|
modedatacreater=#{modedatacreater},
|
|
|
|
|
modedatacreatertype=#{modedatacreatertype},
|
|
|
|
|
modedatacreatedate=#{modedatacreatedate},
|
|
|
|
|
modedatacreatetime=#{modedatacreatetime},
|
|
|
|
|
MODEUUID=#{modeuuid},
|
|
|
|
|
form_biz_id=#{formBizId},
|
|
|
|
|
gsbm=#{gsbm},
|
|
|
|
|
khbm=#{khbm},
|
|
|
|
|
khmc=#{khmc},
|
|
|
|
|
bmbm=#{bmbm},
|
|
|
|
|
bmd=#{bmd},
|
|
|
|
|
bm=#{bm},
|
|
|
|
|
modedatamodifier=#{modedatamodifier},
|
|
|
|
|
modedatamodifydatetime=#{modedatamodifydatetime},
|
|
|
|
|
</set>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 更新不为NULL的字段 -->
|
|
|
|
|
<update id="updateIgnoreNull" parameterType="com.engine.salary.remote.cbs8.po.UfHkrdzbPO">
|
|
|
|
|
UPDATE uf_hkrdzb
|
|
|
|
|
<set>
|
|
|
|
|
<if test="requestId != null">
|
|
|
|
|
requestId=#{requestId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formmodeid != null">
|
|
|
|
|
formmodeid=#{formmodeid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreater != null">
|
|
|
|
|
modedatacreater=#{modedatacreater},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatertype != null">
|
|
|
|
|
modedatacreatertype=#{modedatacreatertype},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatedate != null">
|
|
|
|
|
modedatacreatedate=#{modedatacreatedate},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatacreatetime != null">
|
|
|
|
|
modedatacreatetime=#{modedatacreatetime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modeuuid != null">
|
|
|
|
|
MODEUUID=#{modeuuid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="formBizId != null">
|
|
|
|
|
form_biz_id=#{formBizId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="gsbm != null">
|
|
|
|
|
gsbm=#{gsbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khbm != null">
|
|
|
|
|
khbm=#{khbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="khmc != null">
|
|
|
|
|
khmc=#{khmc},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmbm != null">
|
|
|
|
|
bmbm=#{bmbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bmd != null">
|
|
|
|
|
bmd=#{bmd},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="bm != null">
|
|
|
|
|
bm=#{bm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifier != null">
|
|
|
|
|
modedatamodifier=#{modedatamodifier},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modedatamodifydatetime != null">
|
|
|
|
|
modedatamodifydatetime=#{modedatamodifydatetime},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="DepartmentResultMap" type="com.engine.salary.remote.cbs8.po.DepartmentPO">
|
|
|
|
|
<result column="id" property="id"/>
|
|
|
|
|
<result column="name" property="name"/>
|
|
|
|
|
<result column="code" property="code"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="listDepartment" resultMap="DepartmentResultMap">
|
|
|
|
|
SELECT t.id,
|
|
|
|
|
t.departmentcode as code,
|
|
|
|
|
t.departmentname as name
|
|
|
|
|
FROM hrmdepartment t
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|