INSERT INTO ma_type_put_in_storage_details ( NUM, NUM, INFO, TYPE, MACHINE, REMARKS, MACODE, ) VALUES ( 1, #{putInStoreNum}, #{infoId}, #{typeId}, #{maId}, #{remark}, #{maCode}, ) INSERT INTO ma_type_put_in_storage_info PUT_IN_TYPE, NUM, NUM, CREATOR, UNIT_ID, PROJECT_ID, CODE, REMARKS, CREATE_DATE VALUES #{putInType}, #{num}, #{totalNum}, #{creator}, #{unitId}, #{proId}, #{code}, #{remarks}, sysdate() insert into ma_machine ( type_id, ma_code, ma_status, qr_code, buy_price, ma_vender, check_man, out_fac_code, this_check_time, next_check_time, create_time )values( #{typeId}, #{maCode}, 15, #{qrCode}, #{buyPrice}, #{maVender}, #{checkMan}, #{outFacCode}, #{thisCheckTime}, #{nextCheckTime}, sysdate() ) insert into ma_machine_label label_code, ma_id, is_bind, label_type, create_time #{qrCode}, #{maId}, 1, 9, now() insert into ma_label_bind ma_id, label_code, type_id, binder, label_type, bind_time, status #{maId}, #{qrCode}, #{typeId}, #{creator}, 9, now(), 1 UPDATE ma_type SET num = IFNULL(num, 0) + #{num}, update_time = now() and type_id = #{typeId}