|
|
|
@ -2,10 +2,10 @@
|
|
|
|
|
<!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.ProductInfoDao">
|
|
|
|
|
|
|
|
|
|
<select id="filterProductInfo" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
SELECT * FROM productinfo
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM productinfo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc}, '%')
|
|
|
|
@ -29,16 +29,16 @@
|
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
<select id="filterProductGroup" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
SELECT * FROM productinfo
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM productinfo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc}, '%')
|
|
|
|
@ -62,7 +62,9 @@
|
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY uuid
|
|
|
|
@ -70,7 +72,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterCpmctymc" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
select * from productinfo
|
|
|
|
|
select *
|
|
|
|
|
from productinfo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="tyshxydm != '' and tyshxydm != null">
|
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
@ -85,7 +88,9 @@
|
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY cpmctymc
|
|
|
|
@ -94,7 +99,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiByTyshxydm" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
SELECT * FROM productinfo
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM productinfo
|
|
|
|
|
<where>
|
|
|
|
|
diType = 1
|
|
|
|
|
<if test="tyshxydm != '' and tyshxydm != null">
|
|
|
|
@ -110,7 +116,9 @@
|
|
|
|
|
AND uuid = #{uuid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY nameCode
|
|
|
|
@ -118,7 +126,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectAllByUuid" parameterType="java.util.List"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
select * from productinfo where
|
|
|
|
|
select *
|
|
|
|
|
from productinfo where
|
|
|
|
|
uuid in (
|
|
|
|
|
<foreach collection="ids" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
@ -137,12 +146,12 @@
|
|
|
|
|
<!-- CHAR_LENGTH(nameCode) <![CDATA[ >= ]]> 14-->
|
|
|
|
|
<select id="filterUdiByCreditNo" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
|
|
|
|
|
select p.* from productinfo p INNER JOIN
|
|
|
|
|
(select deviceRecordKey ,max(versionNumber) versionNumber from productinfo
|
|
|
|
|
select p.* from productinfo p
|
|
|
|
|
INNER JOIN
|
|
|
|
|
(select deviceRecordKey, max(versionNumber) versionNumber
|
|
|
|
|
from productinfo
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
|
|
<if test="tyshxydm != '' and tyshxydm != null">
|
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
|
</if>
|
|
|
|
@ -168,8 +177,8 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterUdiByNewest" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
|
|
|
|
|
SELECT * FROM productinfo
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM productinfo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="tyshxydm != '' and tyshxydm != null">
|
|
|
|
|
AND tyshxydm = #{tyshxydm}
|
|
|
|
@ -191,9 +200,10 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterUuidByCreditNo" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="java.lang.String">
|
|
|
|
|
|
|
|
|
|
select p.uuid from productinfo p INNER JOIN
|
|
|
|
|
(select deviceRecordKey ,max(versionNumber) versionNumber from productinfo
|
|
|
|
|
select p.uuid from productinfo p
|
|
|
|
|
INNER JOIN
|
|
|
|
|
(select deviceRecordKey, max(versionNumber) versionNumber
|
|
|
|
|
from productinfo
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
<if test="tyshxydm != '' and tyshxydm != null">
|
|
|
|
@ -215,8 +225,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="filterUdi" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
|
|
|
|
|
select * from productinfo
|
|
|
|
|
select *
|
|
|
|
|
from productinfo
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc = #{ylqxzcrbarmc}
|
|
|
|
@ -246,7 +256,9 @@
|
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isNewest != null and isNewest != ''">
|
|
|
|
|
AND isNewest = #{isNewest}
|
|
|
|
@ -255,8 +267,6 @@
|
|
|
|
|
AND diType = #{diType}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -368,10 +378,9 @@
|
|
|
|
|
|
|
|
|
|
<select id="syncDlUdi" parameterType="com.glxp.api.req.basic.ProductInfoFilterRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
|
|
|
|
|
SELECT * FROM productinfo
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM productinfo
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc}, '%')
|
|
|
|
|
</if>
|
|
|
|
@ -394,7 +403,9 @@
|
|
|
|
|
AND deviceRecordKey = #{deviceRecordKey}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null and updateTime != ''">
|
|
|
|
|
<![CDATA[ and updateTime>= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
and updateTime >= DATE_FORMAT(#{updateTime}, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
limit #{page},#{limit}
|
|
|
|
@ -405,17 +416,16 @@
|
|
|
|
|
parameterType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
REPLACE
|
|
|
|
|
INTO productinfo
|
|
|
|
|
(
|
|
|
|
|
id,nameCode,packRatio,packLevel,bhxjsl,
|
|
|
|
|
bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,thirdProductNo,addType,deviceRecordKey,isUseDy,thirdProductName,
|
|
|
|
|
cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber
|
|
|
|
|
(id, nameCode, packRatio, packLevel, bhxjsl,
|
|
|
|
|
bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, thirdProductNo, addType, deviceRecordKey, isUseDy,
|
|
|
|
|
thirdProductName,
|
|
|
|
|
cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, uuid, sjcpbm,
|
|
|
|
|
versionNumber
|
|
|
|
|
, diType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq,
|
|
|
|
|
ybbm, spmc, cphhhbh, cpms, cpbsbmtxmc, isNewest, updateTime, cplx, hchzsb
|
|
|
|
|
,sfwblztlcp,cgzmraqxgxx,sfbjwycxsy,zdcfsycs,sfwwjbz,syqsfxyjxmj,qtxxdwzlj,mjfs
|
|
|
|
|
)
|
|
|
|
|
values
|
|
|
|
|
(
|
|
|
|
|
#{id},
|
|
|
|
|
, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, qtxxdwzlj, mjfs,
|
|
|
|
|
categoryName)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{nameCode},
|
|
|
|
|
#{packRatio},
|
|
|
|
|
#{packLevel},
|
|
|
|
@ -462,29 +472,26 @@
|
|
|
|
|
#{sfwwjbz},
|
|
|
|
|
#{syqsfxyjxmj},
|
|
|
|
|
#{qtxxdwzlj},
|
|
|
|
|
#{mjfs}
|
|
|
|
|
)
|
|
|
|
|
#{mjfs}, #{categoryName})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertProductInfos" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
REPLACE INTO productinfo
|
|
|
|
|
(
|
|
|
|
|
id,nameCode,packRatio,packLevel,bhxjsl,
|
|
|
|
|
bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,thirdProductNo,addType,deviceRecordKey,isUseDy,thirdProductName,
|
|
|
|
|
cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber
|
|
|
|
|
(id, nameCode, packRatio, packLevel, bhxjsl,
|
|
|
|
|
bhzxxsbzsl, zxxsbzbhsydysl, bhxjcpbm, bzcj, thirdProductNo, addType, deviceRecordKey, isUseDy,
|
|
|
|
|
thirdProductName,
|
|
|
|
|
cpmctymc, cplb, flbm, ggxh, qxlb, tyshxydm, ylqxzcrbarmc, zczbhhzbapzbh, ylqxzcrbarywmc, uuid, sjcpbm,
|
|
|
|
|
versionNumber
|
|
|
|
|
, diType, scbssfbhph, scbssfbhxlh, scbssfbhscrq, scbssfbhsxrq,
|
|
|
|
|
ybbm, spmc, cphhhbh, cpms, cpbsbmtxmc, isNewest, updateTime, cplx, hchzsb
|
|
|
|
|
,sfwblztlcp,cgzmraqxgxx,sfbjwycxsy,zdcfsycs,sfwwjbz,syqsfxyjxmj,qtxxdwzlj,mjfs
|
|
|
|
|
) values
|
|
|
|
|
, sfwblztlcp, cgzmraqxgxx, sfbjwycxsy, zdcfsycs, sfwwjbz, syqsfxyjxmj, qtxxdwzlj, mjfs,
|
|
|
|
|
categoryName) values
|
|
|
|
|
|
|
|
|
|
<foreach collection="datas" item="item" index="index"
|
|
|
|
|
separator=",">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
#{item.id},
|
|
|
|
|
(#{item.id},
|
|
|
|
|
#{item.nameCode},
|
|
|
|
|
#{item.packRatio},
|
|
|
|
|
#{item.packLevel},
|
|
|
|
@ -521,9 +528,9 @@
|
|
|
|
|
#{item.cpms},
|
|
|
|
|
#{item.cpbsbmtxmc},
|
|
|
|
|
#{item.isNewest},
|
|
|
|
|
#{item.updateTime},#{item.cplx},#{item.hchzsb},#{item.sfwblztlcp},#{item.cgzmraqxgxx},#{item.sfbjwycxsy},#{item.zdcfsycs}
|
|
|
|
|
,#{item.sfwwjbz},#{item.syqsfxyjxmj},#{item.qtxxdwzlj},#{item.mjfs}
|
|
|
|
|
)
|
|
|
|
|
#{item.updateTime}, #{item.cplx}, #{item.hchzsb}, #{item.sfwblztlcp}, #{item.cgzmraqxgxx},
|
|
|
|
|
#{item.sfbjwycxsy}, #{item.zdcfsycs}
|
|
|
|
|
, #{item.sfwwjbz}, #{item.syqsfxyjxmj}, #{item.qtxxdwzlj}, #{item.mjfs}, #{item.categoryName})
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -534,7 +541,8 @@
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteAll" parameterType="java.util.List">
|
|
|
|
|
DELETE FROM productinfo WHERE thirdProductNo in
|
|
|
|
|
DELETE
|
|
|
|
|
FROM productinfo WHERE thirdProductNo in
|
|
|
|
|
<foreach collection="ids" item="item" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
@ -543,44 +551,120 @@
|
|
|
|
|
<update id="updateProductInfo" parameterType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
UPDATE productinfo
|
|
|
|
|
<set>
|
|
|
|
|
<if test="nameCode != null">nameCode=#{nameCode},</if>
|
|
|
|
|
<if test="packRatio != null">packRatio=#{packRatio},</if>
|
|
|
|
|
<if test="packLevel != null">packLevel=#{packLevel},</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="thirdProductNo != null">thirdProductNo=#{thirdProductNo},</if>
|
|
|
|
|
<if test="addType != null">addType=#{addType},</if>
|
|
|
|
|
<if test="deviceRecordKey != null">deviceRecordKey=#{deviceRecordKey},</if>
|
|
|
|
|
<if test="isUseDy != null">isUseDy=#{isUseDy},</if>
|
|
|
|
|
<if test="thirdProductName != null">thirdProductName=#{thirdProductName},</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="ylqxzcrbarywmc != null">ylqxzcrbarywmc=#{ylqxzcrbarywmc},</if>
|
|
|
|
|
<if test="uuid != null">uuid=#{uuid},</if>
|
|
|
|
|
<if test="sjcpbm != null">sjcpbm=#{sjcpbm},</if>
|
|
|
|
|
<if test="versionNumber != null">versionNumber=#{versionNumber},</if>
|
|
|
|
|
<if test="diType != null">diType=#{diType},</if>
|
|
|
|
|
<if test="isNewest != null">isNewest=#{isNewest},</if>
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
|
<if test="cplx != null">cplx=#{cplx},</if>
|
|
|
|
|
<if test="hchzsb != null">hchzsb=#{hchzsb},</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="qtxxdwzlj != null">qtxxdwzlj=#{qtxxdwzlj},</if>
|
|
|
|
|
<if test="mjfs != null">mjfs=#{mjfs},</if>
|
|
|
|
|
<if test="nameCode != null">
|
|
|
|
|
nameCode=#{nameCode},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="packRatio != null">
|
|
|
|
|
packRatio=#{packRatio},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="packLevel != null">
|
|
|
|
|
packLevel=#{packLevel},
|
|
|
|
|
</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="thirdProductNo != null">
|
|
|
|
|
thirdProductNo=#{thirdProductNo},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="addType != null">
|
|
|
|
|
addType=#{addType},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="deviceRecordKey != null">
|
|
|
|
|
deviceRecordKey=#{deviceRecordKey},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isUseDy != null">
|
|
|
|
|
isUseDy=#{isUseDy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdProductName != null">
|
|
|
|
|
thirdProductName=#{thirdProductName},
|
|
|
|
|
</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="ylqxzcrbarywmc != null">
|
|
|
|
|
ylqxzcrbarywmc=#{ylqxzcrbarywmc},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuid != null">
|
|
|
|
|
uuid=#{uuid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="sjcpbm != null">
|
|
|
|
|
sjcpbm=#{sjcpbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="versionNumber != null">
|
|
|
|
|
versionNumber=#{versionNumber},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="diType != null">
|
|
|
|
|
diType=#{diType},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isNewest != null">
|
|
|
|
|
isNewest=#{isNewest},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime=#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cplx != null">
|
|
|
|
|
cplx=#{cplx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="hchzsb != null">
|
|
|
|
|
hchzsb=#{hchzsb},
|
|
|
|
|
</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="qtxxdwzlj != null">
|
|
|
|
|
qtxxdwzlj=#{qtxxdwzlj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
@ -588,29 +672,72 @@
|
|
|
|
|
<update id="updateProductByUuid" parameterType="com.glxp.api.entity.basic.ProductInfoEntity">
|
|
|
|
|
UPDATE productinfo
|
|
|
|
|
<set>
|
|
|
|
|
<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="ybbm != null">ybbm=#{ybbm},</if>
|
|
|
|
|
<if test="spmc != null">spmc=#{spmc},</if>
|
|
|
|
|
<if test="cphhhbh != null">cphhhbh=#{cphhhbh},</if>
|
|
|
|
|
<if test="cpms != null">cpms=#{cpms},</if>
|
|
|
|
|
<if test="cpbsbmtxmc != null">cpbsbmtxmc=#{cpbsbmtxmc},</if>
|
|
|
|
|
<if test="isNewest != null">isNewest=#{isNewest},</if>
|
|
|
|
|
<if test="updateTime != null">updateTime=#{updateTime},</if>
|
|
|
|
|
<if test="cplx != null">cplx=#{cplx},</if>
|
|
|
|
|
<if test="hchzsb != null">hchzsb=#{hchzsb},
|
|
|
|
|
</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="qtxxdwzlj != null">qtxxdwzlj=#{qtxxdwzlj},</if>
|
|
|
|
|
<if test="mjfs != null">mjfs=#{mjfs},</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="ybbm != null">
|
|
|
|
|
ybbm=#{ybbm},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="spmc != null">
|
|
|
|
|
spmc=#{spmc},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cphhhbh != null">
|
|
|
|
|
cphhhbh=#{cphhhbh},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpms != null">
|
|
|
|
|
cpms=#{cpms},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpbsbmtxmc != null">
|
|
|
|
|
cpbsbmtxmc=#{cpbsbmtxmc},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="isNewest != null">
|
|
|
|
|
isNewest=#{isNewest},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
updateTime=#{updateTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cplx != null">
|
|
|
|
|
cplx=#{cplx},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="hchzsb != null">
|
|
|
|
|
hchzsb=#{hchzsb},
|
|
|
|
|
</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="qtxxdwzlj != null">
|
|
|
|
|
qtxxdwzlj=#{qtxxdwzlj},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="mjfs != null">
|
|
|
|
|
mjfs=#{mjfs},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="categoryName != null">
|
|
|
|
|
categoryName=#{categoryName},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
WHERE uuid = #{uuid}
|
|
|
|
|
</update>
|
|
|
|
@ -620,7 +747,8 @@
|
|
|
|
|
<select id="findAllUuids" parameterType="com.glxp.api.util.page.ListPageRequest" resultType="java.lang.String">
|
|
|
|
|
SELECT uuid
|
|
|
|
|
from device
|
|
|
|
|
group by uuid limit #{page}, #{limit}
|
|
|
|
|
group by uuid
|
|
|
|
|
limit #{page}, #{limit}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="findAllTyshxyh" resultType="java.lang.String">
|
|
|
|
|
SELECT tyshxydm
|
|
|
|
|