|
@@ -3,6 +3,7 @@ package com.fjhx.sale.service.documents.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
+import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -80,9 +81,14 @@ public class DocumentsPdfServiceImpl extends ServiceImpl<DocumentsPdfMapper, Doc
|
|
|
if (MapUtils.isEmpty(map) || ObjectUtil.isEmpty(documentsProduct)) {
|
|
|
throw new ServiceException("数据异常,请联系管理员");
|
|
|
}
|
|
|
+ //查询报关单里的运输备注
|
|
|
+ DocumentsPdf data = this.getOne(Wrappers.<DocumentsPdf>query().lambda().eq(DocumentsPdf::getDocumentId, id).eq(DocumentsPdf::getDataType, 0));
|
|
|
+ String dataJson = ObjectUtil.isEmpty(data)?"":data.getContent();
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(dataJson);
|
|
|
map.put("customerCode", documentsProduct.getCustomsCode());
|
|
|
- map.put("productName", StringUtils.equals(documentsProduct.getDescribes(), "无") ? documentsProduct.getSubDescribe() : documentsProduct.getDescribes());
|
|
|
+ map.put("productName", StringUtils.equals(documentsProduct.getSubDescribe(), "无") ? documentsProduct.getDescribes() : documentsProduct.getSubDescribe());
|
|
|
map.put("productQuantity", documentsProduct.getQuantity());
|
|
|
+ map.put("transport_method",jsonObject.getOrDefault("withinChinaSource",null));
|
|
|
return map;
|
|
|
} else {
|
|
|
Map<String, Object> map = JSON.parseObject(result.getContent());
|