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
4591fdea
Commit
4591fdea
authored
Mar 14, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析更改2.0
parent
32841cef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+2
-3
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+4
-4
LogService.java
src/main/java/com/yxproject/start/service/LogService.java
+1
-1
LogServiceImpl.java
...java/com/yxproject/start/service/impl/LogServiceImpl.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
4591fdea
...
@@ -107,8 +107,8 @@ public class LogApi {
...
@@ -107,8 +107,8 @@ public class LogApi {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
analysis
(
@RequestParam
(
"printDate"
)
String
printDate
,
@RequestParam
(
"fileId"
)
String
fileId
){
public
boolean
analysis
(
@RequestParam
(
"printDate"
)
String
printDate
,
@RequestParam
(
"fileId"
)
String
fileId
){
logService
.
changeCardType
(
printDate
,
fileId
);
logService
.
changeCardType
(
printDate
,
fileId
);
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-
mm-dd hh24:mi
:ss"
);
SimpleDateFormat
df
=
new
SimpleDateFormat
(
"yyyy-
MM-dd hh:mm
:ss"
);
logService
.
insertAnalysisDate
(
df
.
format
(
new
Date
()));
logService
.
insertAnalysisDate
(
df
.
format
(
new
Date
())
,
fileId
);
return
true
;
return
true
;
}
}
...
@@ -125,7 +125,6 @@ public class LogApi {
...
@@ -125,7 +125,6 @@ public class LogApi {
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
logService
.
deleteFilesData
(
idList
.
get
(
i
));
logService
.
deleteFilesData
(
idList
.
get
(
i
));
}
}
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
idList
.
size
();
i
++){
logService
.
deleteFile
(
idList
.
get
(
i
));
logService
.
deleteFile
(
idList
.
get
(
i
));
}
}
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
4591fdea
...
@@ -28,14 +28,14 @@ public interface LogMapper {
...
@@ -28,14 +28,14 @@ public interface LogMapper {
"SELECT PREPRO_PERSON.JMSFZSLH \n"
+
"SELECT PREPRO_PERSON.JMSFZSLH \n"
+
"FROM PREPRO_PERSON \n"
+
"FROM PREPRO_PERSON \n"
+
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n"
+
"LEFT JOIN PERSON_POST ON PERSON_POST.FIRST_WHITE = PREPRO_PERSON.JMSFZSLH\n"
+
"LEFT JOIN FILES ON FILES.ID=PREPRO_PERSON.FILE_ID"
+
"LEFT JOIN FILES ON FILES.ID=PREPRO_PERSON.FILE_ID
"
+
"
WHERE TO_CHAR(PREPRO_PERSON
.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{printDate} AND PERSON_POST.file_id=#{fileId}\n"
+
"
WHERE TO_CHAR(FILES
.UPLOAD_DATE,'yyyy-mm-dd hh24:mi:ss')=#{printDate} AND PERSON_POST.file_id=#{fileId}\n"
+
")"
)
")"
)
public
boolean
changeCardType
(
@Param
(
"printDate"
)
String
printDate
,
@Param
(
"fileId"
)
String
fileId
);
public
boolean
changeCardType
(
@Param
(
"printDate"
)
String
printDate
,
@Param
(
"fileId"
)
String
fileId
);
@
Insert
(
"INSERT INTO FILE_NAME_DIC ( TO_CHAR(FILE_NAME_DIC.ANALYSIS_DATE,'yyyy-mm-dd hh24:mi:ss')) VALUES (#{printDate})
"
)
@
Update
(
" update FILE_NAME_DIC set FILE_NAME_DIC.ANALYSIS_DATE = to_date(#{printDate},'yyyy-mm-dd hh24:mi:ss') where file_id=#{fileId}
"
)
public
boolean
insertAnalysisDate
(
@Param
(
"printDate"
)
String
printDate
);
public
boolean
insertAnalysisDate
(
@Param
(
"printDate"
)
String
printDate
,
@Param
(
"fileId"
)
String
fileId
);
@Select
(
"<script> "
+
@Select
(
"<script> "
+
...
...
src/main/java/com/yxproject/start/service/LogService.java
View file @
4591fdea
...
@@ -22,7 +22,7 @@ public interface LogService {
...
@@ -22,7 +22,7 @@ public interface LogService {
public
boolean
changeCardType
(
String
printDate
,
String
latticeMouthInformation
);
public
boolean
changeCardType
(
String
printDate
,
String
latticeMouthInformation
);
public
boolean
insertAnalysisDate
(
String
printDate
);
public
boolean
insertAnalysisDate
(
String
printDate
,
String
fileId
);
public
boolean
deleteFilesData
(
@Param
(
"id"
)
String
id
);
public
boolean
deleteFilesData
(
@Param
(
"id"
)
String
id
);
...
...
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
View file @
4591fdea
...
@@ -57,8 +57,8 @@ public class LogServiceImpl implements LogService {
...
@@ -57,8 +57,8 @@ public class LogServiceImpl implements LogService {
}
}
@Override
@Override
public
boolean
insertAnalysisDate
(
String
printDate
)
{
public
boolean
insertAnalysisDate
(
String
printDate
,
String
fileId
)
{
logMapper
.
insertAnalysisDate
(
printDate
);
logMapper
.
insertAnalysisDate
(
printDate
,
fileId
);
return
true
;
return
true
;
}
}
...
...
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