You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
405 lines
19 KiB
XML
405 lines
19 KiB
XML
2 years ago
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||
|
|
||
|
<mapper namespace="com.glxp.api.dao.basic.UdiProductDao">
|
||
|
|
||
|
<select id="filterUdiInfo" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
||
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
SELECT * FROM basic_products
|
||
|
<where>
|
||
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
||
|
AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc},'%')
|
||
|
</if>
|
||
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||
|
AND cpmctymc LIKE concat(#{cpmctymc},'%')
|
||
|
</if>
|
||
|
<if test="nameCode != '' and nameCode != null">
|
||
|
AND nameCode LIKE concat(#{nameCode},'%')
|
||
|
</if>
|
||
|
<if test="uuid != '' and uuid != null">
|
||
|
AND uuid = #{uuid}
|
||
|
</if>
|
||
|
<if test="originUuid != '' and originUuid != null">
|
||
|
AND originUuid = #{originUuid}
|
||
|
</if>
|
||
|
<if test="sptm != '' and sptm != null">
|
||
|
AND sptm = #{sptm}
|
||
|
</if>
|
||
|
</where>
|
||
|
|
||
|
</select>
|
||
|
|
||
|
<select id="filterUdiInfo2" parameterType="com.glxp.api.req.basic.FilterUdiRelRequest"
|
||
|
resultType="com.glxp.api.res.basic.UdiRelevanceResponse">
|
||
|
SELECT basic_products.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.thirdName1,basic_udirel.thirdName2,basic_udirel.thirdName3,basic_udirel.thirdName4,
|
||
|
basic_udirel.manufactory,basic_udirel.measname,basic_udirel.udplatCode,
|
||
|
basic_products.nameCode,basic_products.packRatio,basic_products.packLevel,basic_products.packUnit,
|
||
|
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.scbssfbhph,
|
||
|
basic_products.scbssfbhxlh,
|
||
|
basic_products.scbssfbhscrq,
|
||
|
basic_products.scbssfbhsxrq,basic_products.cpms,basic_products.originUuid,basic_products.allowNoBatch,
|
||
|
basic_products.allowNoExpire,basic_products.allowNoProduct,basic_products.spmc,basic_products.cplx,basic_products.hchzsb
|
||
|
FROM (company_product_relevance
|
||
|
inner JOIN basic_udirel
|
||
|
ON company_product_relevance.udiRlIdFk = basic_udirel.id)
|
||
|
inner JOIN basic_products
|
||
|
ON basic_udirel.uuid = basic_products.uuid
|
||
|
<where>
|
||
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
||
|
AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc},'%')
|
||
|
</if>
|
||
|
<if test="cpmctymc != '' and cpmctymc != null">
|
||
|
AND cpmctymc LIKE concat(#{cpmctymc},'%')
|
||
|
</if>
|
||
|
<if test="nameCode != '' and nameCode != null">
|
||
|
AND nameCode LIKE concat(#{nameCode},'%')
|
||
|
</if>
|
||
|
<if test="unionCode != '' and unionCode != null">
|
||
|
or 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">
|
||
|
or 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 uuid = #{uuid}
|
||
|
</if>
|
||
|
<if test="thirdId != '' and thirdId != null">
|
||
|
AND thirdId = #{thirdId}
|
||
|
</if>
|
||
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh != null">
|
||
|
AND zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh},'%')
|
||
|
</if>
|
||
|
<if test="customerId != '' and customerId != null">
|
||
|
AND company_product_relevance.customerId = #{customerId}
|
||
|
</if>
|
||
|
<if test="originUuid != '' and originUuid != null">
|
||
|
AND originUuid = #{originUuid}
|
||
|
</if>
|
||
|
|
||
|
</where>
|
||
|
ORDER BY updateTime DESC
|
||
|
</select>
|
||
|
<!--// AND company_product_relevance.auditStatus = 1-->
|
||
|
<select id="findById" parameterType="java.lang.String"
|
||
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
SELECT *
|
||
|
FROM basic_products
|
||
|
WHERE (id = #{id}) limit 1
|
||
|
</select>
|
||
|
|
||
|
<select id="findByUuid" parameterType="java.lang.String"
|
||
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
SELECT *
|
||
|
FROM basic_products
|
||
|
WHERE (uuid = #{uuid}) limit 1
|
||
|
</select>
|
||
|
|
||
|
<select id="findByUuids" parameterType="java.lang.String"
|
||
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
SELECT *
|
||
|
FROM basic_products
|
||
|
WHERE (uuid = #{uuid})
|
||
|
</select>
|
||
|
|
||
|
<select id="findByNameCode" parameterType="java.lang.String"
|
||
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
SELECT *
|
||
|
FROM basic_products
|
||
|
WHERE (nameCode = #{nameCode}) limit 1
|
||
|
</select>
|
||
|
<insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
replace
|
||
|
INTO basic_products
|
||
|
(uuid,originUuid,nameCode,deviceRecordKey,packRatio,packLevel,packUnit,bhxjsl,bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,
|
||
|
ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,sydycpbs,sjcpbm,versionNumber,diType,ybbm,sptm,manufactory,measname,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,allowNoBatch,allowNoExpire,
|
||
|
allowNoProduct,spmc,cplx,hchzsb,cpdls,price,basicPrductRemak1,basicPrductRemak2,basicPrductRemak3,basicPrductRemak4,basicPrductRemak5,basicPrductRemak6,basicPrductRemak7,basicPrductRemak8)
|
||
|
values
|
||
|
(
|
||
|
#{uuid},
|
||
|
#{originUuid},
|
||
|
#{nameCode},
|
||
|
#{deviceRecordKey},
|
||
|
#{packRatio},
|
||
|
#{packLevel},
|
||
|
#{packUnit},
|
||
|
#{bhxjsl},
|
||
|
#{bhzxxsbzsl },
|
||
|
#{zxxsbzbhsydysl},
|
||
|
#{bhxjcpbm},
|
||
|
#{bzcj},
|
||
|
#{cpmctymc},
|
||
|
#{cplb},
|
||
|
#{flbm},
|
||
|
#{ggxh},
|
||
|
#{qxlb},
|
||
|
#{tyshxydm},
|
||
|
#{ylqxzcrbarmc},
|
||
|
#{zczbhhzbapzbh},
|
||
|
#{ylqxzcrbarywmc},
|
||
|
#{sydycpbs},
|
||
|
#{sjcpbm},
|
||
|
#{versionNumber},
|
||
|
#{diType},
|
||
|
#{ybbm},
|
||
|
#{sptm},
|
||
|
#{manufactory},
|
||
|
#{measname},
|
||
|
#{productType},
|
||
|
#{scbssfbhph},
|
||
|
#{scbssfbhxlh},
|
||
|
#{scbssfbhscrq},
|
||
|
#{scbssfbhsxrq},
|
||
|
#{cpms},
|
||
|
#{allowNoBatch},
|
||
|
#{allowNoExpire},
|
||
|
#{allowNoProduct},
|
||
|
#{spmc},
|
||
|
#{cplx},
|
||
|
#{hchzsb},
|
||
|
#{cpdls},
|
||
|
#{price},
|
||
|
#{basicPrductRemak1},
|
||
|
#{basicPrductRemak2},
|
||
|
#{basicPrductRemak3},
|
||
|
#{basicPrductRemak4},
|
||
|
#{basicPrductRemak5},
|
||
|
#{basicPrductRemak6},
|
||
|
#{basicPrductRemak7},
|
||
|
#{basicPrductRemak8}
|
||
|
)
|
||
|
</insert>
|
||
|
|
||
|
<insert id="insertUdiInfos" keyProperty="id" parameterType="java.util.List">
|
||
|
replace INTO basic_products
|
||
|
(uuid,originUuid,nameCode,deviceRecordKey,packRatio,packLevel,packUnit,bhxjsl,bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,
|
||
|
ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,sydycpbs,sjcpbm,versionNumber,diType,ybbm,sptm,manufactory,measname,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,allowNoBatch,allowNoExpire,
|
||
|
allowNoProduct,spmc,cplx,hchzsb,cpdls,price,basicPrductRemak1,basicPrductRemak2,basicPrductRemak3,basicPrductRemak4,basicPrductRemak5,basicPrductRemak6,basicPrductRemak7,basicPrductRemak8)
|
||
|
values
|
||
|
|
||
|
<foreach collection="udiInfoEntities" item="item" index="index"
|
||
|
separator=",">
|
||
|
(
|
||
|
#{item.uuid},
|
||
|
#{item.originUuid},
|
||
|
#{item.nameCode},
|
||
|
#{item.deviceRecordKey},
|
||
|
#{item.packRatio},
|
||
|
#{item.packLevel},
|
||
|
#{item.packUnit},
|
||
|
#{item.bhxjsl},
|
||
|
#{item.bhzxxsbzsl},
|
||
|
#{item.zxxsbzbhsydysl},
|
||
|
#{item.bhxjcpbm},
|
||
|
#{item.bzcj},
|
||
|
#{item.cpmctymc},
|
||
|
#{item.cplb},
|
||
|
#{item.flbm},
|
||
|
#{item.ggxh},
|
||
|
#{item.qxlb},
|
||
|
#{item.tyshxydm},
|
||
|
#{item.ylqxzcrbarmc},
|
||
|
#{item.zczbhhzbapzbh},
|
||
|
#{item.ylqxzcrbarywmc},
|
||
|
#{item.sydycpbs},
|
||
|
#{item.sjcpbm},
|
||
|
#{item.versionNumber},
|
||
|
#{item.diType},
|
||
|
#{item.ybbm},
|
||
|
#{item.sptm},
|
||
|
#{item.manufactory},
|
||
|
#{item.measname},
|
||
|
#{item.productType},
|
||
|
#{item.scbssfbhph},
|
||
|
#{item.scbssfbhxlh},
|
||
|
#{item.scbssfbhscrq},
|
||
|
#{item.scbssfbhsxrq},
|
||
|
#{item.cpms},
|
||
|
#{item.allowNoBatch},
|
||
|
#{item.allowNoExpire},
|
||
|
#{item.allowNoProduct},
|
||
|
#{item.spmc},
|
||
|
#{item.cplx},
|
||
|
#{item.hchzsb},
|
||
|
#{item.cpdls},
|
||
|
#{item.price},
|
||
|
#{item.basicPrductRemak1},
|
||
|
#{item.basicPrductRemak2},
|
||
|
#{item.basicPrductRemak3},
|
||
|
#{item.basicPrductRemak4},
|
||
|
#{item.basicPrductRemak5},
|
||
|
#{item.basicPrductRemak6},
|
||
|
#{item.basicPrductRemak7},
|
||
|
#{item.basicPrductRemak8}
|
||
|
)
|
||
|
</foreach>
|
||
|
</insert>
|
||
|
|
||
|
<delete id="deleteById" parameterType="Map">
|
||
|
DELETE
|
||
|
FROM basic_products
|
||
|
WHERE id = #{id}
|
||
|
</delete>
|
||
|
|
||
|
<delete id="deleteByUuid" parameterType="Map">
|
||
|
DELETE
|
||
|
FROM basic_products
|
||
|
WHERE uuid = #{uuid}
|
||
|
</delete>
|
||
|
|
||
|
<update id="updateUdiInfo" parameterType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
UPDATE basic_products
|
||
|
<trim prefix="set" suffixOverrides=",">
|
||
|
<if test="originUuid != null">originUuid=#{originUuid},</if>
|
||
|
<if test="nameCode != null">nameCode=#{nameCode},</if>
|
||
|
<if test="deviceRecordKey != null">deviceRecordKey=#{deviceRecordKey},</if>
|
||
|
<if test="packRatio != null">packRatio=#{packRatio},</if>
|
||
|
<if test="packLevel != null">packLevel=#{packLevel},</if>
|
||
|
<if test="packUnit != null">packUnit=#{packUnit},</if>
|
||
|
<if test="bhxjsl != null">bhxjsl=#{bhxjsl},</if>
|
||
|
<if test="bhzxxsbzsl != null">bhzxxsbzsl=#{bhzxxsbzsl},</if>
|
||
|
<if test="zxxsbzbhsydysl != null">zxxsbzbhsydysl=#{zxxsbzbhsydysl},</if>
|
||
|
<if test="bhxjcpbm != null">bhxjcpbm=#{bhxjcpbm},</if>
|
||
|
<if test="bzcj != null">bzcj=#{bzcj},</if>
|
||
|
<if test="cpmctymc != null">cpmctymc=#{cpmctymc},</if>
|
||
|
<if test="cplb != null">cplb=#{cplb},</if>
|
||
|
<if test="flbm != null">flbm=#{flbm},</if>
|
||
|
<if test="ggxh != null">ggxh=#{ggxh},</if>
|
||
|
<if test="qxlb != null">qxlb !==#{qxlb !=},</if>
|
||
|
<if test="tyshxydm != null">tyshxydm=#{tyshxydm},</if>
|
||
|
<if test="ylqxzcrbarmc != null">ylqxzcrbarmc=#{ylqxzcrbarmc},</if>
|
||
|
<if test="zczbhhzbapzbh != null">zczbhhzbapzbh=#{zczbhhzbapzbh},</if>
|
||
|
<if test="ylqxzcrbarywmc != null">ylqxzcrbarywmc=#{ylqxzcrbarywmc},</if>
|
||
|
<if test="sydycpbs != null">sydycpbs=#{sydycpbs},</if>
|
||
|
<if test="sjcpbm != null">sjcpbm=#{sjcpbm},</if>
|
||
|
<if test="versionNumber != null">versionNumber=#{versionNumber},</if>
|
||
|
<if test="diType != null">diType=#{diType},</if>
|
||
|
<if test="ybbm != null">ybbm=#{ybbm},</if>
|
||
|
<if test="sptm != null">sptm=#{sptm},</if>
|
||
|
<if test="manufactory != null">manufactory=#{manufactory},</if>
|
||
|
<if test="measname != null">measname=#{measname},</if>
|
||
|
<if test="productType != null">productType=#{productType},</if>
|
||
|
<if test="scbssfbhph != null">scbssfbhph=#{scbssfbhph},</if>
|
||
|
<if test="scbssfbhxlh != null">scbssfbhxlh=#{scbssfbhxlh},</if>
|
||
|
<if test="scbssfbhscrq != null">scbssfbhscrq=#{scbssfbhscrq},</if>
|
||
|
<if test="scbssfbhsxrq != null">scbssfbhsxrq=#{scbssfbhsxrq},</if>
|
||
|
<if test="cpms != null">cpms=#{cpms},</if>
|
||
|
<if test="allowNoBatch != null">allowNoBatch=#{allowNoBatch},</if>
|
||
|
<if test="allowNoExpire != null">allowNoExpire=#{allowNoExpire},</if>
|
||
|
<if test="allowNoProduct != null">allowNoProduct=#{allowNoProduct},</if>
|
||
|
<if test="spmc != null">spmc=#{spmc},</if>
|
||
|
<if test="cplx != null">cplx=#{cplx},</if>
|
||
|
<if test="hchzsb != null">hchzsb=#{hchzsb},</if>
|
||
|
<if test="cpdls != null">cpdls=#{cpdls},</if>
|
||
|
<if test="price != null">price=#{price},</if>
|
||
|
<if test="basicPrductRemak1 != null">basicPrductRemak1=#{basicPrductRemak1},</if>
|
||
|
<if test="basicPrductRemak2 != null">basicPrductRemak2=#{basicPrductRemak2},</if>
|
||
|
<if test="basicPrductRemak3 != null">basicPrductRemak3=#{basicPrductRemak3},</if>
|
||
|
<if test="basicPrductRemak4 != null">basicPrductRemak4=#{basicPrductRemak4},</if>
|
||
|
<if test="basicPrductRemak5 != null">basicPrductRemak5=#{basicPrductRemak5},</if>
|
||
|
<if test="basicPrductRemak6 != null">basicPrductRemak6=#{basicPrductRemak6},</if>
|
||
|
<if test="basicPrductRemak7 != null">basicPrductRemak7=#{basicPrductRemak7},</if>
|
||
|
<if test="basicPrductRemak8 != null">basicPrductRemak8=#{basicPrductRemak8},</if>
|
||
|
</trim>
|
||
|
WHERE nameCode = #{nameCode} and uuid = #{uuid}
|
||
|
</update>
|
||
|
|
||
|
<update id="updateUdiInfoByUuid" parameterType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
update basic_products
|
||
|
<trim prefix="set" suffixOverrides=",">
|
||
|
<if test="originUuid != null">originUuid=#{originUuid},</if>
|
||
|
<if test="nameCode != null">nameCode=#{nameCode},</if>
|
||
|
<if test="deviceRecordKey != null">deviceRecordKey=#{deviceRecordKey},</if>
|
||
|
<if test="packRatio != null">packRatio=#{packRatio},</if>
|
||
|
<if test="packLevel != null">packLevel=#{packLevel},</if>
|
||
|
<if test="packUnit != null">packUnit=#{packUnit},</if>
|
||
|
<if test="bhxjsl != null">bhxjsl=#{bhxjsl},</if>
|
||
|
<if test="bhzxxsbzsl != null">bhzxxsbzsl=#{bhzxxsbzsl},</if>
|
||
|
<if test="zxxsbzbhsydysl != null">zxxsbzbhsydysl=#{zxxsbzbhsydysl},</if>
|
||
|
<if test="bhxjcpbm != null">bhxjcpbm=#{bhxjcpbm},</if>
|
||
|
<if test="bzcj != null">bzcj=#{bzcj},</if>
|
||
|
<if test="cpmctymc != null">cpmctymc=#{cpmctymc},</if>
|
||
|
<if test="cplb != null">cplb=#{cplb},</if>
|
||
|
<if test="flbm != null">flbm=#{flbm},</if>
|
||
|
<if test="ggxh != null">ggxh=#{ggxh},</if>
|
||
|
<if test="qxlb != null">qxlb !==#{qxlb !=},</if>
|
||
|
<if test="tyshxydm != null">tyshxydm=#{tyshxydm},</if>
|
||
|
<if test="ylqxzcrbarmc != null">ylqxzcrbarmc=#{ylqxzcrbarmc},</if>
|
||
|
<if test="zczbhhzbapzbh != null">zczbhhzbapzbh=#{zczbhhzbapzbh},</if>
|
||
|
<if test="ylqxzcrbarywmc != null">ylqxzcrbarywmc=#{ylqxzcrbarywmc},</if>
|
||
|
<if test="sydycpbs != null">sydycpbs=#{sydycpbs},</if>
|
||
|
<if test="sjcpbm != null">sjcpbm=#{sjcpbm},</if>
|
||
|
<if test="versionNumber != null">versionNumber=#{versionNumber},</if>
|
||
|
<if test="diType != null">diType=#{diType},</if>
|
||
|
<if test="ybbm != null">ybbm=#{ybbm},</if>
|
||
|
<if test="sptm != null">sptm=#{sptm},</if>
|
||
|
<if test="manufactory != null">manufactory=#{manufactory},</if>
|
||
|
<if test="measname != null">measname=#{measname},</if>
|
||
|
<if test="productType != null">productType=#{productType},</if>
|
||
|
<if test="scbssfbhph != null">scbssfbhph=#{scbssfbhph},</if>
|
||
|
<if test="scbssfbhxlh != null">scbssfbhxlh=#{scbssfbhxlh},</if>
|
||
|
<if test="scbssfbhscrq != null">scbssfbhscrq=#{scbssfbhscrq},</if>
|
||
|
<if test="scbssfbhsxrq != null">scbssfbhsxrq=#{scbssfbhsxrq},</if>
|
||
|
<if test="cpms != null">cpms=#{cpms},</if>
|
||
|
<if test="allowNoBatch != null">allowNoBatch=#{allowNoBatch},</if>
|
||
|
<if test="allowNoExpire != null">allowNoExpire=#{allowNoExpire},</if>
|
||
|
<if test="allowNoProduct != null">allowNoProduct=#{allowNoProduct},</if>
|
||
|
<if test="spmc != null">spmc=#{spmc},</if>
|
||
|
<if test="cplx != null">cplx=#{cplx},</if>
|
||
|
<if test="hchzsb != null">hchzsb=#{hchzsb},</if>
|
||
|
<if test="cpdls != null">cpdls=#{cpdls},</if>
|
||
|
<if test="price != null">price=#{price},</if>
|
||
|
<if test="basicPrductRemak1 != null">basicPrductRemak1=#{basicPrductRemak1},</if>
|
||
|
<if test="basicPrductRemak2 != null">basicPrductRemak2=#{basicPrductRemak2},</if>
|
||
|
<if test="basicPrductRemak3 != null">basicPrductRemak3=#{basicPrductRemak3},</if>
|
||
|
<if test="basicPrductRemak4 != null">basicPrductRemak4=#{basicPrductRemak4},</if>
|
||
|
<if test="basicPrductRemak5 != null">basicPrductRemak5=#{basicPrductRemak5},</if>
|
||
|
<if test="basicPrductRemak6 != null">basicPrductRemak6=#{basicPrductRemak6},</if>
|
||
|
<if test="basicPrductRemak7 != null">basicPrductRemak7=#{basicPrductRemak7},</if>
|
||
|
<if test="basicPrductRemak8 != null">basicPrductRemak8=#{basicPrductRemak8},</if>
|
||
|
</trim>
|
||
|
where uuid = #{uuid}
|
||
|
</update>
|
||
|
|
||
|
<select id="batchSelectByUuid" resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
||
|
select *
|
||
|
from basic_products where uuid in
|
||
|
<foreach collection="uuids" item="item" separator="," index="index" open="(" close=")">
|
||
|
#{item}
|
||
|
</foreach>
|
||
|
</select>
|
||
|
|
||
|
|
||
|
<select id="batchSelectByOriginUuid" resultType="com.glxp.api.entity.basic.UdiRelevanceEntity">
|
||
|
select *
|
||
|
from basic_products where originUuid in
|
||
|
<foreach collection="uuids" item="item" index="index" separator="," open="(" close=")">
|
||
|
#{item}
|
||
|
</foreach>
|
||
|
</select>
|
||
|
|
||
|
<select id="selectPackLevel" resultType="java.lang.Integer">
|
||
|
select packLevel from basic_products where nameCode = #{nameCode} limit 1
|
||
|
</select>
|
||
|
|
||
|
<select id="selectGgxhList" resultType="java.lang.String">
|
||
|
select distinct ggxh
|
||
|
from basic_products
|
||
|
left join basic_udirel on basic_products.uuid = basic_udirel.uuid
|
||
|
where basic_udirel.id = #{relId}
|
||
|
</select>
|
||
|
</mapper>
|