|
|
|
@ -84,6 +84,14 @@
|
|
|
|
|
basic_products.allowNoProduct,
|
|
|
|
|
basic_products.allowNoSerial,
|
|
|
|
|
basic_products.spmc,
|
|
|
|
|
basic_products.sfwblztlcp,
|
|
|
|
|
basic_products.cgzmraqxgxx,
|
|
|
|
|
basic_products.sfbjwycxsy,
|
|
|
|
|
basic_products.zdcfsycs,
|
|
|
|
|
basic_products.sfwwjbz,
|
|
|
|
|
basic_products.syqsfxyjxmj,
|
|
|
|
|
basic_products.mjfs,
|
|
|
|
|
basic_products.categoryName,
|
|
|
|
|
basic_products.cplx,
|
|
|
|
|
basic_products.hchzsb
|
|
|
|
|
FROM (company_product_relevance
|
|
|
|
@ -155,6 +163,14 @@
|
|
|
|
|
WHERE (uuid = #{uuid})
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByOriginUuid" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE (originUuid = #{originUuid})
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="findByNameCode" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
SELECT *
|
|
|
|
@ -162,7 +178,7 @@
|
|
|
|
|
WHERE (nameCode = #{nameCode})
|
|
|
|
|
limit 1
|
|
|
|
|
</select>
|
|
|
|
|
<insert id="insertUdiInfo" parameterType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
<insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
replace
|
|
|
|
|
INTO basic_products
|
|
|
|
|
(id, uuid, originUuid, nameCode, deviceRecordKey, packRatio, packLevel, packUnit, bhxjsl, bhzxxsbzsl,
|
|
|
|
@ -172,7 +188,9 @@
|
|
|
|
|
allowNoBatch, allowNoExpire,
|
|
|
|
|
allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2,
|
|
|
|
|
basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
|
|
|
|
basicPrductRemak8,pinyinInitial)
|
|
|
|
|
basicPrductRemak8
|
|
|
|
|
, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, mjfs, categoryNamem,
|
|
|
|
|
pinyinInitial)
|
|
|
|
|
values (#{id}, #{uuid},
|
|
|
|
|
#{originUuid},
|
|
|
|
|
#{nameCode},
|
|
|
|
@ -223,11 +241,12 @@
|
|
|
|
|
#{basicPrductRemak5},
|
|
|
|
|
#{basicPrductRemak6},
|
|
|
|
|
#{basicPrductRemak7},
|
|
|
|
|
#{basicPrductRemak8},
|
|
|
|
|
#{pinyinInitial})
|
|
|
|
|
#{basicPrductRemak8}, #{updateTime}
|
|
|
|
|
, #{sfwblztlcp}, #{cgzmraqxgxx}, #{sfbjwycxsy}, #{zdcfsycs}, #{sfwwjbz}, #{syqsfxyjxmj}, #{mjfs},
|
|
|
|
|
#{categoryName}, #{pinyinInitial})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiInfos" keyProperty="id" parameterType="java.util.List">
|
|
|
|
|
<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,
|
|
|
|
@ -236,7 +255,8 @@
|
|
|
|
|
allowNoBatch, allowNoExpire,
|
|
|
|
|
allowNoProduct, allowNoSerial, spmc, cplx, hchzsb, cpdls, price, basicPrductRemak1, basicPrductRemak2,
|
|
|
|
|
basicPrductRemak3, basicPrductRemak4, basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
|
|
|
|
|
basicPrductRemak8,pinyinInitial)
|
|
|
|
|
basicPrductRemak8, updateTime, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj,
|
|
|
|
|
mjfs, categoryName, pinyinInitial)
|
|
|
|
|
values
|
|
|
|
|
|
|
|
|
|
<foreach collection="udiInfoEntities" item="item" index="index"
|
|
|
|
@ -292,8 +312,10 @@
|
|
|
|
|
#{item.basicPrductRemak5},
|
|
|
|
|
#{item.basicPrductRemak6},
|
|
|
|
|
#{item.basicPrductRemak7},
|
|
|
|
|
#{item.basicPrductRemak8},
|
|
|
|
|
#{pinyinInitial})
|
|
|
|
|
#{item.basicPrductRemak8}, #{item.updateTime}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx}, #{item.sfbjwycxsy},
|
|
|
|
|
#{item.zdcfsycs},
|
|
|
|
|
#{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.mjfs},
|
|
|
|
|
#{item.categoryName}, #{item.pinyinInitial})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -426,8 +448,6 @@
|
|
|
|
|
<if test="allowNoSerial != null">
|
|
|
|
|
allowNoSerial=#{allowNoSerial},
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<if test="spmc != null">
|
|
|
|
|
spmc=#{spmc},
|
|
|
|
|
</if>
|
|
|
|
@ -467,6 +487,31 @@
|
|
|
|
|
<if test="basicPrductRemak8 != null">
|
|
|
|
|
basicPrductRemak8=#{basicPrductRemak8},
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="sfwblztlcp != null">
|
|
|
|
|
sfwblztlcp=#{sfwblztlcp},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cgzmraqxgxx != null">
|
|
|
|
|
cgzmraqxgxx=#{cgzmraqxgxx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfbjwycxsy != null">
|
|
|
|
|
sfbjwycxsy=#{sfbjwycxsy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zdcfsycs != null">
|
|
|
|
|
zdcfsycs=#{zdcfsycs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwwjbz != null">
|
|
|
|
|
sfwwjbz=#{sfwwjbz},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="syqsfxyjxmj != null">
|
|
|
|
|
syqsfxyjxmj=#{syqsfxyjxmj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE nameCode = #{nameCode}
|
|
|
|
|
and uuid = #{uuid}
|
|
|
|
@ -628,6 +673,34 @@
|
|
|
|
|
<if test="basicPrductRemak8 != null">
|
|
|
|
|
basicPrductRemak8=#{basicPrductRemak8},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime=#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="sfwblztlcp != null">
|
|
|
|
|
sfwblztlcp=#{sfwblztlcp},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cgzmraqxgxx != null">
|
|
|
|
|
cgzmraqxgxx=#{cgzmraqxgxx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfbjwycxsy != null">
|
|
|
|
|
sfbjwycxsy=#{sfbjwycxsy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zdcfsycs != null">
|
|
|
|
|
zdcfsycs=#{zdcfsycs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwwjbz != null">
|
|
|
|
|
sfwwjbz=#{sfwwjbz},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="syqsfxyjxmj != null">
|
|
|
|
|
syqsfxyjxmj=#{syqsfxyjxmj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where uuid = #{uuid}
|
|
|
|
|
</update>
|
|
|
|
@ -788,6 +861,36 @@
|
|
|
|
|
<if test="basicPrductRemak8 != null">
|
|
|
|
|
basicPrductRemak8=#{basicPrductRemak8},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime=#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="pinyinInitial != null">
|
|
|
|
|
pinyinInitial=#{pinyinInitial},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwblztlcp != null">
|
|
|
|
|
sfwblztlcp=#{sfwblztlcp},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cgzmraqxgxx != null">
|
|
|
|
|
cgzmraqxgxx=#{cgzmraqxgxx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfbjwycxsy != null">
|
|
|
|
|
sfbjwycxsy=#{sfbjwycxsy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zdcfsycs != null">
|
|
|
|
|
zdcfsycs=#{zdcfsycs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwwjbz != null">
|
|
|
|
|
sfwwjbz=#{sfwwjbz},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="syqsfxyjxmj != null">
|
|
|
|
|
syqsfxyjxmj=#{syqsfxyjxmj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -953,6 +1056,33 @@
|
|
|
|
|
<if test="basicPrductRemak8 != null">
|
|
|
|
|
basicPrductRemak8=#{basicPrductRemak8},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="pinyinInitial != null">
|
|
|
|
|
pinyinInitial=#{pinyinInitial},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwblztlcp != null">
|
|
|
|
|
sfwblztlcp=#{sfwblztlcp},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cgzmraqxgxx != null">
|
|
|
|
|
cgzmraqxgxx=#{cgzmraqxgxx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfbjwycxsy != null">
|
|
|
|
|
sfbjwycxsy=#{sfbjwycxsy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="zdcfsycs != null">
|
|
|
|
|
zdcfsycs=#{zdcfsycs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sfwwjbz != null">
|
|
|
|
|
sfwwjbz=#{sfwwjbz},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="syqsfxyjxmj != null">
|
|
|
|
|
syqsfxyjxmj=#{syqsfxyjxmj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE uuid = #{uuid}
|
|
|
|
|
</update>
|
|
|
|
@ -964,6 +1094,7 @@
|
|
|
|
|
limit 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectUdiByName" resultType="com.glxp.api.entity.basic.UdiProductEntity">
|
|
|
|
|
SELECT b1.*,
|
|
|
|
|
b2.useMuti as useMuti,
|
|
|
|
|