Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
3f874aa6
Commit
3f874aa6
authored
Mar 07, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析日志查询
parent
79593742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+29
-2
No files found.
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
3f874aa6
...
...
@@ -16,8 +16,35 @@ public interface LogMapper {
@Insert
(
""
)
public
boolean
insertAnalysisLog
();
@Select
(
""
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
);
@Select
(
"<script> "
+
"SELECT * FROM "
+
"( "
+
"SELECT A.*, ROWNUM RN "
+
"FROM (SELECT FILE_NAME_DIC.FILE_NAME,FILE_NAME_DIC.FORM_START_TIME,"
+
"FILE_NAME_DIC.FORM_DEADLINE,PERSON_POST.LATTICE_MOUTH_INFORMATION,"
+
"FILE_NAME_DIC.ANALYSIS_DATE,FILES.RECORD_NUMBER ,"
+
"SUM(DECOdE(CARD_TYPE_ID,9,1,0)) youcount,"
+
"SUM(DECOdE(CARD_TYPE_ID,0,1,0)) PUcount "
+
"FROM FILE_NAME_DIC "
+
"LEFT JOIN PERSON_POST ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID "
+
"LEFT JOIN FILES ON FILES.ID=FILE_NAME_DIC.FILE_ID "
+
"left join PREPRO_PERSON on PREPRO_PERSON.JMSFZSLH = person_post.FIRST_WHITE "
+
"WHERE "
+
"<if test='fileName !=\"\"' >"
+
"FILE_NAME_DIC.FILE_NAME=#{fileName} "
+
"</if>"
+
"<if test='analysisDate !=\"\"' >"
+
"AND FILE_NAME_DIC.ANALYSIS_DATE = #{analysisDate} "
+
"</if>"
+
"group by FILE_NAME_DIC.FILE_NAME, FILE_NAME_DIC.FORM_START_TIME, "
+
"FILE_NAME_DIC.FORM_DEADLINE, PERSON_POST.LATTICE_MOUTH_INFORMATION, "
+
"FILE_NAME_DIC.ANALYSIS_DATE, FILES.RECORD_NUMBER"
+
")"
+
"A"
+
")"
+
"WHERE RN BETWEEN #{end} AND #{begin}"
+
"</script>"
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
,
long
begin
,
long
end
);
@Select
(
"<script> "
+
"SELECT * FROM "
+
...
...
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