Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
93288640
Commit
93288640
authored
Dec 15, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载视频
parent
e1fdb2e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
YzgFileDaoImpl.java
...a/com/yanzuoguang/cloud/file/dao/impl/YzgFileDaoImpl.java
+10
-2
No files found.
yzg-util-file/src/main/java/com/yanzuoguang/cloud/file/dao/impl/YzgFileDaoImpl.java
View file @
93288640
...
@@ -2,9 +2,11 @@ package com.yanzuoguang.cloud.file.dao.impl;
...
@@ -2,9 +2,11 @@ package com.yanzuoguang.cloud.file.dao.impl;
import
com.yanzuoguang.cloud.file.dao.YzgFileDao
;
import
com.yanzuoguang.cloud.file.dao.YzgFileDao
;
import
com.yanzuoguang.cloud.vo.YzgFileVo
;
import
com.yanzuoguang.cloud.vo.YzgFileVo
;
import
com.yanzuoguang.cloud.vo.req.YzgFileQueryReqVo
;
import
com.yanzuoguang.cloud.vo.req.YzgFileStatusReqVo
;
import
com.yanzuoguang.cloud.vo.req.YzgFileStatusReqVo
;
import
com.yanzuoguang.dao.DaoConst
;
import
com.yanzuoguang.dao.DaoConst
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.dao.impl.BaseDaoImpl
;
import
com.yanzuoguang.util.helper.DateHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.MapRow
;
import
com.yanzuoguang.util.vo.MapRow
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
...
@@ -60,7 +62,12 @@ public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, Initializ
...
@@ -60,7 +62,12 @@ public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, Initializ
;
;
table
.
add
(
GET_COUNT_SQL
,
"SELECT COUNT(1) FROM Yzg_File AS a WHERE 1=1"
)
table
.
add
(
GET_COUNT_SQL
,
"SELECT COUNT(1) FROM Yzg_File AS a WHERE 1=1"
)
.
add
(
YzgFileVo
.
class
,
"a."
);
.
add
(
YzgFileVo
.
class
,
"a."
)
.
add
(
"createDateFrom"
,
"AND a.createDate>=?"
)
.
add
(
"createDateTo"
,
"AND a.createDate<=?"
)
.
add
(
"downloadDateFrom"
,
"AND a.downloadDate>=?"
)
.
add
(
"downloadDateTo"
,
"AND a.downloadDate<=?"
)
;
table
.
add
(
UPDATE_STATUS_SQL
,
"UPDATE Yzg_File AS a SET a.fileId=a.fileId {FIELD} WHERE a.fileId=@fileId"
)
table
.
add
(
UPDATE_STATUS_SQL
,
"UPDATE Yzg_File AS a SET a.fileId=a.fileId {FIELD} WHERE a.fileId=@fileId"
)
.
addPara
(
"fileStatus"
,
DaoConst
.
CODE_FIELD
,
",a.fileStatus=CASE WHEN @fileStatus>a.fileStatus THEN @fileStatus ELSE a.fileStatus END"
)
.
addPara
(
"fileStatus"
,
DaoConst
.
CODE_FIELD
,
",a.fileStatus=CASE WHEN @fileStatus>a.fileStatus THEN @fileStatus ELSE a.fileStatus END"
)
...
@@ -100,9 +107,10 @@ public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, Initializ
...
@@ -100,9 +107,10 @@ public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, Initializ
if
(
StringHelper
.
isEmpty
(
req
.
getCompanyId
(),
req
.
getCreateUserId
()))
{
if
(
StringHelper
.
isEmpty
(
req
.
getCompanyId
(),
req
.
getCreateUserId
()))
{
return
0
;
return
0
;
}
}
YzgFile
Vo
countReq
=
new
YzgFile
Vo
();
YzgFile
QueryReqVo
countReq
=
new
YzgFileQueryReq
Vo
();
countReq
.
setCompanyId
(
req
.
getCompanyId
());
countReq
.
setCompanyId
(
req
.
getCompanyId
());
countReq
.
setCreateUserId
(
req
.
getCreateUserId
());
countReq
.
setCreateUserId
(
req
.
getCreateUserId
());
countReq
.
setCreateDateFrom
(
DateHelper
.
getToday
());
return
StringHelper
.
toInt
(
queryCell
(
GET_COUNT_SQL
,
countReq
));
return
StringHelper
.
toInt
(
queryCell
(
GET_COUNT_SQL
,
countReq
));
}
}
...
...
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