散租推送优化

This commit is contained in:
zhou-hongcheng
2026-02-28 17:08:48 +08:00
parent c92e3e0ec6
commit c6484779ea
4 changed files with 24 additions and 11 deletions
@@ -459,6 +459,7 @@ public class LeaseApplicationService {
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
businessDataPushDTO.setSecondSubjectCode("26WMS01");
businessDataPushDTO.setServiceItemsCode("26WMS费用");
businessDataPushDTO.setDataSources(1);
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
}
log.info("定时任务整租推送到bms触发--结束");
@@ -485,9 +486,6 @@ public class LeaseApplicationService {
if (ajaxResult != null && "200".equals(String.valueOf(ajaxResult.get("code")))) {
List<MaterialInventoryPO> batchDetailFeignPOList = JSON.parseArray(
com.alibaba.fastjson2.JSONObject.toJSONString(ajaxResult.get("data")), MaterialInventoryPO.class);
if (batchDetailFeignPOList != null && batchDetailFeignPOList.size() > 0) {
continue;//没有货跳过
}
totalVolume = batchDetailFeignPOList.stream()
.map(MaterialInventoryPO::getVolume)
.filter(Objects::nonNull)
@@ -507,6 +505,7 @@ public class LeaseApplicationService {
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
businessDataPushDTO.setSecondSubjectCode("26WMS01");
businessDataPushDTO.setServiceItemsCode("26WMS费用");
businessDataPushDTO.setDataSources(1);
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
}
}
@@ -109,7 +109,7 @@ public class LeaseApi extends BaseController{
}
/**
* 批量作废租赁
* 整租同步到bms计费单据
*/
@ApiOperation("整租同步到bms计费单据")
@GetMapping("/wholeRentSynchronization")
@@ -119,4 +119,15 @@ public class LeaseApi extends BaseController{
return AjaxResult.success();
}
/**
* 散租同步到bms计费单据
*/
@ApiOperation("散租同步到bms计费单据")
@GetMapping("/scatteredRentalSynchronization")
public AjaxResult ScatteredRentalSynchronization()
{
leaseApplicationService.ScatteredRentalSynchronization();
return AjaxResult.success();
}
}