|
|
@@ -4294,7 +4294,7 @@ public class KwtWaybillOrderV1Service {
|
|
|
}
|
|
|
|
|
|
// 原矿运输山上、上下门卫企业id
|
|
|
- List<String> mockEntIds = Arrays.asList("538039617157337089", "538040297439891457");
|
|
|
+ List<Long> mockEntIds = Arrays.asList(538039617157337089L, 538040297439891457L);
|
|
|
// 如果原矿订单,会有两条门卫订单。门卫放行,只能山上放行山上的,山下只能放行山下的
|
|
|
if (Objects.equals(logOrder.getOrderType(), 1)) {
|
|
|
// 装货重量
|
|
|
@@ -4308,7 +4308,9 @@ public class KwtWaybillOrderV1Service {
|
|
|
BigDecimal lossRate = calculateLossRate2(loadAmount, unloadAmount);
|
|
|
waybillOrderResp.setLossRate(lossRate);
|
|
|
waybillOrderResp.setIsPassReason(isLossRateExceeded(logOrder, lossRate));
|
|
|
+ ;
|
|
|
|
|
|
+ log.info("当前登录企业id:{}", LoginUserHolder.getEntId());
|
|
|
// 原矿运输山上山下的自己放行自己门卫数据
|
|
|
if (Objects.equals(LoginUserHolder.getEntId(), mockEntIds.get(0))) {
|
|
|
// 如果状态为待放行,只能山上的运单展示放行按钮
|