replace INTO basic_products (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,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,manufactory,originUuid,allowNoBatch,allowNoExpire,allowNoProduct) values ( #{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}, #{scbssfbhph}, #{scbssfbhxlh}, #{scbssfbhscrq}, #{scbssfbhsxrq}, #{cpms}, #{manufactory}, #{originUuid}, #{allowNoBatch}, #{allowNoExpire}, #{allowNoProduct} ) replace INTO basic_products ( nameCode,packRatio,packLevel,bhxjsl, bhzxxsbzsl,zxxsbzbhsydysl,bhxjcpbm,bzcj,addType,deviceRecordKey, cpmctymc,cplb,flbm,ggxh,qxlb,tyshxydm,ylqxzcrbarmc,zczbhhzbapzbh,ylqxzcrbarywmc,uuid,sjcpbm,versionNumber ,diType,productType,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,manufactory,originUuid,allowNoBatch,allowNoExpire,allowNoProduct ) values ( #{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.uuid}, #{item.sjcpbm}, #{item.versionNumber}, #{item.diType},#{item.productType}, #{item.scbssfbhph}, #{item.scbssfbhxlh}, #{item.scbssfbhscrq}, #{item.scbssfbhsxrq},#{item.cpms},#{item.manufactory},#{item.originUuid},#{item.allowNoBatch},#{item.allowNoExpire},#{item.allowNoProduct} ) DELETE FROM basic_products WHERE id = #{id} DELETE FROM basic_products WHERE uuid = #{uuid} UPDATE basic_products packRatio=#{packRatio}, packLevel=#{packLevel}, bhxjsl=#{bhxjsl}, bhzxxsbzsl=#{bhzxxsbzsl}, zxxsbzbhsydysl=#{zxxsbzbhsydysl}, bhxjcpbm=#{bhxjcpbm}, bzcj=#{bzcj}, addType=#{addType}, deviceRecordKey=#{deviceRecordKey}, cpmctymc=#{cpmctymc}, cplb=#{cplb}, flbm=#{flbm}, ggxh=#{ggxh}, qxlb=#{qxlb}, tyshxydm=#{tyshxydm}, ylqxzcrbarmc=#{ylqxzcrbarmc}, ylqxzcrbarywmc=#{ylqxzcrbarywmc}, uuid=#{uuid}, sjcpbm=#{sjcpbm}, versionNumber=#{versionNumber}, sptm=#{sptm}, manufactory=#{manufactory}, ybbm=#{ybbm}, measname=#{measname}, diType=#{diType}, productType=#{productType}, scbssfbhph=#{scbssfbhph}, scbssfbhxlh=#{scbssfbhxlh}, scbssfbhscrq=#{scbssfbhscrq}, scbssfbhsxrq=#{scbssfbhsxrq}, cpms=#{cpms}, originUuid=#{originUuid}, allowNoBatch=#{allowNoBatch}, allowNoExpire=#{allowNoExpire}, allowNoProduct=#{allowNoProduct}, spmc=#{spmc}, cpdls=#{cpdls}, basicPrductRemak1=#{basicPrductRemak1}, basicPrductRemak2=#{basicPrductRemak2}, basicPrductRemak3=#{basicPrductRemak3}, basicPrductRemak4=#{basicPrductRemak4}, basicPrductRemak5=#{basicPrductRemak5}, basicPrductRemak6=#{basicPrductRemak6}, basicPrductRemak7=#{basicPrductRemak7}, basicPrductRemak8=#{basicPrductRemak8}, WHERE nameCode = #{nameCode} and uuid = #{uuid} update basic_products ggxh=#{ggxh}, qxlb=#{qxlb}, cplb=#{cplb}, flbm=#{flbm}, ylqxzcrbarmc=#{ylqxzcrbarmc}, ylqxzcrbarywmc=#{ylqxzcrbarywmc}, tyshxydm=#{tyshxydm}, zczbhhzbapzbh=#{zczbhhzbapzbh}, cpms=#{cpms}, sptm=#{sptm}, measname=#{measname}, allowNoBatch=#{allowNoBatch}, allowNoExpire=#{allowNoExpire}, allowNoProduct=#{allowNoProduct}, where uuid = #{uuid} 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,scbssfbhph,scbssfbhxlh,scbssfbhscrq,scbssfbhsxrq,cpms,originUuid,allowNoBatch,allowNoExpire,allowNoProduct) values (#{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.scbssfbhph}, #{item.scbssfbhxlh}, #{item.scbssfbhscrq}, #{item.scbssfbhsxrq},#{item.cpms},#{item.originUuid},#{allowNoBatch},#{allowNoExpire},#{allowNoProduct})