|
|
|
@ -95,10 +95,10 @@
|
|
|
|
|
basic_products.cphhhbh,
|
|
|
|
|
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
|
|
|
|
|
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}, '%')
|
|
|
|
@ -175,7 +175,7 @@
|
|
|
|
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
SELECT basic_products.*, basic_udirel.purType, basic_udirel.hcType
|
|
|
|
|
FROM basic_products
|
|
|
|
|
LEFT JOIN basic_udirel ON basic_udirel.uuid = basic_products.uuid
|
|
|
|
|
LEFT JOIN basic_udirel ON basic_udirel.uuid = basic_products.uuid
|
|
|
|
|
WHERE (basic_products.nameCode = #{nameCode})
|
|
|
|
|
limit 1
|
|
|
|
|
</select>
|
|
|
|
@ -201,7 +201,8 @@
|
|
|
|
|
catalogname3,
|
|
|
|
|
matrial,
|
|
|
|
|
destinyType,
|
|
|
|
|
productsType,prepnUnit,prepnSpec,storageCondition,transportCondition,indate,packMatrial,majorType,majorStatus,physicType,medicareType,bzgg,
|
|
|
|
|
productsType, prepnUnit, prepnSpec, storageCondition, transportCondition, indate, packMatrial, majorType,
|
|
|
|
|
majorStatus, physicType, medicareType, bzgg, xjdw,
|
|
|
|
|
requireScanCode)
|
|
|
|
|
values (#{id}, #{uuid},
|
|
|
|
|
#{originUuid},
|
|
|
|
@ -275,80 +276,80 @@
|
|
|
|
|
#{majorStatus},
|
|
|
|
|
#{physicType},
|
|
|
|
|
#{medicareType},
|
|
|
|
|
#{bzgg},
|
|
|
|
|
#{bzgg}, #{xjdw},
|
|
|
|
|
#{requireScanCode})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiInfos" parameterType="java.util.List">
|
|
|
|
|
replace INTO basic_products
|
|
|
|
|
(id, 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, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2,
|
|
|
|
|
basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
|
|
|
|
basicPrductRemak8, updateTime, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj,
|
|
|
|
|
mjfs, categoryName, pinyinInitial)
|
|
|
|
|
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, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2,
|
|
|
|
|
basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
|
|
|
|
basicPrductRemak8, updateTime, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj,
|
|
|
|
|
mjfs, categoryName, pinyinInitial, xjdw)
|
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
<foreach collection="udiInfoEntities" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{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.allowNoSerial},
|
|
|
|
|
#{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}, #{item.updateTime}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx}, #{item.sfbjwycxsy},
|
|
|
|
|
#{item.zdcfsycs},
|
|
|
|
|
#{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.mjfs},
|
|
|
|
|
#{item.categoryName}, #{item.pinyinInitial})
|
|
|
|
|
#{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.allowNoSerial},
|
|
|
|
|
#{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}, #{item.updateTime}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx}, #{item.sfbjwycxsy},
|
|
|
|
|
#{item.zdcfsycs},
|
|
|
|
|
#{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.mjfs},
|
|
|
|
|
#{item.categoryName}, #{item.pinyinInitial}, #{item.xjdw})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -1006,7 +1007,6 @@
|
|
|
|
|
<if test="matrial != null">
|
|
|
|
|
matrial=#{matrial},
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -1038,7 +1038,7 @@
|
|
|
|
|
<select id="selectGgxhList" resultType="java.lang.String">
|
|
|
|
|
select distinct ggxh
|
|
|
|
|
from basic_products
|
|
|
|
|
left join basic_udirel on basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
left join basic_udirel on basic_products.uuid = basic_udirel.uuid
|
|
|
|
|
where basic_udirel.id = #{relId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|