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.
64 lines
2.3 KiB
XML
64 lines
2.3 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.udi.admin.dao.info.StandagencyDao">
|
|
|
|
|
|
<insert id="insertStandagency"
|
|
parameterType="com.glxp.udi.admin.entity.info.StandagencyEntity">
|
|
replace INTO udi_standagency
|
|
(
|
|
UDI_StandAgencyOID,issuingAgency,AgencyName,ProductionDate,
|
|
ExpiryDate,Lot,Serial,Validity,Checkbit,DIPrefix,Reserve1,Reserve2,Reserve3
|
|
)
|
|
values
|
|
(
|
|
#{UDI_StandAgencyOID},
|
|
#{issuingAgency},
|
|
#{AgencyName},
|
|
#{ProductionDate},
|
|
#{ExpiryDate},
|
|
#{Lot},
|
|
#{Serial},
|
|
#{Validity},
|
|
#{Checkbit},
|
|
#{DIPrefix},
|
|
#{Reserve1},
|
|
#{Reserve2},
|
|
#{Reserve3}
|
|
)
|
|
</insert>
|
|
|
|
|
|
<delete id="deleteStandagency" parameterType="com.glxp.udi.admin.req.publish.DeleteUdiDeviceCliRequest">
|
|
delete from udi_standagency where udi_standagencyOID = #{id}
|
|
</delete>
|
|
|
|
|
|
<update id="modifyStandagency" parameterType="com.glxp.udi.admin.entity.info.StandagencyEntity">
|
|
UPDATE udi_standagency
|
|
<set>
|
|
<if test="issuingAgency != null">issuingAgency=#{issuingAgency},</if>
|
|
<if test="AgencyName != null">AgencyName=#{AgencyName},</if>
|
|
<if test="ProductionDate != null">ProductionDate=#{ProductionDate},</if>
|
|
<if test="ExpiryDate != null">ExpiryDate=#{ExpiryDate},</if>
|
|
<if test="Lot != null">Lot=#{Lot},</if>
|
|
<if test="Serial != null">Serial=#{Serial},</if>
|
|
<if test="Validity != null">Validity=#{Validity},</if>
|
|
<if test="Checkbit != null">Checkbit=#{Checkbit},</if>
|
|
<if test="DIPrefix != null">DIPrefix=#{DIPrefix},</if>
|
|
<if test="Reserve1 != null">Reserve1=#{Reserve1},</if>
|
|
<if test="Reserve2 != null">Reserve2=#{Reserve2},</if>
|
|
<if test="Reserve3 != null">Reserve3=#{Reserve3},</if>
|
|
</set>
|
|
WHERE UDI_StandAgencyOID=#{UDI_StandAgencyOID}
|
|
</update>
|
|
|
|
<select id="selectAll"
|
|
resultType="com.glxp.udi.admin.entity.info.StandagencyEntity">
|
|
select * FROM udi_standagency
|
|
</select>
|
|
|
|
|
|
</mapper>
|