正在显示
7 个修改的文件
包含
33 行增加
和
9 行删除
@@ -143,6 +143,9 @@ public class LiftBar { | @@ -143,6 +143,9 @@ public class LiftBar { | ||
143 | return result; | 143 | return result; |
144 | } | 144 | } |
145 | selfWt=Double.parseDouble(ve.getSelfWt());//车辆备案我不是 | 145 | selfWt=Double.parseDouble(ve.getSelfWt());//车辆备案我不是 |
146 | + | ||
147 | + List<LAND_BUSINEESTYPE_LIST_INFO> listinfos=logic.busnesslistinfoService.selectmanilist(info.getBarcode()); | ||
148 | + | ||
146 | /** | 149 | /** |
147 | * 3. 车牌号,二维码,场站ID/号,通道ID/号,进出业务类型标识I/E | 150 | * 3. 车牌号,二维码,场站ID/号,通道ID/号,进出业务类型标识I/E |
148 | * 查询是否已有此场站通道的申请 | 151 | * 查询是否已有此场站通道的申请 |
@@ -163,7 +166,6 @@ public class LiftBar { | @@ -163,7 +166,6 @@ public class LiftBar { | ||
163 | boolean checkResult = false; | 166 | boolean checkResult = false; |
164 | boolean check = false; | 167 | boolean check = false; |
165 | boolean checkMainfest =false; | 168 | boolean checkMainfest =false; |
166 | - | ||
167 | //7. 判断是进场申请还是出场申请 | 169 | //7. 判断是进场申请还是出场申请 |
168 | if("I".equals(info.getIetype())){ | 170 | if("I".equals(info.getIetype())){ |
169 | //进场申请宽进 | 171 | //进场申请宽进 |
@@ -229,7 +231,7 @@ public class LiftBar { | @@ -229,7 +231,7 @@ public class LiftBar { | ||
229 | if (logic.weightCheckHandleService.checkImportDlv(growssWt, Double.parseDouble(ve.getSelfWt()), goodsWt,inWt)){ | 231 | if (logic.weightCheckHandleService.checkImportDlv(growssWt, Double.parseDouble(ve.getSelfWt()), goodsWt,inWt)){ |
230 | checkResult=true; | 232 | checkResult=true; |
231 | //检查运单放行 | 233 | //检查运单放行 |
232 | - if (logic.resMessageService.checkManifestRelease(info,list.getMasterList())){ | 234 | + if (logic.resMessageService.checkManifestRelease(info,listinfos)){ |
233 | checkResult=true; | 235 | checkResult=true; |
234 | }else { | 236 | }else { |
235 | //有运单未放行 | 237 | //有运单未放行 |
@@ -270,7 +272,7 @@ public class LiftBar { | @@ -270,7 +272,7 @@ public class LiftBar { | ||
270 | if (logic.weightCheckHandleService.checkAllocateOrDispatch(growssWt, Double.parseDouble(ve.getSelfWt()), goodsWt,inWt)){ | 272 | if (logic.weightCheckHandleService.checkAllocateOrDispatch(growssWt, Double.parseDouble(ve.getSelfWt()), goodsWt,inWt)){ |
271 | checkResult=true; | 273 | checkResult=true; |
272 | //检查运单放行 | 274 | //检查运单放行 |
273 | - if (logic.resMessageService.checkManifestRelease(info,list.getMasterList())){ | 275 | + if (logic.resMessageService.checkManifestRelease(info,listinfos)){ |
274 | checkResult=true; | 276 | checkResult=true; |
275 | }else { | 277 | }else { |
276 | //有运单未放行 | 278 | //有运单未放行 |
@@ -21,4 +21,6 @@ public interface LAND_BUSINEESTYPE_LIST_INFOMapper { | @@ -21,4 +21,6 @@ public interface LAND_BUSINEESTYPE_LIST_INFOMapper { | ||
21 | List<LAND_BUSINEESTYPE_LIST_INFO> selectarrive(@Param("applicationformid") String applicationformid); | 21 | List<LAND_BUSINEESTYPE_LIST_INFO> selectarrive(@Param("applicationformid") String applicationformid); |
22 | 22 | ||
23 | List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(@Param("applicationformid") String applicationformid); | 23 | List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(@Param("applicationformid") String applicationformid); |
24 | + | ||
25 | + List<LAND_BUSINEESTYPE_LIST_INFO> selectmanilists(@Param("applicationformid") String applicationformid); | ||
24 | } | 26 | } |
@@ -7,4 +7,5 @@ import java.util.List; | @@ -7,4 +7,5 @@ import java.util.List; | ||
7 | public interface BusnesslistinfoService { | 7 | public interface BusnesslistinfoService { |
8 | List<LAND_BUSINEESTYPE_LIST_INFO> selectarrvie(String applicationformid); | 8 | List<LAND_BUSINEESTYPE_LIST_INFO> selectarrvie(String applicationformid); |
9 | List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(String applicationformid); | 9 | List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(String applicationformid); |
10 | + List<LAND_BUSINEESTYPE_LIST_INFO> selectmanilist(String applicationformid); | ||
10 | } | 11 | } |
1 | package com.sy.service; | 1 | package com.sy.service; |
2 | 2 | ||
3 | import com.sy.model.GatherInfo; | 3 | import com.sy.model.GatherInfo; |
4 | +import com.sy.model.LAND_BUSINEESTYPE_LIST_INFO; | ||
4 | import com.sy.model.RESMESSAGE; | 5 | import com.sy.model.RESMESSAGE; |
5 | 6 | ||
6 | import java.util.List; | 7 | import java.util.List; |
@@ -18,8 +19,8 @@ public interface ResMessageService { | @@ -18,8 +19,8 @@ public interface ResMessageService { | ||
18 | List<RESMESSAGE> selectByManifestList(String[] manifest); | 19 | List<RESMESSAGE> selectByManifestList(String[] manifest); |
19 | 20 | ||
20 | /** | 21 | /** |
21 | - * @param manifestList 运单号数组字符串 格式为"'69515289724','40692420145','17233862076'" | 22 | + * @param list_infos 运单号数组字符串 格式为"'69515289724','40692420145','17233862076'" |
22 | * @return 全部放行 返回true 未全部放行返回false | 23 | * @return 全部放行 返回true 未全部放行返回false |
23 | */ | 24 | */ |
24 | - boolean checkManifestRelease(GatherInfo info, String manifestList); | 25 | + boolean checkManifestRelease(GatherInfo info, List<LAND_BUSINEESTYPE_LIST_INFO> list_infos); |
25 | } | 26 | } |
@@ -21,4 +21,9 @@ public class BusnesslistinfoImpl implements BusnesslistinfoService { | @@ -21,4 +21,9 @@ public class BusnesslistinfoImpl implements BusnesslistinfoService { | ||
21 | public List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(String applicationformid) { | 21 | public List<LAND_BUSINEESTYPE_LIST_INFO> selectpartialidentity(String applicationformid) { |
22 | return list_infoMapper.selectpartialidentity(applicationformid); | 22 | return list_infoMapper.selectpartialidentity(applicationformid); |
23 | } | 23 | } |
24 | + | ||
25 | + @Override | ||
26 | + public List<LAND_BUSINEESTYPE_LIST_INFO> selectmanilist(String applicationformid) { | ||
27 | + return list_infoMapper.selectmanilists(applicationformid); | ||
28 | + } | ||
24 | } | 29 | } |
@@ -2,6 +2,7 @@ package com.sy.service.impl; | @@ -2,6 +2,7 @@ package com.sy.service.impl; | ||
2 | 2 | ||
3 | import com.sy.mapper.RESMESSAGEMapper; | 3 | import com.sy.mapper.RESMESSAGEMapper; |
4 | import com.sy.model.GatherInfo; | 4 | import com.sy.model.GatherInfo; |
5 | +import com.sy.model.LAND_BUSINEESTYPE_LIST_INFO; | ||
5 | import com.sy.model.RESMESSAGE; | 6 | import com.sy.model.RESMESSAGE; |
6 | import com.sy.service.ResMessageService; | 7 | import com.sy.service.ResMessageService; |
7 | import com.sy.socket.CommandClient; | 8 | import com.sy.socket.CommandClient; |
@@ -9,6 +10,7 @@ import org.apache.log4j.Logger; | @@ -9,6 +10,7 @@ import org.apache.log4j.Logger; | ||
9 | import org.springframework.beans.factory.annotation.Autowired; | 10 | import org.springframework.beans.factory.annotation.Autowired; |
10 | import org.springframework.stereotype.Service; | 11 | import org.springframework.stereotype.Service; |
11 | 12 | ||
13 | +import java.util.ArrayList; | ||
12 | import java.util.Arrays; | 14 | import java.util.Arrays; |
13 | import java.util.List; | 15 | import java.util.List; |
14 | import java.util.Vector; | 16 | import java.util.Vector; |
@@ -42,14 +44,18 @@ public class ResMessageServiceImpl implements ResMessageService { | @@ -42,14 +44,18 @@ public class ResMessageServiceImpl implements ResMessageService { | ||
42 | } | 44 | } |
43 | 45 | ||
44 | @Override | 46 | @Override |
45 | - public boolean checkManifestRelease(GatherInfo info,String manifestList) { | 47 | + public boolean checkManifestRelease(GatherInfo info, List<LAND_BUSINEESTYPE_LIST_INFO> list_infos) { |
46 | List<String> noRelease = new Vector<>(); | 48 | List<String> noRelease = new Vector<>(); |
47 | - if (manifestList.length() < 1) { | 49 | + if (list_infos.size() < 1) { |
48 | CommandClient.Client(info, AWB_EMPTY); | 50 | CommandClient.Client(info, AWB_EMPTY); |
49 | return false; | 51 | return false; |
50 | } | 52 | } |
51 | - manifestList = manifestList.replace("-", "").replace(",", ","); | ||
52 | - String[] maifest = manifestList.split(","); | 53 | + List<String> manifestList=new ArrayList<String>(); |
54 | + for(LAND_BUSINEESTYPE_LIST_INFO land:list_infos){ | ||
55 | + manifestList.add(land.getAwba()); | ||
56 | + } | ||
57 | + //manifestList = manifestList.replace("-", "").replace(",", ","); | ||
58 | + String[] maifest = manifestList.toArray(new String[manifestList.size()]); | ||
53 | logger.info("运单列表:" + manifestList); | 59 | logger.info("运单列表:" + manifestList); |
54 | boolean flag = false; | 60 | boolean flag = false; |
55 | 61 |
@@ -37,6 +37,13 @@ | @@ -37,6 +37,13 @@ | ||
37 | where 1=1 and partialIdentity='1' | 37 | where 1=1 and partialIdentity='1' |
38 | and applicationFormId = #{applicationformid,jdbcType=VARCHAR} | 38 | and applicationFormId = #{applicationformid,jdbcType=VARCHAR} |
39 | </select> | 39 | </select> |
40 | + <select id="selectmanilists" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
41 | + select | ||
42 | + awba | ||
43 | + from land_busineestype_list_info | ||
44 | + where 1=1 | ||
45 | + and applicationFormId = #{applicationformid,jdbcType=VARCHAR} | ||
46 | + </select> | ||
40 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | 47 | <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
41 | delete from land_busineestype_list_info | 48 | delete from land_busineestype_list_info |
42 | where id = #{id,jdbcType=VARCHAR} | 49 | where id = #{id,jdbcType=VARCHAR} |
-
请 注册 或 登录 后发表评论