|
|
@ -74,11 +74,18 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
@ApiOperation(value = "分页列表", notes = "传入stockupDTO") |
|
|
|
@ApiOperation(value = "分页列表", notes = "传入stockupDTO") |
|
|
|
public R<IPage<DistrilbutionBillLadingAppVO>> pageList(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
public R<IPage<DistrilbutionBillLadingAppVO>> pageList(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
|
|
|
|
IPage<DistrilbutionBillLadingAppVO> pages = null; |
|
|
|
|
|
|
|
try { |
|
|
|
Query query = new Query(); |
|
|
|
Query query = new Query(); |
|
|
|
query.setCurrent(billLadingAppDTO.getCurrent()); |
|
|
|
query.setCurrent(billLadingAppDTO.getCurrent()); |
|
|
|
query.setSize(billLadingAppDTO.getSize()); |
|
|
|
query.setSize(billLadingAppDTO.getSize()); |
|
|
|
IPage<DistrilbutionBillLadingAppVO> pages = distrilbutionBillLadingService.pageListApp(Condition.getPage(query), billLadingAppDTO); |
|
|
|
pages = distrilbutionBillLadingService.pageListApp(Condition.getPage(query), billLadingAppDTO); |
|
|
|
return R.data(pages); |
|
|
|
return R.data(pages); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("自提列表信息异常", e); |
|
|
|
|
|
|
|
return R.fail(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
@ -126,20 +133,14 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
@ApiOperation(value = "自提扫描id") |
|
|
|
@ApiOperation(value = "自提扫描id") |
|
|
|
@GetMapping("/scan") |
|
|
|
@GetMapping("/scan") |
|
|
|
public R scan(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillLading){ |
|
|
|
public R scan(@ApiIgnore @RequestParam Map<String, Object> distrilbutionBillLading){ |
|
|
|
Resp scan = distrilbutionBillLadingService.getScan(distrilbutionBillLading); |
|
|
|
Resp scan = null; |
|
|
|
|
|
|
|
try { |
|
|
|
//获取传入类型
|
|
|
|
scan = distrilbutionBillLadingService.getScan(distrilbutionBillLading); |
|
|
|
String type =distrilbutionBillLading.get("type").toString(); |
|
|
|
} catch (Exception e) { |
|
|
|
if(scan.getCode()==200){ |
|
|
|
log.error("自提扫描id异常", e); |
|
|
|
if("2".equals(type)){ |
|
|
|
scan = new Resp(); |
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
scan.setCode(500); |
|
|
|
String coding = distrilbutionBillLading.get("coding").toString(); |
|
|
|
scan.setMsg(e.getMessage()); |
|
|
|
|
|
|
|
|
|
|
|
// warehouseUpdownTypeClient.downPackageOrDelTray(coding, myCurrentWarehouse.getId(),"签收下架解托");
|
|
|
|
|
|
|
|
}else if("1".equals(type)){ |
|
|
|
|
|
|
|
//todo 这里需要增加对备货库存品的下架逻辑 但是备货是会进行下架的
|
|
|
|
|
|
|
|
log.warn("库存品下架的逻辑"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return scan; |
|
|
|
return scan; |
|
|
@ -170,6 +171,8 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
@PostMapping("/zeroBillBatch") |
|
|
|
@PostMapping("/zeroBillBatch") |
|
|
|
@ApiOperation(value = "零担自提批量签收") |
|
|
|
@ApiOperation(value = "零担自提批量签收") |
|
|
|
public R zeroBillBatch(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
public R zeroBillBatch(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
|
|
|
|
R b = null; |
|
|
|
|
|
|
|
try { |
|
|
|
log.debug("=====零担自提签收:{}",billLadingAppDTO); |
|
|
|
log.debug("=====零担自提签收:{}",billLadingAppDTO); |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
@ -178,12 +181,20 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
return R.fail(3002, "零担数据不能为空 !"); |
|
|
|
return R.fail(3002, "零担数据不能为空 !"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
R b = distrilbutionBillLadingService.zeroBill(billLadingAppDTO); |
|
|
|
b = distrilbutionBillLadingService.zeroBill(billLadingAppDTO); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("零担自提批量签收", e); |
|
|
|
|
|
|
|
b = new Resp(); |
|
|
|
|
|
|
|
b.setCode(500); |
|
|
|
|
|
|
|
b.setMsg(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
return b; |
|
|
|
return b; |
|
|
|
} |
|
|
|
} |
|
|
|
@PostMapping("/zeroBillPack") |
|
|
|
@PostMapping("/zeroBillPack") |
|
|
|
@ApiOperation(value = "零担自提单个签收") |
|
|
|
@ApiOperation(value = "零担自提单个签收") |
|
|
|
public R zeroBillPack(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
public R zeroBillPack(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
|
|
|
|
R b = null; |
|
|
|
|
|
|
|
try { |
|
|
|
log.debug("=====零担自提签收:{}",billLadingAppDTO); |
|
|
|
log.debug("=====零担自提签收:{}",billLadingAppDTO); |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
@ -191,8 +202,13 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
if(ObjectUtils.isNull(billLadingAppDTO.getBillLadingZeroVO())){ |
|
|
|
if(ObjectUtils.isNull(billLadingAppDTO.getBillLadingZeroVO())){ |
|
|
|
return R.fail(3002, "零担数据不能为空 !"); |
|
|
|
return R.fail(3002, "零担数据不能为空 !"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
b = distrilbutionBillLadingService.zeroBillPack(billLadingAppDTO); |
|
|
|
R b = distrilbutionBillLadingService.zeroBillPack(billLadingAppDTO); |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("零担自提单个签收", e); |
|
|
|
|
|
|
|
b = new Resp(); |
|
|
|
|
|
|
|
b.setCode(500); |
|
|
|
|
|
|
|
b.setMsg(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
return b; |
|
|
|
return b; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -201,6 +217,8 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
@ApiOperation(value = "添加自提单签收图片") |
|
|
|
@ApiOperation(value = "添加自提单签收图片") |
|
|
|
public R updateReceivedImage(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
public R updateReceivedImage(@RequestBody BillLadingAppDTO billLadingAppDTO) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R b = null; |
|
|
|
|
|
|
|
try { |
|
|
|
log.debug("=====签收图片自提签收:{}",billLadingAppDTO); |
|
|
|
log.debug("=====签收图片自提签收:{}",billLadingAppDTO); |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
if (ObjectUtils.isNull(billLadingAppDTO.getBillLadingId())) { |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
|
return R.fail(3002, "自提id不能为空 !"); |
|
|
@ -212,7 +230,13 @@ public class DistributionBillLadingAppController extends BladeController { |
|
|
|
if(ObjectUtils.isNull(billLadingAppDTO.getPrintList()) || billLadingAppDTO.getPrintList().isEmpty()){ |
|
|
|
if(ObjectUtils.isNull(billLadingAppDTO.getPrintList()) || billLadingAppDTO.getPrintList().isEmpty()){ |
|
|
|
throw new ServiceException("图片对象不能为空!!"); |
|
|
|
throw new ServiceException("图片对象不能为空!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
R b = distrilbutionBillLadingService.updateReceivedImage(billLadingAppDTO); |
|
|
|
b = distrilbutionBillLadingService.updateReceivedImage(billLadingAppDTO); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("零担自提单个签收", e); |
|
|
|
|
|
|
|
b = new Resp(); |
|
|
|
|
|
|
|
b.setCode(500); |
|
|
|
|
|
|
|
b.setMsg(e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
return b; |
|
|
|
return b; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|