|
|
@@ -10,7 +10,9 @@ import cn.gov.customs.cacp.sdks.core.user.pojo.CacpLogonUser;
|
|
|
import cn.gov.customs.wxjy.analyze.pojo.EntryInfo;
|
|
|
import cn.gov.customs.wxjy.analyze.pojo.EntryList;
|
|
|
import cn.gov.customs.wxjy.base.service.BaseCodeService;
|
|
|
+import cn.gov.customs.wxjy.common.utils.DictUtils;
|
|
|
import cn.gov.customs.wxjy.common.utils.poi.DynamicExcelUtil;
|
|
|
+import cn.gov.customs.wxjy.system.service.DictDataService;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import cn.gov.customs.wxjy.common.core.controller.BaseController;
|
|
|
@@ -34,6 +36,7 @@ public class GoodsEntryController extends BaseController {
|
|
|
|
|
|
private final IGoodsEntryService service;
|
|
|
private final BaseCodeService baseCodeService;
|
|
|
+ private final DictDataService dictDataService;
|
|
|
|
|
|
@GetMapping("/get-entry")
|
|
|
public Result<EntryInfo> getEntryHead(@RequestParam String entryId) {
|
|
|
@@ -82,7 +85,7 @@ public class GoodsEntryController extends BaseController {
|
|
|
excel.setTradeMode(baseCodeService.getTradeByCode(excel.getTradeMode())==null?"":baseCodeService.getTradeByCode(excel.getTradeMode()).getAbbrTrade());
|
|
|
excel.setIePort(baseCodeService.getCustomsByCode(excel.getIePort())==null?"":baseCodeService.getCustomsByCode(excel.getIePort()).getCustomsName());
|
|
|
excel.setTradeCountry(baseCodeService.getCountryByIso(excel.getTradeCountry())==null?"":baseCodeService.getCountryByIso(excel.getTradeCountry()).getCounCName());
|
|
|
-
|
|
|
+ excel.setGoodsType(dictDataService.selectDictLabel("goods_type",excel.getGoodsType()));
|
|
|
});
|
|
|
// 使用动态Excel工具类
|
|
|
DynamicExcelUtil<Entry> util = new DynamicExcelUtil<>(Entry.class);
|