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
97c05cf3
Commit
97c05cf3
authored
Apr 26, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询新包日志
修改查询制证信息管理数据
parent
df4f00d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+17
-9
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+3
-4
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
97c05cf3
...
@@ -2,6 +2,7 @@ package com.yxproject.start.api;
...
@@ -2,6 +2,7 @@ package com.yxproject.start.api;
import
com.yxproject.start.entity.CountyDicEntity
;
import
com.yxproject.start.entity.CountyDicEntity
;
import
com.yxproject.start.service.LogService
;
import
com.yxproject.start.service.LogService
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -35,16 +36,13 @@ public class LogApi {
...
@@ -35,16 +36,13 @@ public class LogApi {
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
replaceDate
(
createDate
),
uploadCountyCode
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
replaceDate
(
createDate
),
uploadCountyCode
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
result
;
return
result
;
}
}
// @RequestMapping("selectNewFilesLog")
// public List<Map<String,Object>> selectNewFilesLog (@Param("beginFileName")String beginFileName, @Param("endFileName")String endFileName, @Param("gajgMc") String gajgMc, @Param("beginDate")String beginDate, @Param("endDate")String endDate, @RequestParam("currPage")String currPage, @RequestParam("pageSize")String pageSize){
// List<Map<String,Object>> result = logService.selectNewFilesLog(newFileName,cardId,replaceDate(createDate),uploadCountyCode, Long.valueOf(currPage),Long.valueOf(pageSize));
// return result;
// }
/**
* 查询公安局列表
* @return list
*/
@RequestMapping
(
"selectCountyList"
)
public
List
<
CountyDicEntity
>
selectCountyList
(){
List
<
CountyDicEntity
>
list
=
logService
.
getCountyList
();
return
list
;
}
/**
/**
* 查询新包生成日志总数
* 查询新包生成日志总数
...
@@ -61,6 +59,16 @@ public class LogApi {
...
@@ -61,6 +59,16 @@ public class LogApi {
return
total
;
return
total
;
}
}
/**
* 查询公安局列表
* @return list
*/
@RequestMapping
(
"selectCountyList"
)
public
List
<
CountyDicEntity
>
selectCountyList
(){
List
<
CountyDicEntity
>
list
=
logService
.
getCountyList
();
return
list
;
}
/**
/**
* 查询解析日志
* 查询解析日志
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
97c05cf3
...
@@ -85,8 +85,8 @@ public interface LogMapper {
...
@@ -85,8 +85,8 @@ public interface LogMapper {
" SELECT A.*, ROWNUM RN "
+
" SELECT A.*, ROWNUM RN "
+
" FROM (SELECT distinct NEW_FILE_NAME,CREATE_DATE,RECORD_NUMBER,DWDM,DWMC "
+
" FROM (SELECT distinct NEW_FILE_NAME,CREATE_DATE,RECORD_NUMBER,DWDM,DWMC "
+
" FROM NEW_FILES "
+
" FROM NEW_FILES "
+
"
RIGHT
JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID"
+
"
left
JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID"
+
" where 1=1
and PREPRO_PERSON.NEW_FILE_ID is not null
"
+
" where 1=1 "
+
" <if test='newFileName !=\"\"' >"
+
" <if test='newFileName !=\"\"' >"
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" </if>"
+
" </if>"
+
...
@@ -112,8 +112,7 @@ public interface LogMapper {
...
@@ -112,8 +112,7 @@ public interface LogMapper {
//新包日志总数
//新包日志总数
@Select
(
"<script> "
+
@Select
(
"<script> "
+
"SELECT COUNT(*) FILECOUNT FROM (SELECT distinct NEW_FILE_NAME,CREATE_DATE,RECORD_NUMBER,DWDM,DWMC FROM NEW_FILES \n"
+
"SELECT COUNT(*) FILECOUNT FROM (SELECT distinct NEW_FILE_NAME,CREATE_DATE,RECORD_NUMBER,DWDM,DWMC FROM NEW_FILES \n"
+
"RIGHT JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID where 1=1 \n"
+
"left JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID where 1=1 \n"
+
"and PREPRO_PERSON.NEW_FILE_ID is not null "
+
" <if test='newFileName !=\"\"' >"
+
" <if test='newFileName !=\"\"' >"
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" </if>"
+
" </if>"
+
...
...
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