|
|
@ -5,60 +5,60 @@
|
|
|
|
<select id="filterUdiRelevance" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
<select id="filterUdiRelevance" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
select basic_udirel.*,
|
|
|
|
select basic_udirel.*,
|
|
|
|
basic_udirel.id relId,
|
|
|
|
basic_udirel.id relId,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
FROM basic_udirel
|
|
|
|
FROM basic_udirel
|
|
|
|
inner JOIN basic_products
|
|
|
|
inner JOIN basic_products
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
@ -124,64 +124,64 @@
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
select basic_udirel.*,
|
|
|
|
select basic_udirel.*,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8,
|
|
|
|
basic_products.basicPrductRemak8,
|
|
|
|
company_product_relevance.unitFk,
|
|
|
|
company_product_relevance.unitFk,
|
|
|
|
basic_corp.name companyName
|
|
|
|
basic_corp.name companyName
|
|
|
|
FROM basic_udirel
|
|
|
|
FROM basic_udirel
|
|
|
|
inner JOIN basic_products
|
|
|
|
inner JOIN basic_products
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
left join company_product_relevance
|
|
|
|
left join company_product_relevance
|
|
|
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
|
|
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
@ -239,65 +239,71 @@
|
|
|
|
<if test="uniqueNameCode != '' and uniqueNameCode != null">
|
|
|
|
<if test="uniqueNameCode != '' and uniqueNameCode != null">
|
|
|
|
AND nameCode = #{uniqueNameCode}
|
|
|
|
AND nameCode = #{uniqueNameCode}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="relIds != null and relIds.size() > 0">
|
|
|
|
|
|
|
|
and basic_udirel.id in
|
|
|
|
|
|
|
|
<foreach collection="relIds" item="item" index="index" separator="," open="(" close=")">
|
|
|
|
|
|
|
|
#{item}
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
<select id="filterUdiGp" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
select basic_udirel.*,
|
|
|
|
select basic_udirel.*,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
FROM basic_products
|
|
|
|
FROM basic_products
|
|
|
|
inner JOIN basic_udirel
|
|
|
|
inner JOIN basic_udirel
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
@ -316,19 +322,19 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
and (
|
|
|
|
and (
|
|
|
|
nameCode LIKE concat('%', #{unionCode}, '%')
|
|
|
|
nameCode LIKE concat('%', #{nameCode}, '%')
|
|
|
|
or ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
or ybbm LIKE concat('%', #{nameCode}, '%')
|
|
|
|
or sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
or sptm LIKE concat('%', #{nameCode}, '%'))
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="isDisable == false">
|
|
|
|
<if test="isDisable == false">
|
|
|
|
AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false)
|
|
|
|
AND (basic_udirel.isDisable is null or basic_udirel.isDisable = false)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="thrPiId != '' and thrPiId != null">
|
|
|
|
<if test="thrPiId != '' and thrPiId != null">
|
|
|
|
and (thirdId LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
and (thirdId LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
@ -347,7 +353,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 1">
|
|
|
|
<if test="filterType != null and filterType == 1">
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 2">
|
|
|
|
<if test="filterType != null and filterType == 2">
|
|
|
@ -392,58 +398,58 @@
|
|
|
|
<select id="contrastJoinSelect" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
<select id="contrastJoinSelect" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
select basic_udirel.*,
|
|
|
|
select basic_udirel.*,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
from basic_udirel
|
|
|
|
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>
|
|
|
|
<where>
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
@ -569,66 +575,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
replace
|
|
|
|
replace
|
|
|
|
INTO basic_udirel
|
|
|
|
INTO basic_udirel
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
remark)
|
|
|
|
remark)
|
|
|
|
values (#{id},
|
|
|
|
values (#{id},
|
|
|
|
#{uuid},
|
|
|
|
#{uuid},
|
|
|
|
#{mainId},
|
|
|
|
#{mainId},
|
|
|
|
#{thirdId},
|
|
|
|
#{thirdId},
|
|
|
|
#{thirdId1},
|
|
|
|
#{thirdId1},
|
|
|
|
#{thirdId2},
|
|
|
|
#{thirdId2},
|
|
|
|
#{thirdId3},
|
|
|
|
#{thirdId3},
|
|
|
|
#{thirdId4},
|
|
|
|
#{thirdId4},
|
|
|
|
#{udplatCode},
|
|
|
|
#{udplatCode},
|
|
|
|
#{isUseDy},
|
|
|
|
#{isUseDy},
|
|
|
|
#{isDisable},
|
|
|
|
#{isDisable},
|
|
|
|
#{isLock},
|
|
|
|
#{isLock},
|
|
|
|
#{lockStatus},
|
|
|
|
#{lockStatus},
|
|
|
|
#{isAdavence},
|
|
|
|
#{isAdavence},
|
|
|
|
#{useMuti},
|
|
|
|
#{useMuti},
|
|
|
|
#{useNum},
|
|
|
|
#{useNum},
|
|
|
|
#{supName},
|
|
|
|
#{supName},
|
|
|
|
#{createTime},
|
|
|
|
#{createTime},
|
|
|
|
#{updateTime},
|
|
|
|
#{updateTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{createUser},
|
|
|
|
#{createUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{remark})
|
|
|
|
#{remark})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevanceignore" keyProperty="id"
|
|
|
|
<insert id="insertUdiRelevanceignore" keyProperty="id"
|
|
|
|
parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
parameterType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
|
|
|
insert
|
|
|
|
insert
|
|
|
|
ignore
|
|
|
|
ignore
|
|
|
|
INTO basic_udirel
|
|
|
|
INTO basic_udirel
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
remark)
|
|
|
|
remark)
|
|
|
|
values (#{id},
|
|
|
|
values (#{id},
|
|
|
|
#{uuid},
|
|
|
|
#{uuid},
|
|
|
|
#{mainId},
|
|
|
|
#{mainId},
|
|
|
|
#{thirdId},
|
|
|
|
#{thirdId},
|
|
|
|
#{thirdId1},
|
|
|
|
#{thirdId1},
|
|
|
|
#{thirdId2},
|
|
|
|
#{thirdId2},
|
|
|
|
#{thirdId3},
|
|
|
|
#{thirdId3},
|
|
|
|
#{thirdId4},
|
|
|
|
#{thirdId4},
|
|
|
|
#{udplatCode},
|
|
|
|
#{udplatCode},
|
|
|
|
#{isUseDy},
|
|
|
|
#{isUseDy},
|
|
|
|
#{isDisable},
|
|
|
|
#{isDisable},
|
|
|
|
#{isLock},
|
|
|
|
#{isLock},
|
|
|
|
#{lockStatus},
|
|
|
|
#{lockStatus},
|
|
|
|
#{isAdavence},
|
|
|
|
#{isAdavence},
|
|
|
|
#{useMuti},
|
|
|
|
#{useMuti},
|
|
|
|
#{useNum},
|
|
|
|
#{useNum},
|
|
|
|
#{supName},
|
|
|
|
#{supName},
|
|
|
|
#{createTime},
|
|
|
|
#{createTime},
|
|
|
|
#{updateTime},
|
|
|
|
#{updateTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{modifyTime},
|
|
|
|
#{createUser},
|
|
|
|
#{createUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{updateUser},
|
|
|
|
#{remark})
|
|
|
|
#{remark})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
@ -742,96 +748,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="importUdiRelevance" parameterType="java.util.List">
|
|
|
|
<insert id="importUdiRelevance" parameterType="java.util.List">
|
|
|
|
replace
|
|
|
|
replace
|
|
|
|
into basic_udirel
|
|
|
|
into basic_udirel
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
(id, uuid, mainId, thirdId, thirdId1, thirdId2, thirdId3, thirdId4, udplatCode, isUseDy, isDisable, isLock,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
lockStatus, isAdavence, useMuti, useNum, supName, createTime, updateTime, modifyTime, createUser, updateUser,
|
|
|
|
remark)
|
|
|
|
remark)
|
|
|
|
values
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
({item.id},
|
|
|
|
(#{item.id},
|
|
|
|
{item.uuid},
|
|
|
|
#{item.uuid},
|
|
|
|
{item.mainId},
|
|
|
|
#{item.mainId},
|
|
|
|
{item.thirdId},
|
|
|
|
#{item.thirdId},
|
|
|
|
{item.thirdId1},
|
|
|
|
#{item.thirdId1},
|
|
|
|
{item.thirdId2},
|
|
|
|
#{item.thirdId2},
|
|
|
|
{item.thirdId3},
|
|
|
|
#{item.thirdId3},
|
|
|
|
{item.thirdId4},
|
|
|
|
#{item.thirdId4},
|
|
|
|
{item.udplatCode},
|
|
|
|
#{item.udplatCode},
|
|
|
|
{item.isUseDy},
|
|
|
|
#{item.isUseDy},
|
|
|
|
{item.isDisable},
|
|
|
|
#{item.isDisable},
|
|
|
|
{item.isLock},
|
|
|
|
#{item.isLock},
|
|
|
|
{item.lockStatus},
|
|
|
|
#{item.lockStatus},
|
|
|
|
{item.isAdavence},
|
|
|
|
#{item.isAdavence},
|
|
|
|
{item.useMuti},
|
|
|
|
#{item.useMuti},
|
|
|
|
{item.useNum},
|
|
|
|
#{item.useNum},
|
|
|
|
{item.supName},
|
|
|
|
#{item.supName},
|
|
|
|
{item.createTime},
|
|
|
|
#{item.createTime},
|
|
|
|
{item.updateTime},
|
|
|
|
#{item.updateTime},
|
|
|
|
{item.modifyTime},
|
|
|
|
#{item.modifyTime},
|
|
|
|
{item.createUser},
|
|
|
|
#{item.createUser},
|
|
|
|
{item.updateUser},
|
|
|
|
#{item.updateUser},
|
|
|
|
{item.remark})
|
|
|
|
# {item.remark})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectGroupByNameCode" parameterType="java.lang.String"
|
|
|
|
<select id="selectGroupByNameCode" parameterType="java.lang.String"
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
|
|
|
select basic_udirel.*,
|
|
|
|
select basic_udirel.*,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.originUuid,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.nameCode,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.deviceRecordKey,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packRatio,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packUnit,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.packLevel,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhxjsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.bhzxxsbzsl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.zxxsbzbhsydysl,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bhxjcpbm,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.bzcj,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cpmctymc,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.cplb,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.flbm,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.ggxh,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.qxlb,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.tyshxydm,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.ylqxzcrbarmc,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.zczbhhzbapzbh,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.versionNumber,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.diType,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.ybbm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.sptm,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.manufactory,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.measname,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.productType,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.cpms,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.spmc,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.cplx,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.hchzsb,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.cpdls,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.price,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak1,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak6,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
FROM basic_udirel
|
|
|
|
FROM basic_udirel
|
|
|
|
INNER JOIN basic_products
|
|
|
|
INNER JOIN basic_products
|
|
|
|
on basic_udirel.uuid = basic_products.uuid
|
|
|
|
on basic_udirel.uuid = basic_products.uuid
|
|
|
|
WHERE nameCode = #{nameCode}
|
|
|
|
WHERE nameCode = #{nameCode}
|
|
|
|
group by basic_udirel.id
|
|
|
|
group by basic_udirel.id
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -839,7 +844,7 @@
|
|
|
|
<select id="selectProductNameByRelId" resultType="java.lang.String">
|
|
|
|
<select id="selectProductNameByRelId" resultType="java.lang.String">
|
|
|
|
select basic_products.cpmctymc
|
|
|
|
select basic_products.cpmctymc
|
|
|
|
from basic_udirel
|
|
|
|
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}
|
|
|
|
where basic_udirel.id = #{relId}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|