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.
65 lines
2.1 KiB
XML
65 lines
2.1 KiB
XML
5 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.udi.admin.dao.publish.UdiDeviceCliDao">
|
||
|
|
||
|
|
||
|
<insert id="insertUdiDeviceCli"
|
||
|
parameterType="com.glxp.udi.admin.entity.publish.UdiDeviceCliEntity">
|
||
|
replace INTO udi_devicecli
|
||
|
(UDI_DeviceCliOID,LCSYCCLX,CCZ,CCDW,UDI_SubProduct_FK)
|
||
|
values
|
||
|
(
|
||
|
#{UDI_DeviceCliOID},
|
||
|
#{LCSYCCLX},
|
||
|
#{CCZ},
|
||
|
#{CCDW},
|
||
|
#{UDI_SubProduct_FK}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
|
||
|
<insert id="insertUdiDeviceCliList" keyProperty="id"
|
||
|
parameterType="com.glxp.udi.admin.entity.publish.UdiDeviceCliEntity">
|
||
|
replace INTO udi_devicecli
|
||
|
(UDI_DeviceCliOID,LCSYCCLX,CCZ,CCDW,UDI_SubProduct_FK)
|
||
|
VALUES
|
||
|
<foreach collection="udiDeviceCliEntities" item="item" index="index"
|
||
|
separator=",">
|
||
|
(
|
||
|
#{item.UDI_DeviceCliOID},
|
||
|
#{item.LCSYCCLX},
|
||
|
#{item.CCZ},
|
||
|
#{item.CCDW},
|
||
|
#{item.UDI_SubProduct_FK}
|
||
|
)
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
|
||
|
<delete id="deleteUdiDeviceCli" parameterType="com.glxp.udi.admin.req.publish.DeleteUdiDeviceCliRequest">
|
||
|
delete from udi_devicecli where UDI_DeviceCliOID = #{id}
|
||
|
</delete>
|
||
|
|
||
|
|
||
|
<update id="modifyUdiDeviceCli" parameterType="com.glxp.udi.admin.entity.publish.UdiDeviceCliEntity">
|
||
|
UPDATE udi_devicecli
|
||
|
<set>
|
||
|
<if test="LCSYCCLX != null">LCSYCCLX=#{LCSYCCLX},</if>
|
||
|
<if test="CCZ != null">`CCZ`=#{CCZ},</if>
|
||
|
<if test="CCDW != null">CCDW=#{CCDW},</if>
|
||
|
<if test="UDI_SubProduct_FK != null">`UDI_SubProduct_FK`=#{UDI_SubProduct_FK},</if>
|
||
|
</set>
|
||
|
WHERE UDI_DeviceCliOID=#{UDI_DeviceCliOID}
|
||
|
</update>
|
||
|
|
||
|
<select id="selectBySubProductId" parameterType="java.lang.String"
|
||
|
resultType="com.glxp.udi.admin.entity.publish.UdiDeviceCliEntity">
|
||
|
select * FROM udi_devicecli WHERE UDI_SubProduct_FK = #{subProductId}
|
||
|
</select>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</mapper>
|