replace INTO thr_order_detail ( productId,productName,spec,batchNo,expireDate, productDate,count,reCount,orderIdFk,thirdSysFk ) values ( #{productId},#{productName},#{spec},#{batchNo},#{expireDate}, #{productDate},#{count},#{reCount},#{orderIdFk},#{thirdSysFk} ) replace INTO thr_order_detail ( productId,productName,spec,batchNo,expireDate, productDate,count,reCount,orderIdFk,thirdSysFk ) values ( #{item.productId},#{item.productName},#{item.spec},#{item.batchNo},#{item.expireDate}, #{item.productDate},#{item.count},#{item.reCount},#{item.orderIdFk},#{item.thirdSysFk} ) DELETE FROM thr_order_detail WHERE id = #{id} DELETE FROM thr_order_detail WHERE orderIdFk = #{orderIdFk} UPDATE thr_order_detail productId=#{productId}, productName=#{productName}, spec=#{spec}, batchNo=#{batchNo}, expireDate=#{expireDate}, productDate=#{productDate}, count=#{count}, reCount=#{reCount}, orderIdFk=#{orderIdFk}, thirdSysFk=#{thirdSysFk}, WHERE id = #{id} DELETE FROM thr_order_detail