|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.logpm.warehouse.service.impl; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
@ -43,7 +44,6 @@ import org.springblade.common.constant.DictBizConstant;
|
|
|
|
|
import org.springblade.common.constant.OldSystemDataPushConfig; |
|
|
|
|
import org.springblade.common.constant.TenantNum; |
|
|
|
|
import org.springblade.common.constant.order.*; |
|
|
|
|
import org.springblade.common.constant.printTemplate.PrintTemplateStatusConstant; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.utils.TemplateUtil; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
@ -54,7 +54,6 @@ import org.springblade.core.tool.constant.BladeConstant;
|
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
import org.springblade.system.cache.DictBizCache; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
@ -763,7 +762,7 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
|
|
|
|
|
|
|
|
|
|
if (ObjectUtils.isNotEmpty(detailList)) { |
|
|
|
|
// 得到需要打印的页面数量
|
|
|
|
|
int num = detailList.size() % 4; |
|
|
|
|
int num = detailList.size() / 4; |
|
|
|
|
|
|
|
|
|
for (int i = 0; i <= num; i++) { |
|
|
|
|
// 需要从detailList每次循环获取到4个数据
|
|
|
|
@ -794,9 +793,9 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
|
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
map.put("查询单号", warehouseWaybillEntity.getWaybillNo()); |
|
|
|
|
map.put("起运地", warehouseWaybillEntity.getWaybillNo()); |
|
|
|
|
map.put("到达站", warehouseWaybillEntity.getWaybillNo()); |
|
|
|
|
map.put("客户车次号", warehouseWaybillEntity.getWaybillNo()); |
|
|
|
|
map.put("起运地", warehouseWaybillEntity.getDepartureWarehouseName()); |
|
|
|
|
map.put("到达站", warehouseWaybillEntity.getDestinationWarehouseName()); |
|
|
|
|
map.put("客户车次号", "客户车次号: "+warehouseWaybillEntity.getCustomerTrain()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
map.put("托运单位名称", warehouseWaybillEntity.getShipper()); |
|
|
|
@ -853,6 +852,9 @@ public class WarehouseWaybillServiceImpl extends BaseServiceImpl<WarehouseWaybil
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String formatToTwoDecimalPlaces(BigDecimal value) { |
|
|
|
|
if(ObjectUtil.isNull(value)){ |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
|
return value.setScale(2, RoundingMode.HALF_UP).toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|