2024年7月24日 新增删除机制

This commit is contained in:
bai 2024-07-24 11:14:05 +08:00
parent 16274aef85
commit c5a5ad29cc
1 changed files with 5 additions and 3 deletions

View File

@ -240,10 +240,12 @@ public class BlStuAnswerController extends JeecgController<BlStuAnswer, IBlStuAn
log.info("更新后的文档地址: {}", exportWordPath);
//根据配置决定是否删除子表数据
if(isDelChildren){
//
log.error("hahaha删除了");
log.error("删除了!");
var dqw = new QueryWrapper<BlStuAnswer>();
dqw.lambda().eq(BlStuAnswer::getMainId, id);
service.remove(dqw);
} else {
log.error("hahaha灭有删除了");
log.error("删除了!");
}
return Result.OK("生成成功");