人才培养方案,列表过滤,停用的不展示
This commit is contained in:
+4
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user