| | |
| | | ydpzz (1,"运单配载中",new Integer[]{ChildStatusLevel.ysdxc.getKey() |
| | | ,ChildStatusLevel.ysdcx.getKey() |
| | | ,ChildStatusLevel.shtg.getKey() |
| | | ,ChildStatusLevel.shwtg.getKey() |
| | | ,ChildStatusLevel.ysdcx.getKey()}), |
| | | ,ChildStatusLevel.shwtg.getKey()}), |
| | | ckckz (2,"仓库出库中",new Integer[]{ChildStatusLevel.ddzhddzs.getKey() |
| | | ,ChildStatusLevel.sqzyzwc.getKey() |
| | | ,ChildStatusLevel.clqddzs.getKey()}), |
| | | clysz(3, "车辆运输中",new Integer[]{ChildStatusLevel.clqdapp.getKey()}), |
| | | ydh(4,"已到货",new Integer[]{ChildStatusLevel.ddzhd.getKey()}), |
| | |
| | | this.chileIndexList = chileIndexList; |
| | | } |
| | | } |
| | | public interface StatusCode{ |
| | | /** |
| | | * 1-准运证 |
| | | * 2-电子锁汽运 |
| | | * 3-电子锁非汽运 |
| | | * 4-GIS |
| | | * 5-APP |
| | | * 6-人工更新 |
| | | */ |
| | | int zyz =1; |
| | | int dzsqy =2; |
| | | int dzsfqy =3; |
| | | int gis =4; |
| | | int app =5; |
| | | int rggx =6; |
| | | } |
| | | public enum ChildStatusLevel { |
| | | /** |
| | | 订单生成(发货仓库联系电话:0551-63451234) 0 订单生成(发货仓库联系电话:0551-63451234) |
| | |
| | | ysdcx(2, -2,1,"运输单撤销",null ), |
| | | shtg(3,-1, 1,"运输单审核未通过",null ), |
| | | shwtg(4, 2,1,"运输单审核通过",null), |
| | | ysdqr(5,6, 1,"运输单确认",null ), |
| | | sqzyzwc(5,6, 1,"申请准运证完成","车辆准运证申请完成" ), |
| | | ddzhddzs(6,3,2,"到达装货地-电子锁汽运","车辆已到达装货地" ), |
| | | clqddzs(7, null,2,"车辆启运-电子锁汽运","车辆装货完成,电子锁已上锁" ), |
| | | clqdapp(8, 4,3,"车辆启运-APP","车辆运输中" ), |
| | | ddzhd(9, 5,4,"到达卸货地-APP","车辆已到达卸货地" ), |
| | | clqddzs(7, 4,2,"车辆启运-电子锁汽运","车辆装货完成,电子锁已上锁" ), |
| | | clqdapp(8, 7,3,"车辆启运-APP","车辆运输中" ), |
| | | ddzhd(9, 8,4,"到达卸货地-APP","车辆已到达卸货地" ), |
| | | ddxhd(10, 5,5,"到达卸货地-电子锁汽运","电子锁已解锁,运输任务已完成" ), |
| | | ; |
| | | |
| | |
| | | } |
| | | return null; |
| | | } |
| | | public static String getInfo(int key,String defualt) { |
| | | public static String getInfo(int orderStatus,String defualt) { |
| | | for (ChildStatusLevel c : ChildStatusLevel.values()) { |
| | | if (c.getKey() == key) { |
| | | if (c.getOrderStatus() == orderStatus) { |
| | | return StringUtils.defaultString(c.getInfo(),StringUtils.defaultString(defualt,c.getName())); |
| | | } |
| | | } |