Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
a2ab7467
Commit
a2ab7467
authored
Aug 24, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8b40df8d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
IBeautyExpoQuestionnaireService.java
...cation/user/customer/IBeautyExpoQuestionnaireService.java
+12
-1
BeautyExpoQuestionnaireServiceImpl.java
...ser/customer/impl/BeautyExpoQuestionnaireServiceImpl.java
+9
-0
BeautyExpoQuestionnaireController.java
...aces/user/customer/BeautyExpoQuestionnaireController.java
+6
-0
No files found.
src/main/java/com/gogirl/application/user/customer/IBeautyExpoQuestionnaireService.java
View file @
a2ab7467
...
...
@@ -26,7 +26,18 @@ public interface IBeautyExpoQuestionnaireService extends IService<BeautyExpoQues
*
* @param customerId
* @param type
* @return
* @return
yes or no
*/
Boolean
hasSubmitted
(
Integer
customerId
,
Integer
type
);
/**
* 是否已经填写调查问卷
*
* @param customerId
* @param type
* @return 问卷id
*/
Integer
submittedQuestionnaire
(
Integer
customerId
,
Integer
type
);
}
}
src/main/java/com/gogirl/application/user/customer/impl/BeautyExpoQuestionnaireServiceImpl.java
View file @
a2ab7467
...
...
@@ -36,4 +36,13 @@ public class BeautyExpoQuestionnaireServiceImpl extends ServiceImpl<BeautyExpoQu
.
eq
(
BeautyExpoQuestionnaire:
:
getType
,
type
));
return
questionnaire
!=
null
;
}
@Override
public
Integer
submittedQuestionnaire
(
Integer
customerId
,
Integer
type
)
{
BeautyExpoQuestionnaire
questionnaire
=
this
.
getOne
(
new
LambdaQueryWrapper
<
BeautyExpoQuestionnaire
>()
.
eq
(
BeautyExpoQuestionnaire:
:
getCustomerId
,
customerId
)
.
eq
(
BeautyExpoQuestionnaire:
:
getType
,
type
));
return
questionnaire
==
null
?
0
:
questionnaire
.
getId
();
}
}
src/main/java/com/gogirl/interfaces/user/customer/BeautyExpoQuestionnaireController.java
View file @
a2ab7467
...
...
@@ -32,6 +32,12 @@ public class BeautyExpoQuestionnaireController {
return
JsonResult
.
success
(
beautyExpoQuestionnaireService
.
hasSubmitted
(
SessionUtils
.
getCustomerId
(),
type
));
}
@ApiOperation
(
"/是否已经填写美博会调查问卷"
)
@GetMapping
(
"/customer/beautyExpoQuestionnaire/submittedQuestionnaire"
)
public
JsonResult
<
Integer
>
submittedQuestionnaire
(
@RequestParam
Integer
type
)
{
return
JsonResult
.
success
(
beautyExpoQuestionnaireService
.
submittedQuestionnaire
(
SessionUtils
.
getCustomerId
(),
type
));
}
@ApiOperation
(
"/提交美博会调查问卷"
)
@PostMapping
(
"/customer/beautyExpoQuestionnaire/submitQuestionnaire"
)
public
JsonResult
<
Integer
>
submitQuestionnaire
(
@RequestBody
BeautyExpoQuestionnaire
beautyExpoQuestionnaire
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment