|  |  |  | @ -36,21 +36,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         ORDER BY id DESC | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectCompanyCert" parameterType="com.glxp.api.req.purchase.FilterSupCertRequest" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.entity.purchase.SupCertEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT * FROM sup_cert | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="customerId != null and customerId != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and customerId = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="name != null and name != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and #{name} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="findCompanyCertByName" parameterType="java.lang.String" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.entity.purchase.SupCertEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT * | 
			
		
	
	
		
			
				
					|  |  |  | @ -135,21 +120,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertCompanyCert" parameterType="com.glxp.api.entity.purchase.SupCertEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         INSERT INTO sup_cert( `name`, customerId, filePath, remark, createTime, updateTime | 
			
		
	
		
			
				
					|  |  |  |  |                             , vailDate, expireDate, `type`, manufacturerIdFk, productIdFk, code, auditStatus | 
			
		
	
		
			
				
					|  |  |  |  |                             , auditComment, status) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{name}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{customerId}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{filePath}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{remark}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{createTime}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{updateTime}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{vailDate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{expireDate}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{type}, #{manufacturerIdFk}, #{productIdFk}, #{code}, #{auditStatus}, #{auditComment}, #{status}) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <delete id="deleteById" parameterType="Map"> | 
			
		
	
		
			
				
					|  |  |  |  |         DELETE | 
			
		
	
		
			
				
					|  |  |  |  |         FROM sup_cert | 
			
		
	
	
		
			
				
					|  |  |  | 
 |