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
9ee7a3b5
Commit
9ee7a3b5
authored
Mar 12, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
信息管理3.0
parent
18d8917f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
1 deletion
+57
-1
InfoManagementApi.java
src/main/java/com/yxproject/start/api/InfoManagementApi.java
+30
-0
InfoManagementMapper.java
...java/com/yxproject/start/mapper/InfoManagementMapper.java
+18
-0
PersonPostMapper.java
...ain/java/com/yxproject/start/mapper/PersonPostMapper.java
+1
-0
InfoManagementService.java
...va/com/yxproject/start/service/InfoManagementService.java
+2
-1
InfoManagementServiceImpl.java
...project/start/service/impl/InfoManagementServiceImpl.java
+6
-0
No files found.
src/main/java/com/yxproject/start/api/InfoManagementApi.java
View file @
9ee7a3b5
...
...
@@ -15,6 +15,18 @@ import java.util.List;
public
class
InfoManagementApi
{
@Autowired
private
InfoManagementService
infoManagementService
;
/**
* 按条件查询制证信息数据
* @param beginFileName
* @param endFileName
* @param gajgMc
* @param beginDate
* @param endDate
* @param currPage
* @param pageSize
* @return
*/
@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
,
@RequestParam
(
"currPage"
)
String
currPage
,
@RequestParam
(
"pageSize"
)
String
pageSize
){
List
<
NewFilesEntity
>
resultList
=
infoManagementService
.
selectInfoManagement
(
beginFileName
,
endFileName
,
gajgMc
,
replaceDate
(
beginDate
),
replaceDate
(
endDate
),
Long
.
valueOf
(
currPage
),
Long
.
valueOf
(
pageSize
));
...
...
@@ -22,12 +34,30 @@ public class InfoManagementApi {
}
/**
* 查询制证信息数据条数
* @param beginFileName
* @param endFileName
* @param gajgMc
* @param beginDate
* @param endDate
* @return
*/
@RequestMapping
(
"selectCount"
)
public
long
selectCount
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
){
long
count
=
infoManagementService
.
count
(
beginFileName
,
endFileName
,
gajgMc
,
replaceDate
(
beginDate
),
replaceDate
(
endDate
));
return
count
;
}
@RequestMapping
(
"deleteInfo"
)
public
boolean
deleteInfo
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
){
boolean
result
=
infoManagementService
.
deleteInfo
(
beginFileName
,
endFileName
,
gajgMc
,
beginDate
,
endDate
);
return
result
;
}
...
...
src/main/java/com/yxproject/start/mapper/InfoManagementMapper.java
View file @
9ee7a3b5
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.NewFilesEntity
;
import
org.apache.ibatis.annotations.Delete
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
...
...
@@ -50,6 +51,23 @@ public interface InfoManagementMapper {
@Delete
(
"<script> "
+
"delete from PREPRO_PERSON \n"
+
"where PREPRO_PERSON.NEW_FILE_ID=(\n"
+
"select * from new_files \n"
+
"where 1=1\n"
+
"<if test='beginFileName != \"\" '>"
+
"and (NEW_FILE_NAME between(#{beginFileName})and (#{endFileName}))\n"
+
"</if>"
+
"<if test='gajgMc != \"\" '>"
+
"and DWMC=#{gajgMc}\n"
+
"</if>"
+
"<if test='beginDate != \"\" '>"
+
"and (subStr(CREATE_DATE,0,8) between(#{beginDate})and(#{endDate}))"
+
"</if>"
+
"select )"
+
" </script>"
)
public
boolean
deleteInfo
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
}
src/main/java/com/yxproject/start/mapper/PersonPostMapper.java
View file @
9ee7a3b5
...
...
@@ -97,6 +97,7 @@ public interface PersonPostMapper {
@Select
(
"SELECT count(*) FROM FILE_NAME_DIC a LEFT JOIN PERSON_POST b on a.FILE_ID=b.FILE_ID WHERE substr(a.UPLOAD_DATE,0,8)=#{date} AND b.PRINT_DATE IS NULL"
)
public
int
selectPersonalDataCountByImportDate
(
@Param
(
"date"
)
String
date
);
@Select
(
"<script> "
+
"SELECT PERSON_POST.*"
+
" FROM PERSON_POST "
+
...
...
src/main/java/com/yxproject/start/service/InfoManagementService.java
View file @
9ee7a3b5
...
...
@@ -8,7 +8,8 @@ import java.util.List;
public
interface
InfoManagementService
{
public
List
<
NewFilesEntity
>
selectInfoManagement
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"begin"
)
long
begin
,
@Param
(
"end"
)
long
end
);
public
long
count
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
public
boolean
deleteInfo
(
@Param
(
"beginFileName"
)
String
beginFileName
,
@Param
(
"endFileName"
)
String
endFileName
,
@Param
(
"gajgMc"
)
String
gajgMc
,
@Param
(
"beginDate"
)
String
beginDate
,
@Param
(
"endDate"
)
String
endDate
);
}
src/main/java/com/yxproject/start/service/impl/InfoManagementServiceImpl.java
View file @
9ee7a3b5
...
...
@@ -27,4 +27,10 @@ public class InfoManagementServiceImpl implements InfoManagementService {
long
count
=
infoManagementMapper
.
count
(
beginFileName
,
endFileName
,
gajgMc
,
beginDate
,
endDate
);
return
count
;
}
@Override
public
boolean
deleteInfo
(
String
beginFileName
,
String
endFileName
,
String
gajgMc
,
String
beginDate
,
String
endDate
)
{
infoManagementMapper
.
deleteInfo
(
beginFileName
,
endFileName
,
gajgMc
,
beginDate
,
endDate
);
return
true
;
}
}
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