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
a7528b2f
Commit
a7528b2f
authored
Mar 12, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
制证信息管理2.0
parent
1ff9cf27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
InfoManagementApi.java
src/main/java/com/yxproject/start/api/InfoManagementApi.java
+10
-1
InfoManagementMapper.java
...java/com/yxproject/start/mapper/InfoManagementMapper.java
+1
-1
No files found.
src/main/java/com/yxproject/start/api/InfoManagementApi.java
View file @
a7528b2f
...
...
@@ -16,8 +16,17 @@ public class InfoManagementApi {
private
InfoManagementService
infoManagementService
;
@RequestMapping
(
"selectInfoManagement"
)
public
List
<
NewFilesEntity
>
selectInfoManagement
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
){
List
<
NewFilesEntity
>
resultList
=
infoManagementService
.
selectInfoManagement
(
beginFileName
,
endFileName
,
gajgMc
,
beginDate
,
endDate
);
List
<
NewFilesEntity
>
resultList
=
infoManagementService
.
selectInfoManagement
(
beginFileName
,
endFileName
,
gajgMc
,
replaceDate
(
beginDate
),
replaceDate
(
endDate
)
);
return
resultList
;
}
/**
* 去除字符串中中线
* @param str
* @return
*/
private
String
replaceDate
(
String
str
){
return
str
.
replace
(
"-"
,
""
);
}
}
src/main/java/com/yxproject/start/mapper/InfoManagementMapper.java
View file @
a7528b2f
...
...
@@ -21,7 +21,7 @@ public interface InfoManagementMapper {
"and DWMC=#{gajgMc}\n"
+
"</if>"
+
"<if test='beginDate != null '>"
+
"and (
CREATE_DATE
between(#{beginDate})and(#{endDate}))"
+
"and (
subStr(CREATE_DATE,0,8)
between(#{beginDate})and(#{endDate}))"
+
"</if>"
+
"</script>"
)
public
List
<
NewFilesEntity
>
selectInfoManagement
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
...
...
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