step_id,rule_id,step_name,status,step_serial,enable_order,type,continue_time,continue_time_unit,pre_step_id,next_step_id,gmt_create,gmt_modified,create_uid,create_uname,modified_uname,modified_uid
approval_rule_step
update
set status = #{status}
where
step_id in
#{stepId}
update
set status = #{status}
where
step_id = #{stepId}
update
set status = #{status}
where
rule_id in
#{ruleId}
update
set status = #{status}
where
rule_id = #{ruleId}
update
set status = #{status}
where
rule_id = #{ruleId}
and step_id not in
#{id}
update
approval_rule_step
set rule_id = #{ruleId},
step_name = #{stepName},
status = #{status},
step_serial = #{stepSerial},
enable_order = #{enableOrder},
type = #{type},
continue_time = #{continueTime},
continue_time_unit = #{continueTime},
pre_step_id = null,
next_step_id = #{nextStepId},
modified_uname = #{modifiedUname},
gmt_modified = #{gmtModified},
modified_uid = #{modifiedUid},
where step_id = #{stepId}
update approval_rule_step
rule_id = #{step.ruleId},
step_name = #{step.stepName},
status = #{step.status},
step_serial = #{step.stepSerial},
enable_order = #{step.enableOrder},
type = #{step.type},
continue_time = #{step.continueTime},
continue_time_unit = #{step.continueTimeUnit},
pre_step_id = null,
pre_step_id = #{step.preStepId},
next_step_id = #{step.nextStepId},
modified_uname = #{step.modifiedUname},
gmt_modified = #{step.gmtModified},
modified_uid = #{step.modifiedUid},
audit_type = #{step.auditType},
where step_id = #{step.stepId}
insert into
approval_rule_step
step_id,
step_name,
rule_id,
status,
step_serial,
enable_order,
type,
continue_time,
continue_time_unit,
pre_step_id,
next_step_id,
gmt_create,
gmt_modified,
create_uid,
create_uname,
modified_uid,
modified_uname,
audit_type
#{stand.stepId},
#{stand.stepName},
#{stand.ruleId},
#{stand.status},
#{stand.stepSerial},
#{stand.enableOrder},
#{stand.type},
#{stand.continueTime},
#{stand.continueTimeUnit},
#{stand.preStepId},
#{stand.nextStepId},
#{stand.gmtCreate},
#{stand.gmtModified},
#{stand.createUid},
#{stand.createUname},
#{stand.modifiedUid},
#{stand.modifiedUname},
#{stand.auditType}