insert into wf_collar_apply
APPLY_NUMBER,
PROPOSER,
APPLY_TIME,
PHONE,
AGREEMENT_ID,
OPERATOR,
OPERATION_TIME,
REMARK,
SUBCONTRACTORS_ID,
IS_SURE,IS_ACTIVE,
#{applyNumber},
#{proposer},
#{applyTime},
#{phone},
#{agreementId},
#{operator},
#{operationTime},
#{remark},
#{subcontractors},
0,1
delete from wf_process_record where id = #{id}
update wf_collar_apply
PROPOSER = #{proposer},
APPLY_TIME = #{applyTime},
PHONE = #{phone},
IS_SURE = #{isSure},
REMARK = #{remark},
where id = #{id}
DELETE FROM wf_collar_apply WHERE id in(
#{o.id}
)
update
wf_collar_apply
set
is_active = 0
where
id = #{id}
DELETE FROM wf_task_record WHERE NUMBER = #{applyNumber}