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
244a1ccd
Commit
244a1ccd
authored
Mar 13, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c2a6ae81
7fd4b2db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+7
-2
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+7
-6
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
244a1ccd
...
...
@@ -93,6 +93,7 @@ public class LogApi {
*/
@RequestMapping
(
"selectAnalysisData"
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisData
(
@RequestParam
(
"uploadDate"
)
String
uploadDate
){
System
.
out
.
println
(
"1111111111111111111111"
+
uploadDate
);
List
<
Map
<
String
,
Object
>>
resultList
=
logService
.
selectAnalysisData
(
uploadDate
);
return
resultList
;
}
...
...
@@ -106,8 +107,8 @@ public class LogApi {
@RequestMapping
(
"analysis"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
analysis
(
@RequestParam
(
"printDate"
)
String
printDate
,
@RequestParam
(
"latticeMouthInformation"
)
String
latticeMouthInformation
){
logService
.
changeCardType
(
replaceDate
(
printDate
)
,
latticeMouthInformation
);
logService
.
insertAnalysisDate
(
replaceDate
(
printDate
)
,
latticeMouthInformation
);
logService
.
changeCardType
(
printDate
,
latticeMouthInformation
);
logService
.
insertAnalysisDate
(
printDate
,
latticeMouthInformation
);
return
true
;
}
...
...
@@ -123,8 +124,12 @@ public class LogApi {
List
<
String
>
idList
=
logService
.
selectId
(
uploadTime
);
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
logService
.
deleteFilesData
(
idList
.
get
(
i
));
}
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
logService
.
deleteFile
(
idList
.
get
(
i
));
}
return
true
;
}
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
244a1ccd
...
...
@@ -18,7 +18,7 @@ public interface LogMapper {
"left join FILES on PREPRO_PERSON.FILE_ID =FILES.ID\n"
+
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n"
+
"LEFT JOIN FILE_NAME_DIC ON FILE_NAME_DIC.FILE_ID=PERSON_POST.FILE_ID\n"
+
"where
FILES.ID
=#{uploadDate}"
+
"where
TO_CHAR(FILES.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')
=#{uploadDate}"
+
""
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisData
(
@Param
(
"uploadDate"
)
String
uploadDate
);
...
...
@@ -28,15 +28,16 @@ public interface LogMapper {
"SELECT PREPRO_PERSON.JMSFZSLH \n"
+
"FROM PREPRO_PERSON \n"
+
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n"
+
"WHERE
PERSON_POST.PRINT_DATE
=#{printDate} AND PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation}\n"
+
"WHERE
TO_CHAR(PERSON_POST.PRINT_DATE,'yyyy-mm-dd hh24:mi:ss')
=#{printDate} AND PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation}\n"
+
")"
)
public
boolean
changeCardType
(
@Param
(
"printDate"
)
String
printDate
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
);
@Insert
(
"INSERT INTO FILE_NAME_DIC ( FILE_NAME_DIC.ANALYSIS_DATE\n"
+
") SELECT FILE_NAME_DIC.ANALYSIS_DATE \n"
+
"FROM FILE_NAME_DIC\n"
+
"LEFT JOIN PERSON_POST ON FILE_NAME_DIC.FILE_ID = PERSON_POST.FILE_ID\n"
+
"WHERE
PERSON_POST.PRINT_DATE=#{printDate}
AND PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} "
)
"WHERE
TO_CHAR(PERSON_POST.PRINT_DATE=#{printDate},'yyyy-mm-dd hh24:mi:ss')
AND PERSON_POST.LATTICE_MOUTH_INFORMATION=#{latticeMouthInformation} "
)
public
boolean
insertAnalysisDate
(
@Param
(
"printDate"
)
String
printDate
,
@Param
(
"latticeMouthInformation"
)
String
latticeMouthInformation
);
...
...
@@ -139,11 +140,11 @@ public interface LogMapper {
@Select
(
"select id from files where TO_CHAR(UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss') = #{uploadTime}"
)
public
List
<
String
>
selectId
(
@Param
(
"uploadTime"
)
String
uploadTime
);
@Delete
(
"delete from PREPRO_PERSON where PREPRO_PERSON.
s
id = #{id}"
)
public
boolean
deleteFilesData
(
@Param
(
"
uploadTime
"
)
String
id
);
@Delete
(
"delete from PREPRO_PERSON where PREPRO_PERSON.
file_
id = #{id}"
)
public
boolean
deleteFilesData
(
@Param
(
"
id
"
)
String
id
);
@Delete
(
"delete from files where id=#{id}"
)
public
boolean
deleteFile
(
@Param
(
"
uploadTime
"
)
String
id
);
public
boolean
deleteFile
(
@Param
(
"
id
"
)
String
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