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
94e2d4e3
Commit
94e2d4e3
authored
Sep 25, 2019
by
wuzhilong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
封签查询分局
parent
3f78886b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
ReceiptMapper.java
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
+6
-3
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+4
-2
log4j.properties
src/main/resources/log4j.properties
+8
-7
service.js
src/main/resources/static/js/service.js
+0
-1
No files found.
src/main/java/com/yxproject/start/mapper/ReceiptMapper.java
View file @
94e2d4e3
...
@@ -179,9 +179,12 @@ public interface ReceiptMapper {
...
@@ -179,9 +179,12 @@ public interface ReceiptMapper {
"WHERE ACCEPT_NO=#{groupNo}"
)
"WHERE ACCEPT_NO=#{groupNo}"
)
public
Map
<
String
,
Object
>
selectCountTimeT
(
@Param
(
"groupNo"
)
String
groupNo
);
public
Map
<
String
,
Object
>
selectCountTimeT
(
@Param
(
"groupNo"
)
String
groupNo
);
@Select
(
"select POLICE_dic.POLICE_NAME from PRODYD_DBA.PROD_GROUP_RELATION_T@PRODYD_LINK \n"
+
@Select
(
"SELECT POLICE_CODE,POLICE_NAME,COUNT(*) \n"
+
"left join POLICE_dic on substr(POLICE_dic.POLICE_CODE,0,8) = substr(PROD_GROUP_RELATION_T.UPLOAD_UNIT_NO,0,8)\n"
+
"FROM PRODYD_DBA.PROD_CARd_T@PRODYD_LINK \n"
+
"where group_no = #{policeCode} "
)
"LEFT JOIN POLICE_DIC\n"
+
"ON SUBSTR(PROD_CARD_T.UPLOAD_NO,0,6)=POLICE_DIC.POLICE_CODE\n"
+
"where ACCEPT_NO like #{policeCode} \n"
+
"GROUP BY POLICE_CODE,POLICE_NAME"
)
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
@Param
(
"policeCode"
)
String
policeCode
);
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
@Param
(
"policeCode"
)
String
policeCode
);
@Select
(
"select \n"
+
@Select
(
"select \n"
+
...
...
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
94e2d4e3
...
@@ -232,12 +232,14 @@ public class ReceiptServiceImpl implements ReceiptService {
...
@@ -232,12 +232,14 @@ public class ReceiptServiceImpl implements ReceiptService {
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
String
qrCode
)
{
public
List
<
Map
<
String
,
Object
>>
queryPoliceName
(
String
qrCode
)
{
List
<
Map
<
String
,
Object
>>
mapList
=
receiptMapper
.
queryPoliceName
(
qrCode
.
substring
(
0
,
8
));
if
(
qrCode
!=
null
){
qrCode
=
qrCode
+
"%"
;
}
List
<
Map
<
String
,
Object
>>
mapList
=
receiptMapper
.
queryPoliceName
(
qrCode
);
List
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
maps
=
new
ArrayList
<>();
if
(
mapList
.
size
()>
0
){
if
(
mapList
.
size
()>
0
){
maps
.
add
(
mapList
.
get
(
0
));
maps
.
add
(
mapList
.
get
(
0
));
}
}
return
maps
;
return
maps
;
}
}
...
...
src/main/resources/log4j.properties
View file @
94e2d4e3
###
设置
###
###
����##
#
log4j.rootLogger
=
debug,stdout,D,E
log4j.rootLogger
=
debug,stdout,D,E
log4j.appenderRefs
=
${appenders}
log4j.appenderRefs
=
${appenders}
log4j.appenderRef.console.ref
=
STDOUT
log4j.appenderRef.console.ref
=
STDOUT
log4j.appenderRef.rollingFileAppender.ref
=
rollingFile
log4j.appenderRef.rollingFileAppender.ref
=
rollingFile
###
输出信息到控制台
###
###
�����Ϣ������̨ ###
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout
=
org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target
=
System.out
log4j.appender.stdout.Target
=
System.out
log4j.appender.stdout.layout
=
org.apache.log4j.PatternLayout
log4j.appender.stdout.layout
=
org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern
=
[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
log4j.appender.stdout.layout.ConversionPattern
=
[%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n
###
输出DEBUG 级别以上的日志到
=E://logs/error.log ###
###
���DEBUG �������ϵ���־��=E://lo
gs/error.log ###
log4j.appender.D
=
com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.D
=
com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.D.File
=
./logs/
d
ebug.log
log4j.appender.D.File
=
./logs/
YdD
ebug.log
log4j.appender.D.Append
=
true
log4j.appender.D.Append
=
true
log4j.appender.D.Threshold
=
DEBUG
log4j.appender.D.Threshold
=
DEBUG
log4j.appender.D.MaxFileSize
=
20MB
log4j.appender.D.MaxFileSize
=
20MB
...
@@ -21,17 +21,18 @@ log4j.appender.D.DatePattern = '_'yyyy-MM-dd'.log'
...
@@ -21,17 +21,18 @@ log4j.appender.D.DatePattern = '_'yyyy-MM-dd'.log'
log4j.appender.D.layout
=
org.apache.log4j.PatternLayout
log4j.appender.D.layout
=
org.apache.log4j.PatternLayout
log4j.appender.D.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
log4j.appender.D.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
###
输出ERROR 级别以上的日志到
=E://logs/error.log ###
###
���ERROR �������ϵ���־��=E://lo
gs/error.log ###
log4j.appender.E
=
com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.E
=
com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.E.File
=
./logs/
e
rror.log
log4j.appender.E.File
=
./logs/
YdE
rror.log
log4j.appender.E.Append
=
true
log4j.appender.E.Append
=
true
log4j.appender.E.Threshold
=
ERROR
log4j.appender.E.Threshold
=
ERROR
log4j.appender.E.MaxFileSize
=
20MB
log4j.appender.E.MaxFileSize
=
20MB
log4j.appender.E.DatePattern
=
'_'yyyy-MM-dd'.log'
log4j.appender.E.layout
=
org.apache.log4j.PatternLayout
log4j.appender.E.layout
=
org.apache.log4j.PatternLayout
log4j.appender.E.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
log4j.appender.E.layout.ConversionPattern
=
%-d{yyyy-MM-dd HH:mm:ss} [%X{ip}] [ %t:%r ] - [ %p ] %l %m%n
###
打
印SQL###
###
��ӡ
SQL###
log4j.logger.org.mybatis
=
DEBUG
log4j.logger.org.mybatis
=
DEBUG
log4j.logger.java.sql
=
DEBUG
log4j.logger.java.sql
=
DEBUG
log4j.logger.java.sql.Statement
=
DEBUG
log4j.logger.java.sql.Statement
=
DEBUG
...
...
src/main/resources/static/js/service.js
View file @
94e2d4e3
...
@@ -1234,7 +1234,6 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -1234,7 +1234,6 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
})
})
},
},
getPoliceName
:
function
(
policeCode
,
success
)
{
getPoliceName
:
function
(
policeCode
,
success
)
{
console
.
log
(
policeCode
+
"========================"
)
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../ReceiptApi/queryPoliceName"
+
urlTimeStamp
(),
url
:
"../ReceiptApi/queryPoliceName"
+
urlTimeStamp
(),
...
...
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