|  |  | @ -76,23 +76,21 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND spec = #{spec} |  |  |  |                 AND spec = #{spec} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="unionCode != '' and unionCode != null"> |  |  |  |             <if test="unionCode != '' and unionCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 or code LIKE = #{unionCode} |  |  |  |                 or code LIKE #{unionCode} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or sptm = #{unionCode} |  |  |  |                 or sptm LIKE #{unionCode} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 or ybbm LIKE |  |  |  |                 or ybbm LIKE #{unionCode} | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                        = #{unionCode} |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thirdSysFk != '' and thirdSysFk != null"> |  |  |  |             <if test="thirdSysFk != '' and thirdSysFk != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdSysFk = #{thirdSysFk} |  |  |  |                 AND thirdSysFk = #{thirdSysFk} | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="thirdSys != '' and thirdSys != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND thirdSys = #{thirdSys} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="supName != '' and supName != null"> |  |  |  |             <if test="supName != '' and supName != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND supName LIKE = #{supName} |  |  |  |                 AND supName LIKE #{supName} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="lastUpdateTime != null and lastUpdateTime != ''"> |  |  |  |             <if test="lastUpdateTime != null and lastUpdateTime != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <![CDATA[ |  |  |  |                 <![CDATA[ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') |  |  |  |                 and DATE_FORMAT(updateTime | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             , '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                             , '%Y-%m-%d %H:%i:%S') | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ]]> |  |  |  |                 ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
	
		
		
			
				
					|  |  | @ -166,12 +164,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertThrProducts" keyProperty="id" |  |  |  |     <insert id="insertThrProducts" keyProperty="id" | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.thrsys.ThrProductsEntity"> |  |  |  |             parameterType="com.glxp.api.entity.thrsys.ThrProductsEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         replace |  |  |  |         replace | 
			
		
	
		
		
			
				
					
					|  |  |  |             INTO thr_products |  |  |  |                 INTO thr_products | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         (id,code, `name`, measname, spec, registerNo, manufactory, |  |  |  |                 (id, code, `name`, measname, spec, registerNo, manufactory, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |          cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, |  |  |  |                  cplb, flbm, qxlb, ybbm, sptm, tyshxydm, zczbhhzbapzbh, ylqxzcrbarmc, ylqxzcrbarywmc, cpms, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |          thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3, price, |  |  |  |                  thirdSysFk, updateTime, supName, model, standard, qtbm, zczyxqz, remark, remark1, remark2, remark3, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |          createUser, createTime, updateUser) |  |  |  |                  price, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         values (  #{id}, |  |  |  |                  createUser, createTime, updateUser) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         values (#{id}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{code}, |  |  |  |                 #{code}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{name}, |  |  |  |                 #{name}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{measname}, |  |  |  |                 #{measname}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -349,12 +348,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity"> |  |  |  |     <select id="filterThrProductsByMainId" resultType="com.glxp.api.entity.thrsys.ThrProductsEntity"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT * |  |  |  |         SELECT * | 
			
		
	
		
		
			
				
					
					|  |  |  |         FROM thr_products |  |  |  |         FROM thr_products | 
			
		
	
		
		
			
				
					
					|  |  |  |         LEFT JOIN basic_udirel  ON thr_products.id = basic_udirel.mainId |  |  |  |                      LEFT JOIN basic_udirel ON thr_products.id = basic_udirel.mainId | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="relId != '' and relId != null"> |  |  |  |             <if test="relId != '' and relId != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND basic_udirel.id  = #{relId} |  |  |  |                 AND basic_udirel.id = #{relId} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |