入库费用登记查询

This commit is contained in:
秦鸿展
2026-05-15 14:10:43 +08:00
parent 20e47e8cc4
commit 16fd402975
8 changed files with 110 additions and 3 deletions
@@ -123,6 +123,21 @@ public class SettlementCustomersApi extends BaseController{
return AjaxResult.success(settlementCustomersApplicationService.getInfoByCode(settlementCustomersCode));
}
/**
* 按结算主体ID(货主等业务主体ID,对应 settlement_entity_id)查询一条结算对象
*/
@ApiOperation("按结算主体ID查询结算对象")
@GetMapping(value = "/getInfoBySettlementEntityId")
public AjaxResult getInfoBySettlementEntityId(
@RequestParam(value = "settlementEntityId", required = false) Long settlementEntityId,
@RequestParam(value = "topOrganizationId", required = false) Long topOrganizationId) {
if (settlementEntityId == null) {
return AjaxResult.error("缺少必传查询参数 settlementEntityId(货主/结算主体ID,对应 settlement_entity_id)。"
+ "GET 请求示例:/settlementCustomersApi/getInfoBySettlementEntityId?settlementEntityId=123456&topOrganizationId=你的租户一级组织ID");
}
return AjaxResult.success(settlementCustomersApplicationService.getFirstBySettlementEntityId(settlementEntityId, topOrganizationId));
}