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
79923c56
Commit
79923c56
authored
Mar 07, 2019
by
dahai
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
54c2caaf
b3950453
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
93 additions
and
21 deletions
+93
-21
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+17
-0
PersonPostApi.java
src/main/java/com/yxproject/start/api/PersonPostApi.java
+2
-1
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+1
-2
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+1
-1
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+0
-4
LogService.java
src/main/java/com/yxproject/start/service/LogService.java
+1
-0
LogServiceImpl.java
...java/com/yxproject/start/service/impl/LogServiceImpl.java
+6
-0
app.js
src/main/resources/static/js/app.js
+1
-1
service.js
src/main/resources/static/js/service.js
+25
-5
analysisLog.html
src/main/resources/static/views/analysisLog/analysisLog.html
+7
-4
analysisLog.js
src/main/resources/static/views/analysisLog/analysisLog.js
+8
-2
login.js
src/main/resources/static/views/login/login.js
+20
-0
packageLog.js
src/main/resources/static/views/packageLog/packageLog.js
+4
-1
searchCardMsg.html
...n/resources/static/views/searchCardMsg/searchCardMsg.html
+0
-0
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
79923c56
...
...
@@ -3,6 +3,7 @@ package com.yxproject.start.api;
import
com.yxproject.start.entity.CountyDicEntity
;
import
com.yxproject.start.service.LogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -61,6 +62,22 @@ public class LogApi {
return
total
;
}
/**
* 查询解析日志
* @param fileName
* @param analysisTime
* @return
*/
@RequestMapping
(
"selectByAnalysisLog"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
Map
<
String
,
Object
>>
selectByAnalysisLog
(
@RequestParam
(
"fileName"
)
String
fileName
,
@RequestParam
(
"analysisTime"
)
String
analysisTime
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
List
<
Map
<
String
,
Object
>>
resultList
=
logService
.
selectAnalysisLog
(
fileName
,
analysisTime
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
resultList
;
}
/**
* 去除字符串中中线
* @param str
...
...
src/main/java/com/yxproject/start/api/PersonPostApi.java
View file @
79923c56
...
...
@@ -98,7 +98,8 @@ public class PersonPostApi {
* @param printTime
* @return
*/
public
boolean
printPostList
(
@RequestParam
(
"id"
)
int
id
,
@RequestParam
(
"printTime"
)
String
printTime
)
{
@RequestMapping
(
"updatePrintDate"
)
public
boolean
updatePrintDate
(
@RequestParam
(
"id"
)
int
id
,
@RequestParam
(
"printTime"
)
String
printTime
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
boolean
flag
=
false
;
try
{
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
79923c56
...
...
@@ -13,8 +13,7 @@ import java.util.Map;
public
interface
LogMapper
{
@Insert
(
""
)
public
boolean
insertAnalysisLog
();
@Select
(
"<script> "
+
"SELECT * FROM "
+
...
...
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
79923c56
...
...
@@ -58,5 +58,5 @@ public interface PersonPostMapper {
public
PersonPostEntity
findPostInfoById
(
int
id
);
@Update
(
"update PERSON_POST SET PRINT_DATE=#{printDateTime} where id=#{id}"
)
void
updateIsPrint
(
int
id
,
Date
printDateTime
);
void
updateIsPrint
(
@Param
(
"id"
)
int
id
,
@Param
(
"printDateTime"
)
Date
printDateTime
);
}
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
79923c56
...
...
@@ -176,8 +176,4 @@ public interface TaskListMapper {
public
boolean
updateState
(
@Param
(
"taskId"
)
String
taskId
);
}
src/main/java/com/yxproject/start/service/LogService.java
View file @
79923c56
...
...
@@ -12,6 +12,7 @@ public interface LogService {
public
String
selectNewFileLogCount
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyCode
);
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
,
long
currPage
,
long
pageSize
);
public
List
<
CountyDicEntity
>
getCountyList
();
...
...
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
View file @
79923c56
...
...
@@ -25,6 +25,12 @@ public class LogServiceImpl implements LogService {
return
count
;
}
@Override
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
,
long
currPage
,
long
pageSize
)
{
List
<
Map
<
String
,
Object
>>
resultList
=
logMapper
.
selectAnalysisLog
(
fileName
,
analysisDate
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
return
resultList
;
}
@Override
public
List
<
CountyDicEntity
>
getCountyList
()
{
...
...
src/main/resources/static/js/app.js
View file @
79923c56
...
...
@@ -47,7 +47,7 @@ angular.module('AvatarCheck', [
$location
.
path
(
"/login"
);
}
if
(
$rootScope
.
loginData
.
login
==
true
){
$
s
cope
.
icons
=
[
$
rootS
cope
.
icons
=
[
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
...
...
src/main/resources/static/js/service.js
View file @
79923c56
...
...
@@ -55,7 +55,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
console
.
log
(
id
)
$http
({
method
:
'GET'
,
url
:
"../
api/idCard/printPostList
"
+
urlTimeStamp
(),
url
:
"../
personPostApi/updatePrintDate
"
+
urlTimeStamp
(),
params
:
{
id
:
id
,
printTime
:
printTime
...
...
@@ -260,13 +260,33 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
})
},
selectAnalyseLog
:
function
(
oldPackageName
,
date
,
success
){
selectAnalyseLogCount
:
function
(
oldPackageName
,
date
,
success
)
{
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
}
$http
({
method
:
'GET'
,
url
:
"../LogApi/selectByAnalysisLogCount"
+
urlTimeStamp
(),
params
:{
fileName
:
oldPackageName
,
analysisTime
:
date
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectAnalyseLog
:
function
(
oldPackageName
,
date
,
currentPage
,
itemsPerPage
,
success
){
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
}
$http
({
method
:
'GET'
,
url
:
"../
ParsingLogApi/selectParsing
Log"
+
urlTimeStamp
(),
url
:
"../
LogApi/selectByAnalysis
Log"
+
urlTimeStamp
(),
params
:{
date
:
date
,
oldPackageData
:
oldPackageName
fileName
:
oldPackageName
,
analysisTime
:
date
,
currPage
:
currentPage
,
pageSize
:
itemsPerPage
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
...
...
src/main/resources/static/views/analysisLog/analysisLog.html
View file @
79923c56
...
...
@@ -51,7 +51,7 @@
</td>
</tr>
</table>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"analyseLog"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"analyseLog
.length>0
"
>
<thead>
<tr>
<th>
NO.
</th>
...
...
@@ -80,9 +80,12 @@
</tbody>
</table>
<div
style=
"padding-left: 27%;"
ng-if=
"analyseLog"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<div
ng-if=
"analyseLog.length==0"
class=
"box-body"
>
<h4>
暂无数据
</h4>
</div>
<div
style=
"padding-left: 27%;"
ng-if=
"analyseLog.length>0"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
</div>
</div>
</div>
...
...
src/main/resources/static/views/analysisLog/analysisLog.js
View file @
79923c56
...
...
@@ -28,14 +28,20 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
paginationConf
.
totalItems
=
50
;
$scope
.
getAnalyseLog
=
function
(){
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
){
HttpService
.
selectAnalyseLogCount
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
analyseLog
=
data
;
console
.
log
(
$scope
.
analyseLog
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getAnalyseLog
);
});
src/main/resources/static/views/login/login.js
View file @
79923c56
...
...
@@ -79,6 +79,26 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
localStorageService
.
set
(
'loginData'
,
resp
.
data
.
user
);
$rootScope
.
menuList
=
$rootScope
.
loginData
.
roleList
[
0
].
permissions
;
console
.
log
(
$scope
.
menuList
)
$rootScope
.
icons
=
[
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
]
whereToGo
(
$rootScope
.
loginData
.
roleList
[
0
].
process
)
if
(
userAgent
.
indexOf
(
'.NET'
)
!=-
1
){
window
.
location
.
reload
();
...
...
src/main/resources/static/views/packageLog/packageLog.js
View file @
79923c56
...
...
@@ -41,10 +41,13 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
})
HttpService
.
selectPackageLog
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
packageLogData
=
data
;
console
.
log
(
$scope
.
packageLogData
,
"?"
)
console
.
log
(
$scope
.
packageLogData
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getPackageLog
);
...
...
src/main/resources/static/views/searchCardMsg/searchCardMsg.html
View file @
79923c56
This diff is collapsed.
Click to expand it.
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