Commit 7ab33471 authored by suhuiguang's avatar suhuiguang

1.业务数据删除时,同时删除待办数据批量操作

parent 12d16260
......@@ -427,7 +427,11 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
}
@Transactional(rollbackFor = Exception.class)
public void deleteBatch(List<Long> ids) {
// 删除待办
this.deleteTaskBatch(ids);
// 删除业务数据
JgChangeRegistrationName jgChangeRegistrationName = new JgChangeRegistrationName();
jgChangeRegistrationName.setIsDelete(true);
LambdaQueryWrapper<JgChangeRegistrationName> lambda = new QueryWrapper<JgChangeRegistrationName>().lambda();
......@@ -435,6 +439,10 @@ public class JgChangeRegistrationNameServiceImpl extends BaseService<JgChangeReg
this.update(jgChangeRegistrationName, lambda);
}
private void deleteTaskBatch(List<Long> ids) {
ids.forEach(id-> commonService.deleteTaskModel(id + ""));
}
public void revocation(String instanceId) {
// 执行流程
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment