|
@ -66,13 +66,14 @@ public class ProductionCreateEAIService extends AbsEAIService { |
|
|
Integer batchNo = 1; |
|
|
Integer batchNo = 1; |
|
|
for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { |
|
|
for (ProductionDetailsEntity productionDetailsEntity : productionDetailsEntities) { |
|
|
int randomNumber = random.nextInt(3); |
|
|
int randomNumber = random.nextInt(3); |
|
|
|
|
|
int nature = random.nextInt(2)+1; |
|
|
productionDetailsEntity.setFactoryNo(this.list.get(randomNumber).getFactoryNo()); |
|
|
productionDetailsEntity.setFactoryNo(this.list.get(randomNumber).getFactoryNo()); |
|
|
productionDetailsEntity.setFactoryName(this.list.get(randomNumber).getFactoryName()); |
|
|
productionDetailsEntity.setFactoryName(this.list.get(randomNumber).getFactoryName()); |
|
|
productionDetailsEntity.setProductionManagementPerson(this.list.get(randomNumber).getProductionManagementPerson()); |
|
|
productionDetailsEntity.setProductionManagementPerson(this.list.get(randomNumber).getProductionManagementPerson()); |
|
|
productionDetailsEntity.setProductionManagementDepartment("生管一部"); |
|
|
productionDetailsEntity.setProductionManagementDepartment("生管一部"); |
|
|
productionDetailsEntity.setProduceBoss("23467345221"); |
|
|
productionDetailsEntity.setProduceBoss("23467345221"); |
|
|
productionDetailsEntity.setProductionStatus(TabStatusEnums.PENDING.getValue().toString()); |
|
|
productionDetailsEntity.setProductionStatus(TabStatusEnums.PENDING.getValue().toString()); |
|
|
productionDetailsEntity.setNature(String.valueOf(randomNumber)); |
|
|
|
|
|
|
|
|
productionDetailsEntity.setNature(String.valueOf(nature)); |
|
|
productionDetailsEntity.setBatchNo("MMDD-000"+batchNo); |
|
|
productionDetailsEntity.setBatchNo("MMDD-000"+batchNo); |
|
|
productionDetailsEntity.setUnit("pcs"); |
|
|
productionDetailsEntity.setUnit("pcs"); |
|
|
batchNo = batchNo+1; |
|
|
batchNo = batchNo+1; |
|
|