diff --git a/hiver-core/src/main/java/cc/hiver/core/serviceimpl/WorkerServiceImpl.java b/hiver-core/src/main/java/cc/hiver/core/serviceimpl/WorkerServiceImpl.java index 297fa8e5..15d4e4e5 100644 --- a/hiver-core/src/main/java/cc/hiver/core/serviceimpl/WorkerServiceImpl.java +++ b/hiver-core/src/main/java/cc/hiver/core/serviceimpl/WorkerServiceImpl.java @@ -116,7 +116,7 @@ public class WorkerServiceImpl implements WorkerService { Path workerStatusField = root.get("workerStatus"); Path signPersonField = root.get("signPerson"); Path regionField = root.get("region"); - + Path ownerCompanyField = root.get("ownerCompany"); List list = new ArrayList<>(); @@ -137,6 +137,10 @@ public class WorkerServiceImpl implements WorkerService { list.add(cb.equal(regionField, worker.getRegion())); } + if (StrUtil.isNotBlank(worker.getOwnerCompany())) { + String[] transCompany = worker.getOwnerCompany().trim().split(","); + list.add(ownerCompanyField.in(transCompany)); + } // 数据权限 diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/WorkerController.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/WorkerController.java index 93ee6d1b..19cdcf35 100644 --- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/WorkerController.java +++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/WorkerController.java @@ -53,7 +53,7 @@ public class WorkerController { } - @RequestMapping(value = "/getByCondition", method = RequestMethod.GET) + @RequestMapping(value = "/getWXByCondition", method = RequestMethod.GET) @ApiOperation(value = "多条件获取订单列表-小程序") public Result> getByCondition(@RequestBody WorkerQueryVO worker) { List workerList = workerService.findByCondition(worker);