|  |  |  | @ -1290,17 +1290,18 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         replace | 
			
		
	
		
			
				
					|  |  |  |  |             INTO basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |         (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |          isLock, | 
			
		
	
		
			
				
					|  |  |  |  |          lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
		
	
		
			
				
					|  |  |  |  |          updateTime, modifyTime, | 
			
		
	
		
			
				
					|  |  |  |  |          createUser, | 
			
		
	
		
			
				
					|  |  |  |  |          updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |          remark, useExpireTime, `dispatch`, | 
			
		
	
		
			
				
					|  |  |  |  |          groupBuy, needCert, isStack, distributeLevelDi, | 
			
		
	
		
			
				
					|  |  |  |  |          distributeLevelUnit, distributeLevelCount, useLevelDi, useLevelUnit, useLeverCount, useLevel, distributeLevel, | 
			
		
	
		
			
				
					|  |  |  |  |          splitEnable, autoCode, distributeMaxLevel, useMaxLevel) | 
			
		
	
		
			
				
					|  |  |  |  |                 INTO basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |                 (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |                  isLock, | 
			
		
	
		
			
				
					|  |  |  |  |                  lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
		
	
		
			
				
					|  |  |  |  |                  updateTime, modifyTime, | 
			
		
	
		
			
				
					|  |  |  |  |                  createUser, | 
			
		
	
		
			
				
					|  |  |  |  |                  updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |                  remark, useExpireTime, `dispatch`, | 
			
		
	
		
			
				
					|  |  |  |  |                  groupBuy, needCert, isStack, | 
			
		
	
		
			
				
					|  |  |  |  |                  distributeLevelCount, useLevel, | 
			
		
	
		
			
				
					|  |  |  |  |                  distributeLevel, | 
			
		
	
		
			
				
					|  |  |  |  |                  splitEnable, autoCode, distributeMaxLevel, useMaxLevel) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{id}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{uuid}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{mainId}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -1332,13 +1333,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 #{groupBuy}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{needCert}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{isStack}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{distributeLevelDi}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{distributeLevelUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{distributeLevelCount}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{useLevelDi} | 
			
		
	
		
			
				
					|  |  |  |  |                    , | 
			
		
	
		
			
				
					|  |  |  |  |                 #{useLevelUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{useLeverCount}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{useLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{distributeLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{splitEnable}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -1348,15 +1343,15 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertUdiRelevanceignore" | 
			
		
	
		
			
				
					|  |  |  |  |             parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         insert | 
			
		
	
		
			
				
					|  |  |  |  |             ignore | 
			
		
	
		
			
				
					|  |  |  |  |                 ignore | 
			
		
	
		
			
				
					|  |  |  |  |         INTO basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |         (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |          isLock, | 
			
		
	
		
			
				
					|  |  |  |  |          lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
		
	
		
			
				
					|  |  |  |  |          updateTime, modifyTime, | 
			
		
	
		
			
				
					|  |  |  |  |          createUser, | 
			
		
	
		
			
				
					|  |  |  |  |          updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |          remark, useExpireTime, dispatch, groupBuy, needCert, isStack) | 
			
		
	
		
			
				
					|  |  |  |  |                 (id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, | 
			
		
	
		
			
				
					|  |  |  |  |                  isLock, | 
			
		
	
		
			
				
					|  |  |  |  |                  lockStatus, isAdavence, purType, attributeType, hcType, useMuti, useNum, supName, createTime, | 
			
		
	
		
			
				
					|  |  |  |  |                  updateTime, modifyTime, | 
			
		
	
		
			
				
					|  |  |  |  |                  createUser, | 
			
		
	
		
			
				
					|  |  |  |  |                  updateUser, | 
			
		
	
		
			
				
					|  |  |  |  |                  remark, useExpireTime, dispatch, groupBuy, needCert, isStack) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{id}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{uuid}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{mainId}, | 
			
		
	
	
		
			
				
					|  |  |  | @ -1527,24 +1522,9 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="splitEnable != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 splitEnable=#{splitEnable}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="distributeLevelDi != '' and distributeLevelDi != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 distributeLevelDi=#{distributeLevelDi}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="distributeLevelUnit != '' and distributeLevelUnit != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 distributeLevelUnit=#{distributeLevelUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="distributeLevelCount != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 distributeLevelCount=#{distributeLevelCount}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="useLevelDi != '' and useLevelDi != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 useLevelDi=#{useLevelDi}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="useLevelUnit != '' and useLevelUnit != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 useLevelUnit=#{useLevelUnit}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="useLeverCount != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 useLeverCount=#{useLeverCount}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="useLevel != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 useLevel=#{useLevel}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
	
		
			
				
					|  |  |  | @ -1704,7 +1684,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectProductNameByRelId" resultType="java.lang.String"> | 
			
		
	
		
			
				
					|  |  |  |  |         select basic_products.cpmctymc | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |                  left join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      left join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         where basic_udirel.id = #{relId} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -1733,7 +1713,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="selectRelIdByNameCode" resultType="java.lang.String"> | 
			
		
	
		
			
				
					|  |  |  |  |         select basic_udirel.id | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_udirel | 
			
		
	
		
			
				
					|  |  |  |  |                  inner join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      inner join basic_products on basic_udirel.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         where basic_products.nameCode = #{nameCode} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -2095,8 +2075,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.mjfs, | 
			
		
	
		
			
				
					|  |  |  |  |                basic_products.categoryName | 
			
		
	
		
			
				
					|  |  |  |  |         from basic_udirel AS bu | 
			
		
	
		
			
				
					|  |  |  |  |                  LEFT JOIN basic_products | 
			
		
	
		
			
				
					|  |  |  |  |                            ON bu.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |                      LEFT JOIN basic_products | 
			
		
	
		
			
				
					|  |  |  |  |                 ON bu.uuid = basic_products.uuid | 
			
		
	
		
			
				
					|  |  |  |  |         where basic_products.nameCode = #{nameCode} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |