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.
udi-wms-java/src/main/resources/mybatis/mapper/sync/BasicExportTimeDao.xml

47 lines
1.6 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.api.dao.sync.BasicExportTimeDao">
<select id="filterExportStatus" parameterType="com.glxp.api.req.sync.BasicExportTimeRequest"
resultType="com.glxp.api.entity.sync.BasicExportStatusTimeEntity">
select *
from basic_export_status_time
<where>
<if test="id != '' and id != null">
and id = #{id}
</if>
<if test="key != '' and key != null">
and `key` = #{key}
</if>
</where>
</select>
<insert id="insertExportStatus"
parameterType="com.glxp.api.entity.sync.BasicExportStatusTimeEntity">
replace
INTO basic_export_status_time(`key`, lastUpdateTime, remark)
values (#{key},
#{lastUpdateTime},
#{remark})
</insert>
<update id="updateExportStatus" parameterType="com.glxp.api.entity.sync.BasicExportStatusTimeEntity">
UPDATE basic_export_status_time
<trim prefix="set" suffixOverrides=",">
<if test="lastUpdateTime != null">
lastUpdateTime=#{lastUpdateTime},
</if>
<if test="remark != null">
remark=#{remark},
</if>
</trim>
WHERE `key` = #{key}
</update>
<delete id="deleteById" parameterType="Map">
DELETE
FROM basic_export_status_time
WHERE id = #{id}
</delete>
</mapper>