| | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/useBenefit/indexOfAppUser") |
| | | @ApiOperation(value = "福利主页", tags = {"APP-使用福利"}) |
| | | @ApiOperation(value = "福利主页【2.0】", tags = {"APP-使用福利"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(name = "lat", value = "经度", dataType = "string"), |
New file |
| | |
| | | package com.dsh.account.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 裁判 |
| | | * @author 39373 |
| | | * @Date 2024/2/8 14:57 |
| | | */ |
| | | @Data |
| | | @TableName("t_referee") |
| | | public class Referee { |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * 姓名 |
| | | */ |
| | | @TableField("name") |
| | | private String name; |
| | | /** |
| | | * 手机号 |
| | | */ |
| | | @TableField("phone") |
| | | private String phone; |
| | | /** |
| | | * 省名称 |
| | | */ |
| | | @TableField("province") |
| | | private String province; |
| | | /** |
| | | * 省编号 |
| | | */ |
| | | @TableField("provinceCode") |
| | | private String provinceCode; |
| | | /** |
| | | * 市名称 |
| | | */ |
| | | @TableField("city") |
| | | private String city; |
| | | /** |
| | | * 市编号 |
| | | */ |
| | | @TableField("cityCode") |
| | | private String cityCode; |
| | | /** |
| | | * 状态(1=正常,2=冻结,3=删除) |
| | | */ |
| | | @TableField("state") |
| | | private Integer state; |
| | | /** |
| | | * 添加时间 |
| | | */ |
| | | @TableField("createTime") |
| | | private Date createTime; |
| | | } |
New file |
| | |
| | | package com.dsh.account.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.dsh.account.entity.Referee; |
| | | |
| | | /** |
| | | * 裁判 |
| | | * @author 39373 |
| | | * @Date 2024/2/8 15:02 |
| | | */ |
| | | public interface RefereeMapper extends BaseMapper<Referee> { |
| | | } |
| | |
| | | @ApiModelProperty(value = "banners") |
| | | private UserBenefitImage image; |
| | | |
| | | @ApiModelProperty("是否是裁判(0=否,1=是)") |
| | | private Integer referee; |
| | | |
| | | } |
New file |
| | |
| | | package com.dsh.account.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.account.entity.Referee; |
| | | |
| | | /** |
| | | * @author 39373 |
| | | * @Date 2024/2/8 15:03 |
| | | */ |
| | | public interface IRefereeService extends IService<Referee> { |
| | | } |
New file |
| | |
| | | package com.dsh.account.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.account.entity.Referee; |
| | | import com.dsh.account.mapper.RefereeMapper; |
| | | import com.dsh.account.service.IRefereeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * @author 39373 |
| | | * @Date 2024/2/8 15:04 |
| | | */ |
| | | @Service |
| | | public class RefereeServiceImpl extends ServiceImpl<RefereeMapper, Referee> implements IRefereeService { |
| | | } |
| | |
| | | import com.dsh.account.model.vo.classDetails.RegisteredCourse; |
| | | import com.dsh.account.model.vo.classDetails.classInsVo.ClassInfoVo; |
| | | import com.dsh.account.model.vo.userBenefitDetail.*; |
| | | import com.dsh.account.service.IRefereeService; |
| | | import com.dsh.account.service.TAppGiftService; |
| | | import com.dsh.account.service.TAppUserService; |
| | | import com.dsh.account.util.*; |
| | |
| | | @Resource |
| | | private ImgConfigClient icfgClient; |
| | | |
| | | |
| | | @Resource |
| | | private VideoOfCourseListClient voclClient; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private UserCouponPaymentClient userCouponPaymentClient; |
| | | |
| | | @Autowired |
| | | private IRefereeService refereeService; |
| | | |
| | | |
| | | |
| | |
| | | @Override |
| | | public IndexOfUserBenefirVo queryBenefitDetails(Integer appUserId, String lon, String lat) { |
| | | IndexOfUserBenefirVo benefirVo = new IndexOfUserBenefirVo(); |
| | | |
| | | TAppUser appUser = this.getById(appUserId); |
| | | if (appUser.getHeadImg() != null) { |
| | | benefirVo.setUserHeadImg(appUser.getHeadImg()); |
| | |
| | | List<IntegralCommodity> convertibleGoods = mcClient.getConvertibleGoods(location); |
| | | benefirVo.setCommodities(convertibleGoods); |
| | | benefirVo.setImage(icfgClient.getImageConfig()); |
| | | Referee referee = refereeService.getOne(new QueryWrapper<Referee>().eq("phone", appUser.getPhone()).eq("state", 1)); |
| | | benefirVo.setReferee(null == referee ? 0 : 1); |
| | | return benefirVo; |
| | | } |
| | | |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.dsh.account.mapper.RefereeMapper"> |
| | | |
| | | </mapper> |
| | |
| | | @Autowired |
| | | private TokenUtil tokenUtil; |
| | | |
| | | @Resource |
| | | private StudentClient studentClient; |
| | | |
| | | @Autowired |
| | | private UserCompetitionService userCompetitionService; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/participant/addParticipant") |
| | | @ApiOperation(value = "添加参赛人员", tags = {"APP-赛事活动列表", ""}) |
| | | @ApiOperation(value = "添加参赛人员【2.0】", tags = {"APP-赛事活动列表", "人员管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/participant/queryParticipantList") |
| | | @ApiOperation(value = "获取参赛人员列表", tags = {"APP-赛事活动列表", "我的二维码", "人员管理"}) |
| | | @ApiOperation(value = "获取参赛人员列表", tags = {"APP-赛事活动列表", "我的二维码", "人员管理", "社区世界杯"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(value = "isPre(1过滤)", name = "是否过滤未实名", required = true, dataType = "int") |
| | |
| | | } |
| | | |
| | | |
| | | @Resource |
| | | private StudentClient studentClient; |
| | | |
| | | @Resource |
| | | private AppUserClient appUserClient; |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/participant/editParticipant") |
| | | @ApiOperation(value = "编辑参赛人员", tags = {"APP-赛事活动列表", ""}) |
| | | @ApiOperation(value = "编辑参赛人员", tags = {"APP-赛事活动列表", "人员管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | |
| | | |
| | | @ResponseBody |
| | | @PostMapping("/api/participant/delParticipant") |
| | | @ApiOperation(value = "删除参赛人员", tags = {"APP-赛事活动列表", ""}) |
| | | @ApiOperation(value = "删除参赛人员", tags = {"APP-赛事活动列表", "人员管理"}) |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "Authorization", value = "用户token(Bearer +token)", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....") |
| | | }) |
| | |
| | | } |
| | | } |
| | | |
| | | @Autowired |
| | | private UserCompetitionService userCompetitionService; |
| | | |
| | | |
| | | |
| | | @ResponseBody |