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.
spms-java/api-admin/src/main/resources/mybatis/mapper/basic/UdiInfoExportLogDao.xml

53 lines
1.9 KiB
XML

4 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.sale.admin.dao.basic.UdiInfoExportLogDao">
<select id="filterUdiInfoExportLog" parameterType="com.glxp.sale.admin.req.basic.FilterUdiEpLogRequest"
resultType="com.glxp.sale.admin.entity.basic.UdiInfoExportLogEntity">
SELECT * FROM basic_products_export_log
<where>
<if test="genKey != '' and genKey != null">
AND genKey = #{genKey}
</if>
<if test="status != '' and status != null">
AND status = #{status}
</if>
<if test="type != '' and type != null">
AND `type` = #{type}
</if>
</where>
ORDER BY updateTime DESC
</select>
<insert id="insertUdiInfoExportLog" keyProperty="id"
parameterType="com.glxp.sale.admin.entity.basic.UdiInfoExportLogEntity">
insert INTO basic_products_export_log
(genKey,updateTime,dlCount,status,filePath,remark,`type`)
values
(
#{genKey},
#{updateTime},
#{dlCount},#{status},#{filePath},#{remark},#{type}
)
</insert>
<delete id="deleteById" parameterType="Map">
DELETE FROM basic_products_export_log WHERE id = #{id}
</delete>
<update id="updateUdiInfoExportLog" parameterType="com.glxp.sale.admin.entity.basic.UdiInfoExportLogEntity">
UPDATE basic_products_export_log
<set>
<if test="updateTime != null">updateTime=#{updateTime},</if>
<if test="dlCount != null">dlCount=#{dlCount},</if>
<if test="status != null">status=#{status},</if>
<if test="filePath != null">filePath=#{filePath},</if>
<if test="remark != null">remark=#{remark},</if>
</set>
WHERE genKey = #{genKey}
</update>
</mapper>