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
49a99085
Commit
49a99085
authored
Mar 06, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新包日志查询
parent
19fbecc3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
0 deletions
+120
-0
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+43
-0
LogMapper.java
src/main/java/com/yxproject/start/mapper/LogMapper.java
+47
-0
LogService.java
src/main/java/com/yxproject/start/service/LogService.java
+10
-0
LogServiceImpl.java
...java/com/yxproject/start/service/impl/LogServiceImpl.java
+20
-0
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
0 → 100644
View file @
49a99085
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.service.LogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@RequestMapping
(
"LogApi"
)
public
class
LogApi
{
@Autowired
private
LogService
logService
;
@RequestMapping
(
"createAnalysisLog"
)
public
boolean
createAnalysisLog
(
HttpServletResponse
response
)
{
return
true
;
}
/**
* 查询新包生成日志
* @param newFileName 新文件名
* @param cardId 身份证号
* @param createDate 生成时间
* @param uploadCountyName 上传地区
* @param currPage 页数
* @param pageSize 行数
* @return
*/
@RequestMapping
(
"selectNewFilesLog"
)
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@RequestParam
(
"newFileName"
)
String
newFileName
,
@RequestParam
(
"cardId"
)
String
cardId
,
@RequestParam
(
"createDate"
)
String
createDate
,
@RequestParam
(
"uploadCountyName"
)
String
uploadCountyName
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
List
<
Map
<
String
,
Object
>>
result
=
logService
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCountyName
,
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
return
result
;
}
}
src/main/java/com/yxproject/start/mapper/LogMapper.java
0 → 100644
View file @
49a99085
package
com
.
yxproject
.
start
.
mapper
;
import
org.apache.ibatis.annotations.Insert
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
LogMapper
{
@Insert
(
""
)
public
boolean
insertAnalysisLog
();
@Select
(
""
)
public
List
<
Map
<
String
,
Object
>>
selectAnalysisLog
(
String
fileName
,
String
analysisDate
);
@Select
(
"<script> "
+
"SELECT * FROM "
+
" ( "
+
" SELECT A.*, ROWNUM RN "
+
" FROM (SELECT NEW_FILE_NAME,CREATE_DATE,RECORD_NUMBER,DWDM,DWMC FROM NEW_FILES "
+
" LEFT JOIN PREPRO_PERSON ON NEW_FILES.ID = PREPRO_PERSON.NEW_FILE_ID"
+
" where 1=1 "
+
" <if test='newFileName !=\"\"' >"
+
" and NEW_FILES.NEW_FILE_NAME=#{newFileName} "
+
" </if>"
+
" <if test='cardId !=\"\"' >"
+
" and NEW_FILES.DWMC=#{cardId}"
+
" </if>"
+
" <if test='createDate !=\"\"' >"
+
" and substr(NEW_FILES.CREATE_DATE,0,8)=#{createDate}"
+
" </if>"
+
" <if test='uploadCountyName !=\"\"' >"
+
" and PREPRO_PERSON.GMSFHM=#{uploadCountyName} "
+
" </if>"
+
" ) "
+
" A"
+
" )"
+
" WHERE RN BETWEEN #{end} AND #{begin}"
+
"</script>"
)
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
@Param
(
"newFileName"
)
String
newFileName
,
@Param
(
"cardId"
)
String
cardId
,
@Param
(
"createDate"
)
String
createDate
,
@Param
(
"uploadCountyName"
)
String
uploadCountyName
,
@Param
(
"begin"
)
long
begin
,
@Param
(
"end"
)
long
end
);
}
src/main/java/com/yxproject/start/service/LogService.java
0 → 100644
View file @
49a99085
package
com
.
yxproject
.
start
.
service
;
import
java.util.List
;
import
java.util.Map
;
public
interface
LogService
{
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyName
,
long
currPage
,
long
pageSize
);
}
src/main/java/com/yxproject/start/service/impl/LogServiceImpl.java
0 → 100644
View file @
49a99085
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.mapper.LogMapper
;
import
com.yxproject.start.service.LogService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
LogServiceImpl
implements
LogService
{
@Autowired
private
LogMapper
logMapper
;
@Override
public
List
<
Map
<
String
,
Object
>>
selectNewFilesLog
(
String
newFileName
,
String
cardId
,
String
createDate
,
String
uploadCountyName
,
long
currPage
,
long
pageSize
)
{
List
<
Map
<
String
,
Object
>>
resultMap
=
logMapper
.
selectNewFilesLog
(
newFileName
,
cardId
,
createDate
,
uploadCountyName
,
currPage
*
pageSize
,
(
currPage
-
1
)
*
pageSize
+
1
);
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