|
@@ -18,6 +18,7 @@ import com.sd.business.mapper.production.ProductionWorkOrderMapper;
|
|
import com.sd.business.service.order.OrderService;
|
|
import com.sd.business.service.order.OrderService;
|
|
import com.sd.business.service.order.OrderSkuService;
|
|
import com.sd.business.service.order.OrderSkuService;
|
|
import com.sd.business.service.production.ProductionWorkOrderService;
|
|
import com.sd.business.service.production.ProductionWorkOrderService;
|
|
|
|
+import com.sd.business.service.sku.SkuSpecService;
|
|
import com.sd.mq.enums.WorkOrderStatusEnum;
|
|
import com.sd.mq.enums.WorkOrderStatusEnum;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -47,6 +48,9 @@ public class ProductionWorkOrderServiceImpl extends ServiceImpl<ProductionWorkOr
|
|
@Autowired
|
|
@Autowired
|
|
private OrderSkuService orderSkuService;
|
|
private OrderSkuService orderSkuService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SkuSpecService skuSpecService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Page<ProductionWorkOrderVo> getPage(ProductionWorkOrderSelectDto dto) {
|
|
public Page<ProductionWorkOrderVo> getPage(ProductionWorkOrderSelectDto dto) {
|
|
IWrapper<ProductionWorkOrder> wrapper = getWrapper();
|
|
IWrapper<ProductionWorkOrder> wrapper = getWrapper();
|
|
@@ -117,6 +121,10 @@ public class ProductionWorkOrderServiceImpl extends ServiceImpl<ProductionWorkOr
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ skuSpecService.attributeAssign(productionWorkOrderList, ProductionWorkOrder::getSkuSpecId, (item, skuSpec) -> {
|
|
|
|
+ item.setMachinedPanel(skuSpec.getMachinedPanel());
|
|
|
|
+ });
|
|
|
|
+
|
|
saveBatch(productionWorkOrderList);
|
|
saveBatch(productionWorkOrderList);
|
|
}
|
|
}
|
|
|
|
|