This commit is contained in:
linfso 2024-07-02 19:09:13 +08:00
parent 2b4f83ca0b
commit 3b1b7e8133

View File

@ -1426,11 +1426,59 @@ public class EmisBaseService {
String packTypeEn="";
if(!StringUtils.isEmpty(waybill.getPackType())){
packType=DictUtils.getDictLabel("emis_tab_packing_type",waybill.getPackType());
try {
packTypeEn= TransUtils.langTrans(packType,"zh-cn","en");
} catch (Exception e) {
e.printStackTrace();
// try {
// packTypeEn= TransUtils.langTrans(packType,"zh-cn","en");
// } catch (Exception e) {
// e.printStackTrace();
// }
// 包装类型英文翻译
/*
文件
1
1
文件
纸箱
2
2
纸箱
木箱
3
3
木箱
编织袋
4
4
编织袋
其它
5
5
其它
* */
String [] packTypeArr = waybill.getPackType().split(",");
if(packTypeArr.length>0){
for(String type:packTypeArr){
if("1".equals(type)){
packTypeEn=""+"paper"+","
}
else if("2".equals(type)){
packTypeEn=""+"carton"+","
}
else if("3".equals(type)){
packTypeEn=""+"wooden box"+","
}
else if("4".equals(type)){
packTypeEn=""+"Woven bags"+","
}
else if("5".equals(type)){
packTypeEn=""+"other"+","
}
}
packTypeEn=StringUtils.removeEnd(packTypeEn,",");
}
}
order.put("packType",packType);
order.put("packTypeEn",packTypeEn);