Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
platform
Project
Project
Details
Activity
Releases
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
王琮
platform
Commits
4ca007b4
Commit
4ca007b4
authored
Nov 19, 2021
by
王琮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
ad96c28d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+3
-1
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+3
-0
No files found.
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
4ca007b4
...
...
@@ -79,8 +79,10 @@ public class QuestionnaireCtrl {
}
//5.根据类型判断是否修改上报状态
if
(
questionnaire
.
getType
()==
1
)
{
//上报
//修改数据上报状态
Record
r
=
new
Record
();
r
.
setWritePeople
(
questionnaire
.
getWritePeople
());
r
.
setPhoneNumber
(
questionnaire
.
getPhoneNumber
());
//修改数据上报状态
r
.
setId
(
recordId
);
r
.
setProcessStatus
(
1
);
result
=
this
.
questionnaireService
.
updateRecord
(
r
);
...
...
src/main/resources/mapper/Questionnaire.xml
View file @
4ca007b4
...
...
@@ -47,6 +47,8 @@
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"processStatus != null and processStatus != ''"
>
process_status = #{processStatus},
</if>
<if
test=
"reason != null and reason != ''"
>
reason = #{reason},
</if>
<if
test=
"writePeople != null and writePeople != ''"
>
write_people = #{writePeople},
</if>
<if
test=
"phoneNumber != null and phoneNumber != ''"
>
phone_number = #{phoneNumber},
</if>
</trim>
WHERE id = #{id}
</update>
...
...
@@ -110,6 +112,7 @@
<if
test=
"processStatus != null and processStatus != ''"
>
<!-- 问卷状态 -->
AND process_status = #{processStatus}
</if>
ORDER BY create_time DESC
</select>
<select
id=
"selectFileId"
resultType=
"java.lang.String"
>
...
...
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