|
@@ -146,6 +146,24 @@ public class ProductionRegularController {
|
|
|
)
|
|
)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+ @ApiOperation("白条分配")
|
|
|
|
|
+ @PostMapping("/listFenPei")
|
|
|
|
|
+ public AjaxResult listFenPei(
|
|
|
|
|
+ @RequestBody ProductionRegularPlanRequest planRequest, HttpServletRequest request) {
|
|
|
|
|
+
|
|
|
|
|
+ return success(productionRegularService.list(
|
|
|
|
|
+ new QueryWrapper<ProductionRegular>()
|
|
|
|
|
+ .eq("org_id", tokenService.getLoginOrgId(request)).
|
|
|
|
|
+ eq("is_fenpei",0).
|
|
|
|
|
+ eq(StringUtils.isNotEmpty(planRequest.getAnimalTag()), "animal_identification", planRequest.getAnimalTag())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(planRequest.getBatch()), "pig_batch", planRequest.getBatch())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(planRequest.getProductionDate()), "production_date", planRequest.getProductionDate())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(planRequest.getLevel()), "grade", planRequest.getLevel())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(planRequest.getVariety()), "variety", planRequest.getVariety())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(planRequest.getWhiteNo()), "white_strip_num", planRequest.getWhiteNo())
|
|
|
|
|
+ )
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@ApiOperation("生产常规分页")
|
|
@ApiOperation("生产常规分页")
|
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|