|
|
|
@ -78,8 +78,8 @@
|
|
|
|
|
basic_products.basicPrductRemak8,
|
|
|
|
|
basic_products.hchzsb
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
inner JOIN basic_products
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
inner JOIN basic_products
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
@ -218,11 +218,11 @@
|
|
|
|
|
basic_products.basicPrductRemak8,
|
|
|
|
|
basic_products.hchzsb
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
inner JOIN basic_products
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
left join company_product_relevance
|
|
|
|
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
|
|
|
|
inner JOIN basic_products
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
left join company_product_relevance
|
|
|
|
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
@ -361,9 +361,9 @@
|
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
|
basic_products.basicPrductRemak8,
|
|
|
|
|
basic_products.hchzsb
|
|
|
|
|
FROM basic_products
|
|
|
|
|
right JOIN basic_udirel
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
FROM basic_products
|
|
|
|
|
right JOIN basic_udirel
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
<if test="supId != null and supId != ''">
|
|
|
|
|
left join company_product_relevance on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
|
</if>
|
|
|
|
@ -390,15 +390,15 @@
|
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
|
and (
|
|
|
|
|
nameCode LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or basic_udirel.ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or basic_udirel.sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
|
or basic_udirel.ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or basic_udirel.sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thrPiId != '' and thrPiId != null">
|
|
|
|
|
and (thirdId LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
|
or thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -487,7 +487,7 @@
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select *
|
|
|
|
|
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>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -571,6 +571,16 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectGroupByNameCode" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select *
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
inner join basic_products
|
|
|
|
|
on basic_udirel.uuid = basic_products.uuid
|
|
|
|
|
where basic_products.nameCode = #{nameCode}
|
|
|
|
|
group by basic_udirel.id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="filterEntity" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select *
|
|
|
|
@ -609,12 +619,13 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id,
|
|
|
|
|
thirdId, thirdName, uuid, isUseDy, updateTime, modifyTime,
|
|
|
|
|
thirdId1, thirdId2, thirdId3, thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, manufactory, measname,
|
|
|
|
|
ybbm, sptm, isDisable, isLock
|
|
|
|
|
, mainId, mainName, lockStatus, udplatCode, isAdavence, supName, price, dispatch, groupBuy)
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id,
|
|
|
|
|
thirdId, thirdName, uuid, isUseDy, updateTime, modifyTime,
|
|
|
|
|
thirdId1, thirdId2, thirdId3, thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, manufactory,
|
|
|
|
|
measname,
|
|
|
|
|
ybbm, sptm, isDisable, isLock
|
|
|
|
|
, mainId, mainName, lockStatus, udplatCode, isAdavence, supName, price, dispatch, groupBuy)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdName},
|
|
|
|
@ -647,13 +658,15 @@
|
|
|
|
|
<insert id="insertUdiRelevanceignore" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
insert
|
|
|
|
|
ignore
|
|
|
|
|
ignore
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id,
|
|
|
|
|
thirdId, thirdName, uuid, isUseDy, updateTime,
|
|
|
|
|
thirdId1, thirdId2, thirdId3, thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, manufactory, measname,
|
|
|
|
|
ybbm, sptm, isDisable, isLock
|
|
|
|
|
, mainId, mainName, lockStatus, udplatCode, isAdavence, supName, price, modifyTime, dispatch, groupBuy)
|
|
|
|
|
(id,
|
|
|
|
|
thirdId, thirdName, uuid, isUseDy, updateTime,
|
|
|
|
|
thirdId1, thirdId2, thirdId3, thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, manufactory,
|
|
|
|
|
measname,
|
|
|
|
|
ybbm, sptm, isDisable, isLock
|
|
|
|
|
, mainId, mainName, lockStatus, udplatCode, isAdavence, supName, price, modifyTime, dispatch,
|
|
|
|
|
groupBuy)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{thirdId},
|
|
|
|
|
#{thirdName},
|
|
|
|
@ -816,7 +829,7 @@
|
|
|
|
|
thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, ybbm, sptm, manufactory,
|
|
|
|
|
measname, isDisable, mainId, mainName, udplatCode, supName, price, modifyTime,
|
|
|
|
|
dispatch, groupBuy)
|
|
|
|
|
values
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.thirdId},
|
|
|
|
|