|
|
|
@ -25,56 +25,64 @@
|
|
|
|
|
|
|
|
|
|
<select id="findByUuid" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity">
|
|
|
|
|
SELECT * FROM basic_products WHERE (
|
|
|
|
|
uuid = #{uuid} ) limit 1
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE (
|
|
|
|
|
uuid = #{uuid}) limit 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByUuids" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity">
|
|
|
|
|
SELECT * FROM basic_products WHERE (
|
|
|
|
|
uuid = #{uuid} )
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE (
|
|
|
|
|
uuid = #{uuid})
|
|
|
|
|
</select>
|
|
|
|
|
<select id="findByNameCode" parameterType="java.lang.String"
|
|
|
|
|
resultType="com.glxp.api.admin.entity.basic.UdiInfoEntity">
|
|
|
|
|
SELECT * FROM basic_products WHERE (
|
|
|
|
|
nameCode = #{nameCode} ) limit 1
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE (
|
|
|
|
|
nameCode = #{nameCode}) limit 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiInfo" keyProperty="id" parameterType="com.glxp.api.admin.entity.basic.UdiInfoEntity">
|
|
|
|
|
replace INTO basic_products
|
|
|
|
|
replace
|
|
|
|
|
INTO basic_products
|
|
|
|
|
(
|
|
|
|
|
nameCode,packRatio,packLevel,bhxjsl,
|
|
|
|
|
id,nameCode,packRatio,packLevel,bhxjsl,
|
|
|
|
|
bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey,
|
|
|
|
|
cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber
|
|
|
|
|
,diType,productType
|
|
|
|
|
)
|
|
|
|
|
values
|
|
|
|
|
(
|
|
|
|
|
#{nameCode},
|
|
|
|
|
#{packRatio},
|
|
|
|
|
#{packLevel},
|
|
|
|
|
#{bhxjsl},
|
|
|
|
|
#{bhzxxsbzsl},
|
|
|
|
|
#{zxxsbzbhsydysl},
|
|
|
|
|
#{bhxjcpbm},
|
|
|
|
|
#{bzcj},
|
|
|
|
|
#{addType},
|
|
|
|
|
#{deviceRecordKey},
|
|
|
|
|
#{cpmctymc},
|
|
|
|
|
#{cplb},
|
|
|
|
|
#{flbm},
|
|
|
|
|
#{ggxh},
|
|
|
|
|
#{qxlb},
|
|
|
|
|
#{tyshxydm},
|
|
|
|
|
#{ylqxzcrbarmc},
|
|
|
|
|
#{zczbhhzbapzbh},
|
|
|
|
|
#{ylqxzcrbarywmc},
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{sjcpbm},
|
|
|
|
|
#{versionNumber},
|
|
|
|
|
#{diType},
|
|
|
|
|
#{productType}
|
|
|
|
|
)
|
|
|
|
|
#{id},
|
|
|
|
|
#{nameCode},
|
|
|
|
|
#{packRatio},
|
|
|
|
|
#{packLevel},
|
|
|
|
|
#{bhxjsl},
|
|
|
|
|
#{bhzxxsbzsl},
|
|
|
|
|
#{zxxsbzbhsydysl},
|
|
|
|
|
#{bhxjcpbm},
|
|
|
|
|
#{bzcj},
|
|
|
|
|
#{addType},
|
|
|
|
|
#{deviceRecordKey},
|
|
|
|
|
#{cpmctymc},
|
|
|
|
|
#{cplb},
|
|
|
|
|
#{flbm},
|
|
|
|
|
#{ggxh},
|
|
|
|
|
#{qxlb},
|
|
|
|
|
#{tyshxydm},
|
|
|
|
|
#{ylqxzcrbarmc},
|
|
|
|
|
#{zczbhhzbapzbh},
|
|
|
|
|
#{ylqxzcrbarywmc},
|
|
|
|
|
#{uuid},
|
|
|
|
|
#{sjcpbm},
|
|
|
|
|
#{versionNumber},
|
|
|
|
|
#{diType},
|
|
|
|
|
#{productType}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertUdiInfos" keyProperty="id" parameterType="java.util.List">
|
|
|
|
@ -119,11 +127,15 @@
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteById" parameterType="Map">
|
|
|
|
|
DELETE FROM basic_products WHERE id = #{id}
|
|
|
|
|
DELETE
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteByUuid" parameterType="Map">
|
|
|
|
|
DELETE FROM basic_products WHERE uuid = #{uuid}
|
|
|
|
|
DELETE
|
|
|
|
|
FROM basic_products
|
|
|
|
|
WHERE uuid = #{uuid}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<update id="updateUdiInfo" parameterType="com.glxp.api.admin.entity.basic.UdiInfoEntity">
|
|
|
|
@ -170,41 +182,41 @@
|
|
|
|
|
|
|
|
|
|
<insert id="importUdiInfo" parameterType="java.util.List">
|
|
|
|
|
replace into basic_products
|
|
|
|
|
(id, nameCode, packRatio, packLevel, bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, addType,
|
|
|
|
|
deviceRecordKey, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh,
|
|
|
|
|
ylqxzcrbarywmc, sydycpbs, uuid, sjcpbm, versionNumber, diType, ybbm, sptm, manufactory, measname,
|
|
|
|
|
productType) values
|
|
|
|
|
(id, nameCode, packRatio, packLevel, bhxjsl, bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, addType,
|
|
|
|
|
deviceRecordKey, cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh,
|
|
|
|
|
ylqxzcrbarywmc, sydycpbs, uuid, sjcpbm, versionNumber, diType, ybbm, sptm, manufactory, measname,
|
|
|
|
|
productType) values
|
|
|
|
|
<foreach collection="udiInfoEntities" item="item" index="index" separator=",">
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.nameCode},
|
|
|
|
|
#{item.packRatio},
|
|
|
|
|
#{item.packLevel},
|
|
|
|
|
#{item.bhxjsl},
|
|
|
|
|
#{item.bhzxxsbzsl},
|
|
|
|
|
#{item.zxxsbzbhsydysl},
|
|
|
|
|
#{item.bhxjcpbm},
|
|
|
|
|
#{item.bzcj},
|
|
|
|
|
#{item.addType},
|
|
|
|
|
#{item.deviceRecordKey},
|
|
|
|
|
#{item.cpmctymc},
|
|
|
|
|
#{item.cplb},
|
|
|
|
|
#{item.flbm},
|
|
|
|
|
#{item.ggxh},
|
|
|
|
|
#{item.qxlb},
|
|
|
|
|
#{item.tyshxydm},
|
|
|
|
|
#{item.ylqxzcrbarmc},
|
|
|
|
|
#{item.zczbhhzbapzbh},
|
|
|
|
|
#{item.ylqxzcrbarywmc},
|
|
|
|
|
#{item.sydycpbs},
|
|
|
|
|
#{item.uuid},
|
|
|
|
|
#{item.sjcpbm},
|
|
|
|
|
#{item.versionNumber},
|
|
|
|
|
#{item.diType},
|
|
|
|
|
#{item.ybbm},
|
|
|
|
|
#{item.sptm},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.productType})
|
|
|
|
|
#{item.nameCode},
|
|
|
|
|
#{item.packRatio},
|
|
|
|
|
#{item.packLevel},
|
|
|
|
|
#{item.bhxjsl},
|
|
|
|
|
#{item.bhzxxsbzsl},
|
|
|
|
|
#{item.zxxsbzbhsydysl},
|
|
|
|
|
#{item.bhxjcpbm},
|
|
|
|
|
#{item.bzcj},
|
|
|
|
|
#{item.addType},
|
|
|
|
|
#{item.deviceRecordKey},
|
|
|
|
|
#{item.cpmctymc},
|
|
|
|
|
#{item.cplb},
|
|
|
|
|
#{item.flbm},
|
|
|
|
|
#{item.ggxh},
|
|
|
|
|
#{item.qxlb},
|
|
|
|
|
#{item.tyshxydm},
|
|
|
|
|
#{item.ylqxzcrbarmc},
|
|
|
|
|
#{item.zczbhhzbapzbh},
|
|
|
|
|
#{item.ylqxzcrbarywmc},
|
|
|
|
|
#{item.sydycpbs},
|
|
|
|
|
#{item.uuid},
|
|
|
|
|
#{item.sjcpbm},
|
|
|
|
|
#{item.versionNumber},
|
|
|
|
|
#{item.diType},
|
|
|
|
|
#{item.ybbm},
|
|
|
|
|
#{item.sptm},
|
|
|
|
|
#{item.manufactory},
|
|
|
|
|
#{item.measname},
|
|
|
|
|
#{item.productType})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
</mapper>
|