|
|
|
<?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.EnterpriseCertDao">
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertEnterpriseCert"
|
|
|
|
parameterType="com.glxp.udi.admin.entity.info.EnterpriseCertEntity">
|
|
|
|
replace INTO udi_registration
|
|
|
|
(
|
|
|
|
UDI_RegistrationOID,SYS_Created,SYS_LAST_UPD,SYS_Deleted,ZCBAH,ZCBACPMC,
|
|
|
|
ZCBACPYWMC,ZCBACPBS,YLQXGLLB,ZCBAR,SZGJ,SZSF,SZDS,SZQX,ZCBARZS,QXLB,
|
|
|
|
QXMLFLBM,DLRMC,DLRGJ,DLRSZSF,DLRSZDS,DLRSZQX,DLRZS,SMSFJ,SCDZ,ZCBAZDZDA,
|
|
|
|
CD,SCGHDQ,SCCSMC,SHFWJG,GGXH,JGJZC,productOldCode,productOldName,QXMLFLMC,
|
|
|
|
DateApproval,DateValiduntil,Scopeofapplication,Othercontents,remarks,SMSFJPath,
|
|
|
|
SMSFJFlieType,ZCBAZDZDAPath,ZCBAZDZDAFileType,Reserved1,SYS_CreatedBy,
|
|
|
|
SYS_REPLACEMENT,SYS_POSTN,SYS_DIVISION,SYS_ORG,SYS_LAST_UPD_BY,UDI_Enterprise_FK
|
|
|
|
)
|
|
|
|
values
|
|
|
|
(
|
|
|
|
#{UDI_RegistrationOID},#{SYS_Created},#{SYS_LAST_UPD},#{SYS_Deleted},#{ZCBAH},#{ZCBACPMC},#{ZCBACPYWMC},#{ZCBACPBS},
|
|
|
|
#{YLQXGLLB},#{ZCBAR},#{SZGJ},#{SZSF},#{SZDS},#{SZQX},#{ZCBARZS},#{QXLB},#{QXMLFLBM},#{DLRMC},
|
|
|
|
#{DLRGJ},#{DLRSZSF},#{DLRSZDS},#{DLRSZQX},#{DLRZS},#{SMSFJ},#{SCDZ},#{ZCBAZDZDA},#{CD},#{SCGHDQ},
|
|
|
|
#{SCCSMC},#{SHFWJG},#{GGXH},#{JGJZC},#{productOldCode},#{productOldName},#{QXMLFLMC},#{DateApproval},
|
|
|
|
#{DateValiduntil},#{Scopeofapplication},#{Othercontents},#{remarks},#{SMSFJPath},#{SMSFJFlieType},
|
|
|
|
#{ZCBAZDZDAPath},#{ZCBAZDZDAFileType},#{Reserved1},#{SYS_CreatedBy},#{SYS_REPLACEMENT},#{SYS_POSTN},
|
|
|
|
#{SYS_DIVISION},#{SYS_ORG},#{SYS_LAST_UPD_BY},#{UDI_Enterprise_FK}
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertEnterpriseCertList" keyProperty="id"
|
|
|
|
parameterType="com.glxp.udi.admin.entity.info.EnterpriseCertEntity">
|
|
|
|
replace INTO udi_registration
|
|
|
|
(
|
|
|
|
UDI_RegistrationOID,SYS_Created,SYS_LAST_UPD,SYS_Deleted,ZCBAH,ZCBACPMC,
|
|
|
|
ZCBACPYWMC,ZCBACPBS,YLQXGLLB,ZCBAR,SZGJ,SZSF,SZDS,SZQX,ZCBARZS,QXLB,
|
|
|
|
QXMLFLBM,DLRMC,DLRGJ,DLRSZSF,DLRSZDS,DLRSZQX,DLRZS,SMSFJ,SCDZ,ZCBAZDZDA,
|
|
|
|
CD,SCGHDQ,SCCSMC,SHFWJG,GGXH,JGJZC,productOldCode,productOldName,QXMLFLMC,
|
|
|
|
DateApproval,DateValiduntil,Scopeofapplication,Othercontents,remarks,SMSFJPath,
|
|
|
|
SMSFJFlieType,ZCBAZDZDAPath,ZCBAZDZDAFileType,Reserved1,SYS_CreatedBy,
|
|
|
|
SYS_REPLACEMENT,SYS_POSTN,SYS_DIVISION,SYS_ORG,SYS_LAST_UPD_BY,UDI_Enterprise_FK
|
|
|
|
)
|
|
|
|
VALUES
|
|
|
|
<foreach collection="udiProductEntities" item="item" index="index"
|
|
|
|
separator=",">
|
|
|
|
(
|
|
|
|
#{item.UDI_RegistrationOID},#{item.SYS_Created},#{item.SYS_LAST_UPD},#{item.SYS_Deleted},#{item.ZCBAH},#{item.ZCBACPMC},#{item.ZCBACPYWMC},#{item.ZCBACPBS},
|
|
|
|
#{item.YLQXGLLB},#{item.ZCBAR},#{item.SZGJ},#{item.SZSF},#{item.SZDS},#{item.SZQX},#{item.ZCBARZS},#{item.QXLB},#{item.QXMLFLBM},#{item.DLRMC},
|
|
|
|
#{item.DLRGJ},#{item.DLRSZSF},#{item.DLRSZDS},#{item.DLRSZQX},#{item.DLRZS},#{item.SMSFJ},#{item.SCDZ},#{item.ZCBAZDZDA},#{item.CD},#{item.SCGHDQ},
|
|
|
|
#{item.SCCSMC},#{item.SHFWJG},#{item.GGXH},#{item.JGJZC},#{item.productOldCode},#{item.productOldName},#{item.QXMLFLMC},#{item.DateApproval},
|
|
|
|
#{item.DateValiduntil},#{item.Scopeofapplication},#{item.Othercontents},#{item.remarks},#{item.SMSFJPath},#{item.SMSFJFlieType},
|
|
|
|
#{item.ZCBAZDZDAPath},#{item.ZCBAZDZDAFileType},#{item.Reserved1},#{item.SYS_CreatedBy},#{item.SYS_REPLACEMENT},#{item.SYS_POSTN},
|
|
|
|
#{item.SYS_DIVISION},#{item.SYS_ORG},#{item.SYS_LAST_UPD_BY},#{item.UDI_Enterprise_FK}
|
|
|
|
)
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<delete id="deleteEnterpriseCert" parameterType="com.glxp.udi.admin.req.publish.DeleteUdiDeviceCliRequest">
|
|
|
|
delete from udi_registration where udi_registrationOID = #{id}
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="modifyEnterpriseCert" parameterType="com.glxp.udi.admin.entity.info.EnterpriseCertEntity">
|
|
|
|
UPDATE udi_registration
|
|
|
|
<set>
|
|
|
|
<if test="SYS_Created != null">SYS_Created=#{SYS_Created},</if>
|
|
|
|
<if test="SYS_LAST_UPD != null">SYS_LAST_UPD=#{SYS_LAST_UPD},</if>
|
|
|
|
<if test="SYS_Deleted != null">SYS_Deleted=#{SYS_Deleted},</if>
|
|
|
|
<if test="ZCBAH != null">ZCBAH=#{ZCBAH},</if>
|
|
|
|
<if test="ZCBACPMC != null">ZCBACPMC=#{ZCBACPMC},</if>
|
|
|
|
<if test="ZCBACPYWMC != null">ZCBACPYWMC=#{ZCBACPYWMC},</if>
|
|
|
|
<if test="ZCBACPBS != null">ZCBACPBS=#{ZCBACPBS},</if>
|
|
|
|
<if test="YLQXGLLB != null">YLQXGLLB=#{YLQXGLLB},</if>
|
|
|
|
<if test="ZCBAR != null">ZCBAR=#{ZCBAR},</if>
|
|
|
|
<if test="SZGJ != null">SZGJ=#{SZGJ},</if>
|
|
|
|
<if test="SZSF != null">SZSF=#{SZSF},</if>
|
|
|
|
<if test="SZDS != null">SZDS=#{SZDS},</if>
|
|
|
|
<if test="SZQX != null">SZQX=#{SZQX},</if>
|
|
|
|
<if test="ZCBARZS != null">ZCBARZS=#{ZCBARZS},</if>
|
|
|
|
<if test="QXLB != null">QXLB=#{QXLB},</if>
|
|
|
|
<if test="QXMLFLBM != null">QXMLFLBM=#{QXMLFLBM},</if>
|
|
|
|
<if test="DLRMC != null">DLRMC=#{DLRMC},</if>
|
|
|
|
<if test="DLRGJ != null">DLRGJ=#{DLRGJ},</if>
|
|
|
|
<if test="DLRSZSF != null">DLRSZSF=#{DLRSZSF},</if>
|
|
|
|
<if test="DLRSZDS != null">DLRSZDS=#{DLRSZDS},</if>
|
|
|
|
<if test="DLRSZQX != null">DLRSZQX=#{DLRSZQX},</if>
|
|
|
|
<if test="DLRZS != null">DLRZS=#{DLRZS},</if>
|
|
|
|
<if test="SMSFJ != null">SMSFJ=#{SMSFJ},</if>
|
|
|
|
<if test="SCDZ != null">SCDZ=#{SCDZ},</if>
|
|
|
|
<if test="ZCBAZDZDA != null">ZCBAZDZDA=#{ZCBAZDZDA},</if>
|
|
|
|
<if test="CD != null">CD=#{CD},</if>
|
|
|
|
<if test="SCGHDQ != null">SCGHDQ=#{SCGHDQ},</if>
|
|
|
|
<if test="SCCSMC != null">SCCSMC=#{SCCSMC},</if>
|
|
|
|
<if test="SHFWJG != null">SHFWJG=#{SHFWJG},</if>
|
|
|
|
<if test="GGXH != null">GGXH=#{GGXH},</if>
|
|
|
|
<if test="JGJZC != null">JGJZC=#{JGJZC},</if>
|
|
|
|
<if test="productOldCode != null">productOldCode=#{productOldCode},</if>
|
|
|
|
<if test="productOldName != null">productOldName=#{productOldName},</if>
|
|
|
|
<if test="QXMLFLMC != null">QXMLFLMC=#{QXMLFLMC},</if>
|
|
|
|
<if test="DateApproval != null">DateApproval=#{DateApproval},</if>
|
|
|
|
<if test="DateValiduntil != null">DateValiduntil=#{DateValiduntil},</if>
|
|
|
|
<if test="Scopeofapplication != null">Scopeofapplication=#{Scopeofapplication},</if>
|
|
|
|
<if test="Othercontents != null">Othercontents=#{Othercontents},</if>
|
|
|
|
<if test="remarks != null">remarks=#{remarks},</if>
|
|
|
|
<if test="SMSFJPath != null">SMSFJPath=#{SMSFJPath},</if>
|
|
|
|
<if test="SMSFJFlieType != null">SMSFJFlieType=#{SMSFJFlieType},</if>
|
|
|
|
<if test="ZCBAZDZDAPath != null">ZCBAZDZDAPath=#{ZCBAZDZDAPath},</if>
|
|
|
|
<if test="ZCBAZDZDAFileType != null">ZCBAZDZDAFileType=#{ZCBAZDZDAFileType},</if>
|
|
|
|
<if test="Reserved1 != null">Reserved1=#{Reserved1},</if>
|
|
|
|
<if test="SYS_CreatedBy != null">SYS_CreatedBy=#{SYS_CreatedBy},</if>
|
|
|
|
<if test="SYS_REPLACEMENT != null">SYS_REPLACEMENT=#{SYS_REPLACEMENT},</if>
|
|
|
|
<if test="SYS_POSTN != null">SYS_POSTN=#{SYS_POSTN},</if>
|
|
|
|
<if test="SYS_DIVISION != null">SYS_DIVISION=#{SYS_DIVISION},</if>
|
|
|
|
<if test="SYS_ORG != null">SYS_ORG=#{SYS_ORG},</if>
|
|
|
|
<if test="SYS_LAST_UPD_BY != null">SYS_LAST_UPD_BY=#{SYS_LAST_UPD_BY},</if>
|
|
|
|
<if test="UDI_Enterprise_FK != null">UDI_Enterprise_FK=#{UDI_Enterprise_FK},</if>
|
|
|
|
|
|
|
|
</set>
|
|
|
|
WHERE UDI_RegistrationOID=#{UDI_RegistrationOID}
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<select id="selectBySubProductId" parameterType="java.lang.String"
|
|
|
|
resultType="com.glxp.udi.admin.entity.info.EnterpriseCertEntity">
|
|
|
|
select * FROM udi_registration WHERE UDI_SubProduct_FK = #{subProductId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterEnterpriseCerts" parameterType="com.glxp.udi.admin.req.info.FilterEnterpriseCertRequest"
|
|
|
|
resultType="com.glxp.udi.admin.entity.info.EnterpriseCertEntity">
|
|
|
|
select * FROM udi_registration
|
|
|
|
<where>
|
|
|
|
<if test="ZCBAH != null and ZCBAH != ''">
|
|
|
|
and ZCBACPMC like concat('%',#{ZCBAH},'%')
|
|
|
|
</if>
|
|
|
|
<if test="ZCBACPMC != null and ZCBACPMC != ''">
|
|
|
|
and ZCBACPMC like concat(#{ZCBACPMC},'%')
|
|
|
|
</if>
|
|
|
|
<if test="ZCBACPBS != null and ZCBACPBS != ''">
|
|
|
|
and ZCBACPBS like concat(#{ZCBACPBS},'%')
|
|
|
|
</if>
|
|
|
|
<if test="customerId != null and customerId != ''">
|
|
|
|
and UDI_Enterprise_FK = #{customerId}
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|