Commit 67e44c52 by huluobin

美博会调查问卷类型

parent 0b254509
package com.gogirl.domain.user.customer; package com.gogirl.domain.user.customer;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.gogirl.infrastructure.common.annotation.DictParam;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -47,4 +49,12 @@ public class BeautyExpoQuestionnaire implements Serializable { ...@@ -47,4 +49,12 @@ public class BeautyExpoQuestionnaire implements Serializable {
@ApiModelProperty(value = "意向") @ApiModelProperty(value = "意向")
private String intention; private String intention;
@ApiModelProperty(value = "1-领取礼品 2-领取课程")
@DictParam(dictCode = "BEAUTY_EXPO_QUESTIONNAIRE_TYPE",dictValueParam = "typeStr")
private Integer type;
@ApiModelProperty(value = "1-领取礼品 2-领取课程")
@TableField(exist = false)
private String typeStr;
} }
...@@ -10,6 +10,7 @@ import io.swagger.annotations.Api; ...@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
...@@ -30,7 +31,7 @@ public class BeautyExpoQuestionnaireController { ...@@ -30,7 +31,7 @@ public class BeautyExpoQuestionnaireController {
@ApiOperation("/是否已经填写美博会调查问卷") @ApiOperation("/是否已经填写美博会调查问卷")
@GetMapping("/customer/beautyExpoQuestionnaire/hasSubmitted") @GetMapping("/customer/beautyExpoQuestionnaire/hasSubmitted")
public JsonResult<Boolean> hasSubmitted() { public JsonResult<Boolean> hasSubmitted(@RequestParam Integer type) {
return JsonResult.success(beautyExpoQuestionnaireService.hasSubmitted(SessionUtils.getCustomerId())); return JsonResult.success(beautyExpoQuestionnaireService.hasSubmitted(SessionUtils.getCustomerId()));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment