|
@@ -38,7 +38,7 @@ public class BatchController {
|
|
|
public Result listAll(HttpServletRequest httpServletRequest, @RequestBody Map<String, String> paramsMap) {
|
|
|
String farmId = paramsMap.get("farmId");
|
|
|
QueryWrapper<Batch> queryWrapper = new QueryWrapper<>();
|
|
|
- queryWrapper.eq("farm_id", farmId);
|
|
|
+ queryWrapper.eq("farm_id", farmId).eq("is_enable",0);
|
|
|
List<Batch> batches = batchService.list(queryWrapper);
|
|
|
return new Result(ResultCode.SUCCESS, batches);
|
|
|
}
|