|
|
|
@ -58,10 +58,7 @@ public class CellServiceImpl extends ServiceImpl implements IC |
|
|
|
public List<Cell> queryStudyList(StudyCellSearchForm form) { |
|
|
|
QueryWrapper<Cell> queryWrapper = Wrappers.query(); |
|
|
|
queryWrapper.eq("c.del_flag", 0); |
|
|
|
if (form.getStudyId() != null) { |
|
|
|
queryWrapper.eq("c.study_id", form.getStudyId()) |
|
|
|
.eq("sc.study_id", form.getStudyId()); |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(form.getMc())) { |
|
|
|
queryWrapper.like("c.mc", form.getMc()); |
|
|
|
} |
|
|
|
@ -80,8 +77,17 @@ public class CellServiceImpl extends ServiceImpl implements IC |
|
|
|
if (StringUtils.isNotEmpty(form.getStudyName())) { |
|
|
|
queryWrapper.like("s.name", form.getStudyName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(form.getStudySn())) { |
|
|
|
queryWrapper.like("s.sn", form.getStudySn()); |
|
|
|
} |
|
|
|
queryWrapper.orderByDesc("c.bh"); |
|
|
|
return baseMapper.queryStudyList(queryWrapper); |
|
|
|
if (form.getStudyId() != null) { |
|
|
|
queryWrapper.eq("c.study_id", form.getStudyId()) |
|
|
|
.eq("sc.study_id", form.getStudyId()); |
|
|
|
return baseMapper.queryStudyList(queryWrapper); |
|
|
|
} else { |
|
|
|
return baseMapper.queryList(queryWrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|