作者 xudada

查询分拨申请放行回执

@@ -65,3 +65,6 @@ feign.httpclient.connection-timeout=3000 @@ -65,3 +65,6 @@ feign.httpclient.connection-timeout=3000
65 wharf.interface.host=http://10.50.3.66:1983/ 65 wharf.interface.host=http://10.50.3.66:1983/
66 #新舱单运单查询数据接口,注意尾部带/符号 66 #新舱单运单查询数据接口,注意尾部带/符号
67 nmms.interface.host=http://10.50.3.82:8081/ 67 nmms.interface.host=http://10.50.3.82:8081/
  68 +#查询分拨申请放行
  69 +inport-url=http://nmms1.15miaoo.com:17999/
  70 +
  1 +package com.sy.IMPORT;
  2 +
  3 +
  4 +import com.sy.model.InportallocateMode;
  5 +import com.sy.service.InportallcateService;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.web.bind.annotation.RequestMapping;
  8 +import org.springframework.web.bind.annotation.RequestParam;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +import java.util.Map;
  12 +
  13 +
  14 +@RestController
  15 +@RequestMapping("/inport")
  16 +public class InportallocateController {
  17 + @Autowired
  18 + InportallcateService inportallcateService;
  19 + @RequestMapping("/selectInportallocates")
  20 + public Map getById(@RequestParam(value = "waybill",required = true) String waybill,
  21 + @RequestParam(value = "pageIndex",required = true) int pageIndex,
  22 + @RequestParam(value = "pageSize",required = true) int pageSize){
  23 + InportallocateMode mode=new InportallocateMode();
  24 + mode.setWaybill(waybill);
  25 + mode.setPageIndex(pageIndex);
  26 + mode.setPageSize(pageSize);
  27 + Map map=inportallcateService.selectAllocate(mode);
  28 + return map;
  29 + }
  30 +}
@@ -140,7 +140,7 @@ public class NewLeftBar { @@ -140,7 +140,7 @@ public class NewLeftBar {
140 * 若进场站为北货,只允许空车进,备案车重=过卡车重 140 * 若进场站为北货,只允许空车进,备案车重=过卡车重
141 * 其它走校验 141 * 其它走校验
142 * */ 142 * */
143 - if(FileTool.readProperties("stationb").equals(info.getAreaid())){ 143 + if(FileTool.readProperties("stationb").equals(info.getAreaid()) && "进口提货".equals(land.getBusinesstype())){
144 logger.info("--------->车辆进入北货场站"); 144 logger.info("--------->车辆进入北货场站");
145 if(logic.checkFlag(growssWt, Double.parseDouble(ve.getSelfWt()))){ 145 if(logic.checkFlag(growssWt, Double.parseDouble(ve.getSelfWt()))){
146 checkResult=true; 146 checkResult=true;
  1 +package com.sy.model;
  2 +
  3 +
  4 +public class InportallocateMode {
  5 + private String waybill;
  6 + private int pageIndex;
  7 + private int pageSize;
  8 +
  9 + public String getWaybill() {
  10 + return waybill;
  11 + }
  12 +
  13 + public void setWaybill(String waybill) {
  14 + this.waybill = waybill;
  15 + }
  16 +
  17 + public int getPageIndex() {
  18 + return pageIndex;
  19 + }
  20 +
  21 + public void setPageIndex(int pageIndex) {
  22 + this.pageIndex = pageIndex;
  23 + }
  24 +
  25 + public int getPageSize() {
  26 + return pageSize;
  27 + }
  28 +
  29 + public void setPageSize(int pageSize) {
  30 + this.pageSize = pageSize;
  31 + }
  32 +}
  1 +package com.sy.service;
  2 +
  3 +import com.sy.model.InportallocateMode;
  4 +import com.sy.service.impl.InportallocateImpl;
  5 +import org.springframework.cloud.openfeign.FeignClient;
  6 +import org.springframework.stereotype.Component;
  7 +import org.springframework.web.bind.annotation.PostMapping;
  8 +
  9 +import java.util.Map;
  10 +
  11 +@Component
  12 +@FeignClient(url="${inport-url}",fallback = InportallocateImpl.class,name = "InportFeign")
  13 +public interface InportallcateService {
  14 +
  15 + @PostMapping("/Allocate/querypage_inportallocate")
  16 + Map selectAllocate(InportallocateMode mode);
  17 +}
  1 +package com.sy.service.impl;
  2 +
  3 +
  4 +import com.sy.model.InportallocateMode;
  5 +import com.sy.service.InportallcateService;
  6 +import org.springframework.stereotype.Service;
  7 +
  8 +import java.util.Map;
  9 +
  10 +
  11 +@Service
  12 +public class InportallocateImpl implements InportallcateService {
  13 + @Override
  14 + public Map selectAllocate(InportallocateMode mode) {
  15 + return null;
  16 + }
  17 +}