This commit is contained in:
linfso 2024-07-27 14:06:38 +08:00
parent 28ad9fec0f
commit 3a939eff4f
5 changed files with 5 additions and 5 deletions

View File

@ -2242,7 +2242,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
EmisTransLine emisTransLine = getTransLineByCode(emisWaybillOld.getTransLineType());
// 快递
if("1".equals(emisTransLine.getTransType()) ){
tplName="tpl/ws_ls_in_tpl.docx";
tplName="tpl/ws_kd_in_tpl.docx";
}
// 空运
else if("2".equals(emisTransLine.getTransType()) ){

View File

@ -107,10 +107,10 @@ public class WordTplUtils {
public static void main(String[] args) {
try {
int width=350;
int height=40;
int width=400;
int height=50;
BufferedImage barcodeImageBuffer = BarcodeUtils.getBarCodeWithWord("TAN-SHJD-24072701",width,height,70);
BufferedImage barcodeImageBuffer = BarcodeUtils.getBarCodeWithWord("TAN-SHJD-24072701",width,height,75);
List<Cargo> cargoList= new ArrayList<>();
@ -132,7 +132,7 @@ public class WordTplUtils {
XWPFTemplate template = XWPFTemplate.compile("/Users/alan/Downloads/ws_kd_in_tpl.docx",config).render(
XWPFTemplate template = XWPFTemplate.compile("/Users/alan/Downloads/ws_air_in_tpl.docx",config).render(
new HashMap<String, Object>(){{
put("wsInNo", "TAN-SHJD-24072701");
put("country", "越南");