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.
50 lines
2.5 KiB
XML
50 lines
2.5 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.udidl.admin.dao.udplat.UdplatGoodsMatchMapper">
|
||
|
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udplat.UdplatGoodsMatch">
|
||
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||
|
<result column="deviceRecordKey" jdbcType="VARCHAR" property="deviceRecordKey" />
|
||
|
<result column="deliveryGoodId" jdbcType="INTEGER" property="deliveryGoodId" />
|
||
|
<result column="medicalCode" jdbcType="VARCHAR" property="medicalCode" />
|
||
|
<result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
|
||
|
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" />
|
||
|
</resultMap>
|
||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||
|
delete from udplat_goods_match
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</delete>
|
||
|
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udplat.UdplatGoodsMatch">
|
||
|
insert into udplat_goods_match (id, deviceRecordKey, deliveryGoodId,
|
||
|
medicalCode, createTime
|
||
|
)
|
||
|
values (#{id,jdbcType=INTEGER}, #{deviceRecordKey,jdbcType=VARCHAR}, #{deliveryGoodId,jdbcType=INTEGER},
|
||
|
#{medicalCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
|
||
|
)
|
||
|
</insert>
|
||
|
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udplat.UdplatGoodsMatch">
|
||
|
update udplat_goods_match
|
||
|
set deviceRecordKey = #{deviceRecordKey,jdbcType=VARCHAR},
|
||
|
<if test="deliveryGoodId != null and deliveryGoodId !='' ">
|
||
|
deliveryGoodId = #{deliveryGoodId,jdbcType=INTEGER},
|
||
|
</if>
|
||
|
<if test="medicalCode != null and medicalCode !='' ">
|
||
|
medicalCode = #{medicalCode,jdbcType=VARCHAR},
|
||
|
</if>
|
||
|
updateTime = #{updateTime,jdbcType=TIMESTAMP}
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</update>
|
||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||
|
select id, deviceRecordKey, deliveryGoodId, medicalCode, createTime, updateTime
|
||
|
from udplat_goods_match
|
||
|
where id = #{id,jdbcType=INTEGER}
|
||
|
</select>
|
||
|
<select id="selectAll" resultMap="BaseResultMap">
|
||
|
select id, deviceRecordKey, deliveryGoodId, medicalCode, createTime, updateTime
|
||
|
from udplat_goods_match
|
||
|
</select>
|
||
|
<select id="selectByDeviceRecordKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||
|
select id, deviceRecordKey, deliveryGoodId, medicalCode, createTime, updateTime
|
||
|
from udplat_goods_match
|
||
|
where deviceRecordKey = #{id}
|
||
|
</select>
|
||
|
</mapper>
|