TRX 1 سال پیش
والد
کامیت
c65964d7ba

+ 13 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/paySetting/ProjectPaySettingController.java

@@ -106,6 +106,19 @@ public class ProjectPaySettingController {
         return projectPaySettingService.page(param, pageable);
     }
 
+    @ResourceAuth(value = "user", type = AuthType.User)
+    @Operation(summary = "项目下所有子商户数据列表", description = "项目下所有子商户数据列表")
+    @RequestMapping(value = {"getChildList"}, method = {RequestMethod.POST})
+    public ResultContent<Page<ProjectPaySettingInfoModel>> getChildList(@Parameter(hidden = true) @PageableDefault(page = 0, size = 10) Pageable pageable,
+            @Parameter(required = false) ProjectPaySettingInfoSearch param) {
+        Assert.hasText(param.getProjectOid(), "projectOid不能为空");
+        param.setIsDefault(Boolean.FALSE);
+        if (param.getChannelType() == null) {
+            return ResultContent.buildFail("channelType不能为空");
+        }
+        return projectPaySettingService.page(param, pageable);
+    }
+
     @ResourceAuth(value = "user", type = AuthType.User)
     @Operation(summary = "账户-机构支付账户列表(所有)", description = "账户-机构支付账户列表")
     @RequestMapping(value = "getOrgPaySettingInfo", method = {RequestMethod.POST})