|
|
@@ -46,9 +46,11 @@ import org.springblade.los.business.sea.dto.ContainersReports;
|
|
|
import org.springblade.los.business.sea.entity.Bills;
|
|
|
import org.springblade.los.business.sea.entity.Containers;
|
|
|
import org.springblade.los.business.sea.entity.PreContainers;
|
|
|
+import org.springblade.los.business.sea.entity.SeaBillsDetail;
|
|
|
import org.springblade.los.business.sea.service.IBillsService;
|
|
|
import org.springblade.los.business.sea.service.IContainersService;
|
|
|
import org.springblade.los.business.sea.service.IPreContainersService;
|
|
|
+import org.springblade.los.business.sea.service.ISeaBillsDetailService;
|
|
|
import org.springblade.los.finance.agreement.entity.AgreementPrice;
|
|
|
import org.springblade.los.finance.agreement.entity.AgreementPriceItems;
|
|
|
import org.springblade.los.finance.agreement.service.IAgreementPriceItemsService;
|
|
|
@@ -66,6 +68,7 @@ import org.springblade.los.finance.stl.entity.FinStlBillsItems;
|
|
|
import org.springblade.los.finance.stl.service.IFinStlBillsItemsService;
|
|
|
import org.springblade.los.finance.stl.service.IFinStlBillsService;
|
|
|
import org.springblade.system.entity.Dept;
|
|
|
+import org.springblade.system.feign.IDictBizClient;
|
|
|
import org.springblade.system.feign.ISysClient;
|
|
|
import org.springblade.system.user.entity.User;
|
|
|
import org.springblade.system.user.feign.IUserClient;
|
|
|
@@ -95,6 +98,8 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
private final IUserClient userClient;
|
|
|
|
|
|
+ private final IDictBizClient dictBizClient;
|
|
|
+
|
|
|
private final IBillsService billsService;
|
|
|
|
|
|
private final IAeaBillsService aeaBillsService;
|
|
|
@@ -128,6 +133,8 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
|
|
|
private final IDeptUtils deptUtils;
|
|
|
|
|
|
+ private final ISeaBillsDetailService seaBillsDetailService;
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public IPage<ReportsVO> selectReportsPage(IPage<ReportsVO> page, ReportsVO reports) {
|
|
|
@@ -182,11 +189,6 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else {
|
|
|
throw new RuntimeException("获取报表表头数据失败");
|
|
|
}
|
|
|
- BCurrency bCurrency = ibCurrencyService.getOne(new LambdaQueryWrapper<BCurrency>()
|
|
|
- .eq(BCurrency::getStatus, 0)
|
|
|
- .eq(BCurrency::getTenantId, AuthUtil.getTenantId())
|
|
|
- .eq(BCurrency::getIsDeleted, 0)
|
|
|
- .eq(BCurrency::getCode, MagicValues.USD));
|
|
|
if (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type)) {
|
|
|
return this.getReportDataHY(billId, reportCode, groupCode, corpIds, itemIds, type, curCode);
|
|
|
} else if (MagicValues.KYCK.equals(type) || MagicValues.KYJK.equals(type)) {
|
|
|
@@ -6001,6 +6003,64 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
String profitMargin = sysClient.getParamServiceNew(MagicValues.PROFIT_MARGIN);
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
+ SeaBillsDetail seaBillsDetail = seaBillsDetailService.getOne(new LambdaQueryWrapper<SeaBillsDetail>()
|
|
|
+ .eq(SeaBillsDetail::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(SeaBillsDetail::getPid, bills.getId()));
|
|
|
+ if (seaBillsDetail != null) {
|
|
|
+ bills.setInttraToDoorCorpName(seaBillsDetail.getInttraToDoorCorpName());
|
|
|
+ bills.setInttraToDoorCorpAddr(seaBillsDetail.getInttraToDoorCorpAddr());
|
|
|
+ bills.setInttraToDoorCorpContacts(seaBillsDetail.getInttraToDoorCorpContacts());
|
|
|
+ bills.setInttraToDoorCorpTel(seaBillsDetail.getInttraToDoorCorpTel());
|
|
|
+ bills.setInttraDoorToCorpName(seaBillsDetail.getInttraDoorToCorpName());
|
|
|
+ bills.setInttraDoorToCorpAddr(seaBillsDetail.getInttraDoorToCorpAddr());
|
|
|
+ bills.setInttraDoorToCorpContacts(seaBillsDetail.getInttraDoorToCorpContacts());
|
|
|
+ bills.setInttraDoorToCorpTel(seaBillsDetail.getInttraDoorToCorpTel());
|
|
|
+ bills.setHshipperId(seaBillsDetail.getHshipperId());
|
|
|
+ bills.setHshipperCode(seaBillsDetail.getHshipperCode());
|
|
|
+ bills.setHshipperCnName(seaBillsDetail.getHshipperCnName());
|
|
|
+ bills.setHshipperEnName(seaBillsDetail.getHshipperEnName());
|
|
|
+ bills.setHshipperDetails(seaBillsDetail.getHshipperDetails());
|
|
|
+ bills.setHconsigneeId(seaBillsDetail.getHconsigneeId());
|
|
|
+ bills.setHconsigneeCode(seaBillsDetail.getHconsigneeCode());
|
|
|
+ bills.setHconsigneeCnName(seaBillsDetail.getHconsigneeCnName());
|
|
|
+ bills.setHconsigneeEnName(seaBillsDetail.getHconsigneeEnName());
|
|
|
+ bills.setHconsigneeDetails(seaBillsDetail.getHconsigneeDetails());
|
|
|
+ bills.setHnotifyId(seaBillsDetail.getHnotifyId());
|
|
|
+ bills.setHnotifyCode(seaBillsDetail.getHnotifyCode());
|
|
|
+ bills.setHnotifyCnName(seaBillsDetail.getHnotifyCnName());
|
|
|
+ bills.setHnotifyEnName(seaBillsDetail.getHnotifyEnName());
|
|
|
+ bills.setHnotifyDetails(seaBillsDetail.getHnotifyDetails());
|
|
|
+ bills.setHnotify2Id(seaBillsDetail.getHnotify2Id());
|
|
|
+ bills.setHnotify2Code(seaBillsDetail.getHnotify2Code());
|
|
|
+ bills.setHnotify2CnName(seaBillsDetail.getHnotify2CnName());
|
|
|
+ bills.setHnotify2EnName(seaBillsDetail.getHnotify2EnName());
|
|
|
+ bills.setHnotify2Details(seaBillsDetail.getHnotify2Details());
|
|
|
+ bills.setMshipperId(seaBillsDetail.getMshipperId());
|
|
|
+ bills.setMshipperCode(seaBillsDetail.getMshipperCode());
|
|
|
+ bills.setMshipperCnName(seaBillsDetail.getMshipperCnName());
|
|
|
+ bills.setMshipperEnName(seaBillsDetail.getMshipperEnName());
|
|
|
+ bills.setMshipperDetails(seaBillsDetail.getMshipperDetails());
|
|
|
+ bills.setMconsigneeId(seaBillsDetail.getMconsigneeId());
|
|
|
+ bills.setMconsigneeCode(seaBillsDetail.getMconsigneeCode());
|
|
|
+ bills.setMconsigneeCnName(seaBillsDetail.getMconsigneeCnName());
|
|
|
+ bills.setMconsigneeEnName(seaBillsDetail.getMconsigneeEnName());
|
|
|
+ bills.setMconsigneeDetails(seaBillsDetail.getMconsigneeDetails());
|
|
|
+ bills.setMnotifyId(seaBillsDetail.getMnotifyId());
|
|
|
+ bills.setMnotifyCode(seaBillsDetail.getMnotifyCode());
|
|
|
+ bills.setMnotifyCnName(seaBillsDetail.getMnotifyCnName());
|
|
|
+ bills.setMnotifyEnName(seaBillsDetail.getMnotifyEnName());
|
|
|
+ bills.setMnotifyDetails(seaBillsDetail.getMnotifyDetails());
|
|
|
+ bills.setMnotify2Id(seaBillsDetail.getMnotify2Id());
|
|
|
+ bills.setMnotify2Code(seaBillsDetail.getMnotify2Code());
|
|
|
+ bills.setMnotify2CnName(seaBillsDetail.getMnotify2CnName());
|
|
|
+ bills.setMnotify2EnName(seaBillsDetail.getMnotify2EnName());
|
|
|
+ bills.setMnotify2Details(seaBillsDetail.getMnotify2Details());
|
|
|
+ bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
+ }
|
|
|
if (bCurrency != null) {
|
|
|
bills.setRate(bCurrency.getExrate());
|
|
|
} else {
|
|
|
@@ -6187,6 +6247,8 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
feeCenterReportList.add(feeCenterReports);
|
|
|
}
|
|
|
bills.setFeeCenterList(feeCenterReportList);
|
|
|
+ }else{
|
|
|
+ throw new RuntimeException("请先维护费用");
|
|
|
}
|
|
|
list.add(0, bills);
|
|
|
} else if (MagicValues.MH.equals(bills.getBillType())) {
|
|
|
@@ -6469,6 +6531,64 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.BUSINESS.equals(reportCode) && MagicValues.MASTER_BILLS.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
+ SeaBillsDetail seaBillsDetail = seaBillsDetailService.getOne(new LambdaQueryWrapper<SeaBillsDetail>()
|
|
|
+ .eq(SeaBillsDetail::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(SeaBillsDetail::getPid, bills.getId()));
|
|
|
+ if (seaBillsDetail != null) {
|
|
|
+ bills.setInttraToDoorCorpName(seaBillsDetail.getInttraToDoorCorpName());
|
|
|
+ bills.setInttraToDoorCorpAddr(seaBillsDetail.getInttraToDoorCorpAddr());
|
|
|
+ bills.setInttraToDoorCorpContacts(seaBillsDetail.getInttraToDoorCorpContacts());
|
|
|
+ bills.setInttraToDoorCorpTel(seaBillsDetail.getInttraToDoorCorpTel());
|
|
|
+ bills.setInttraDoorToCorpName(seaBillsDetail.getInttraDoorToCorpName());
|
|
|
+ bills.setInttraDoorToCorpAddr(seaBillsDetail.getInttraDoorToCorpAddr());
|
|
|
+ bills.setInttraDoorToCorpContacts(seaBillsDetail.getInttraDoorToCorpContacts());
|
|
|
+ bills.setInttraDoorToCorpTel(seaBillsDetail.getInttraDoorToCorpTel());
|
|
|
+ bills.setHshipperId(seaBillsDetail.getHshipperId());
|
|
|
+ bills.setHshipperCode(seaBillsDetail.getHshipperCode());
|
|
|
+ bills.setHshipperCnName(seaBillsDetail.getHshipperCnName());
|
|
|
+ bills.setHshipperEnName(seaBillsDetail.getHshipperEnName());
|
|
|
+ bills.setHshipperDetails(seaBillsDetail.getHshipperDetails());
|
|
|
+ bills.setHconsigneeId(seaBillsDetail.getHconsigneeId());
|
|
|
+ bills.setHconsigneeCode(seaBillsDetail.getHconsigneeCode());
|
|
|
+ bills.setHconsigneeCnName(seaBillsDetail.getHconsigneeCnName());
|
|
|
+ bills.setHconsigneeEnName(seaBillsDetail.getHconsigneeEnName());
|
|
|
+ bills.setHconsigneeDetails(seaBillsDetail.getHconsigneeDetails());
|
|
|
+ bills.setHnotifyId(seaBillsDetail.getHnotifyId());
|
|
|
+ bills.setHnotifyCode(seaBillsDetail.getHnotifyCode());
|
|
|
+ bills.setHnotifyCnName(seaBillsDetail.getHnotifyCnName());
|
|
|
+ bills.setHnotifyEnName(seaBillsDetail.getHnotifyEnName());
|
|
|
+ bills.setHnotifyDetails(seaBillsDetail.getHnotifyDetails());
|
|
|
+ bills.setHnotify2Id(seaBillsDetail.getHnotify2Id());
|
|
|
+ bills.setHnotify2Code(seaBillsDetail.getHnotify2Code());
|
|
|
+ bills.setHnotify2CnName(seaBillsDetail.getHnotify2CnName());
|
|
|
+ bills.setHnotify2EnName(seaBillsDetail.getHnotify2EnName());
|
|
|
+ bills.setHnotify2Details(seaBillsDetail.getHnotify2Details());
|
|
|
+ bills.setMshipperId(seaBillsDetail.getMshipperId());
|
|
|
+ bills.setMshipperCode(seaBillsDetail.getMshipperCode());
|
|
|
+ bills.setMshipperCnName(seaBillsDetail.getMshipperCnName());
|
|
|
+ bills.setMshipperEnName(seaBillsDetail.getMshipperEnName());
|
|
|
+ bills.setMshipperDetails(seaBillsDetail.getMshipperDetails());
|
|
|
+ bills.setMconsigneeId(seaBillsDetail.getMconsigneeId());
|
|
|
+ bills.setMconsigneeCode(seaBillsDetail.getMconsigneeCode());
|
|
|
+ bills.setMconsigneeCnName(seaBillsDetail.getMconsigneeCnName());
|
|
|
+ bills.setMconsigneeEnName(seaBillsDetail.getMconsigneeEnName());
|
|
|
+ bills.setMconsigneeDetails(seaBillsDetail.getMconsigneeDetails());
|
|
|
+ bills.setMnotifyId(seaBillsDetail.getMnotifyId());
|
|
|
+ bills.setMnotifyCode(seaBillsDetail.getMnotifyCode());
|
|
|
+ bills.setMnotifyCnName(seaBillsDetail.getMnotifyCnName());
|
|
|
+ bills.setMnotifyEnName(seaBillsDetail.getMnotifyEnName());
|
|
|
+ bills.setMnotifyDetails(seaBillsDetail.getMnotifyDetails());
|
|
|
+ bills.setMnotify2Id(seaBillsDetail.getMnotify2Id());
|
|
|
+ bills.setMnotify2Code(seaBillsDetail.getMnotify2Code());
|
|
|
+ bills.setMnotify2CnName(seaBillsDetail.getMnotify2CnName());
|
|
|
+ bills.setMnotify2EnName(seaBillsDetail.getMnotify2EnName());
|
|
|
+ bills.setMnotify2Details(seaBillsDetail.getMnotify2Details());
|
|
|
+ bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
@@ -6513,6 +6633,64 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.DOCUMENT.equals(reportCode) && MagicValues.BILLS_DETAIL.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
+ SeaBillsDetail seaBillsDetail = seaBillsDetailService.getOne(new LambdaQueryWrapper<SeaBillsDetail>()
|
|
|
+ .eq(SeaBillsDetail::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(SeaBillsDetail::getPid, bills.getId()));
|
|
|
+ if (seaBillsDetail != null) {
|
|
|
+ bills.setInttraToDoorCorpName(seaBillsDetail.getInttraToDoorCorpName());
|
|
|
+ bills.setInttraToDoorCorpAddr(seaBillsDetail.getInttraToDoorCorpAddr());
|
|
|
+ bills.setInttraToDoorCorpContacts(seaBillsDetail.getInttraToDoorCorpContacts());
|
|
|
+ bills.setInttraToDoorCorpTel(seaBillsDetail.getInttraToDoorCorpTel());
|
|
|
+ bills.setInttraDoorToCorpName(seaBillsDetail.getInttraDoorToCorpName());
|
|
|
+ bills.setInttraDoorToCorpAddr(seaBillsDetail.getInttraDoorToCorpAddr());
|
|
|
+ bills.setInttraDoorToCorpContacts(seaBillsDetail.getInttraDoorToCorpContacts());
|
|
|
+ bills.setInttraDoorToCorpTel(seaBillsDetail.getInttraDoorToCorpTel());
|
|
|
+ bills.setHshipperId(seaBillsDetail.getHshipperId());
|
|
|
+ bills.setHshipperCode(seaBillsDetail.getHshipperCode());
|
|
|
+ bills.setHshipperCnName(seaBillsDetail.getHshipperCnName());
|
|
|
+ bills.setHshipperEnName(seaBillsDetail.getHshipperEnName());
|
|
|
+ bills.setHshipperDetails(seaBillsDetail.getHshipperDetails());
|
|
|
+ bills.setHconsigneeId(seaBillsDetail.getHconsigneeId());
|
|
|
+ bills.setHconsigneeCode(seaBillsDetail.getHconsigneeCode());
|
|
|
+ bills.setHconsigneeCnName(seaBillsDetail.getHconsigneeCnName());
|
|
|
+ bills.setHconsigneeEnName(seaBillsDetail.getHconsigneeEnName());
|
|
|
+ bills.setHconsigneeDetails(seaBillsDetail.getHconsigneeDetails());
|
|
|
+ bills.setHnotifyId(seaBillsDetail.getHnotifyId());
|
|
|
+ bills.setHnotifyCode(seaBillsDetail.getHnotifyCode());
|
|
|
+ bills.setHnotifyCnName(seaBillsDetail.getHnotifyCnName());
|
|
|
+ bills.setHnotifyEnName(seaBillsDetail.getHnotifyEnName());
|
|
|
+ bills.setHnotifyDetails(seaBillsDetail.getHnotifyDetails());
|
|
|
+ bills.setHnotify2Id(seaBillsDetail.getHnotify2Id());
|
|
|
+ bills.setHnotify2Code(seaBillsDetail.getHnotify2Code());
|
|
|
+ bills.setHnotify2CnName(seaBillsDetail.getHnotify2CnName());
|
|
|
+ bills.setHnotify2EnName(seaBillsDetail.getHnotify2EnName());
|
|
|
+ bills.setHnotify2Details(seaBillsDetail.getHnotify2Details());
|
|
|
+ bills.setMshipperId(seaBillsDetail.getMshipperId());
|
|
|
+ bills.setMshipperCode(seaBillsDetail.getMshipperCode());
|
|
|
+ bills.setMshipperCnName(seaBillsDetail.getMshipperCnName());
|
|
|
+ bills.setMshipperEnName(seaBillsDetail.getMshipperEnName());
|
|
|
+ bills.setMshipperDetails(seaBillsDetail.getMshipperDetails());
|
|
|
+ bills.setMconsigneeId(seaBillsDetail.getMconsigneeId());
|
|
|
+ bills.setMconsigneeCode(seaBillsDetail.getMconsigneeCode());
|
|
|
+ bills.setMconsigneeCnName(seaBillsDetail.getMconsigneeCnName());
|
|
|
+ bills.setMconsigneeEnName(seaBillsDetail.getMconsigneeEnName());
|
|
|
+ bills.setMconsigneeDetails(seaBillsDetail.getMconsigneeDetails());
|
|
|
+ bills.setMnotifyId(seaBillsDetail.getMnotifyId());
|
|
|
+ bills.setMnotifyCode(seaBillsDetail.getMnotifyCode());
|
|
|
+ bills.setMnotifyCnName(seaBillsDetail.getMnotifyCnName());
|
|
|
+ bills.setMnotifyEnName(seaBillsDetail.getMnotifyEnName());
|
|
|
+ bills.setMnotifyDetails(seaBillsDetail.getMnotifyDetails());
|
|
|
+ bills.setMnotify2Id(seaBillsDetail.getMnotify2Id());
|
|
|
+ bills.setMnotify2Code(seaBillsDetail.getMnotify2Code());
|
|
|
+ bills.setMnotify2CnName(seaBillsDetail.getMnotify2CnName());
|
|
|
+ bills.setMnotify2EnName(seaBillsDetail.getMnotify2EnName());
|
|
|
+ bills.setMnotify2Details(seaBillsDetail.getMnotify2Details());
|
|
|
+ bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
@@ -6551,6 +6729,64 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.DOCUMENT.equals(reportCode) && MagicValues.DISPATCH_NOTICE.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
+ SeaBillsDetail seaBillsDetail = seaBillsDetailService.getOne(new LambdaQueryWrapper<SeaBillsDetail>()
|
|
|
+ .eq(SeaBillsDetail::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(SeaBillsDetail::getPid, bills.getId()));
|
|
|
+ if (seaBillsDetail != null) {
|
|
|
+ bills.setInttraToDoorCorpName(seaBillsDetail.getInttraToDoorCorpName());
|
|
|
+ bills.setInttraToDoorCorpAddr(seaBillsDetail.getInttraToDoorCorpAddr());
|
|
|
+ bills.setInttraToDoorCorpContacts(seaBillsDetail.getInttraToDoorCorpContacts());
|
|
|
+ bills.setInttraToDoorCorpTel(seaBillsDetail.getInttraToDoorCorpTel());
|
|
|
+ bills.setInttraDoorToCorpName(seaBillsDetail.getInttraDoorToCorpName());
|
|
|
+ bills.setInttraDoorToCorpAddr(seaBillsDetail.getInttraDoorToCorpAddr());
|
|
|
+ bills.setInttraDoorToCorpContacts(seaBillsDetail.getInttraDoorToCorpContacts());
|
|
|
+ bills.setInttraDoorToCorpTel(seaBillsDetail.getInttraDoorToCorpTel());
|
|
|
+ bills.setHshipperId(seaBillsDetail.getHshipperId());
|
|
|
+ bills.setHshipperCode(seaBillsDetail.getHshipperCode());
|
|
|
+ bills.setHshipperCnName(seaBillsDetail.getHshipperCnName());
|
|
|
+ bills.setHshipperEnName(seaBillsDetail.getHshipperEnName());
|
|
|
+ bills.setHshipperDetails(seaBillsDetail.getHshipperDetails());
|
|
|
+ bills.setHconsigneeId(seaBillsDetail.getHconsigneeId());
|
|
|
+ bills.setHconsigneeCode(seaBillsDetail.getHconsigneeCode());
|
|
|
+ bills.setHconsigneeCnName(seaBillsDetail.getHconsigneeCnName());
|
|
|
+ bills.setHconsigneeEnName(seaBillsDetail.getHconsigneeEnName());
|
|
|
+ bills.setHconsigneeDetails(seaBillsDetail.getHconsigneeDetails());
|
|
|
+ bills.setHnotifyId(seaBillsDetail.getHnotifyId());
|
|
|
+ bills.setHnotifyCode(seaBillsDetail.getHnotifyCode());
|
|
|
+ bills.setHnotifyCnName(seaBillsDetail.getHnotifyCnName());
|
|
|
+ bills.setHnotifyEnName(seaBillsDetail.getHnotifyEnName());
|
|
|
+ bills.setHnotifyDetails(seaBillsDetail.getHnotifyDetails());
|
|
|
+ bills.setHnotify2Id(seaBillsDetail.getHnotify2Id());
|
|
|
+ bills.setHnotify2Code(seaBillsDetail.getHnotify2Code());
|
|
|
+ bills.setHnotify2CnName(seaBillsDetail.getHnotify2CnName());
|
|
|
+ bills.setHnotify2EnName(seaBillsDetail.getHnotify2EnName());
|
|
|
+ bills.setHnotify2Details(seaBillsDetail.getHnotify2Details());
|
|
|
+ bills.setMshipperId(seaBillsDetail.getMshipperId());
|
|
|
+ bills.setMshipperCode(seaBillsDetail.getMshipperCode());
|
|
|
+ bills.setMshipperCnName(seaBillsDetail.getMshipperCnName());
|
|
|
+ bills.setMshipperEnName(seaBillsDetail.getMshipperEnName());
|
|
|
+ bills.setMshipperDetails(seaBillsDetail.getMshipperDetails());
|
|
|
+ bills.setMconsigneeId(seaBillsDetail.getMconsigneeId());
|
|
|
+ bills.setMconsigneeCode(seaBillsDetail.getMconsigneeCode());
|
|
|
+ bills.setMconsigneeCnName(seaBillsDetail.getMconsigneeCnName());
|
|
|
+ bills.setMconsigneeEnName(seaBillsDetail.getMconsigneeEnName());
|
|
|
+ bills.setMconsigneeDetails(seaBillsDetail.getMconsigneeDetails());
|
|
|
+ bills.setMnotifyId(seaBillsDetail.getMnotifyId());
|
|
|
+ bills.setMnotifyCode(seaBillsDetail.getMnotifyCode());
|
|
|
+ bills.setMnotifyCnName(seaBillsDetail.getMnotifyCnName());
|
|
|
+ bills.setMnotifyEnName(seaBillsDetail.getMnotifyEnName());
|
|
|
+ bills.setMnotifyDetails(seaBillsDetail.getMnotifyDetails());
|
|
|
+ bills.setMnotify2Id(seaBillsDetail.getMnotify2Id());
|
|
|
+ bills.setMnotify2Code(seaBillsDetail.getMnotify2Code());
|
|
|
+ bills.setMnotify2CnName(seaBillsDetail.getMnotify2CnName());
|
|
|
+ bills.setMnotify2EnName(seaBillsDetail.getMnotify2EnName());
|
|
|
+ bills.setMnotify2Details(seaBillsDetail.getMnotify2Details());
|
|
|
+ bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
bills.setDept(dept);
|
|
|
@@ -6561,6 +6797,64 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.DOCUMENT.equals(reportCode) && MagicValues.INCOMING_NOTIFICATION.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
+ SeaBillsDetail seaBillsDetail = seaBillsDetailService.getOne(new LambdaQueryWrapper<SeaBillsDetail>()
|
|
|
+ .eq(SeaBillsDetail::getTenantId, AuthUtil.getTenantId())
|
|
|
+ .eq(SeaBillsDetail::getPid, bills.getId()));
|
|
|
+ if (seaBillsDetail != null) {
|
|
|
+ bills.setInttraToDoorCorpName(seaBillsDetail.getInttraToDoorCorpName());
|
|
|
+ bills.setInttraToDoorCorpAddr(seaBillsDetail.getInttraToDoorCorpAddr());
|
|
|
+ bills.setInttraToDoorCorpContacts(seaBillsDetail.getInttraToDoorCorpContacts());
|
|
|
+ bills.setInttraToDoorCorpTel(seaBillsDetail.getInttraToDoorCorpTel());
|
|
|
+ bills.setInttraDoorToCorpName(seaBillsDetail.getInttraDoorToCorpName());
|
|
|
+ bills.setInttraDoorToCorpAddr(seaBillsDetail.getInttraDoorToCorpAddr());
|
|
|
+ bills.setInttraDoorToCorpContacts(seaBillsDetail.getInttraDoorToCorpContacts());
|
|
|
+ bills.setInttraDoorToCorpTel(seaBillsDetail.getInttraDoorToCorpTel());
|
|
|
+ bills.setHshipperId(seaBillsDetail.getHshipperId());
|
|
|
+ bills.setHshipperCode(seaBillsDetail.getHshipperCode());
|
|
|
+ bills.setHshipperCnName(seaBillsDetail.getHshipperCnName());
|
|
|
+ bills.setHshipperEnName(seaBillsDetail.getHshipperEnName());
|
|
|
+ bills.setHshipperDetails(seaBillsDetail.getHshipperDetails());
|
|
|
+ bills.setHconsigneeId(seaBillsDetail.getHconsigneeId());
|
|
|
+ bills.setHconsigneeCode(seaBillsDetail.getHconsigneeCode());
|
|
|
+ bills.setHconsigneeCnName(seaBillsDetail.getHconsigneeCnName());
|
|
|
+ bills.setHconsigneeEnName(seaBillsDetail.getHconsigneeEnName());
|
|
|
+ bills.setHconsigneeDetails(seaBillsDetail.getHconsigneeDetails());
|
|
|
+ bills.setHnotifyId(seaBillsDetail.getHnotifyId());
|
|
|
+ bills.setHnotifyCode(seaBillsDetail.getHnotifyCode());
|
|
|
+ bills.setHnotifyCnName(seaBillsDetail.getHnotifyCnName());
|
|
|
+ bills.setHnotifyEnName(seaBillsDetail.getHnotifyEnName());
|
|
|
+ bills.setHnotifyDetails(seaBillsDetail.getHnotifyDetails());
|
|
|
+ bills.setHnotify2Id(seaBillsDetail.getHnotify2Id());
|
|
|
+ bills.setHnotify2Code(seaBillsDetail.getHnotify2Code());
|
|
|
+ bills.setHnotify2CnName(seaBillsDetail.getHnotify2CnName());
|
|
|
+ bills.setHnotify2EnName(seaBillsDetail.getHnotify2EnName());
|
|
|
+ bills.setHnotify2Details(seaBillsDetail.getHnotify2Details());
|
|
|
+ bills.setMshipperId(seaBillsDetail.getMshipperId());
|
|
|
+ bills.setMshipperCode(seaBillsDetail.getMshipperCode());
|
|
|
+ bills.setMshipperCnName(seaBillsDetail.getMshipperCnName());
|
|
|
+ bills.setMshipperEnName(seaBillsDetail.getMshipperEnName());
|
|
|
+ bills.setMshipperDetails(seaBillsDetail.getMshipperDetails());
|
|
|
+ bills.setMconsigneeId(seaBillsDetail.getMconsigneeId());
|
|
|
+ bills.setMconsigneeCode(seaBillsDetail.getMconsigneeCode());
|
|
|
+ bills.setMconsigneeCnName(seaBillsDetail.getMconsigneeCnName());
|
|
|
+ bills.setMconsigneeEnName(seaBillsDetail.getMconsigneeEnName());
|
|
|
+ bills.setMconsigneeDetails(seaBillsDetail.getMconsigneeDetails());
|
|
|
+ bills.setMnotifyId(seaBillsDetail.getMnotifyId());
|
|
|
+ bills.setMnotifyCode(seaBillsDetail.getMnotifyCode());
|
|
|
+ bills.setMnotifyCnName(seaBillsDetail.getMnotifyCnName());
|
|
|
+ bills.setMnotifyEnName(seaBillsDetail.getMnotifyEnName());
|
|
|
+ bills.setMnotifyDetails(seaBillsDetail.getMnotifyDetails());
|
|
|
+ bills.setMnotify2Id(seaBillsDetail.getMnotify2Id());
|
|
|
+ bills.setMnotify2Code(seaBillsDetail.getMnotify2Code());
|
|
|
+ bills.setMnotify2CnName(seaBillsDetail.getMnotify2CnName());
|
|
|
+ bills.setMnotify2EnName(seaBillsDetail.getMnotify2EnName());
|
|
|
+ bills.setMnotify2Details(seaBillsDetail.getMnotify2Details());
|
|
|
+ bills.setMforwarderDetails(seaBillsDetail.getMforwarderDetails());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
bills.setDept(dept);
|
|
|
@@ -6571,6 +6865,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.COST.equals(reportCode) && MagicValues.RECEIVABLE.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
@@ -6693,6 +6991,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.COST.equals(reportCode) && MagicValues.RECEIVABLE_BILL.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
@@ -6815,6 +7117,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.COST.equals(reportCode) && MagicValues.MEET.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
@@ -6927,6 +7233,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
} else if (MagicValues.COST.equals(reportCode) && MagicValues.MEET_BILL.equals(groupCode) && (MagicValues.HYCK.equals(type) || MagicValues.HYJK.equals(type))) {
|
|
|
Bills bills = billsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
@@ -7071,6 +7381,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
List<AeaBills> list = new ArrayList<>();
|
|
|
AeaBills bills = aeaBillsService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
if (bCurrency != null) {
|
|
|
bills.setRate(bCurrency.getExrate());
|
|
|
} else {
|
|
|
@@ -7483,6 +7797,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
BigDecimal boxWeightSum = BigDecimal.ZERO;
|
|
|
List<ContainersReports> containersReportsList = new ArrayList<>();
|
|
|
List<Containers> containersList = containersService.list(new LambdaQueryWrapper<Containers>()
|
|
|
@@ -7527,6 +7845,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
bills.setDept(dept);
|
|
|
map.put(MagicValues.DATA, bills);
|
|
|
} else {
|
|
|
@@ -7537,6 +7859,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
bills.setDept(dept);
|
|
|
map.put(MagicValues.DATA, bills);
|
|
|
} else {
|
|
|
@@ -7547,6 +7873,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
if (MagicValues.MM.equals(bills.getBillType())) {
|
|
|
@@ -7668,6 +7998,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
if (MagicValues.MM.equals(bills.getBillType())) {
|
|
|
@@ -7789,6 +8123,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
if (MagicValues.MM.equals(bills.getBillType())) {
|
|
|
@@ -7900,6 +8238,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
// bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
List<FeeCenter> feeCenterList;
|
|
|
List<Long> ids = new ArrayList<>();
|
|
|
if (MagicValues.MM.equals(bills.getBillType())) {
|
|
|
@@ -8062,6 +8404,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
} else {
|
|
|
bills = new Bills();
|
|
|
BeanUtil.copyProperties(amends, bills);
|
|
|
@@ -8167,6 +8513,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
} else {
|
|
|
bills = new Bills();
|
|
|
BeanUtil.copyProperties(amends, bills);
|
|
|
@@ -8272,6 +8622,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
} else {
|
|
|
bills = new Bills();
|
|
|
BeanUtil.copyProperties(amends, bills);
|
|
|
@@ -8377,6 +8731,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
if (bills != null) {
|
|
|
// bills.setFM(MagicValues.FM);
|
|
|
bills.setVesselCnName(bills.getVesselEnName() + "/" + bills.getVoyageNo());
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
} else {
|
|
|
bills = new Bills();
|
|
|
BeanUtil.copyProperties(amends, bills);
|
|
|
@@ -8485,6 +8843,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
Bills bills = billsService.getById(amends.getOrigId());
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
BCorps carrierCorps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCarrierId())).findFirst().orElse(null);
|
|
|
if (carrierCorps != null && ObjectUtils.isNotNull(carrierCorps.getShortName())) {
|
|
|
bills.setCarrierCnName(carrierCorps.getShortName());
|
|
|
@@ -9403,6 +9765,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
.eq(FeeCenter::getIsDeleted, 0));
|
|
|
AeaBills bills = aeaBillsService.getById(amends.getOrigId());
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
BCorps carrierCorps = bCorpsList.stream().filter(e -> e.getId().equals(bills.getCarrierId())).findFirst().orElse(null);
|
|
|
if (carrierCorps != null && ObjectUtils.isNotNull(carrierCorps.getShortName())) {
|
|
|
bills.setCarrierCnName(carrierCorps.getShortName());
|
|
|
@@ -10297,6 +10663,10 @@ public class ReportsServiceImpl extends ServiceImpl<ReportsMapper, Reports> impl
|
|
|
List<CustomsDeclaration> list = new ArrayList<>();
|
|
|
CustomsDeclaration bills = customsDeclarationService.getById(billId);
|
|
|
if (bills != null) {
|
|
|
+ R<String> biz = dictBizClient.getOneValue("src_type_los", bills.getSeaType(), AuthUtil.getTenantId());
|
|
|
+ if (biz.isSuccess()) {
|
|
|
+ bills.setSrcType(biz.getData());
|
|
|
+ }
|
|
|
if (bCurrency != null) {
|
|
|
bills.setRate(bCurrency.getExrate());
|
|
|
} else {
|