人才培养方案,列表过滤,停用的不展示

This commit is contained in:
2026-09-22 09:16:41 +08:00
parent 12eddac276
commit ae3dbe66a5
@@ -77,6 +77,10 @@ public class TrainingProgramServiceImpl implements TrainingProgramService {
@Override
public PageResult<ZYB> pageList(PageQuery query, ZYB cond) {
// 未显式指定停用条件时,默认只展示启用中的培养方案(停用的不展示)
if (cond != null && cond.getTy() == null) {
cond.setTy(false);
}
Page<ZYB> page = new Page<>(query.getPageNum(), query.getPageSize());
Page<ZYB> result = zybMapper.selectPageList(page, cond);
return new PageResult<>(result.getRecords(), result.getTotal(),