Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c4e85f63
authored
Jul 14, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
292cd868
90bd8e6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/OrgTeamEngineerMPDao.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
project-order/src/main/java/com/dituhui/pea/order/dao/OrgTeamEngineerMPDao.java
View file @
c4e85f6
...
...
@@ -3,7 +3,12 @@ package com.dituhui.pea.order.dao;
import
com.dituhui.pea.order.entity.OrgTeamEngineer
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
@Mapper
public
interface
OrgTeamEngineerMPDao
extends
BaseMapper
<
OrgTeamEngineer
>
{
@Select
(
"select * from org_team_engineer where team_id = #{teamId}"
)
List
<
OrgTeamEngineer
>
selectByTeamId
(
String
teamId
);
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
View file @
c4e85f6
...
...
@@ -227,6 +227,8 @@ public class OrderAssignImpl implements OrderAssign {
throw
new
BusinessException
(
"改约日期不能小于今日"
);
}
LocalDate
originDate
=
order
.
getDt
();
// 改约前的日期
// 更新order_request表为未指派
order
.
setAppointmentStatus
(
"NOT_ASSIGNED"
);
order
.
setDt
(
expectBegin
.
toLocalDate
());
...
...
@@ -238,7 +240,7 @@ public class OrderAssignImpl implements OrderAssign {
// 更新order_appointment表为未指派
LambdaUpdateWrapper
<
OrderAppointment
>
appWrapper
=
new
LambdaUpdateWrapper
<>();
appWrapper
.
set
(
OrderAppointment:
:
getStatus
,
"RESCHEDULED"
)
.
eq
(
OrderAppointment:
:
getOrderId
,
orderId
).
eq
(
OrderAppointment:
:
getDt
,
or
der
.
getDt
()
);
.
eq
(
OrderAppointment:
:
getOrderId
,
orderId
).
eq
(
OrderAppointment:
:
getDt
,
or
iginDate
);
orderAppointmentMPDao
.
update
(
null
,
appWrapper
);
// 登记事件
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment