replace INTO erporder(id, companyid,docid,iodtlid,inoutid,goodsunit,goodsid,lotid,goodsname,companyname, lotno,dtlgoodsqty,credate,nameCode,productCompany, coName,authCode,packSpec,packRatio,bhzxxsbzsl,zxxsbzbhsydysl,orderIdFk,count,reCount,warehouseCode) values( #{id}, #{companyid}, #{docid}, #{iodtlid}, #{inoutid}, #{goodsunit}, #{goodsid}, #{lotid}, #{goodsname}, #{companyname}, #{lotno}, #{dtlgoodsqty}, #{credate}, #{nameCode},#{productCompany},#{coName},#{authCode},#{packSpec},#{packRatio}, #{bhzxxsbzsl},#{zxxsbzbhsydysl},#{orderIdFk},#{count},#{reCount},#{warehouseCode} ) replace INTO erporder(id, companyid,docid,iodtlid,inoutid,goodsunit,goodsid,lotid,goodsname,companyname, lotno,dtlgoodsqty,credate,nameCode,productCompany, coName,authCode,packSpec,packRatio,bhzxxsbzsl,zxxsbzbhsydysl,orderIdFk,count,reCount,warehouseCode) values ( #{item.id}, #{item.companyid}, #{item.docid}, #{item.iodtlid}, #{item.inoutid}, #{item.goodsunit}, #{item.goodsid}, #{item.lotid}, #{item.goodsname}, #{item.companyname}, #{item.lotno}, #{item.dtlgoodsqty}, #{item.credate}, #{item.nameCode}, #{item.productCompany}, #{item.coName}, #{item.authCode}, #{item.packSpec}, #{item.packRatio}, #{item.bhzxxsbzsl}, #{item.zxxsbzbhsydysl}, #{item.orderIdFk}, #{item.count},#{item.reCount},#{item.warehouseCode}) UPDATE erporder count=#{count}, reCount=#{reCount}, WHERE id = #{id} DELETE FROM erporder WHERE docid = #{id} DELETE FROM erporder WHERE id = #{id} DELETE FROM erporder WHERE orderIdFk = #{id}