|
@@ -28,9 +28,6 @@ import org.jeecg.modules.billet.rollClubOne.vo.RollClubOneHeatVO;
|
|
|
import org.jeecg.modules.billet.rollClubOne.vo.RollClubOneVO;
|
|
|
import org.jeecg.modules.billet.rollHeight.entity.DestinationStatistics;
|
|
|
import org.jeecg.modules.billet.rollHeight.entity.DestinationStatisticsDetails;
|
|
|
-import org.jeecg.modules.billet.storageBill.dto.StorageCenterQueryDTO;
|
|
|
-import org.jeecg.modules.billet.storageBill.vo.StorageCenterHeatNoInvoicingVO;
|
|
|
-import org.jeecg.modules.billet.storageBill.vo.StorageCenterInvoicingVO;
|
|
|
import org.jeecg.modules.carUnit.service.ISysDictService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
@@ -422,6 +419,18 @@ public class RollClubOneServiceImpl extends ServiceImpl<RollClubOneMapper, RollC
|
|
|
RollClubOneHeatVO.RollOneHeatNo rollOneHeatNo = new RollClubOneHeatVO.RollOneHeatNo();
|
|
|
List<RollClubOneHeatVO.SizeDetail> sizeDetailsList = new ArrayList<>();
|
|
|
List<RollClubOneHeatVO.RollSendDetail> rollSendDetailList = new ArrayList<>();
|
|
|
+ String brandNum = "";
|
|
|
+
|
|
|
+ if (record.getGrade() != null) {
|
|
|
+ brandNum = Optional.ofNullable(record.getGrade())
|
|
|
+ .map(bn -> sysDictService.queryDictTextByKey("billet_spec", bn))
|
|
|
+ .orElseGet(() -> sysDictService.queryDictTextByKey("billet_spec", "5"));
|
|
|
+ }
|
|
|
+
|
|
|
+ rollOneHeatNo.setBrandNum(brandNum);
|
|
|
+
|
|
|
+ rollOneHeatNo.setId(record.getId());
|
|
|
+ rollOneHeatNo.setConfirmTime(record.getConfirmTime());
|
|
|
|
|
|
String detailJson = record.getRollClubOneDetails();
|
|
|
|
|
@@ -450,9 +459,11 @@ public class RollClubOneServiceImpl extends ServiceImpl<RollClubOneMapper, RollC
|
|
|
BigDecimal unitWeight = BigDecimal.ZERO;
|
|
|
String spec = "";
|
|
|
|
|
|
+
|
|
|
if (lengthWeightCache.containsKey(length)) {
|
|
|
unitWeight = lengthWeightCache.get(length);
|
|
|
spec = lengthSpecCache.getOrDefault(length, "");
|
|
|
+
|
|
|
} else {
|
|
|
LambdaQueryWrapper<BilletRulerConfig> wrapper = new LambdaQueryWrapper<BilletRulerConfig>()
|
|
|
.eq(BilletRulerConfig::getLength, length);
|
|
@@ -466,12 +477,13 @@ public class RollClubOneServiceImpl extends ServiceImpl<RollClubOneMapper, RollC
|
|
|
spec = config.getSpec();
|
|
|
lengthSpecCache.put(length, spec);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BigDecimal totalWeight = unitWeight.multiply(BigDecimal.valueOf(count));
|
|
|
|
|
|
- // ⭐ 计算起始根数与终止根数
|
|
|
+ // 计算起始根数与终止根数
|
|
|
int lastEndAmount = lengthCumulativeCountMap.getOrDefault(length, 0);
|
|
|
int startAmount = lastEndAmount + 1;
|
|
|
int endAmount = lastEndAmount + count;
|