INSERT INTO ma_type_put_in_storage_details (NUM,
MACHINE,
REMARKS,
MA_CODE,
)
VALUES (1,
#{maId},
#{remarks},
#{maCode},
)
INSERT INTO ma_type_put_in_storage_info
ID,
PUT_IN_TYPE,
NUM,
CREATOR,
CREATE_DATE,
REMARKS
VALUES
#{id},
#{putInType},
1,
#{creator},
sysdate(),
#{remarks}
insert into ma_machine (
type_id,
ma_code,
ma_status,
qr_code,
buy_price,
ma_vender,
out_fac_code,
this_check_time,
next_check_time,
create_time
)values(
#{typeId},
#{maCode},
15,
#{code},
#{buyPrice},
#{maVender},
#{outFacCode},
#{thisCheckTime},
#{nextCheckTime},
sysdate()
)
insert into ma_machine_label
label_id,
label_code,
ma_id,
is_bind,
label_type,
create_time
#{maId},
#{code},
#{maId},
1,
9,
now()
insert into ma_label_bind
ma_id,
label_code,
type_id,
label_type,
bind_time,
status
#{maId},
#{code},
#{typeId},
9,
now(),
1
UPDATE ma_type
SET num = num + #{num}
and type_id = #{typeId}