task_id, task_type, task_status, code, create_by, create_time, update_by, update_time,
remark, company_id
update tm_task set `status` = '0'
where task_id = #{taskId}
delete from lease_apply_info
where task_id = #{taskId}
delete from lease_apply_details where id = #{id}
delete from lease_apply_details where parennt_id = #{parentId}
delete from tm_task_agreement where task_id = #{taskId}
insert into tm_task (task_type, task_status, code, create_by, create_time, update_by, update_time, remark, company_id)
values (#{taskType,jdbcType=INTEGER}, #{taskStatus,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER})
insert into tm_task
task_type,
task_status,
code,
create_by,
create_time,
update_by,
update_time,
remark,
company_id,
#{taskType,jdbcType=INTEGER},
#{taskStatus,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
now(),
#{updateBy,jdbcType=VARCHAR},
now(),
#{remark,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER},
update tm_task
task_type = #{taskType,jdbcType=INTEGER},
task_status = #{taskStatus,jdbcType=INTEGER},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
where task_id = #{taskId,jdbcType=BIGINT}
update tm_task
set task_type = #{taskType,jdbcType=INTEGER},
task_status = #{taskStatus,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER}
where task_id = #{taskId,jdbcType=BIGINT}
update tm_task
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.taskType,jdbcType=INTEGER}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.taskStatus,jdbcType=INTEGER}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.code,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.createBy,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.updateBy,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.companyId,jdbcType=INTEGER}
where task_id in
#{item.taskId,jdbcType=BIGINT}
update tm_task
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.taskType,jdbcType=INTEGER}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.taskStatus,jdbcType=INTEGER}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.code,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.createBy,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.createTime,jdbcType=TIMESTAMP}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.updateBy,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.updateTime,jdbcType=TIMESTAMP}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.remark,jdbcType=VARCHAR}
when task_id = #{item.taskId,jdbcType=BIGINT} then #{item.companyId,jdbcType=INTEGER}
where task_id in
#{item.taskId,jdbcType=BIGINT}
insert into tm_task
(task_type, task_status, code, create_by, create_time, update_by, update_time, remark,
company_id)
values
(#{item.taskType,jdbcType=INTEGER}, #{item.taskStatus,jdbcType=INTEGER}, #{item.code,jdbcType=VARCHAR},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER}
)
insert into tm_task
task_id,
task_type,
task_status,
code,
create_by,
create_time,
update_by,
update_time,
remark,
company_id,
values
#{taskId,jdbcType=BIGINT},
#{taskType,jdbcType=INTEGER},
#{taskStatus,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER},
on duplicate key update
task_id = #{taskId,jdbcType=BIGINT},
task_type = #{taskType,jdbcType=INTEGER},
task_status = #{taskStatus,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER},
insert into tm_task
task_id,
task_type,
task_status,
code,
create_by,
create_time,
update_by,
update_time,
remark,
company_id,
values
#{taskId,jdbcType=BIGINT},
#{taskType,jdbcType=INTEGER},
#{taskStatus,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR},
#{companyId,jdbcType=INTEGER},
on duplicate key update
task_id = #{taskId,jdbcType=BIGINT},
task_type = #{taskType,jdbcType=INTEGER},
task_status = #{taskStatus,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=INTEGER},
INSERT INTO tm_task_agreement ( `task_id`, `agreement_id`, `create_by`, `create_time`, `company_id` )
VALUES(#{id},#{agreementId},#{createBy},NOW(),#{companyId})
update tm_task_agreement set agreement_id = #{agreementId}, update_time = now()
where task_id = #{taskId}
UPDATE tm_task SET task_status = #{record.taskStatus} WHERE task_id = #{record.taskId}
UPDATE
lease_apply_info
set
company_audit_by = #{record.companyAuditBy},
company_audit_time = now(),
company_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
dept_audit_by = #{record.companyAuditBy},
dept_audit_time = now(),
dept_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
direct_audit_by = #{record.companyAuditBy},
direct_audit_time = now(),
direct_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
WHERE
task_id = #{record.taskId} and company_id = #{record.companyId}
UPDATE
lease_apply_info
set
company_audit_by = #{record.companyAuditBy},
company_audit_time = now(),
company_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
dept_audit_by = #{record.companyAuditBy},
dept_audit_time = now(),
dept_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
direct_audit_by = #{record.companyAuditBy},
direct_audit_time = now(),
direct_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
WHERE
task_id = #{record.taskId} and company_id = #{record.companyId}
update
lease_apply_details
set
audit_num = #{record.auditNum},
al_num = #{record.alNum},
status = #{record.status},
update_by = #{record.updateBy},
update_time = now()
where
parennt_id = #{record.parenntId}
update
lease_apply_details
set
audit_num = #{record.auditNum},
al_num = #{record.alNum},
status = #{record.status},
update_by = #{record.updateBy},
update_time = now()
where
parennt_id = #{record.parenntId}
UPDATE lease_apply_info SET lease_person = #{leasePerson}, phone = #{phone}, remark = #{remark}
WHERE task_id = #{taskId}
UPDATE
lease_apply_info
set
company_audit_by = #{record.companyAuditBy},
company_audit_time = now(),
company_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
dept_audit_by = #{record.companyAuditBy},
dept_audit_time = now(),
dept_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
direct_audit_by = #{record.companyAuditBy},
direct_audit_time = now(),
direct_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
WHERE
task_id = #{record.taskId} and company_id is null
UPDATE
lease_apply_info
set
company_audit_by = #{record.companyAuditBy},
company_audit_time = now(),
company_audit_remark = #{record.companyAuditRemark},
dept_audit_by = #{record.companyAuditBy},
dept_audit_time = now(),
dept_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
direct_audit_by = #{record.companyAuditBy},
direct_audit_time = now(),
direct_audit_remark = #{record.companyAuditRemark},
status = #{record.status},
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
update_by = #{record.companyAuditBy},
update_time = now(),
WHERE
task_id = #{record.taskId} and company_id is null
UPDATE lease_apply_details
SET `status` = 2
WHERE
parennt_id = #{id}
AND type_id = #{typeId}