|  |  | @ -36,21 +36,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         ORDER BY id DESC |  |  |  |         ORDER BY id DESC | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </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" |  |  |  |     <select id="findCompanyCertByName" parameterType="java.lang.String" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.entity.purchase.SupCertEntity"> |  |  |  |             resultType="com.glxp.api.entity.purchase.SupCertEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT * |  |  |  |         SELECT * | 
			
		
	
	
		
		
			
				
					|  |  | @ -135,21 +120,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </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 id="deleteById" parameterType="Map"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         DELETE |  |  |  |         DELETE | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM sup_cert |  |  |  |         FROM sup_cert | 
			
		
	
	
		
		
			
				
					|  |  | 
 |