md
This commit is contained in:
parent
28ad9fec0f
commit
3a939eff4f
@ -2242,7 +2242,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
EmisTransLine emisTransLine = getTransLineByCode(emisWaybillOld.getTransLineType());
|
EmisTransLine emisTransLine = getTransLineByCode(emisWaybillOld.getTransLineType());
|
||||||
// 快递
|
// 快递
|
||||||
if("1".equals(emisTransLine.getTransType()) ){
|
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()) ){
|
else if("2".equals(emisTransLine.getTransType()) ){
|
||||||
|
|||||||
@ -107,10 +107,10 @@ public class WordTplUtils {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
int width=350;
|
int width=400;
|
||||||
int height=40;
|
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<>();
|
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>(){{
|
new HashMap<String, Object>(){{
|
||||||
put("wsInNo", "TAN-SHJD-24072701");
|
put("wsInNo", "TAN-SHJD-24072701");
|
||||||
put("country", "越南");
|
put("country", "越南");
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user