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
479190c6
Commit
479190c6
authored
Mar 13, 2019
by
suichenguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
制证包管理添加删除
parent
1999a2ad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
LogApi.java
src/main/java/com/yxproject/start/api/LogApi.java
+5
-0
CountDataEntity.java
...main/java/com/yxproject/start/entity/CountDataEntity.java
+12
-0
FilesMapper.java
src/main/java/com/yxproject/start/mapper/FilesMapper.java
+4
-3
No files found.
src/main/java/com/yxproject/start/api/LogApi.java
View file @
479190c6
...
@@ -113,6 +113,11 @@ public class LogApi {
...
@@ -113,6 +113,11 @@ public class LogApi {
}
}
/**
* 删除制证包及其数据
* @param fileId
* @return
*/
@RequestMapping
(
"deleteFiles"
)
@RequestMapping
(
"deleteFiles"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
boolean
deleteFiles
(
@RequestParam
(
"fileId"
)
String
fileId
){
public
boolean
deleteFiles
(
@RequestParam
(
"fileId"
)
String
fileId
){
...
...
src/main/java/com/yxproject/start/entity/CountDataEntity.java
View file @
479190c6
...
@@ -8,8 +8,20 @@ public class CountDataEntity {
...
@@ -8,8 +8,20 @@ public class CountDataEntity {
private
Integer
cardCount
;
private
Integer
cardCount
;
private
Integer
commonCardCount
;
private
Integer
commonCardCount
;
private
Integer
postCardCount
;
private
Integer
postCardCount
;
private
long
fileId
;
private
long
state
;
private
long
state
;
public
long
getFileId
()
{
return
fileId
;
}
public
void
setFileId
(
long
fileId
)
{
this
.
fileId
=
fileId
;
}
public
String
getUploadDate
()
{
public
String
getUploadDate
()
{
return
uploadDate
;
return
uploadDate
;
}
}
...
...
src/main/java/com/yxproject/start/mapper/FilesMapper.java
View file @
479190c6
...
@@ -15,9 +15,10 @@ public interface FilesMapper {
...
@@ -15,9 +15,10 @@ public interface FilesMapper {
public
long
insertFiles
(
FilesEntity
filesEntity
);
public
long
insertFiles
(
FilesEntity
filesEntity
);
//TODO 1111111111111
@Select
(
"<script> "
+
@Select
(
"<script> "
+
"select * from (select upload_date upload_Date
,count(ID) package_Count,sum(sumCount) cardCount
,sum(ordinaryCount) commonCardCount,sum(postCount) postCardCount ,rownum rn "
+
"select * from (select upload_date upload_Date
,count(FILE_ID) package_Count,sum(sumCount) cardCount,FILE_ID
,sum(ordinaryCount) commonCardCount,sum(postCount) postCardCount ,rownum rn "
+
"from (SELECT FILES.upload_date,FILE
S.
ID,count(prepro_person.JMSFZSLH) as sumCount, "
+
"from (SELECT FILES.upload_date,FILE
_
ID,count(prepro_person.JMSFZSLH) as sumCount, "
+
"sum(decode(PREPRO_PERSON.CARD_TYPE_ID,0,1,0)) as ordinaryCount ,sum(decode(PREPRO_PERSON.CARD_TYPE_ID,9,1,0)) as postCount "
+
"sum(decode(PREPRO_PERSON.CARD_TYPE_ID,0,1,0)) as ordinaryCount ,sum(decode(PREPRO_PERSON.CARD_TYPE_ID,9,1,0)) as postCount "
+
" FROM PREPRO_PERSON "
+
" FROM PREPRO_PERSON "
+
"left join FILES on PREPRO_PERSON.FILE_ID = FILES.ID "
+
"left join FILES on PREPRO_PERSON.FILE_ID = FILES.ID "
+
...
@@ -25,7 +26,7 @@ public interface FilesMapper {
...
@@ -25,7 +26,7 @@ public interface FilesMapper {
"<if test=\"importDate !=null\">"
+
"<if test=\"importDate !=null\">"
+
" and to_char(FILES.UPLOAD_DATE,'yyyyMMdd')= #{importDate}"
+
" and to_char(FILES.UPLOAD_DATE,'yyyyMMdd')= #{importDate}"
+
"</if> "
+
"</if> "
+
"group by FILES.upload_date,FILE
S.ID) group by upload_date, rownum
"
+
"group by FILES.upload_date,FILE
_ID) group by upload_date,rownum, FILE_ID
"
+
") where rn BETWEEN #{minNum} and #{maxNum} </script>"
)
") where rn BETWEEN #{minNum} and #{maxNum} </script>"
)
public
List
<
CountDataEntity
>
selectFiles
(
@Param
(
"importDate"
)
String
importDate
,
@Param
(
"maxNum"
)
long
maxNum
,
@Param
(
"minNum"
)
long
minNum
);
public
List
<
CountDataEntity
>
selectFiles
(
@Param
(
"importDate"
)
String
importDate
,
@Param
(
"maxNum"
)
long
maxNum
,
@Param
(
"minNum"
)
long
minNum
);
...
...
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