|  |  |  | @ -2,7 +2,55 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <!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.UdiSubProductDao"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <resultMap id="BaseResultMap" type="com.glxp.udi.admin.entity.publish.UdiSubProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="UDI_SubProductOID" property="UDI_SubProductOID" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_Created" property="SYS_Created" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_LAST_UPD" property="SYS_LAST_UPD" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_Deleted" property="SYS_Deleted" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="brandName" property="brandName" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="productOldCode" property="productOldCode" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="productCode" property="productCode" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="companyName" property="companyName" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="companyGBName" property="companyGBName" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="regcardCodes" property="regcardCodes" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="businessLicense" property="businessLicense" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="deviceType" property="deviceType" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="productType" property="productType" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="deviceKit" property="deviceKit" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="specification" property="specification" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="deviceDescription" property="deviceDescription" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="catalogNumber" property="catalogNumber" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="isMRISafety" property="isMRISafety" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="MRISafetyInfo" property="MRISafetyInfo" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="singleUse" property="singleUse" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="reuseTimes" property="reuseTimes" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="isDeviceSterile" property="isDeviceSterile" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="isSterilizationUse" property="isSterilizationUse" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="sterilizationMethod" property="sterilizationMethod" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="otherInfoLink" property="otherInfoLink" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="YBBM" property="YBBM" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="deviceEndDate" property="deviceEndDate" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="specialText" property="specialText" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="clinicalSizeText" property="clinicalSizeText" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SPTM" property="SPTM" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="Quality" property="Quality" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="QualityUnit" property="QualityUnit" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="productOldName" property="productOldName" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="productName" property="productName" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_CreatedBy" property="SYS_CreatedBy" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_REPLACEMENT" property="SYS_REPLACEMENT" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_POSTN" property="SYS_POSTN" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_DIVISION" property="SYS_DIVISION" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_ORG" property="SYS_ORG" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="SYS_LAST_UPD_BY" property="SYS_LAST_UPD_BY" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="UDI_Product_FK" property="UDI_Product_FK" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="UDI_Registration_FK" property="UDI_Registration_FK" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="UDI_Enterprise_FK" property="UDI_Enterprise_FK" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="UDI_SubProduct_FK" property="UDI_SubProduct_FK" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="status" property="status" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="customerId" property="customerId" /> | 
			
		
	
		
			
				
					|  |  |  |  |         <result column="mainProductName" property="mainProductName" /> | 
			
		
	
		
			
				
					|  |  |  |  |     </resultMap> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertUdiSubProduct" | 
			
		
	
		
			
				
					|  |  |  |  |             parameterType="com.glxp.udi.admin.entity.publish.UdiSubProductEntity"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -17,7 +65,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         otherInfoLink,YBBM,deviceEndDate,specialText, | 
			
		
	
		
			
				
					|  |  |  |  |         clinicalSizeText,SPTM,Quality,QualityUnit, | 
			
		
	
		
			
				
					|  |  |  |  |         productOldName,UDI_Product_FK,UDI_Registration_FK,UDI_Enterprise_FK,productName, | 
			
		
	
		
			
				
					|  |  |  |  |         UDI_SubProduct_FK,status) | 
			
		
	
		
			
				
					|  |  |  |  |         UDI_SubProduct_FK,status,customerId) | 
			
		
	
		
			
				
					|  |  |  |  |         values | 
			
		
	
		
			
				
					|  |  |  |  |             ( | 
			
		
	
		
			
				
					|  |  |  |  |            #{UDI_SubProductOID}, #{SYS_Created}, #{SYS_LAST_UPD}, #{SYS_Deleted}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -29,7 +77,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |            #{otherInfoLink}, #{YBBM}, #{deviceEndDate}, #{specialText}, | 
			
		
	
		
			
				
					|  |  |  |  |            #{clinicalSizeText}, #{SPTM}, #{Quality}, #{QualityUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |            #{productOldName}, #{UDI_Product_FK}, #{UDI_Registration_FK}, #{UDI_Enterprise_FK},#{productName}, | 
			
		
	
		
			
				
					|  |  |  |  |            #{UDI_SubProduct_FK},#{status} | 
			
		
	
		
			
				
					|  |  |  |  |            #{UDI_SubProduct_FK},#{status},#{customerId} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -46,7 +94,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         otherInfoLink,YBBM,deviceEndDate,specialText, | 
			
		
	
		
			
				
					|  |  |  |  |         clinicalSizeText,SPTM,Quality,QualityUnit, | 
			
		
	
		
			
				
					|  |  |  |  |         productOldName,UDI_Product_FK,UDI_Registration_FK,UDI_Enterprise_FK,productName, | 
			
		
	
		
			
				
					|  |  |  |  |         UDI_SubProduct_FK,status) | 
			
		
	
		
			
				
					|  |  |  |  |         UDI_SubProduct_FK,status,customerId) | 
			
		
	
		
			
				
					|  |  |  |  |         VALUES | 
			
		
	
		
			
				
					|  |  |  |  |         <foreach collection="udiProductEntities" item="item" index="index" | 
			
		
	
		
			
				
					|  |  |  |  |                  separator=","> | 
			
		
	
	
		
			
				
					|  |  |  | @ -60,8 +108,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.otherInfoLink}, #{item.YBBM}, #{item.deviceEndDate}, #{item.specialText}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.clinicalSizeText}, #{item.SPTM}, #{item.Quality}, #{item.QualityUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.productOldName}, #{item.UDI_Product_FK}, #{item.UDI_Registration_FK}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.UDI_Enterprise_FK},#{productName}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.UDI_SubProduct_FK},#{status} | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.UDI_Enterprise_FK},#{item.productName}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.UDI_SubProduct_FK},#{item.status},#{item.customerId} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </foreach> | 
			
		
	
	
		
			
				
					|  |  |  | @ -113,6 +161,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="UDI_Enterprise_FK != null">UDI_Enterprise_FK=#{UDI_Enterprise_FK},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="UDI_SubProduct_FK != null">UDI_SubProduct_FK=#{UDI_SubProduct_FK},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="status != null">status=#{status},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="customerId != null">customerId=#{customerId},</if> | 
			
		
	
		
			
				
					|  |  |  |  |         </set> | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE UDI_SubProductOID=#{UDI_SubProductOID} | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -121,22 +170,30 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterAll" parameterType="com.glxp.udi.admin.req.publish.FilterUdiSubProductRequest" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.udi.admin.entity.publish.UdiSubProductEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         select * | 
			
		
	
		
			
				
					|  |  |  |  |             resultMap="BaseResultMap"> | 
			
		
	
		
			
				
					|  |  |  |  |         select | 
			
		
	
		
			
				
					|  |  |  |  |         udi_subproduct.UDI_SubProductOID,udi_subproduct.SYS_Created,udi_subproduct.SYS_LAST_UPD,udi_subproduct.SYS_Deleted,udi_subproduct.brandName,udi_subproduct.productOldCode,udi_subproduct.productCode,udi_subproduct.companyName,udi_subproduct.companyGBName,udi_subproduct.regcardCodes,udi_subproduct.businessLicense,udi_subproduct.deviceType,udi_subproduct.productType,udi_subproduct.deviceKit,udi_subproduct.specification,udi_subproduct.deviceDescription,udi_subproduct.catalogNumber,udi_subproduct.isMRISafety,udi_subproduct.MRISafetyInfo,udi_subproduct.singleUse,udi_subproduct.reuseTimes,udi_subproduct.isDeviceSterile,udi_subproduct.isSterilizationUse,udi_subproduct.sterilizationMethod,udi_subproduct.otherInfoLink,udi_subproduct.YBBM,udi_subproduct.deviceEndDate,udi_subproduct.specialText,udi_subproduct.clinicalSizeText,udi_subproduct.SPTM,udi_subproduct.Quality,udi_subproduct.QualityUnit,udi_subproduct.productOldName,udi_subproduct.productName,udi_subproduct.SYS_CreatedBy,udi_subproduct.SYS_REPLACEMENT,udi_subproduct.SYS_POSTN,udi_subproduct.SYS_DIVISION,udi_subproduct.SYS_ORG,udi_subproduct.SYS_LAST_UPD_BY,udi_subproduct.UDI_Product_FK,udi_subproduct.UDI_Registration_FK,udi_subproduct.UDI_Enterprise_FK,udi_subproduct.UDI_SubProduct_FK,udi_subproduct.status,udi_subproduct.customerId, | 
			
		
	
		
			
				
					|  |  |  |  |         udi_product.productName as mainProductName | 
			
		
	
		
			
				
					|  |  |  |  |         from udi_subproduct | 
			
		
	
		
			
				
					|  |  |  |  |         INNER JOIN udi_product on udi_subproduct.UDI_Product_FK = udi_product.UDI_ProductOID | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="specification != null and specification != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and specification like concat('%',#{specification},'%') | 
			
		
	
		
			
				
					|  |  |  |  |                 and udi_subproduct.specification like concat('%',#{specification},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="status != null and status != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and status = #{status} | 
			
		
	
		
			
				
					|  |  |  |  |                 and udi_subproduct.status = #{status} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="productId != null and productId != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and UDI_Product_FK = #{productId} | 
			
		
	
		
			
				
					|  |  |  |  |                 and udi_subproduct.UDI_Product_FK = #{productId} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="customerId != null and customerId != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and udi_subproduct.customerId = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |         ORDER BY SYS_Created | 
			
		
	
		
			
				
					|  |  |  |  |         ORDER BY udi_subproduct.SYS_Created desc | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectCount" parameterType="java.lang.String" | 
			
		
	
	
		
			
				
					|  |  |  | 
 |