|
|
|
@ -4,6 +4,7 @@ import java.util.List; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.common.core.utils.DateUtils; |
|
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import com.hxhq.business.mapper.StepMapper; |
|
|
|
import com.hxhq.business.domain.Step; |
|
|
|
@ -29,6 +30,12 @@ public class StepServiceImpl extends ServiceImpl implements IS |
|
|
|
public List<Step> queryList(Step step) |
|
|
|
{ |
|
|
|
QueryWrapper<Step> queryWrapper = Wrappers.query(); |
|
|
|
if(StringUtils.isNoneBlank(step.getName())){ |
|
|
|
queryWrapper.like("name",step.getName()); |
|
|
|
} |
|
|
|
if(StringUtils.isNoneBlank(step.getSn())){ |
|
|
|
queryWrapper.like("sn",step.getSn()); |
|
|
|
} |
|
|
|
return this.list(queryWrapper); |
|
|
|
} |
|
|
|
|
|
|
|
|