| | |
| | | @ApiModelProperty(value = "性别(1=男,2=女)", dataType = "int", required = true) |
| | | private Integer gender; |
| | | @ApiModelProperty(value = "身高(CM)", dataType = "int", required = true) |
| | | private Integer height; |
| | | private String height; |
| | | @ApiModelProperty(value = "体重(KG)", dataType = "double", required = true) |
| | | private Double weight; |
| | | @ApiModelProperty(value = "联系电话", dataType = "string", required = false) |
| | |
| | | |
| | | Participant participant = new Participant(); |
| | | BeanUtils.copyProperties(addParticipant, participant); |
| | | participant.setHeight(Double.valueOf(addParticipant.getHeight()).intValue()); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
| | | if(ToolUtil.isNotEmpty(addParticipant.getBirthday())){ |
| | | Date parse = sdf.parse(addParticipant.getBirthday()); |
| | |
| | | a.registerCondition, |
| | | a.introduction, |
| | | DATE_FORMAT(a.registerEndTime, '%Y-%m-%d %H:%i') as registerEndTime, |
| | | CONCAT(a.startAge, '-', a.endAge) as age, |
| | | |
| | | (a.baseNumber + a.applicantsNumber) as heat |
| | | CONCAT(a.startAge, '-', a.endAge) as `age`, |
| | | (a.baseNumber + a.applicantsNumber) as `heat` |
| | | from t_competition a |
| | | where a.auditStatus = 2 and a.`status` = 2 and a.state = 1 |
| | | <if test="null != cityCode and '' != cityCode"> |
| | |
| | | @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = true, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9....."), |
| | | @ApiImplicitParam(name = "coursePayId" ,value = "课包记录id",dataType = "long"), |
| | | }) |
| | | public ResultUtil<CourseDetailsResponse> getRegisteredData( Integer coursePayId){ |
| | | public ResultUtil<CourseDetailsResponse> getRegisteredData(Long coursePayId){ |
| | | try { |
| | | Integer appUserId = tokenUtil.getUserIdFormRedis(); |
| | | if(null == appUserId){ |
| | |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | CourseDetailsResponse queryRegisteredCourseDetails(Integer coursePayId, Integer appUserId); |
| | | CourseDetailsResponse queryRegisteredCourseDetails(Long coursePayId, Integer appUserId); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CourseDetailsResponse queryRegisteredCourseDetails(Integer coursePayId, Integer appUserId) { |
| | | public CourseDetailsResponse queryRegisteredCourseDetails(Long coursePayId, Integer appUserId) { |
| | | CourseDetailsResponse response = new CourseDetailsResponse(); |
| | | TCoursePackagePayment tCoursePackagePayment = this.baseMapper.selectById(coursePayId); |
| | | |