Commit 94e2d4e3 authored by wuzhilong's avatar wuzhilong

封签查询分局

parent 3f78886b
......@@ -179,9 +179,12 @@ public interface ReceiptMapper {
"WHERE ACCEPT_NO=#{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" +
"left join POLICE_dic on substr(POLICE_dic.POLICE_CODE,0,8) = substr(PROD_GROUP_RELATION_T.UPLOAD_UNIT_NO,0,8)\n" +
"where group_no = #{policeCode} ")
@Select("SELECT POLICE_CODE,POLICE_NAME,COUNT(*) \n" +
"FROM PRODYD_DBA.PROD_CARd_T@PRODYD_LINK \n" +
"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);
@Select("select \n" +
......
......@@ -232,12 +232,14 @@ public class ReceiptServiceImpl implements ReceiptService {
@Override
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<>();
if (mapList.size()>0){
maps.add(mapList.get(0));
}
return maps;
}
......
### 设置###
### ����###
log4j.rootLogger = debug,stdout,D,E
log4j.appenderRefs = ${appenders}
log4j.appenderRef.console.ref = STDOUT
log4j.appenderRef.rollingFileAppender.ref = rollingFile
### 输出信息到控制台 ###
### �����Ϣ������̨ ###
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target = System.out
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
### 输出DEBUG 级别以上的日志到=E://logs/error.log ###
### ���DEBUG �������ϵ���־��=E://logs/error.log ###
log4j.appender.D = com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.D.File = ./logs/debug.log
log4j.appender.D.File = ./logs/YdDebug.log
log4j.appender.D.Append = true
log4j.appender.D.Threshold = DEBUG
log4j.appender.D.MaxFileSize=20MB
......@@ -21,17 +21,18 @@ log4j.appender.D.DatePattern = '_'yyyy-MM-dd'.log'
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
### 输出ERROR 级别以上的日志到=E://logs/error.log ###
### ���ERROR �������ϵ���־��=E://logs/error.log ###
log4j.appender.E = com.yxproject.start.utils.MyDailyRollingFileAppender
log4j.appender.E.File =./logs/error.log
log4j.appender.E.File =./logs/YdError.log
log4j.appender.E.Append = true
log4j.appender.E.Threshold = ERROR
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.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.java.sql = DEBUG
log4j.logger.java.sql.Statement = DEBUG
......
......@@ -1234,7 +1234,6 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
})
},
getPoliceName:function(policeCode,success) {
console.log(policeCode+"========================")
$http({
method: 'GET',
url: "../ReceiptApi/queryPoliceName"+urlTimeStamp(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment