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.
59 lines
2.1 KiB
XML
59 lines
2.1 KiB
XML
<?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.sale.admin.dao.basic.UdiInfoImportLogDao">
|
|
|
|
<select id="filterImportLog" parameterType="com.glxp.sale.admin.req.basic.FilterUdiIpLogRequest"
|
|
resultType="com.glxp.sale.admin.entity.basic.UdiInfoImportLogEntity">
|
|
SELECT * FROM basic_products_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="fromType != '' and fromType != null">
|
|
AND fromType = #{fromType}
|
|
</if>
|
|
<if test="status != '' and status != null">
|
|
AND status = #{status}
|
|
</if>
|
|
<if test="thirdSysFk != '' and thirdSysFk != null">
|
|
AND thirdSysFk = #{thirdSysFk}
|
|
</if>
|
|
</where>
|
|
ORDER BY updateTime DESC
|
|
</select>
|
|
|
|
|
|
<insert id="insertImportLog" keyProperty="id" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoImportLogEntity">
|
|
insert INTO basic_products_import_log
|
|
(genKey,fromType,updateTime,thirdSysFk,status)
|
|
values
|
|
(
|
|
#{genKey},
|
|
#{fromType},
|
|
#{updateTime},
|
|
#{thirdSysFk},#{status}
|
|
)
|
|
</insert>
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
DELETE FROM basic_products_import_log WHERE id = #{id}
|
|
</delete>
|
|
|
|
<update id="updateImportLog" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoImportLogEntity">
|
|
UPDATE basic_products_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>
|
|
</set>
|
|
WHERE genKey = #{genKey}
|
|
</update>
|
|
|
|
</mapper> |