md
This commit is contained in:
parent
2b4f83ca0b
commit
3b1b7e8133
@ -1426,11 +1426,59 @@ public class EmisBaseService {
|
|||||||
String packTypeEn="";
|
String packTypeEn="";
|
||||||
if(!StringUtils.isEmpty(waybill.getPackType())){
|
if(!StringUtils.isEmpty(waybill.getPackType())){
|
||||||
packType=DictUtils.getDictLabel("emis_tab_packing_type",waybill.getPackType());
|
packType=DictUtils.getDictLabel("emis_tab_packing_type",waybill.getPackType());
|
||||||
try {
|
// try {
|
||||||
packTypeEn= TransUtils.langTrans(packType,"zh-cn","en");
|
// packTypeEn= TransUtils.langTrans(packType,"zh-cn","en");
|
||||||
} catch (Exception e) {
|
// } catch (Exception e) {
|
||||||
e.printStackTrace();
|
// 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("packType",packType);
|
||||||
order.put("packTypeEn",packTypeEn);
|
order.put("packTypeEn",packTypeEn);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user