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
79a473a1
Commit
79a473a1
authored
Jul 08, 2023
by
张宇杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询数组
parent
02d93533
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
0 deletions
+40
-0
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+9
-0
QuestionnaireDao.java
src/main/java/com/tiptimes/dao/QuestionnaireDao.java
+1
-0
Options.java
src/main/java/com/tiptimes/model/Options.java
+10
-0
QuestionnaireService.java
src/main/java/com/tiptimes/service/QuestionnaireService.java
+2
-0
QuestionnaireServiceImpl.java
...a/com/tiptimes/service/impl/QuestionnaireServiceImpl.java
+5
-0
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+13
-0
No files found.
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
79a473a1
...
@@ -579,6 +579,15 @@ public class QuestionnaireCtrl {
...
@@ -579,6 +579,15 @@ public class QuestionnaireCtrl {
return
questionnaireService
.
AboutViewListCopy
(
record
);
return
questionnaireService
.
AboutViewListCopy
(
record
);
}
}
/**
* 查询数组
* @param options
*/
@RequestMapping
(
value
=
{
"/queryArray"
})
@ResponseBody
public
void
queryArray
(
@RequestBody
Options
options
){
questionnaireService
.
queryArray
(
options
);
}
/**
/**
* 根据年份查询当前年份所有问题id
* 根据年份查询当前年份所有问题id
...
...
src/main/java/com/tiptimes/dao/QuestionnaireDao.java
View file @
79a473a1
...
@@ -122,6 +122,7 @@ public interface QuestionnaireDao {
...
@@ -122,6 +122,7 @@ public interface QuestionnaireDao {
List
<
Record
>
AboutViewListCopy
(
Record
record
);
List
<
Record
>
AboutViewListCopy
(
Record
record
);
Integer
queryArray
(
Options
options
);
List
<
SiteCondition
>
selectSiteConditionListTemp
(
List
<
SiteCondition
>
selectSiteConditionListTemp
(
@Param
(
"recordId"
)
String
recordId
,
@Param
(
"recordId"
)
String
recordId
,
...
...
src/main/java/com/tiptimes/model/Options.java
View file @
79a473a1
...
@@ -6,6 +6,16 @@ public class Options {//选项表
...
@@ -6,6 +6,16 @@ public class Options {//选项表
private
int
status
;
//选项状态 1:启用(默认值);0:停用'
private
int
status
;
//选项状态 1:启用(默认值);0:停用'
private
String
optionValue
;
//选项内容
private
String
optionValue
;
//选项内容
public
String
getQnYear
()
{
return
qnYear
;
}
public
void
setQnYear
(
String
qnYear
)
{
this
.
qnYear
=
qnYear
;
}
private
String
qnYear
;
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
}
}
...
...
src/main/java/com/tiptimes/service/QuestionnaireService.java
View file @
79a473a1
...
@@ -140,6 +140,8 @@ public interface QuestionnaireService {
...
@@ -140,6 +140,8 @@ public interface QuestionnaireService {
List
<
Record
>
AboutViewListCopy
(
Record
record
);
List
<
Record
>
AboutViewListCopy
(
Record
record
);
void
queryArray
(
Options
options
);
void
exportFullTimeWorkPersonNew
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
index
,
String
recordId
,
Integer
qnYear
,
String
createId
,
void
exportFullTimeWorkPersonNew
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
index
,
String
recordId
,
Integer
qnYear
,
String
createId
,
Integer
id1
,
Integer
id2
,
Integer
id3
,
Integer
id1
,
Integer
id2
,
Integer
id3
,
Integer
id9
,
Integer
id10
,
Integer
id11
,
Integer
id12
,
Integer
id13
,
Integer
id14
,
Integer
id9
,
Integer
id10
,
Integer
id11
,
Integer
id12
,
Integer
id13
,
Integer
id14
,
...
...
src/main/java/com/tiptimes/service/impl/QuestionnaireServiceImpl.java
View file @
79a473a1
...
@@ -1424,6 +1424,11 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
...
@@ -1424,6 +1424,11 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
return
questionnaireDao
.
AboutViewListCopy
(
record
);
return
questionnaireDao
.
AboutViewListCopy
(
record
);
}
}
@Override
public
void
queryArray
(
Options
options
){
questionnaireDao
.
queryArray
(
options
);
}
/**
/**
* 2023年修改导出问卷管理-审批页面根据基础指标、引导指标和奖励指标导出所有空间的数据
* 2023年修改导出问卷管理-审批页面根据基础指标、引导指标和奖励指标导出所有空间的数据
*
*
...
...
src/main/resources/mapper/Questionnaire.xml
View file @
79a473a1
...
@@ -106,6 +106,7 @@
...
@@ -106,6 +106,7 @@
SELECT id
SELECT id
FROM t_record
FROM t_record
WHERE create_id = #{createId}
WHERE create_id = #{createId}
AND qn_year = YEAR(NOW())
</select>
</select>
<select
id=
"selectAnswerByRecordId"
resultType=
"com.tiptimes.model.Answer"
>
<select
id=
"selectAnswerByRecordId"
resultType=
"com.tiptimes.model.Answer"
>
...
@@ -1130,6 +1131,9 @@
...
@@ -1130,6 +1131,9 @@
</where>
</where>
ORDER BY create_time DESC
ORDER BY create_time DESC
</select>
</select>
<!-- 问卷管理-导出基础指标1 众创空间场地情况、是否租赁场地(新)-->
<!-- 问卷管理-导出基础指标1 众创空间场地情况、是否租赁场地(新)-->
<select
id=
"selectSiteConditionListTemp"
resultType=
"com.tiptimes.model.exportDTO.SiteCondition"
>
<select
id=
"selectSiteConditionListTemp"
resultType=
"com.tiptimes.model.exportDTO.SiteCondition"
>
SELECT *
SELECT *
...
@@ -1716,4 +1720,13 @@
...
@@ -1716,4 +1720,13 @@
ORDER BY spaceName;
ORDER BY spaceName;
</select>
</select>
<select
id=
"queryArray"
resultType=
"java.lang.Integer"
>
SELECT MIN(t_options.id) FROM t_options
WHERE t_options.question_id IN
(SELECT t_questions.id FROM t_questions
WHERE t_questions.questionnaire_uuid = (
SELECT t_questionnaire.id FROM t_questionnaire
WHERE t_questionnaire.qn_year = #{qnYear}))
</select>
</mapper>
</mapper>
\ No newline at end of file
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