|
|
@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* @description:家属 |
|
|
@ -54,4 +55,34 @@ public class FamilyController { |
|
|
|
log.info("申请成为家属结束{}",code); |
|
|
|
return JsonResponse.newInstance().ok(code); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLogin |
|
|
|
@ApiOperation(value = "查询家属成员列表", notes = "查询家属成员列表") |
|
|
|
@RequestMapping(value = "/queryList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<List<FamilyVo.FamilyInfo>> queryList(@ApiParam @Validated @RequestBody QueryDto<FamilyDto.QueryFamily> params) throws Exception{ |
|
|
|
log.info("查询家属成员列表:{}",params); |
|
|
|
List<FamilyVo.FamilyInfo> familyInfoList = familyService.queryList(params.getParam(),params.getUserId()); |
|
|
|
log.info("查询家属成员列表结束{}",familyInfoList); |
|
|
|
return JsonResponse.newInstance().ok(familyInfoList); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLogin |
|
|
|
@ApiOperation(value = "查询待审核家属成员数量", notes = "查询待审核家属成员数量") |
|
|
|
@RequestMapping(value = "/queryAuditNum", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<FamilyVo.NeedAuditNum> queryAuditNum(@ApiParam @Validated @RequestBody QueryDto<FamilyDto.QueryFamily> params) throws Exception{ |
|
|
|
log.info("查询待审核家属成员数量:{}",params); |
|
|
|
FamilyVo.NeedAuditNum auditNum = familyService.queryAuditNum(params.getParam(),params.getUserId()); |
|
|
|
log.info("查询待审核家属成员数量结束{}",auditNum); |
|
|
|
return JsonResponse.newInstance().ok(auditNum); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLogin |
|
|
|
@ApiOperation(value = "审核家属成员", notes = "审核家属成员") |
|
|
|
@RequestMapping(value = "/auditFamily", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse auditFamily(@ApiParam @Validated @RequestBody QueryDto<FamilyDto.AuditFamily> params) throws Exception{ |
|
|
|
log.info("查询待审核家属成员数量:{}",params); |
|
|
|
CodeError.Code code = familyService.auditFamily(params.getParam(),params.getUserId()); |
|
|
|
log.info("查询待审核家属成员数量结束{}",code); |
|
|
|
return JsonResponse.newInstance().ok(code); |
|
|
|
} |
|
|
|
} |
|
|
|