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
bb2330a0
Commit
bb2330a0
authored
May 06, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批时添加审批人和审批时间
parent
3f6e5543
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
PriceAdjustmentDaoImpl.java
...xyst/dinas/price/internal/dao/PriceAdjustmentDaoImpl.java
+2
-2
PriceAdjustmentServiceImpl.java
...as/price/internal/service/PriceAdjustmentServiceImpl.java
+4
-2
No files found.
backend/xyst.dinas.price/src/main/java/com/xyst/dinas/price/internal/dao/PriceAdjustmentDaoImpl.java
View file @
bb2330a0
...
@@ -295,9 +295,9 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
...
@@ -295,9 +295,9 @@ public class PriceAdjustmentDaoImpl extends AbstractBaseDao implements PriceAdju
adjustmentDetachedCriteria
.
add
(
Restrictions
.
in
(
"station.id"
,
stationId
));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
in
(
"station.id"
,
stationId
));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
ge
(
"adjustmentDate"
,
DateTimeUtils
.
getStartDateTimeOfDay
(
adjustmentDate
)));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
ge
(
"adjustmentDate"
,
DateTimeUtils
.
getStartDateTimeOfDay
(
adjustmentDate
)));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
"adjustmentDate"
,
DateTimeUtils
.
getEndDateTimeOfDay
(
adjustmentDate
)));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
"adjustmentDate"
,
DateTimeUtils
.
getEndDateTimeOfDay
(
adjustmentDate
)));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
"createTime"
,
createTime
));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
BaseConstants
.
CREATE_TIME
,
createTime
));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
BaseConstants
.
DEL
,
false
));
adjustmentDetachedCriteria
.
add
(
Restrictions
.
le
(
BaseConstants
.
DEL
,
false
));
adjustmentDetachedCriteria
.
addOrder
(
Order
.
desc
(
"createTime"
));
adjustmentDetachedCriteria
.
addOrder
(
Order
.
desc
(
BaseConstants
.
CREATE_TIME
));
return
(
List
<
KObject
>)
template
.
findByCriteria
(
adjustmentDetachedCriteria
);
return
(
List
<
KObject
>)
template
.
findByCriteria
(
adjustmentDetachedCriteria
);
}
}
...
...
backend/xyst.dinas.price/src/main/java/com/xyst/dinas/price/internal/service/PriceAdjustmentServiceImpl.java
View file @
bb2330a0
package
com
.
xyst
.
dinas
.
price
.
internal
.
service
;
package
com
.
xyst
.
dinas
.
price
.
internal
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.b
ap.workflow.core.BizProcessState
;
import
com.beecode.b
cp.core.context.AminoContextHolder
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.common.BaseConstants
;
import
com.beecode.inz.common.BaseConstants
;
import
com.xyst.dinas.price.dao.PriceAdjustmentDao
;
import
com.xyst.dinas.price.dao.PriceAdjustmentDao
;
...
@@ -16,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -16,7 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.CollectionUtils
;
import
java.sql.Array
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -134,6 +133,9 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
...
@@ -134,6 +133,9 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
@Override
@Override
public
void
update
(
KObject
kobject
)
{
public
void
update
(
KObject
kobject
)
{
kobject
.
set
(
"approvalTime"
,
new
Date
());
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
kobject
.
set
(
"approver"
,
staff
);
priceAdjustmentDao
.
modify
(
kobject
);
priceAdjustmentDao
.
modify
(
kobject
);
//审批通过后获取 同一天生效时间 && 创建时间小于该条记录 && 已审批 的记录,将其改为失效
//审批通过后获取 同一天生效时间 && 创建时间小于该条记录 && 已审批 的记录,将其改为失效
List
<
KObject
>
kObjects
=
priceAdjustmentDao
.
getSameAdjustmentDateAndLtCreateDate
(
kobject
);
List
<
KObject
>
kObjects
=
priceAdjustmentDao
.
getSameAdjustmentDateAndLtCreateDate
(
kobject
);
...
...
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