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
01e6d0bf
Commit
01e6d0bf
authored
Mar 16, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析更改
parent
d1631a55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+1
-1
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
01e6d0bf
...
@@ -84,7 +84,7 @@ public class LogApi {
...
@@ -84,7 +84,7 @@ public class LogApi {
*/
*/
@RequestMapping
(
"selectAnalysisLogCount"
)
@RequestMapping
(
"selectAnalysisLogCount"
)
public
int
selectAnalysisLogCount
(
@RequestParam
(
"fileName"
)
String
fileName
,
@RequestParam
(
"analysisTime"
)
String
analysisTime
){
public
int
selectAnalysisLogCount
(
@RequestParam
(
"fileName"
)
String
fileName
,
@RequestParam
(
"analysisTime"
)
String
analysisTime
){
int
total
=
logService
.
selectAnalysisLogCount
(
fileName
,
analysisTime
);
int
total
=
logService
.
selectAnalysisLogCount
(
fileName
,
replaceDate
(
analysisTime
)
);
return
total
;
return
total
;
}
}
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
01e6d0bf
...
@@ -60,7 +60,7 @@ public interface LogMapper {
...
@@ -60,7 +60,7 @@ public interface LogMapper {
" and FILE_NAME_DIC.FILE_NAME=#{fileName} "
+
" and FILE_NAME_DIC.FILE_NAME=#{fileName} "
+
"</if>"
+
"</if>"
+
"<if test='analysisDate !=\"\"' >"
+
"<if test='analysisDate !=\"\"' >"
+
"AND
FILE_NAME_DIC.ANALYSIS_DATE =to_date( #{analysisDate},'yyyy-MM-dd'
) "
+
"AND
subStr(FILE_NAME_DIC.ANALYSIS_DATE,0,8) =subStr( #{analysisDate},0,8
) "
+
"</if>"
+
"</if>"
+
"group by FILES.SOURCE_FILE_NAME, FILE_NAME_DIC.FORM_START_TIME, "
+
"group by FILES.SOURCE_FILE_NAME, FILE_NAME_DIC.FORM_START_TIME, "
+
"FILE_NAME_DIC.FORM_DEADLINE, PERSON_POST.FILE_ID, "
+
"FILE_NAME_DIC.FORM_DEADLINE, PERSON_POST.FILE_ID, "
+
...
@@ -131,7 +131,7 @@ public interface LogMapper {
...
@@ -131,7 +131,7 @@ public interface LogMapper {
"and NEW_FILES.NEW_FILE_NAME=#{fileName} "
+
"and NEW_FILES.NEW_FILE_NAME=#{fileName} "
+
"</if>"
+
"</if>"
+
"<if test='analysisDate !=\"\"' >"
+
"<if test='analysisDate !=\"\"' >"
+
"AND
FILE_NAME_DIC.ANALYSIS_DATE = to_date(#{analysisDate},'yyyy-MM-dd')
"
+
"AND
subStr(FILE_NAME_DIC.ANALYSIS_DATE,0,8) = #{analysisDate}
"
+
"</if>"
+
"</if>"
+
"</script>"
)
"</script>"
)
public
int
selectAnalysisLogCount
(
@Param
(
"fileName"
)
String
fileName
,
@Param
(
"analysisDate"
)
String
analysisDate
);
public
int
selectAnalysisLogCount
(
@Param
(
"fileName"
)
String
fileName
,
@Param
(
"analysisDate"
)
String
analysisDate
);
...
...
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