You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.3 KiB
XML
62 lines
2.3 KiB
XML
3 years ago
|
<?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.glxp.api.admin.dao.thrsys.ThrImportLogDao">
|
||
|
|
||
|
<select id="filterImportLog" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest"
|
||
|
resultType="com.glxp.api.admin.entity.thrsys.ThrImportLogEntity">
|
||
|
SELECT * FROM thr_import_log
|
||
|
<where>
|
||
|
<if test="genKey != '' and genKey != null">
|
||
|
AND genKey = #{genKey}
|
||
|
</if>
|
||
|
<if test="id != '' and id != null">
|
||
|
AND id = #{id}
|
||
|
</if>
|
||
|
<if test="status != '' and status != null">
|
||
|
AND status = #{status}
|
||
|
</if>
|
||
|
<if test="thirdSysFk != '' and thirdSysFk != null">
|
||
|
AND thirdSysFk = #{thirdSysFk}
|
||
|
</if>
|
||
|
<if test="importType != '' and importType != null">
|
||
|
AND importType = #{importType}
|
||
|
</if>
|
||
|
|
||
|
</where>
|
||
|
ORDER BY updateTime DESC
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<insert id="insertImportLog" keyProperty="id"
|
||
|
parameterType="com.glxp.api.admin.entity.thrsys.ThrImportLogEntity">
|
||
|
insert INTO thr_import_log
|
||
|
(genKey, fromType, updateTime, thirdSysFk, status,importType)
|
||
|
values (#{genKey},
|
||
|
#{fromType},
|
||
|
#{updateTime},
|
||
|
#{thirdSysFk}, #{status},#{importType})
|
||
|
</insert>
|
||
|
|
||
|
|
||
|
<delete id="deleteById" parameterType="Map">
|
||
|
DELETE
|
||
|
FROM thr_import_log
|
||
|
WHERE id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<update id="updateImportLog" parameterType="com.glxp.api.admin.entity.thrsys.ThrImportLogEntity">
|
||
|
UPDATE thr_import_log
|
||
|
<set>
|
||
|
<if test="genKey != null">genKey=#{genKey},</if>
|
||
|
<if test="fromType != null">fromType=#{fromType},</if>
|
||
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
||
|
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
|
||
|
<if test="status != null">status=#{status},</if>
|
||
|
<if test="remark != null">remark=#{remark},</if>
|
||
|
<if test="importType != null">importType=#{importType},</if>
|
||
|
</set>
|
||
|
WHERE genKey = #{genKey}
|
||
|
</update>
|
||
|
|
||
|
</mapper>
|