优化
This commit is contained in:
@@ -62,8 +62,8 @@ public class WorkOrderController extends BaseController<WorkOrderService, WorkOr
|
||||
|
||||
@PostMapping("/validateWeighing")
|
||||
public R validateWeighing(@RequestBody WorkOrderReq req) {
|
||||
if (null == req.getMaterialId()) {
|
||||
return R.fail("400", "物料主键id不能为空");
|
||||
if (StrUtil.isBlank(req.getCalculatedWeight())) {
|
||||
return R.fail("400", "计算重量不能为空");
|
||||
}
|
||||
if (StrUtil.isBlank(req.getInputQuantity())) {
|
||||
return R.fail("400", "输入数量不能为空");
|
||||
|
||||
Reference in New Issue
Block a user