|
@@ -463,6 +463,10 @@ public class BizProcessInspecionController extends BaseController {
|
|
@Transactional
|
|
@Transactional
|
|
@PostMapping("/saveOutsourcedInspecion")
|
|
@PostMapping("/saveOutsourcedInspecion")
|
|
public AjaxResult saveOutsourcedInspectionV2(@RequestBody BizProcessInspecion processInspecion) throws NoSuchFieldException, IllegalAccessException {
|
|
public AjaxResult saveOutsourcedInspectionV2(@RequestBody BizProcessInspecion processInspecion) throws NoSuchFieldException, IllegalAccessException {
|
|
|
|
+// // 判断是否已有未确认外协检查
|
|
|
|
+// if (bizProcessInspecionService.query().eq("outsource_order_detail_id", processInspecion.getOutsourceOrderDetailId()).eq("status", 0).count() > 0) {
|
|
|
|
+// return error("已有未完成外协检查单。");
|
|
|
|
+// }
|
|
//根据lot信息保存序检表
|
|
//根据lot信息保存序检表
|
|
BizDaywork daywork = bizDayworkService.query().eq("lot_code", processInspecion.getLot().getLotCode()).one();
|
|
BizDaywork daywork = bizDayworkService.query().eq("lot_code", processInspecion.getLot().getLotCode()).one();
|
|
BizProduct product = bizProductService.getById(processInspecion.getLot().getProductId());
|
|
BizProduct product = bizProductService.getById(processInspecion.getLot().getProductId());
|