select inspectId, goodsId, goodsName, productlotid, ctl, location, productionDate, expirationDate, shelfNum, provider, status, createTime, userName from t_inspect_report insert into t_inspect_report inspectId, goodsId, goodsName, productlotid, ctl, location, productionDate, expirationDate, shelfNum, provider, status, createTime, userName, #{inspectid}, #{goodsid}, #{goodsname}, #{productlotid}, #{ctl}, #{location}, #{productiondate}, #{expirationdate}, #{shelfnum}, #{provider}, #{status}, #{createtime}, #{username}, update t_inspect_report goodsId = #{goodsid}, goodsName = #{goodsname}, productlotid = #{productlotid}, ctl = #{ctl}, location = #{location}, productionDate = #{productiondate}, expirationDate = #{expirationdate}, shelfNum = #{shelfnum}, provider = #{provider}, status = #{status}, createTime = #{createtime}, userName = #{username}, where inspectId = #{inspectid} delete from t_inspect_report where inspectId = #{inspectid} delete from t_inspect_report where inspectId in #{inspectid}