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
278cb7a4
Commit
278cb7a4
authored
Mar 06, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新包日志查询
parent
3a5f07c4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+3
-3
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+6
-5
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 @
278cb7a4
...
@@ -29,14 +29,14 @@ public class LogApi {
...
@@ -29,14 +29,14 @@ public class LogApi {
* @param newFileName 新文件名
* @param newFileName 新文件名
* @param cardId 身份证号
* @param cardId 身份证号
* @param createDate 生成时间
* @param createDate 生成时间
* @param uploadCounty
Nam
e 上传地区
* @param uploadCounty
Cod
e 上传地区
* @param currPage 页数
* @param currPage 页数
* @param pageSize 行数
* @param pageSize 行数
* @return
* @return
*/
*/
@RequestMapping
(
"selectNewFilesLog"
)
@RequestMapping
(
"selectNewFilesLog"
)
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@RequestParam
(
"newFileName"
)
String
newFileName
,
@RequestParam
(
"cardId"
)
String
cardId
,
@RequestParam
(
"createDate"
)
String
createDate
,
@RequestParam
(
"uploadCounty
Name"
)
String
uploadCountyNam
e
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@RequestParam
(
"newFileName"
)
String
newFileName
,
@RequestParam
(
"cardId"
)
String
cardId
,
@RequestParam
(
"createDate"
)
String
createDate
,
@RequestParam
(
"uploadCounty
Code"
)
String
uploadCountyCod
e
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCounty
Nam
e
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCounty
Cod
e
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
result
;
return
result
;
}
}
...
...
src/main/java/com/yxproject/start/mapper/LogMapper.java
View file @
278cb7a4
...
@@ -14,6 +14,7 @@ public interface LogMapper {
...
@@ -14,6 +14,7 @@ public interface LogMapper {
@Insert
(
""
)
@Insert
(
""
)
public
boolean
insertAnalysisLog
();
public
boolean
insertAnalysisLog
();
@Select
(
""
)
@Select
(
""
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
);
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
);
...
@@ -27,21 +28,21 @@ public interface LogMapper {
...
@@ -27,21 +28,21 @@ public interface LogMapper {
" <if test='newFileName !=\"\"' >"
+
" <if test='newFileName !=\"\"' >"
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" </if>"
+
" </if>"
+
" <if test='
cardId
!=\"\"' >"
+
" <if test='
uploadCountyCode
!=\"\"' >"
+
" and NEW_FILES.DW
MC=#{cardId
}"
+
" and NEW_FILES.DW
DM=#{uploadCountyCode
}"
+
" </if>"
+
" </if>"
+
" <if test='createDate !=\"\"' >"
+
" <if test='createDate !=\"\"' >"
+
" and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}"
+
" and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}"
+
" </if>"
+
" </if>"
+
" <if test='
uploadCountyName
!=\"\"' >"
+
" <if test='
cardId
!=\"\"' >"
+
" and PREPRO_PERSON.GMSFHM=#{
uploadCountyName
} "
+
" and PREPRO_PERSON.GMSFHM=#{
cardId
} "
+
" </if>"
+
" </if>"
+
" ) "
+
" ) "
+
" A"
+
" A"
+
" )"
+
" )"
+
" WHERE RN BETWEEN #{end} AND #{begin}"
+
" WHERE RN BETWEEN #{end} AND #{begin}"
+
"</script>"
)
"</script>"
)
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@Param
(
"newFileName"
)
String
newFileName
,
@Param
(
"cardId"
)
String
cardId
,
@Param
(
"createDate"
)
String
createDate
,
@Param
(
"uploadCounty
Nam
e"
)
String
uploadCountyName
,
@Param
(
"begin"
)
long
begin
,
@Param
(
"end"
)
long
end
);
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@Param
(
"newFileName"
)
String
newFileName
,
@Param
(
"cardId"
)
String
cardId
,
@Param
(
"createDate"
)
String
createDate
,
@Param
(
"uploadCounty
Cod
e"
)
String
uploadCountyName
,
@Param
(
"begin"
)
long
begin
,
@Param
(
"end"
)
long
end
);
}
}
src/main/java/com/yxproject/start/service/LogService.java
View file @
278cb7a4
...
@@ -6,5 +6,5 @@ import java.util.Map;
...
@@ -6,5 +6,5 @@ import java.util.Map;
public
interface
LogService
{
public
interface
LogService
{
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCounty
Nam
e
,
long
currPage
,
long
pageSize
);
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCounty
Cod
e
,
long
currPage
,
long
pageSize
);
}
}
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
View file @
278cb7a4
...
@@ -13,8 +13,8 @@ public class LogServiceImpl implements LogService {
...
@@ -13,8 +13,8 @@ public class LogServiceImpl implements LogService {
@Autowired
@Autowired
private
LogMapper
logMapper
;
private
LogMapper
logMapper
;
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCounty
Nam
e
,
long
currPage
,
long
pageSize
)
{
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCounty
Cod
e
,
long
currPage
,
long
pageSize
)
{
List
<
Map
<
String
,
Object
>>
resultMap
=
logMapper
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCounty
Nam
e
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
List
<
Map
<
String
,
Object
>>
resultMap
=
logMapper
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCounty
Cod
e
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
return
resultMap
;
return
resultMap
;
}
}
}
}
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