|
|
|
@ -411,8 +411,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
|
select
|
|
|
|
|
IF ( (COUNT(DISTINCT IF(basic_products.bhltcjsl = 1,basic_products.bhsycjsl,0))-1) > 1,'多种包装规格',basic_products.bzgg) AS bzgg,
|
|
|
|
|
select IF((COUNT(DISTINCT IF(basic_products.bhltcjsl = 1, basic_products.bhsycjsl, 0)) - 1) > 1, '多种包装规格',
|
|
|
|
|
basic_products.bzgg) AS bzgg,
|
|
|
|
|
basic_udirel.*,
|
|
|
|
|
bht.name classifyName,
|
|
|
|
|
basic_products.originUuid,
|
|
|
|
@ -578,12 +578,16 @@
|
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
|
<if test="notCodeType != '' and notCodeType != null">
|
|
|
|
|
AND basic_udirel.notCodeType = #{notCodeType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="manuReview != '' and thirdId != null">
|
|
|
|
|
AND manuReview = #{manuReview}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND thirdId = #{thirdId}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="udplatCode != '' and udplatCode != null">
|
|
|
|
|
AND udplatCode = #{udplatCode}
|
|
|
|
|
</if>
|
|
|
|
@ -612,7 +616,8 @@
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 2">
|
|
|
|
|
AND ( (mainId = '' or mainId is null) or (basic_products.nameCode = '' or basic_products.nameCode is null)
|
|
|
|
|
AND ((mainId = '' or mainId is null) or
|
|
|
|
|
(basic_products.nameCode = '' or basic_products.nameCode is null)
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
@ -854,7 +859,7 @@
|
|
|
|
|
AND basic_products.tyshxydm = #{tyshxydm}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY cpmctymc, manufactory,zczbhhzbapzbh
|
|
|
|
|
GROUP BY cpmctymc, manufactory, zczbhhzbapzbh
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -983,7 +988,6 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByThirdId" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select *
|
|
|
|
@ -1061,7 +1065,7 @@
|
|
|
|
|
groupBuy, needCert, isStack,
|
|
|
|
|
distributeLevelCount, useLevel,
|
|
|
|
|
distributeLevel,
|
|
|
|
|
splitEnable, autoCode, distributeMaxLevel, useMaxLevel,unpackUseTime,detailSort)
|
|
|
|
|
splitEnable, autoCode, distributeMaxLevel, useMaxLevel, unpackUseTime, detailSort)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{mainId},
|
|
|
|
@ -1097,7 +1101,7 @@
|
|
|
|
|
#{useLevel},
|
|
|
|
|
#{distributeLevel},
|
|
|
|
|
#{splitEnable},
|
|
|
|
|
#{autoCode}, #{distributeMaxLevel}, #{useMaxLevel}, #{unpackUseTime},#{detailSort})
|
|
|
|
|
#{autoCode}, #{distributeMaxLevel}, #{useMaxLevel}, #{unpackUseTime}, #{detailSort})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|