|
|
|
@ -2,7 +2,6 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
|
|
|
|
|
|
|
<mapper namespace="com.glxp.api.admin.dao.basic.UdiRelevanceDao">
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiRelevance" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.res.basic.UdiRelevanceResponse">
|
|
|
|
|
select
|
|
|
|
@ -31,25 +30,25 @@
|
|
|
|
|
basic_products.scbssfbhsxrq,basic_products.cpms,basic_udirel.supName,basic_products.originUuid
|
|
|
|
|
,basic_products.basicPrductRemak1
|
|
|
|
|
,basic_products.basicPrductRemak2,basic_products.basicPrductRemak3,basic_products.basicPrductRemak4,basic_products.basicPrductRemak5,basic_products.basicPrductRemak6
|
|
|
|
|
,basic_products.basicPrductRemak7,basic_products.basicPrductRemak8,basic_products.hchzsb
|
|
|
|
|
,basic_products.basicPrductRemak7,basic_products.basicPrductRemak8
|
|
|
|
|
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},'%')
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName LIKE concat('%',#{supName},'%')
|
|
|
|
|
AND supName LIKE concat('%', #{supName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
|
AND cpmctymc LIKE concat('%',#{cpmctymc},'%')
|
|
|
|
|
AND cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode},'%')
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND thirdId LIKE concat(#{thirdId},'%')
|
|
|
|
|
AND thirdId LIKE concat(#{thirdId}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -60,8 +59,8 @@
|
|
|
|
|
<if test="udplatCode != '' and udplatCode != null">
|
|
|
|
|
AND basic_udirel.udplatCode = #{udplatCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test=" diType != null">
|
|
|
|
|
AND basic_products.diType= #{diType}
|
|
|
|
|
<if test="diType != null">
|
|
|
|
|
AND basic_products.diType = #{diType}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="lockStatus != '' and lockStatus != null">
|
|
|
|
@ -69,19 +68,21 @@
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh},'%')
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainId != '' and mainId != null">
|
|
|
|
|
AND mainId = #{mainId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="unionFilterStr != '' and unionFilterStr != null">
|
|
|
|
|
or basic_products.cpmctymc LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.ylqxzcrbarmc LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.ggxh LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.zczbhhzbapzbh LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.cpmctymc LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.ylqxzcrbarmc LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.ggxh LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.zczbhhzbapzbh LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAdavence != '' and isAdavence != null">
|
|
|
|
|
AND isAdavence = #{isAdavence}
|
|
|
|
@ -91,58 +92,103 @@
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY modifyTime DESC
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiJoinSup" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.res.basic.UdiRelevanceResponse">
|
|
|
|
|
select
|
|
|
|
|
basic_udirel.id,
|
|
|
|
|
basic_udirel.thirdId,basic_udirel.thirdName,basic_udirel.isUseDy,
|
|
|
|
|
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.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.isAdavence,basic_udirel.mainId,basic_products.allowNoBatch,
|
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
|
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.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.zczbhhzbapzbh,basic_products.ylqxzcrbarywmc,
|
|
|
|
|
basic_products.sydycpbs,basic_products.uuid,basic_products.sjcpbm,basic_products.versionNumber,
|
|
|
|
|
basic_products.diType,basic_products.productType,basic_products.scbssfbhph,
|
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
|
basic_products.cpdls,
|
|
|
|
|
basic_products.scbssfbhscrq,basic_corp.name companyName,
|
|
|
|
|
basic_products.scbssfbhsxrq,basic_products.cpms,basic_udirel.supName,company_product_relevance.unitFk,basic_products.originUuid
|
|
|
|
|
,basic_products.basicPrductRemak1
|
|
|
|
|
,basic_products.basicPrductRemak2,basic_products.basicPrductRemak3,basic_products.basicPrductRemak4,basic_products.basicPrductRemak5,basic_products.basicPrductRemak6
|
|
|
|
|
,basic_products.basicPrductRemak7,basic_products.basicPrductRemak8
|
|
|
|
|
select basic_udirel.id,
|
|
|
|
|
basic_udirel.thirdId,
|
|
|
|
|
basic_udirel.thirdName,
|
|
|
|
|
basic_udirel.isUseDy,
|
|
|
|
|
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.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.isAdavence,
|
|
|
|
|
basic_udirel.mainId,
|
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
|
basic_products.allowNoExpire,
|
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
|
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.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.zczbhhzbapzbh,
|
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
|
basic_products.uuid,
|
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
|
basic_products.versionNumber,
|
|
|
|
|
basic_products.diType,
|
|
|
|
|
basic_products.productType,
|
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
|
basic_products.cpdls,
|
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
|
basic_corp.name companyName,
|
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
|
basic_products.cpms,
|
|
|
|
|
basic_udirel.supName,
|
|
|
|
|
company_product_relevance.unitFk,
|
|
|
|
|
basic_products.originUuid
|
|
|
|
|
,
|
|
|
|
|
basic_products.basicPrductRemak1
|
|
|
|
|
,
|
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
|
basic_products.basicPrductRemak6
|
|
|
|
|
,
|
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
|
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},'%')
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName LIKE concat('%',#{supName},'%')
|
|
|
|
|
AND supName LIKE concat('%', #{supName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
|
AND cpmctymc LIKE concat('%',#{cpmctymc},'%')
|
|
|
|
|
AND cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode},'%')
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND thirdId LIKE concat(#{thirdId},'%')
|
|
|
|
|
AND thirdId LIKE concat(#{thirdId}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -156,8 +202,8 @@
|
|
|
|
|
<if test="udplatCode != '' and udplatCode != null">
|
|
|
|
|
AND basic_udirel.udplatCode = #{udplatCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test=" diType != null">
|
|
|
|
|
AND basic_products.diType= #{diType}
|
|
|
|
|
<if test="diType != null">
|
|
|
|
|
AND basic_products.diType = #{diType}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="lockStatus != '' and lockStatus != null">
|
|
|
|
@ -165,19 +211,21 @@
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh},'%')
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainId != '' and mainId != null">
|
|
|
|
|
AND mainId = #{mainId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="unionFilterStr != '' and unionFilterStr != null">
|
|
|
|
|
or basic_products.cpmctymc LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.ylqxzcrbarmc LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.ggxh LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.zczbhhzbapzbh LIKE concat('%',#{unionFilterStr},'%')
|
|
|
|
|
or basic_products.cpmctymc LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.ylqxzcrbarmc LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.ggxh LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
or basic_products.zczbhhzbapzbh LIKE concat('%', #{unionFilterStr}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAdavence != '' and isAdavence != null">
|
|
|
|
|
AND isAdavence = #{isAdavence}
|
|
|
|
@ -186,70 +234,116 @@
|
|
|
|
|
AND nameCode = #{uniqueNameCode}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiGp" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.res.basic.UdiRelevanceResponse">
|
|
|
|
|
select
|
|
|
|
|
basic_udirel.id,
|
|
|
|
|
basic_udirel.thirdId,basic_udirel.thirdName,basic_udirel.isUseDy,
|
|
|
|
|
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.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
|
|
|
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.udplatCode,basic_products.allowNoBatch,
|
|
|
|
|
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.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.zczbhhzbapzbh,basic_products.ylqxzcrbarywmc,basic_products.sydycpbs,basic_products.uuid,
|
|
|
|
|
basic_products.sjcpbm,basic_products.versionNumber,basic_products.diType,
|
|
|
|
|
basic_udirel.mainId,basic_udirel.mainName,basic_udirel.isAdavence,basic_products.scbssfbhph,
|
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
|
basic_products.cpdls,
|
|
|
|
|
basic_products.scbssfbhsxrq,basic_products.cpms,basic_udirel.supName,basic_products.originUuid,basic_products.spmc,
|
|
|
|
|
basic_products.basicPrductRemak1
|
|
|
|
|
,basic_products.basicPrductRemak2,basic_products.basicPrductRemak3,basic_products.basicPrductRemak4,basic_products.basicPrductRemak5,basic_products.basicPrductRemak6
|
|
|
|
|
,basic_products.basicPrductRemak7,basic_products.basicPrductRemak8
|
|
|
|
|
select basic_udirel.id,
|
|
|
|
|
basic_udirel.thirdId,
|
|
|
|
|
basic_udirel.thirdName,
|
|
|
|
|
basic_udirel.isUseDy,
|
|
|
|
|
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.thirdName1,
|
|
|
|
|
basic_udirel.thirdName2,
|
|
|
|
|
basic_udirel.thirdName3,
|
|
|
|
|
basic_udirel.thirdName4,
|
|
|
|
|
basic_udirel.manufactory,
|
|
|
|
|
basic_udirel.measname,
|
|
|
|
|
basic_udirel.udplatCode,
|
|
|
|
|
basic_products.allowNoBatch,
|
|
|
|
|
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.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.zczbhhzbapzbh,
|
|
|
|
|
basic_products.ylqxzcrbarywmc,
|
|
|
|
|
basic_products.sydycpbs,
|
|
|
|
|
basic_products.uuid,
|
|
|
|
|
basic_products.sjcpbm,
|
|
|
|
|
basic_products.versionNumber,
|
|
|
|
|
basic_products.diType,
|
|
|
|
|
basic_udirel.mainId,
|
|
|
|
|
basic_udirel.mainName,
|
|
|
|
|
basic_udirel.isAdavence,
|
|
|
|
|
basic_products.scbssfbhph,
|
|
|
|
|
basic_products.scbssfbhxlh,
|
|
|
|
|
basic_products.scbssfbhscrq,
|
|
|
|
|
basic_products.cpdls,
|
|
|
|
|
basic_products.scbssfbhsxrq,
|
|
|
|
|
basic_products.cpms,
|
|
|
|
|
basic_udirel.supName,
|
|
|
|
|
basic_products.originUuid,
|
|
|
|
|
basic_products.spmc,
|
|
|
|
|
basic_products.basicPrductRemak1
|
|
|
|
|
,
|
|
|
|
|
basic_products.basicPrductRemak2,
|
|
|
|
|
basic_products.basicPrductRemak3,
|
|
|
|
|
basic_products.basicPrductRemak4,
|
|
|
|
|
basic_products.basicPrductRemak5,
|
|
|
|
|
basic_products.basicPrductRemak6
|
|
|
|
|
,
|
|
|
|
|
basic_products.basicPrductRemak7,
|
|
|
|
|
basic_products.basicPrductRemak8
|
|
|
|
|
FROM basic_products
|
|
|
|
|
right JOIN basic_udirel
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
right JOIN basic_udirel
|
|
|
|
|
ON basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%',#{ylqxzcrbarmc},'%')
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != '' and supName != null">
|
|
|
|
|
AND supName LIKE concat('%',#{supName},'%')
|
|
|
|
|
AND supName LIKE concat('%', #{supName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
|
AND cpmctymc LIKE concat('%',#{cpmctymc},'%')
|
|
|
|
|
AND cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
|
AND ggxh LIKE concat('%',#{ggxh},'%')
|
|
|
|
|
AND ggxh LIKE concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode},'%')
|
|
|
|
|
AND nameCode LIKE concat(#{nameCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<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 test="unionCode != '' and unionCode != null">
|
|
|
|
|
and (
|
|
|
|
|
nameCode LIKE concat('%',#{unionCode},'%')
|
|
|
|
|
or basic_udirel.ybbm LIKE concat('%',#{unionCode},'%')
|
|
|
|
|
or basic_udirel.sptm LIKE concat('%',#{unionCode},'%'))
|
|
|
|
|
nameCode 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},'%'))
|
|
|
|
|
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}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -261,33 +355,38 @@
|
|
|
|
|
AND udplatCode = #{udplatCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh},'%')
|
|
|
|
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="diType != '' and diType != null">
|
|
|
|
|
AND diType =#{diType}
|
|
|
|
|
AND diType = #{diType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 1">
|
|
|
|
|
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[<>]]> ''
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 2">
|
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
|
AND (mainId is NULL or mainId = '') and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
AND (mainId is NULL or mainId = '')
|
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
</if>
|
|
|
|
|
<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[<>]]> ''
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 5">
|
|
|
|
|
AND thirdId2 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
AND thirdId2 is NULL
|
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
</if>
|
|
|
|
|
<if test="filterType != null and filterType == 6">
|
|
|
|
|
AND thirdId3 is NULL and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
AND thirdId3 is NULL
|
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
|
</if>
|
|
|
|
|
<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 test="filterType != null and filterType == 10">
|
|
|
|
@ -303,7 +402,6 @@
|
|
|
|
|
<if test="id != '' and id != null">
|
|
|
|
|
AND basic_udirel.id = #{id}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY modifyTime DESC
|
|
|
|
|
</select>
|
|
|
|
@ -311,7 +409,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectByUuid" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select * FROM basic_udirel
|
|
|
|
|
select *
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
<where>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
@ -322,7 +421,9 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectByOrigiUuid" 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
|
|
|
|
|
select *
|
|
|
|
|
from basic_udirel
|
|
|
|
|
INNER JOIN basic_products on basic_udirel.uuid = basic_products.uuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="uuid != '' and uuid != null">
|
|
|
|
|
AND basic_udirel.uuid = #{uuid}
|
|
|
|
@ -365,7 +466,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByThirdId" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select * FROM basic_udirel
|
|
|
|
|
select *
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
<where>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND thirdId = #{thirdId}
|
|
|
|
@ -391,7 +493,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectByDiThirdId" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select * FROM basic_udirel
|
|
|
|
|
select *
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
<where>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND ${thirdSys} = #{thirdId}
|
|
|
|
@ -406,7 +509,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterEntity" parameterType="com.glxp.api.admin.req.basic.FilterUdiInfoRequest"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
select * FROM basic_udirel
|
|
|
|
|
select *
|
|
|
|
|
FROM basic_udirel
|
|
|
|
|
<where>
|
|
|
|
|
<if test="thirdId != '' and thirdId != null">
|
|
|
|
|
AND thirdId = #{thirdId}
|
|
|
|
@ -429,8 +533,10 @@
|
|
|
|
|
<if test="mainId != '' and mainId != null">
|
|
|
|
|
AND mainId = #{mainId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
|
<![CDATA[ and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by modifyTime desc
|
|
|
|
@ -439,7 +545,7 @@
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
INTO basic_udirel
|
|
|
|
|
(id,
|
|
|
|
|
thirdId,thirdName,uuid,isUseDy,updateTime,modifyTime,
|
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
@ -473,20 +579,19 @@
|
|
|
|
|
#{lockStatus},
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isAdavence},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{price}
|
|
|
|
|
#{supName},#{price}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<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,modifyTime,
|
|
|
|
|
thirdId1,thirdId2,thirdId3,thirdId4,thirdName1,thirdName2,thirdName3,thirdName4,manufactory,measname,ybbm,sptm,isDisable,isLock
|
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,price
|
|
|
|
|
,mainId,mainName,lockStatus,udplatCode,isAdavence,supName,price,modifyTime
|
|
|
|
|
)
|
|
|
|
|
values
|
|
|
|
|
(
|
|
|
|
@ -517,7 +622,7 @@
|
|
|
|
|
#{udplatCode},
|
|
|
|
|
#{isAdavence},
|
|
|
|
|
#{supName},
|
|
|
|
|
#{price}
|
|
|
|
|
#{price},#{modifyTime}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -527,7 +632,8 @@
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByIds" parameterType="java.util.List">
|
|
|
|
|
DELETE FROM basic_udirel WHERE id in
|
|
|
|
|
DELETE
|
|
|
|
|
FROM basic_udirel WHERE id in
|
|
|
|
|
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
@ -541,34 +647,87 @@
|
|
|
|
|
<update id="updateUdiRelevance" parameterType="com.glxp.api.admin.entity.basic.UdiRelevanceEntity">
|
|
|
|
|
UPDATE basic_udirel
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|
<if test="thirdId != null">thirdId=#{thirdId},</if>
|
|
|
|
|
<if test="thirdName != null">thirdName=#{thirdName},</if>
|
|
|
|
|
<if test="uuid != null">uuid=#{uuid},</if>
|
|
|
|
|
<if test="isUseDy != null">isUseDy=#{isUseDy},</if>
|
|
|
|
|
<if test="thirdId1 != null">thirdId1=#{thirdId1},</if>
|
|
|
|
|
<if test="thirdId2 != null">thirdId2=#{thirdId2},</if>
|
|
|
|
|
<if test="thirdId3 != null">thirdId3=#{thirdId3},</if>
|
|
|
|
|
<if test="thirdId4 != null">thirdId4=#{thirdId4},</if>
|
|
|
|
|
<if test="thirdName1 != null">thirdName1=#{thirdName1},</if>
|
|
|
|
|
<if test="thirdName2 != null">thirdName2=#{thirdName2},</if>
|
|
|
|
|
<if test="thirdName3 != null">thirdName3=#{thirdName3},</if>
|
|
|
|
|
<if test="thirdName4 != null">thirdName4=#{thirdName4},</if>
|
|
|
|
|
<if test="manufactory != null">manufactory=#{manufactory},</if>
|
|
|
|
|
<if test="measname != null">measname=#{measname},</if>
|
|
|
|
|
<if test="ybbm != null">ybbm=#{ybbm},</if>
|
|
|
|
|
<if test="sptm != null">sptm=#{sptm},</if>
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
|
<if test="modifyTime != null">modifyTime=#{modifyTime},</if>
|
|
|
|
|
<if test="isDisable != null">isDisable=#{isDisable},</if>
|
|
|
|
|
<if test="isLock != null">isLock=#{isLock},</if>
|
|
|
|
|
<if test="mainId != null">mainId=#{mainId},</if>
|
|
|
|
|
<if test="lockStatus != null">lockStatus=#{lockStatus},</if>
|
|
|
|
|
<if test="mainName != null">mainName=#{mainName},</if>
|
|
|
|
|
<if test="udplatCode != null">udplatCode=#{udplatCode},</if>
|
|
|
|
|
<if test="isAdavence != null">isAdavence=#{isAdavence},</if>
|
|
|
|
|
<if test="supName != null">supName=#{supName},</if>
|
|
|
|
|
<if test="price != null">price=#{price},</if>
|
|
|
|
|
|
|
|
|
|
<if test="thirdId != null">
|
|
|
|
|
thirdId=#{thirdId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdName != null">
|
|
|
|
|
thirdName=#{thirdName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != null">
|
|
|
|
|
uuid=#{uuid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isUseDy != null">
|
|
|
|
|
isUseDy=#{isUseDy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId1 != null">
|
|
|
|
|
thirdId1=#{thirdId1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId2 != null">
|
|
|
|
|
thirdId2=#{thirdId2},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId3 != null">
|
|
|
|
|
thirdId3=#{thirdId3},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdId4 != null">
|
|
|
|
|
thirdId4=#{thirdId4},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdName1 != null">
|
|
|
|
|
thirdName1=#{thirdName1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdName2 != null">
|
|
|
|
|
thirdName2=#{thirdName2},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdName3 != null">
|
|
|
|
|
thirdName3=#{thirdName3},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdName4 != null">
|
|
|
|
|
thirdName4=#{thirdName4},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="manufactory != null">
|
|
|
|
|
manufactory=#{manufactory},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="measname != null">
|
|
|
|
|
measname=#{measname},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ybbm != null">
|
|
|
|
|
ybbm=#{ybbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sptm != null">
|
|
|
|
|
sptm=#{sptm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime=#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="modifyTime != null">
|
|
|
|
|
modifyTime=#{modifyTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isDisable != null">
|
|
|
|
|
isDisable=#{isDisable},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isLock != null">
|
|
|
|
|
isLock=#{isLock},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainId != null">
|
|
|
|
|
mainId=#{mainId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lockStatus != null">
|
|
|
|
|
lockStatus=#{lockStatus},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mainName != null">
|
|
|
|
|
mainName=#{mainName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="udplatCode != null">
|
|
|
|
|
udplatCode=#{udplatCode},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isAdavence != null">
|
|
|
|
|
isAdavence=#{isAdavence},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="supName != null">
|
|
|
|
|
supName=#{supName},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="price != null">
|
|
|
|
|
price=#{price},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -589,45 +748,34 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="importUdiRelevance" parameterType="java.util.List">
|
|
|
|
|
replace into basic_udirel (id, thirdId, thirdName, uuid, isUseDy, updateTime, modifyTime, thirdId1, thirdId2,
|
|
|
|
|
thirdId3,
|
|
|
|
|
replace into basic_udirel (id, thirdId, thirdName, uuid, isUseDy, updateTime, modifyTime, thirdId1, thirdId2, thirdId3,
|
|
|
|
|
thirdId4, thirdName1, thirdName2, thirdName3, thirdName4, ybbm, sptm, manufactory,
|
|
|
|
|
measname, isDisable, mainId, mainName, udplatCode,supName,price,modifyTime)
|
|
|
|
|
values
|
|
|
|
|
<foreach collection="udiRelevanceEntities" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.thirdId},
|
|
|
|
|
#{item.thirdName},
|
|
|
|
|
#{item.uuid},
|
|
|
|
|
#{item.isUseDy},
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
#{item.modifyTime},
|
|
|
|
|
#{item.thirdId1},
|
|
|
|
|
#{item.thirdId2},
|
|
|
|
|
#{item.thirdId3},
|
|
|
|
|
#{item.thirdId4},
|
|
|
|
|
#{item.thirdName1},
|
|
|
|
|
#{item.thirdName2},
|
|
|
|
|
#{item.thirdName3},
|
|
|
|
|
#{item.thirdName4},
|
|
|
|
|
#{item.ybbm},
|
|
|
|
|
#{item.sptm},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.isDisable},
|
|
|
|
|
#{item.mainId},
|
|
|
|
|
#{item.mainName},
|
|
|
|
|
#{item.udplatCode},#{item.supName},#{item.price},#{modifyTime})
|
|
|
|
|
#{item.thirdId},
|
|
|
|
|
#{item.thirdName},
|
|
|
|
|
#{item.uuid},
|
|
|
|
|
#{item.isUseDy},
|
|
|
|
|
#{item.updateTime},
|
|
|
|
|
#{item.modifyTime},
|
|
|
|
|
#{item.thirdId1},
|
|
|
|
|
#{item.thirdId2},
|
|
|
|
|
#{item.thirdId3},
|
|
|
|
|
#{item.thirdId4},
|
|
|
|
|
#{item.thirdName1},
|
|
|
|
|
#{item.thirdName2},
|
|
|
|
|
#{item.thirdName3},
|
|
|
|
|
#{item.thirdName4},
|
|
|
|
|
#{item.ybbm},
|
|
|
|
|
#{item.sptm},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.isDisable},
|
|
|
|
|
#{item.mainId},
|
|
|
|
|
#{item.mainName},
|
|
|
|
|
#{item.udplatCode}, #{item.supName}, #{item.price}, #{modifyTime})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="selectUuidById" resultType="java.lang.String">
|
|
|
|
|
select uuid from basic_udirel where id = #{relId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectProductId" resultType="java.lang.String">
|
|
|
|
|
select id
|
|
|
|
|
from basic_udirel
|
|
|
|
|
where uuid = (select uuid from basic_products where nameCode = #{nameCode} limit 1)
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|