select f_id, f_pid, f_cntrno, f_sealno, f_goodsid, f_packageid, f_cntrid, f_cntrcount, f_cntrweight, f_cntrstatus, f_soc, f_temperature, f_Draught, f_Humidity, f_precooling, f_plantakecntr, f_IFDANGER,f_manual, create_by, create_time, update_by, update_time, remark from t_warehousebills_cntritems
    
    
    
    
        
    
        insert into t_warehousebills_cntritems
        
            f_pid,
            f_cntrno,
            f_sealno,
            f_goodsid,
            f_packageid,
            f_cntrid,
            f_cntrcount,
            f_cntrweight,
            f_cntrstatus,
            f_soc,
            f_temperature,
            f_Draught,
            f_Humidity,
            f_precooling,
            f_plantakecntr,
            f_IFDANGER,
            f_manual,
            create_by,
            create_time,
            update_by,
            update_time,
            remark,
         
        
            #{fPid},
            #{fCntrno},
            #{fSealno},
            #{fGoodsid},
            #{fPackageid},
            #{fCntrid},
            #{fCntrcount},
            #{fCntrweight},
            #{fCntrstatus},
            #{fSoc},
            #{fTemperature},
            #{fDraught},
            #{fHumidity},
            #{fPrecooling},
            #{fPlantakecntr},
            #{fIfdanger},
            #{fManual},
            #{createBy},
            #{createTime},
            #{updateBy},
            #{updateTime},
            #{remark},
         
    
    
        update t_warehousebills_cntritems
        
            f_pid = #{fPid},
            f_cntrno = #{fCntrno},
            f_sealno = #{fSealno},
            f_goodsid = #{fGoodsid},
            f_packageid = #{fPackageid},
            f_cntrid = #{fCntrid},
            f_cntrcount = #{fCntrcount},
            f_cntrweight = #{fCntrweight},
            f_cntrstatus = #{fCntrstatus},
            f_soc = #{fSoc},
            f_temperature = #{fTemperature},
            f_Draught = #{fDraught},
            f_Humidity = #{fHumidity},
            f_precooling = #{fPrecooling},
            f_plantakecntr = #{fPlantakecntr},
            f_IFDANGER = #{fIfdanger},
            f_manual = #{fManual},
            create_by = #{createBy},
            create_time = #{createTime},
            update_by = #{updateBy},
            update_time = #{updateTime},
            remark = #{remark},
        
        where f_id = #{fId}
    
    
        delete from t_warehousebills_cntritems where f_id = #{fId}
    
    
        delete from t_warehousebills_cntritems where f_id in 
        
            #{fId}
        
    
    
        delete from t_warehousebills_cntritems where f_pid = #{fPid}
    
    
        delete from t_warehousebills_cntritems where f_pid in
        
            #{fPid}