|
|
|
@ -50,11 +50,8 @@ public class TemplateServiceImpl extends ServiceImpl i |
|
|
|
if(template.getStatus()!=null && template.getStatus().intValue()>0){ |
|
|
|
queryWrapper.eq("t.status",template.getStatus()); |
|
|
|
} |
|
|
|
if(template.getStudyType()!=null&& template.getStudyType().intValue()>0){ |
|
|
|
if(template.getStudyType()!=null&&template.getStudyType().intValue()>0){ |
|
|
|
queryWrapper.eq("t.study_type",template.getStudyType()); |
|
|
|
}else{ |
|
|
|
Integer all=20; |
|
|
|
queryWrapper.eq("t.study_type",all); |
|
|
|
} |
|
|
|
queryWrapper.orderByAsc("t.sn"); |
|
|
|
return baseMapper.queryList(queryWrapper); |
|
|
|
|