bms结算对象同步;

This commit is contained in:
王奎兴
2026-08-04 11:46:59 +08:00
parent df6b11a8bb
commit a12ac94dd3
4 changed files with 20 additions and 1 deletions
@@ -165,6 +165,10 @@ public interface UserServiceFeign {
@GetMapping("/userShipperApi/userShipperListAll")
public AjaxResult<?> userShipperListAll();
@ApiOperation("查询租户下全部托运人")
@GetMapping("/userShipperApi/userShipperListAllByOrg")
public AjaxResult<?> userShipperListAllByOrg(@RequestParam("orgCode") Long orgCode);
@ApiOperation("查询租户下全部承运人")
@GetMapping("/userDriverApi/userDriverListAll")
public AjaxResult<?> userDriverListAll();
@@ -1306,6 +1306,12 @@ public class UserShipperApplicationService {
return userShipperDomainService.userShipperList(userShipperDO);
}
public List<UserShipperPo> userShipperListAllByOrg(Long orgCode) {
UserShipperDO userShipperDO = new UserShipperDO();
userShipperDO.setOrganizationId(orgCode);
return userShipperDomainService.userShipperList(userShipperDO);
}
/**
* E签宝回调接口-认证授权完成
* @param jsonObject 回调参数
@@ -212,6 +212,15 @@ public class UserShipperAPI extends BaseController {
return AjaxResult.success("操作成功",list);
}
@Log(title = "托运人管理-查询租户下所有托运人", description ="查询租户下所有托运人",businessType = BusinessType.INQUIRE)
@ApiOperation("查询租户下所有托运人")
@GetMapping("/userShipperListAllByOrg")
public AjaxResult userShipperListAllByOrg(@RequestParam("orgCode") Long orgCode) {
//转换实体
List<UserShipperPo> list = userShipperApplicationService.userShipperListAllByOrg(orgCode);
return AjaxResult.success("操作成功",list);
}
@Log(title = "托运人管理-修改授权额度 结算天数 使用额度", description ="修改授权额度 结算天数 使用额度",businessType = BusinessType.INQUIRE)
@ApiOperation("修改授权额度和结算天数")
@PutMapping("/settlementInfo")
@@ -274,7 +274,7 @@ public class SettlementCustomersApplicationService {
SyncDictCache dictCache,
List<SettlementCustomers> toInsert,
List<SettlementCustomers> toUpdate) {
AjaxResult ajaxResult = userServiceFeign.userShipperListAll();
AjaxResult ajaxResult = userServiceFeign.userShipperListAllByOrg(loginUser.getUserPo().getOrganizationId());
List<UserShipperPo> userShipperPoList = parseFeignList(ajaxResult, UserShipperPo.class);
if (userShipperPoList.isEmpty()) {
return;