|
@@ -50,6 +50,7 @@ public class AuthApi {
|
|
@ApiImplicitParam(name = "authParty", required = false, value = "授权机构"),
|
|
@ApiImplicitParam(name = "authParty", required = false, value = "授权机构"),
|
|
@ApiImplicitParam(name = "mobile", required = false, value = "机构用户手机号"),
|
|
@ApiImplicitParam(name = "mobile", required = false, value = "机构用户手机号"),
|
|
@ApiImplicitParam(name = "status", required = false, value = "上线状态:0已下线,1已上线,2待上线"),
|
|
@ApiImplicitParam(name = "status", required = false, value = "上线状态:0已下线,1已上线,2待上线"),
|
|
|
|
+ @ApiImplicitParam(name = "starFlag", required = false, value = "明星机构标识:0不是,1是"),
|
|
@ApiImplicitParam(name = "auditStatus", required = false, value = "审核状态:0审核未通过,1审核通过,2待审核"),
|
|
@ApiImplicitParam(name = "auditStatus", required = false, value = "审核状态:0审核未通过,1审核通过,2待审核"),
|
|
@ApiImplicitParam(name = "lowerAuditStatus", required = false, value = "商品信息审核状态:0未完成审核,1已完成审核"),
|
|
@ApiImplicitParam(name = "lowerAuditStatus", required = false, value = "商品信息审核状态:0未完成审核,1已完成审核"),
|
|
@ApiImplicitParam(name = "shopAuditStatus", required = false, value = "供应商审核状态:0未审核,1已审核"),
|
|
@ApiImplicitParam(name = "shopAuditStatus", required = false, value = "供应商审核状态:0未审核,1已审核"),
|
|
@@ -59,7 +60,7 @@ public class AuthApi {
|
|
})
|
|
})
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public ResponseJson<PageInfo<AuthVo>> getAuthList(@CurrentUser SysUser sysUser, Integer listType, String authParty, String mobile,
|
|
public ResponseJson<PageInfo<AuthVo>> getAuthList(@CurrentUser SysUser sysUser, Integer listType, String authParty, String mobile,
|
|
- Integer status, Integer auditStatus, Integer lowerAuditStatus,
|
|
|
|
|
|
+ Integer status, Integer starFlag, Integer auditStatus, Integer lowerAuditStatus,
|
|
Integer shopAuditStatus, Integer sendStatus,
|
|
Integer shopAuditStatus, Integer sendStatus,
|
|
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
@RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
@@ -72,7 +73,7 @@ public class AuthApi {
|
|
if (null == authUserId) {
|
|
if (null == authUserId) {
|
|
return ResponseJson.error("供应商用户id不能为空", null);
|
|
return ResponseJson.error("供应商用户id不能为空", null);
|
|
}
|
|
}
|
|
- return authService.getAuthList(listType, authUserId, authParty, mobile, status, auditStatus, lowerAuditStatus, shopAuditStatus, sendStatus, pageNum, pageSize);
|
|
|
|
|
|
+ return authService.getAuthList(listType, authUserId, authParty, mobile, status, starFlag, auditStatus, lowerAuditStatus, shopAuditStatus, sendStatus, pageNum, pageSize);
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("机构下拉框列表")
|
|
@ApiOperation("机构下拉框列表")
|
|
@@ -285,12 +286,12 @@ public class AuthApi {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("勾选明星机构")
|
|
@ApiOperation("勾选明星机构")
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "authId", required = true, value = "授权机构id"),
|
|
|
|
- @ApiImplicitParam(name = "starFlag", required = true, value = "明星机构标识:0不是,1是")
|
|
|
|
- })
|
|
|
|
|
|
+ @ApiImplicitParam(name = "params", required = true, value = "authId:机构id;starFlag:明星机构标识:1明星机构,0不是")
|
|
@PostMapping("/star")
|
|
@PostMapping("/star")
|
|
- public ResponseJson starAuth(Integer authId, Integer starFlag) {
|
|
|
|
|
|
+ public ResponseJson starAuth(@RequestBody String params) {
|
|
|
|
+ JSONObject paramsMap = JSONObject.parseObject(params);
|
|
|
|
+ Integer authId = paramsMap.getInteger("authId");
|
|
|
|
+ Integer starFlag = paramsMap.getInteger("starFlag");
|
|
if (null == authId) {
|
|
if (null == authId) {
|
|
return ResponseJson.error("机构id不能为空");
|
|
return ResponseJson.error("机构id不能为空");
|
|
}
|
|
}
|