|
|
|
@ -1347,8 +1347,8 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
|
proOrder.setLineCode(proOrder.getLineCodes()[i]);
|
|
|
|
|
ProLine plineInfo = proOrderWorkorderMapper.getLineProductInfo(proOrder);//线体母单产品产能和线体代码
|
|
|
|
|
if(plineInfo==null){
|
|
|
|
|
logger.error("线体"+proOrder.getLineCodes()[i]+"产能"+plineInfo.getEfficiency()+"无法生产");
|
|
|
|
|
break;
|
|
|
|
|
logger.error("线体"+proOrder.getLineCodes()[i]+"无法生产");
|
|
|
|
|
return R.fail("线体"+proOrder.getLineCodes()[i]+"无法生产");
|
|
|
|
|
}
|
|
|
|
|
Long efficiency = plineInfo.getEfficiency();
|
|
|
|
|
if(efficiency < orderQua){
|
|
|
|
|