Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
+3
@@ -71,4 +71,7 @@ public class BusinessDataPushDTO{
|
|||||||
|
|
||||||
@ApiModelProperty("费用类型code(服务项)")
|
@ApiModelProperty("费用类型code(服务项)")
|
||||||
private String serviceItemsCode;
|
private String serviceItemsCode;
|
||||||
|
|
||||||
|
@ApiModelProperty("数据来源(1-系统生成,2-手工录入)")
|
||||||
|
private Integer dataSources;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -459,6 +459,7 @@ public class LeaseApplicationService {
|
|||||||
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
|
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
|
||||||
businessDataPushDTO.setSecondSubjectCode("26WMS01");
|
businessDataPushDTO.setSecondSubjectCode("26WMS01");
|
||||||
businessDataPushDTO.setServiceItemsCode("26WMS费用");
|
businessDataPushDTO.setServiceItemsCode("26WMS费用");
|
||||||
|
businessDataPushDTO.setDataSources(1);
|
||||||
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
|
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
|
||||||
}
|
}
|
||||||
log.info("定时任务整租推送到bms触发--结束");
|
log.info("定时任务整租推送到bms触发--结束");
|
||||||
@@ -485,9 +486,6 @@ public class LeaseApplicationService {
|
|||||||
if (ajaxResult != null && "200".equals(String.valueOf(ajaxResult.get("code")))) {
|
if (ajaxResult != null && "200".equals(String.valueOf(ajaxResult.get("code")))) {
|
||||||
List<MaterialInventoryPO> batchDetailFeignPOList = JSON.parseArray(
|
List<MaterialInventoryPO> batchDetailFeignPOList = JSON.parseArray(
|
||||||
com.alibaba.fastjson2.JSONObject.toJSONString(ajaxResult.get("data")), MaterialInventoryPO.class);
|
com.alibaba.fastjson2.JSONObject.toJSONString(ajaxResult.get("data")), MaterialInventoryPO.class);
|
||||||
if (batchDetailFeignPOList != null && batchDetailFeignPOList.size() > 0) {
|
|
||||||
continue;//没有货跳过
|
|
||||||
}
|
|
||||||
totalVolume = batchDetailFeignPOList.stream()
|
totalVolume = batchDetailFeignPOList.stream()
|
||||||
.map(MaterialInventoryPO::getVolume)
|
.map(MaterialInventoryPO::getVolume)
|
||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
@@ -507,6 +505,7 @@ public class LeaseApplicationService {
|
|||||||
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
|
businessDataPushDTO.setSettlementEntityId(leasePO.getShipperId());
|
||||||
businessDataPushDTO.setSecondSubjectCode("26WMS01");
|
businessDataPushDTO.setSecondSubjectCode("26WMS01");
|
||||||
businessDataPushDTO.setServiceItemsCode("26WMS费用");
|
businessDataPushDTO.setServiceItemsCode("26WMS费用");
|
||||||
|
businessDataPushDTO.setDataSources(1);
|
||||||
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
|
bmsServiceFeign.businessDocumentApiSave(businessDataPushDTO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-1
@@ -109,7 +109,7 @@ public class LeaseApi extends BaseController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量作废租赁
|
* 整租同步到bms计费单据
|
||||||
*/
|
*/
|
||||||
@ApiOperation("整租同步到bms计费单据")
|
@ApiOperation("整租同步到bms计费单据")
|
||||||
@GetMapping("/wholeRentSynchronization")
|
@GetMapping("/wholeRentSynchronization")
|
||||||
@@ -119,4 +119,15 @@ public class LeaseApi extends BaseController{
|
|||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 散租同步到bms计费单据
|
||||||
|
*/
|
||||||
|
@ApiOperation("散租同步到bms计费单据")
|
||||||
|
@GetMapping("/scatteredRentalSynchronization")
|
||||||
|
public AjaxResult ScatteredRentalSynchronization()
|
||||||
|
{
|
||||||
|
leaseApplicationService.ScatteredRentalSynchronization();
|
||||||
|
return AjaxResult.success();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -813,7 +813,9 @@ public class BusinessDocumentApplicationService {
|
|||||||
checkDoucumentType(businessDocumentDO);
|
checkDoucumentType(businessDocumentDO);
|
||||||
//处理数据
|
//处理数据
|
||||||
handleDate(businessDocumentDO);
|
handleDate(businessDocumentDO);
|
||||||
businessDocumentDO.setDataSources(2);
|
businessDocumentDO.setDataSources(1);
|
||||||
|
businessDocumentDO.setCreateTime(new Date());
|
||||||
|
businessDocumentDO.setCreateByName("system");
|
||||||
businessDocumentDO.setBusinessFlow(OrderSequence.getOrderCode("LS"));
|
businessDocumentDO.setBusinessFlow(OrderSequence.getOrderCode("LS"));
|
||||||
businessDocumentDO.setTopOrganizationId(businessDocumentDO.getTopOrganizationId());
|
businessDocumentDO.setTopOrganizationId(businessDocumentDO.getTopOrganizationId());
|
||||||
businessDocumentDO.setOrganizationId(businessDocumentDO.getOrganizationId());
|
businessDocumentDO.setOrganizationId(businessDocumentDO.getOrganizationId());
|
||||||
|
|||||||
+7
-7
@@ -99,13 +99,13 @@ public class MaterialInventoryApplicationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 前端有传warehouseId则优先使用传参;未传时才使用"用户关联仓库"作为默认值
|
// 前端有传warehouseId则优先使用传参;未传时才使用"用户关联仓库"作为默认值
|
||||||
if (materialInventoryDO.getWarehouseId() == null) {
|
// if (materialInventoryDO.getWarehouseId() == null) {
|
||||||
AssociationWarehouseCacheDO associationWarehouseCacheDO =
|
// AssociationWarehouseCacheDO associationWarehouseCacheDO =
|
||||||
SystemServiceCacheUtil.getAssociationWarehouseCache(loginUser.getUserid());
|
// SystemServiceCacheUtil.getAssociationWarehouseCache(loginUser.getUserid());
|
||||||
if (associationWarehouseCacheDO != null) {
|
// if (associationWarehouseCacheDO != null) {
|
||||||
materialInventoryDO.setWarehouseId(associationWarehouseCacheDO.getWarehouseId());
|
// materialInventoryDO.setWarehouseId(associationWarehouseCacheDO.getWarehouseId());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
return materialInventoryDomainService.queryList(materialInventoryDO);
|
return materialInventoryDomainService.queryList(materialInventoryDO);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user