Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
cf867ead
Commit
cf867ead
authored
3 years ago
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 采砂许可证修改状态的时间(反了)
parent
157b6627
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SandMiningDaoImpl.java
...xyst/dinas/production/internal/dao/SandMiningDaoImpl.java
+2
-2
No files found.
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/internal/dao/SandMiningDaoImpl.java
View file @
cf867ead
...
...
@@ -110,7 +110,7 @@ public class SandMiningDaoImpl extends AbstractBaseDao implements SandMiningDao,
public
void
updateSandMiningStatus
()
{
//1.将未开始但时间已到的修改为已开始
template
.
execute
(
session
->
{
Query
query
=
session
.
createQuery
(
"update "
+
ENTITY
+
" as a set a.status =1 where a.sandMiningStart
>
= :startDate and a.status = 0 and a.del=false"
);
Query
query
=
session
.
createQuery
(
"update "
+
ENTITY
+
" as a set a.status =1 where a.sandMiningStart
<
= :startDate and a.status = 0 and a.del=false"
);
query
.
setParameter
(
"startDate"
,
new
Date
());
query
.
executeUpdate
();
return
query
;
...
...
@@ -118,7 +118,7 @@ public class SandMiningDaoImpl extends AbstractBaseDao implements SandMiningDao,
//2.将已开始但超时的修改为已过期
template
.
execute
(
session
->
{
Query
query
=
session
.
createQuery
(
"update "
+
ENTITY
+
" as a set a.status =2 where a.sandMiningEnd
>= :endDate and a.status = 1
and a.del=false"
);
Query
query
=
session
.
createQuery
(
"update "
+
ENTITY
+
" as a set a.status =2 where a.sandMiningEnd
<= :endDate and a.status in (0,1)
and a.del=false"
);
query
.
setParameter
(
"endDate"
,
new
Date
());
query
.
executeUpdate
();
return
query
;
...
...
This diff is collapsed.
Click to expand it.
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