Browse Source

feat: [步骤管理] 步骤管理搜索条件

master
memorylkf 1 month ago
parent
commit
80b036f8a0
2 changed files with 11 additions and 0 deletions
  1. +4
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StepGroupServiceImpl.java
  2. +7
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StepServiceImpl.java

+ 4
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StepGroupServiceImpl.java View File

@ -4,6 +4,7 @@ import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.common.core.utils.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StepGroupMapper; import com.hxhq.business.mapper.StepGroupMapper;
import com.hxhq.business.domain.StepGroup; import com.hxhq.business.domain.StepGroup;
@ -29,6 +30,9 @@ public class StepGroupServiceImpl extends ServiceImpl
public List<StepGroup> queryList(StepGroup stepGroup) public List<StepGroup> queryList(StepGroup stepGroup)
{ {
QueryWrapper<StepGroup> queryWrapper = Wrappers.query(); QueryWrapper<StepGroup> queryWrapper = Wrappers.query();
if(StringUtils.isNoneBlank(stepGroup.getName())){
queryWrapper.like("name",stepGroup.getName());
}
return this.list(queryWrapper); return this.list(queryWrapper);
} }

+ 7
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StepServiceImpl.java View File

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

Loading…
Cancel
Save