正在显示
1 个修改的文件
包含
13 行增加
和
4 行删除
| @@ -28,6 +28,7 @@ import javax.validation.constraints.NotNull; | @@ -28,6 +28,7 @@ import javax.validation.constraints.NotNull; | ||
| 28 | import java.io.BufferedReader; | 28 | import java.io.BufferedReader; |
| 29 | import java.io.IOException; | 29 | import java.io.IOException; |
| 30 | import java.io.InputStreamReader; | 30 | import java.io.InputStreamReader; |
| 31 | +import java.math.BigDecimal; | ||
| 31 | import java.net.MalformedURLException; | 32 | import java.net.MalformedURLException; |
| 32 | import java.net.URL; | 33 | import java.net.URL; |
| 33 | import java.net.URLConnection; | 34 | import java.net.URLConnection; |
| @@ -78,6 +79,8 @@ public class LiftBar { | @@ -78,6 +79,8 @@ public class LiftBar { | ||
| 78 | private static String IEPORSE = "无相对应进出场申请"; | 79 | private static String IEPORSE = "无相对应进出场申请"; |
| 79 | private static String FANGXING="有运单未放行"; | 80 | private static String FANGXING="有运单未放行"; |
| 80 | private static String FENBO = "装载运单的分拨申请舱单未通过校验"; | 81 | private static String FENBO = "装载运单的分拨申请舱单未通过校验"; |
| 82 | + private static String NOGrossWt = "过磅重量异常"; | ||
| 83 | + | ||
| 81 | 84 | ||
| 82 | //分拨申请回执 | 85 | //分拨申请回执 |
| 83 | private static String ALLOCATE_01 = "39301 分拨申请审核通过。"; | 86 | private static String ALLOCATE_01 = "39301 分拨申请审核通过。"; |
| @@ -143,6 +146,12 @@ public class LiftBar { | @@ -143,6 +146,12 @@ public class LiftBar { | ||
| 143 | return result; | 146 | return result; |
| 144 | } | 147 | } |
| 145 | selfWt=Double.parseDouble(ve.getSelfWt());//车辆备案我不是 | 148 | selfWt=Double.parseDouble(ve.getSelfWt());//车辆备案我不是 |
| 149 | + if(info.getGrosswt().compareTo(BigDecimal.ZERO)==1){ | ||
| 150 | + logger.info("过磅重量校验通过,过磅重量大于0"); | ||
| 151 | + }else{ | ||
| 152 | + sendBw(info,false,NOGrossWt + growssWt,new LandBusinessTypeList(),listinfos); | ||
| 153 | + return false; | ||
| 154 | + } | ||
| 146 | 155 | ||
| 147 | /** | 156 | /** |
| 148 | * 3. 车牌号,二维码,场站ID/号,通道ID/号,进出业务类型标识I/E | 157 | * 3. 车牌号,二维码,场站ID/号,通道ID/号,进出业务类型标识I/E |
| @@ -383,7 +392,7 @@ public class LiftBar { | @@ -383,7 +392,7 @@ public class LiftBar { | ||
| 383 | * 如果有提前运抵标识,判断是否分批,不分批直接通知 | 392 | * 如果有提前运抵标识,判断是否分批,不分批直接通知 |
| 384 | * 分批是否最后一批,最后一批通知 | 393 | * 分批是否最后一批,最后一批通知 |
| 385 | * */ | 394 | * */ |
| 386 | - if("I".equals(info.getIetype())){ | 395 | + /*if("I".equals(info.getIetype())){ |
| 387 | try{ | 396 | try{ |
| 388 | List<LAND_BUSINEESTYPE_LIST_INFO> arrive_infos=logic.busnesslistinfoService.selectarrvie(info.getBarcode());//查询是否提前运抵 | 397 | List<LAND_BUSINEESTYPE_LIST_INFO> arrive_infos=logic.busnesslistinfoService.selectarrvie(info.getBarcode());//查询是否提前运抵 |
| 389 | if(arrive_infos!=null && arrive_infos.size()>0){ | 398 | if(arrive_infos!=null && arrive_infos.size()>0){ |
| @@ -409,11 +418,11 @@ public class LiftBar { | @@ -409,11 +418,11 @@ public class LiftBar { | ||
| 409 | }catch (Exception e){ | 418 | }catch (Exception e){ |
| 410 | logger.info("运单分批消息异常---"+e.toString()); | 419 | logger.info("运单分批消息异常---"+e.toString()); |
| 411 | } | 420 | } |
| 412 | - } | 421 | + }*/ |
| 413 | //调拨货冻结 | 422 | //调拨货冻结 |
| 414 | - if (list.getBusinesstype().indexOf("业务") > 0) { | 423 | + /*if (list.getBusinesstype().indexOf("业务") > 0) { |
| 415 | logic.inOrUpEnterCancel(list); | 424 | logic.inOrUpEnterCancel(list); |
| 416 | - } | 425 | + }*/ |
| 417 | } | 426 | } |
| 418 | 427 | ||
| 419 | //绑定车单关系,生成车单关系报文 | 428 | //绑定车单关系,生成车单关系报文 |
-
请 注册 或 登录 后发表评论