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
84cbf3b8
Commit
84cbf3b8
authored
Jun 26, 2023
by
赵桢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出修改
parent
fd32a142
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
34 deletions
+40
-34
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+5
-5
QuestionnaireService.java
src/main/java/com/tiptimes/service/QuestionnaireService.java
+1
-2
QuestionnaireServiceImpl.java
...a/com/tiptimes/service/impl/QuestionnaireServiceImpl.java
+21
-2
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+13
-25
No files found.
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
84cbf3b8
...
...
@@ -558,11 +558,11 @@ public class QuestionnaireCtrl {
return
questionnaireService
.
AboutViewList
(
record
);
}
/**
* 查询是否有通过状态的数据(状态为3)
* @param record
* @return
*/
//
/**
//
* 查询是否有通过状态的数据(状态为3)
//
* @param record
//
* @return
//
*/
// @RequestMapping("/CountStratus")
// @ResponseBody
// public List<Record> selectRecordList1(@RequestBody Record record) {
...
...
src/main/java/com/tiptimes/service/QuestionnaireService.java
View file @
84cbf3b8
...
...
@@ -151,8 +151,7 @@ public interface QuestionnaireService {
Integer
id16
,
Integer
id17
,
Integer
id18
,
Integer
id19
,
Integer
id20
,
Integer
id21
,
Integer
id22
,
Integer
id23
,
Integer
id24
,
Integer
id25
,
Integer
id26
,
Integer
id27
,
Integer
id28
,
Integer
id29
,
Integer
id30
,
Integer
id31
,
Integer
id32
,
Integer
id33
,
Integer
id34
,
Integer
id35
,
Integer
id36
,
Integer
id37
,
Integer
id38
,
Integer
id39
,
Integer
id40
,
Integer
id41
,
Integer
id42
,
Integer
id43
,
Integer
id44
,
Integer
id45
,
Integer
id46
,
Integer
id47
,
Integer
id48
,
Integer
id49
,
Integer
id50
,
Integer
id51
,
Integer
id35
,
Integer
id36
,
Integer
id37
,
Integer
id38
,
Integer
id39
,
Integer
id40
,
Integer
id41
,
Integer
id42
,
Integer
id43
,
Integer
id44
,
Integer
id45
,
Integer
id46
,
Integer
id47
,
Integer
id48
,
Integer
id49
,
Integer
id50
,
Integer
id51
,
Integer
id52
,
Integer
id53
,
Integer
id54
,
Integer
id55
,
Integer
id56
,
Integer
id57
,
Integer
id58
,
Integer
id59
,
Integer
id60
,
...
...
src/main/java/com/tiptimes/service/impl/QuestionnaireServiceImpl.java
View file @
84cbf3b8
...
...
@@ -1437,8 +1437,7 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
Integer
id16
,
Integer
id17
,
Integer
id18
,
Integer
id19
,
Integer
id20
,
Integer
id21
,
Integer
id22
,
Integer
id23
,
Integer
id24
,
Integer
id25
,
Integer
id26
,
Integer
id27
,
Integer
id28
,
Integer
id29
,
Integer
id30
,
Integer
id31
,
Integer
id32
,
Integer
id33
,
Integer
id34
,
Integer
id35
,
Integer
id36
,
Integer
id37
,
Integer
id38
,
Integer
id39
,
Integer
id40
,
Integer
id41
,
Integer
id42
,
Integer
id43
,
Integer
id44
,
Integer
id45
,
Integer
id46
,
Integer
id47
,
Integer
id48
,
Integer
id49
,
Integer
id50
,
Integer
id51
,
Integer
id35
,
Integer
id36
,
Integer
id37
,
Integer
id38
,
Integer
id39
,
Integer
id40
,
Integer
id41
,
Integer
id42
,
Integer
id43
,
Integer
id44
,
Integer
id45
,
Integer
id46
,
Integer
id47
,
Integer
id48
,
Integer
id49
,
Integer
id50
,
Integer
id51
,
Integer
id52
,
Integer
id53
,
Integer
id54
,
Integer
id55
,
Integer
id56
,
Integer
id57
,
Integer
id58
,
Integer
id59
,
Integer
id60
,
...
...
@@ -1588,6 +1587,26 @@ public class QuestionnaireServiceImpl implements QuestionnaireService {
response
.
flushBuffer
();
}
break
;
// case "6":
// //导出文件名称
// String fileName_f = "基础指标六";
// response.setHeader("Content-disposition", "attachment;filename=" + new String((fileName_f).getBytes("gb2312"), "ISO-8859-1") + ".xlsx");
// //查询数据
// List<SigningMentors> signingMentorsList = questionnaireDao.selectSigningMentorsListNew(qnYear, id35, id36, id37, id38, id39, id40, id41, id42, id43, id44, id45, id46, id47, id48, id49, id50, id51);
// if (signingMentorsList != null) {
// for (int i = 0; i < signingMentorsList.size(); i++) {
// //excel生成序号
// signingMentorsList.get(i).setIndex(i + 1);
// }
// //生成excel
// EasyExcel.write(response.getOutputStream(), SigningMentors.class).sheet("签约创业导师情况").
// registerWriteHandler(horizontalCellStyleStrategy)
// .registerWriteHandler(new SimpleColumnWidthStyleStrategy(30))
// .registerWriteHandler(new ExcelFillCellMergeStrategy(mergeRowIndex, mergeColumeIndex))
// .doWrite(signingMentorsList);
// response.flushBuffer();
// }
// break;
case
"6"
:
//导出文件名称
String
fileName_f
=
"基础指标六"
;
...
...
src/main/resources/mapper/Questionnaire.xml
View file @
84cbf3b8
...
...
@@ -235,7 +235,7 @@
AND t_record.qn_year = #{qnYear}
</if>
<if
test=
"createBy != null and createBy != ''"
>
and create_by like concat('%',replace(#{createBy},'%','\%'),'%')
and create_by like concat('%',replace(#{createBy},'%','\%'),'%')
</if>
ORDER BY
<if
test=
"sorting != null and sorting != ''"
>
...
...
@@ -1122,9 +1122,7 @@
</select>
<select
id=
"AboutCopy"
resultType=
"com.tiptimes.model.Record"
>
SELECT
write_people as 'writePeople',
create_id as 'createId'
SELECT write_people as 'writePeople', create_id as 'createId'
from t_record
where create_id = #{createId}
...
...
@@ -1283,28 +1281,18 @@
MAX(IF(options_id = #{id37}, `value`, NULL)) as record,
MAX(IF(options_id = #{id38}, `value`, NULL)) as phoneNumber,
MAX(IF(options_id = #{id39}, `value`, NULL)) as unit,
MAX(IF(options_id = #{id40}, `value`, NULL)) as position,
MAX(IF(options_id = #{id40}, `value`, NULL)) as position
s
,
MAX(IF(options_id = #{id41}, `value`, NULL)) as theTitle,
MAX (IF(options_id =
#{id42}, `value`, NULL)) as signingDate,
MAX (IF(options_id =
#{id43}, `value`, NULL)) as contractTime,
MAX (IF(options_id =
#{id44}, `value`, NULL)) as coachingCategory,
MAX (IF(options_id =
#{id45}, `value`, NULL)) as coaching,
MAX (IF(options_id =
#{id46}, `value`, NULL)) as participated,
MAX (IF(options_id =
#{id47}, `value`, NULL)) as contestantYear,
MAX (IF(options_id =
#{id48}, `value`, NULL)) as guideTrack,
MAX (IF(options_id =
#{id49}, `value`, NULL)) as isMaterials,
MAX (IF(options_id =
#{id50}, `value`, NULL)) as mentor,
MAX (IF(options_id =
#{id51}, `value`, NULL)) as isSupporting
MAX(IF(options_id = #{id42}, `value`, NULL)) as signingDate,
MAX(IF(options_id = #{id43}, `value`, NULL)) as contractTime,
MAX(IF(options_id = #{id44}, `value`, NULL)) as coachingCategory,
MAX(IF(options_id = #{id45}, `value`, NULL)) as coaching,
MAX(IF(options_id = #{id46}, `value`, NULL)) as participated,
MAX(IF(options_id = #{id47}, `value`, NULL)) as contestantYear,
MAX(IF(options_id = #{id48}, `value`, NULL)) as guideTrack,
MAX(IF(options_id = #{id49}, `value`, NULL)) as isMaterials,
MAX(IF(options_id = #{id50}, `value`, NULL)) as mentor,
MAX(IF(options_id = #{id51}, `value`, NULL)) as isSupporting
FROM t_answer
LEFT JOIN t_record
ON t_record.id = t_answer.record_id
...
...
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