This commit is contained in:
linfso 2024-07-27 12:34:47 +08:00
parent 87e1fe63ce
commit 28ad9fec0f
5 changed files with 9 additions and 1 deletions

View File

@ -2306,17 +2306,25 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
fillMap.put("sendTel", Convert.mobile(emisWaybillOld.getSendMobile()));
fillMap.put("sendAddress", Convert.address(emisWaybillOld.getSendAddress()));
fillMap.put("sendCompany", emisWaybillOld.getSendCompany());
fillMap.put("sendCountry", emisWaybillOld.getSendCountryName());
fillMap.put("recvName", Convert.chineseName(emisWaybillOld.getReceiveName()));
fillMap.put("recvTel", Convert.mobile(emisWaybillOld.getReceiveMobile()));
fillMap.put("recvAddress", Convert.address(emisWaybillOld.getReceiveAddress()));
fillMap.put("recvCompany", emisWaybillOld.getReceiveCompany());
fillMap.put("recvCountry", emisWaybillOld.getReceiveCountryName());
fillMap.put("wsContact", emisWaybillOld.getIntoWarehouseContact());
fillMap.put("wsPhone", emisWaybillOld.getIntoWarehousePhone());
fillMap.put("wsAddress", emisWaybillOld.getIntoWarehouseAddress());
fillMap.put("salesmen", emisWaybillOld.getSalesmen());
fillMap.put("sendProvinceName", emisWaybillOld.getSendProvinceName());
fillMap.put("sendCityName", emisWaybillOld.getSendCityName());
fillMap.put("recvProvinceName", emisWaybillOld.getReceiveProvinceName());
fillMap.put("recvCityName", emisWaybillOld.getReceiveCityName());
fillMap.put("barcode", Pictures.ofBufferedImage(barcodeImageBuffer, PictureType.JPEG).size(width, height).create());
fillMap.put("cargoList", emisWaybillOld.getCargoList());

View File

@ -132,7 +132,7 @@ public class WordTplUtils {
XWPFTemplate template = XWPFTemplate.compile("/Users/alan/Downloads/ws_air_in_tpl.docx",config).render(
XWPFTemplate template = XWPFTemplate.compile("/Users/alan/Downloads/ws_kd_in_tpl.docx",config).render(
new HashMap<String, Object>(){{
put("wsInNo", "TAN-SHJD-24072701");
put("country", "越南");

Binary file not shown.