|
|
@ -12,7 +12,10 @@
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,
|
|
|
|
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
|
|
|
|
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
|
|
|
|
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,basic_udirel.price,
|
|
|
|
basic_udirel.isAdavence,basic_udirel.mainId,basic_products.allowNoBatch,
|
|
|
|
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
|
|
|
|
basic_udirel.price,
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
|
basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
@ -85,7 +88,6 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
ORDER BY updateTime DESC
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
@ -95,9 +97,11 @@
|
|
|
|
basic_udirel.thirdId,basic_udirel.thirdName,basic_udirel.isUseDy,
|
|
|
|
basic_udirel.thirdId,basic_udirel.thirdName,basic_udirel.isUseDy,
|
|
|
|
basic_udirel.thirdId1,basic_udirel.thirdId2,basic_udirel.thirdId3,basic_udirel.thirdId4,
|
|
|
|
basic_udirel.thirdId1,basic_udirel.thirdId2,basic_udirel.thirdId3,basic_udirel.thirdId4,
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.ybbm,basic_udirel.sptm,basic_udirel.price,
|
|
|
|
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
|
|
|
|
basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,basic_udirel.udplatCode,
|
|
|
|
basic_udirel.isAdavence,basic_udirel.mainId,basic_udirel.allowNoBatch,basic_udirel.price,
|
|
|
|
basic_udirel.isAdavence,basic_udirel.mainId,basic_products.allowNoBatch,
|
|
|
|
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjsl,basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
|
basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
@ -186,8 +190,10 @@
|
|
|
|
basic_udirel.thirdId1,basic_udirel.thirdId2,basic_udirel.thirdId3,basic_udirel.thirdId4,
|
|
|
|
basic_udirel.thirdId1,basic_udirel.thirdId2,basic_udirel.thirdId3,basic_udirel.thirdId4,
|
|
|
|
basic_udirel.ybbm,basic_udirel.sptm,basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,
|
|
|
|
basic_udirel.ybbm,basic_udirel.sptm,basic_udirel.isDisable, basic_udirel.isLock,basic_udirel.lockStatus,
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.udplatCode,basic_udirel.allowNoBatch,
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.udplatCode,basic_products.allowNoBatch,
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,basic_products.bhxjsl,basic_udirel.price,
|
|
|
|
basic_products.allowNoExpire,basic_products.allowNoProduct,
|
|
|
|
|
|
|
|
basic_udirel.price,
|
|
|
|
|
|
|
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
|
basic_products.bhzxxsbzsl,basic_products.zxxsbzbhsydysl,basic_products.bhxjcpbm,basic_products.bzcj,
|
|
|
|
basic_products.addType,basic_products.deviceRecordKey,basic_products.cpmctymc,basic_products.cplb,
|
|
|
|
basic_products.addType,basic_products.deviceRecordKey,basic_products.cpmctymc,basic_products.cplb,
|
|
|
|
basic_products.flbm,basic_products.ggxh,basic_products.qxlb,basic_products.tyshxydm,basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.flbm,basic_products.ggxh,basic_products.qxlb,basic_products.tyshxydm,basic_products.ylqxzcrbarmc,
|
|
|
@ -257,7 +263,7 @@
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
AND thirdId is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
AND mainId is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 4">
|
|
|
|
<if test="filterType != null and filterType == 4">
|
|
|
|
AND thirdId1 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
AND thirdId1 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
@ -271,6 +277,7 @@
|
|
|
|
<if test="filterType != null and filterType == 7">
|
|
|
|
<if test="filterType != null and filterType == 7">
|
|
|
|
AND thirdId4 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
AND thirdId4 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<if test="filterType != null and filterType == 10">
|
|
|
|
<if test="filterType != null and filterType == 10">
|
|
|
|
AND basic_udirel.updateTime is NULL
|
|
|
|
AND basic_udirel.updateTime is NULL
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -301,14 +308,6 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectById" parameterType="java.lang.String"
|
|
|
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
|
|
|
select *
|
|
|
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByOrigiUuid" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
<select id="selectByOrigiUuid" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
select * from basic_udirel INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid
|
|
|
|
select * from basic_udirel INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid
|
|
|
@ -329,6 +328,12 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectById" parameterType="java.lang.String"
|
|
|
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
|
|
|
select *
|
|
|
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
<select id="selectByThirdId" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
<select id="selectByThirdId" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
select * FROM basic_udirel
|
|
|
|
select * FROM basic_udirel
|
|
|
@ -393,7 +398,7 @@
|
|
|
|
(id,
|
|
|
|
(id,
|
|
|
|
thirdId,thirdName,uuid,isUseDy,updateTime,
|
|
|
|
thirdId,thirdName,uuid,isUseDy,updateTime,
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch,price
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,price
|
|
|
|
)
|
|
|
|
)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
(
|
|
|
|
(
|
|
|
@ -422,7 +427,7 @@
|
|
|
|
#{lockStatus},
|
|
|
|
#{lockStatus},
|
|
|
|
#{udplatCode},
|
|
|
|
#{udplatCode},
|
|
|
|
#{isAdavence},
|
|
|
|
#{isAdavence},
|
|
|
|
#{supName},#{allowNoBatch},#{price}
|
|
|
|
#{supName},#{price}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -434,7 +439,7 @@
|
|
|
|
(id,
|
|
|
|
(id,
|
|
|
|
thirdId,thirdName,uuid,isUseDy,updateTime,
|
|
|
|
thirdId,thirdName,uuid,isUseDy,updateTime,
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,allowNoBatch,price
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,price
|
|
|
|
)
|
|
|
|
)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
(
|
|
|
|
(
|
|
|
@ -463,9 +468,11 @@
|
|
|
|
#{lockStatus},
|
|
|
|
#{lockStatus},
|
|
|
|
#{udplatCode},
|
|
|
|
#{udplatCode},
|
|
|
|
#{isAdavence},
|
|
|
|
#{isAdavence},
|
|
|
|
#{supName},#{allowNoBatch},#{price}
|
|
|
|
#{supName},
|
|
|
|
|
|
|
|
#{price}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
DELETE
|
|
|
|
DELETE
|
|
|
|
FROM basic_udirel
|
|
|
|
FROM basic_udirel
|
|
|
@ -511,7 +518,6 @@
|
|
|
|
<if test="udplatCode != null">udplatCode=#{udplatCode},</if>
|
|
|
|
<if test="udplatCode != null">udplatCode=#{udplatCode},</if>
|
|
|
|
<if test="isAdavence != null">isAdavence=#{isAdavence},</if>
|
|
|
|
<if test="isAdavence != null">isAdavence=#{isAdavence},</if>
|
|
|
|
<if test="supName != null">supName=#{supName},</if>
|
|
|
|
<if test="supName != null">supName=#{supName},</if>
|
|
|
|
<if test="allowNoBatch != null">allowNoBatch=#{allowNoBatch},</if>
|
|
|
|
|
|
|
|
<if test="price != null">price=#{price},</if>
|
|
|
|
<if test="price != null">price=#{price},</if>
|
|
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
@ -536,7 +542,7 @@
|
|
|
|
<insert id="importUdiRelevance" parameterType="java.util.List">
|
|
|
|
<insert id="importUdiRelevance" parameterType="java.util.List">
|
|
|
|
replace into basic_udirel (id, thirdId, thirdName, uuid, isUseDy, updateTime, thirdId1, thirdId2, thirdId3,
|
|
|
|
replace into basic_udirel (id, thirdId, thirdName, uuid, isUseDy, updateTime, thirdId1, thirdId2, thirdId3,
|
|
|
|
thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, ybbm, sptm, manufactory,
|
|
|
|
thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, ybbm, sptm, manufactory,
|
|
|
|
measname, isDisable, mainId, mainName, udplatCode,supName,allowNoBatch,price)
|
|
|
|
measname, isDisable, mainId, mainName, udplatCode,supName,price)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
(#{item.id},
|
|
|
|
(#{item.id},
|
|
|
@ -560,7 +566,7 @@
|
|
|
|
#{item.isDisable},
|
|
|
|
#{item.isDisable},
|
|
|
|
#{item.mainId},
|
|
|
|
#{item.mainId},
|
|
|
|
#{item.mainName},
|
|
|
|
#{item.mainName},
|
|
|
|
#{item.udplatCode},#{item.supName},#{item.allowNoBatch},#{item.price})
|
|
|
|
#{item.udplatCode},#{item.supName},#{item.price})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|