...
|
...
|
@@ -41,7 +41,7 @@ public class CgoAsmController { |
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/getInfo")
|
|
|
public ResultExitData getInfo(@RequestParam(value = "waybillNoMaster", required = false)String waybillNoMaster) {
|
|
|
public ResultExitData getInfo(@RequestParam(value = "waybillNoMaster", required = false) String waybillNoMaster) {
|
|
|
ResultExitData result = new ResultExitData();
|
|
|
/**
|
|
|
* 2.根据运单号,获取品名,二级品类,一级品类
|
...
|
...
|
@@ -66,11 +66,29 @@ public class CgoAsmController { |
|
|
*/
|
|
|
List<HzWaybillInfo> hz = hzWaybillInfoService.getHzWaybillInfo(waybillNoMaster);
|
|
|
if (hz != null && hz.size() > 0) {
|
|
|
HzShipperInformation hzInfo = hzShipperInformationService.getHzInfo(hz.get(0).getHzInforId());
|
|
|
//设置代理人名称
|
|
|
result.setFullName(hzInfo.getFullName());
|
|
|
//设置代理人类型
|
|
|
result.setTheShipperType(hzInfo.getTheShipperType());
|
|
|
/**
|
|
|
* 同样运单号,货主信息表的ID不止一个,需要遍历
|
|
|
*/
|
|
|
for (int i = 0; i < hz.size(); i++) {
|
|
|
HzShipperInformation hzInfo = new HzShipperInformation();
|
|
|
hzInfo = hzShipperInformationService.getHzInfo(hz.get(i).getHzInforId());
|
|
|
if ("222".equals(hzInfo.getTheShipperType())) {
|
|
|
//订仓代理人
|
|
|
result.setOrderName(hzInfo.getFullName());
|
|
|
}
|
|
|
if ("333".equals(hzInfo.getTheShipperType())) {
|
|
|
//结算代理人
|
|
|
result.setCountName(hzInfo.getFullName());
|
|
|
}
|
|
|
}
|
|
|
// HzShipperInformation hzInfo = hzShipperInformationService.getHzInfo(hz.get(0).getHzInforId());
|
|
|
// //设置代理人名称
|
|
|
// result.setCountName(hzInfo.getFullName());
|
|
|
// result.setOrderName(hzInfo.getFullName());
|
|
|
// //设置代理人类型
|
|
|
// result.setTheShipperType(hzInfo.getTheShipperType());
|
|
|
|
|
|
|
|
|
}
|
|
|
return result;
|
|
|
}
|
...
|
...
|
|