insert into wa_repair_input
(PARENT_ID,BATCH_NUM,BATCH_TIME,CHECK_PERSON,REPAIR_PERSON,NOTES,IS_ACTIVE)
values
(0,#{batchNum},#{batchTime},#{checkPerson},#{repairPerson},#{notes},1)
insert into wa_repair_input
(PARENT_ID,BATCH_NUM,BATCH_TIME,MACHINES_NAME,MODEL,MACHINES_NUM,MACHINES_UNIT,MACHINES_WEIGHT,NOTES,BATCH_STATUS,IS_ACTIVE)
values
(#{parentId},#{batchNum},#{batchTime},#{machinesName},#{model},#{machinesNum},#{machinesUnit},#{machinesWeight},#{notes},#{batchStatus},1)
update wa_repair_input set
CHECK_PERSON = #{checkPerson},
REPAIR_PERSON = #{repairPerson},
NOTES = #{notes}
where ID = #{repairId}
update wa_repair_input set
MACHINES_NAME = #{machinesName},
MODEL = #{model},
MACHINES_NUM = #{machinesNum},
MACHINES_UNIT = #{machinesUnit},
MACHINES_WEIGHT = #{machinesWeight},
NOTES = #{notes},
BATCH_STATUS = #{batchStatus}
where ID = #{repairId}
delete from wa_repair_input
where ID = #{repairId}
delete from wa_repair_input
where ID = #{repairId}
DELETE FROM wa_repair_input WHERE id in(
#{o.repairId}
)
DELETE FROM wa_repair_input WHERE id in(
#{o.repairId}
)
insert into wa_repair_input
(PARENT_ID,BATCH_NUM,BATCH_TIME,MACHINES_NAME,MODEL,MACHINES_NUM,INVOICE_NUM,INVOICE_URL,MACHINES_UNIT,MACHINES_WEIGHT,NOTES,BATCH_STATUS,IS_ACTIVE)
values
(#{param.parentId},#{param.outNum},#{param.outTime},#{param.machinesId},#{param.modelId},#{param.pickNum},#{param.invoiceNum},#{param.invoiceUrl},#{param.machinesUnit},#{param.machinesWeight},#{param.notes},#{param.batchStatus},1)