select GOODS_ID, GOODS_NAME, CTL, LOCATION, PRODUCTLOTID, SHELFNUM, PRODUCTIONDATE, EXPIRATIONDATE, CREATETIME, USERNAME, FROMSTATUS, TOSTATUS, SCRAPID from t_scrap_report insert into t_scrap_report GOODS_ID, GOODS_NAME, CTL, LOCATION, PRODUCTLOTID, SHELFNUM, PRODUCTIONDATE, EXPIRATIONDATE, CREATETIME, USERNAME, FROMSTATUS, TOSTATUS, SCRAPID, #{goodsId}, #{goodsName}, #{ctl}, #{location}, #{productlotid}, #{shelfnum}, #{productiondate}, #{expirationdate}, #{createtime}, #{username}, #{fromstatus}, #{tostatus}, #{scrapid}, update t_scrap_report GOODS_ID = #{goodsId}, GOODS_NAME = #{goodsName}, CTL = #{ctl}, LOCATION = #{location}, PRODUCTLOTID = #{productlotid}, SHELFNUM = #{shelfnum}, PRODUCTIONDATE = #{productiondate}, EXPIRATIONDATE = #{expirationdate}, CREATETIME = #{createtime}, USERNAME = #{username}, FROMSTATUS = #{fromstatus}, TOSTATUS = #{tostatus}, where SCRAPID = #{scrapid} delete from t_scrap_report where SCRAPID = #{scrapid} delete from t_scrap_report where SCRAPID in #{scrapid}