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 2021b667
authored
Dec 07, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://gitlab.dituhui.com/bsh/project/project
into develop
2 parents
7492b21a
67359cd6
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
29 additions
and
11 deletions
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Photo.java → project-interface/src/main/java/com/dituhui/pea/bean/Photo.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Reason.java → project-interface/src/main/java/com/dituhui/pea/bean/Reason.java
project-interface/src/main/java/com/dituhui/pea/bean/RemoteBeanApi.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/Rescheduled.java → project-interface/src/main/java/com/dituhui/pea/bean/Rescheduled.java
project-order/src/main/java/com/dituhui/pea/order/constant/OrderReschedulingReason.java
project-order/src/main/java/com/dituhui/pea/order/feign/BeanRemoteServiceInner.java
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
project-order/src/main/java/com/dituhui/pea/order/feign/bean/OrderCancel.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/MsgServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
project-
order/src/main/java/com/dituhui/pea/order/feign
/bean/Photo.java
→
project-
interface/src/main/java/com/dituhui/pea
/bean/Photo.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
package
com
.
dituhui
.
pea
.
bean
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
project-
order/src/main/java/com/dituhui/pea/order/feign
/bean/Reason.java
→
project-
interface/src/main/java/com/dituhui/pea
/bean/Reason.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
package
com
.
dituhui
.
pea
.
bean
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
project-interface/src/main/java/com/dituhui/pea/bean/RemoteBeanApi.java
View file @
2021b66
...
@@ -22,4 +22,13 @@ public interface RemoteBeanApi {
...
@@ -22,4 +22,13 @@ public interface RemoteBeanApi {
*/
*/
@PostMapping
(
"/task/updateAllotResult"
)
@PostMapping
(
"/task/updateAllotResult"
)
boolean
allotResultUpdate
(
@Valid
@RequestBody
AllotResultParam
allotResultParam
);
boolean
allotResultUpdate
(
@Valid
@RequestBody
AllotResultParam
allotResultParam
);
/**
* 服务单改约 通知BEAN
*
* @param rescheduled 更新参数
* @return 是否回调BEAN成功
*/
@PostMapping
(
"/task/orderRescheduled"
)
boolean
orderRescheduled
(
@Valid
@RequestBody
Rescheduled
rescheduled
);
}
}
project-
order/src/main/java/com/dituhui/pea/order/feign
/bean/Rescheduled.java
→
project-
interface/src/main/java/com/dituhui/pea
/bean/Rescheduled.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
package
com
.
dituhui
.
pea
.
bean
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
project-order/src/main/java/com/dituhui/pea/order/constant/OrderReschedulingReason.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
constant
;
package
com
.
dituhui
.
pea
.
order
.
constant
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.dituhui.pea.
order.feign.
bean.Reason
;
import
com.dituhui.pea.bean.Reason
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
project-order/src/main/java/com/dituhui/pea/order/feign/BeanRemoteServiceInner.java
View file @
2021b66
...
@@ -2,6 +2,7 @@ package com.dituhui.pea.order.feign;
...
@@ -2,6 +2,7 @@ package com.dituhui.pea.order.feign;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.RemoteBeanApi
;
import
com.dituhui.pea.bean.RemoteBeanApi
;
import
com.dituhui.pea.bean.Rescheduled
;
import
com.dituhui.pea.order.service.impl.BeanRemoteServiceImpl
;
import
com.dituhui.pea.order.service.impl.BeanRemoteServiceImpl
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -17,4 +18,9 @@ public class BeanRemoteServiceInner implements RemoteBeanApi {
...
@@ -17,4 +18,9 @@ public class BeanRemoteServiceInner implements RemoteBeanApi {
public
boolean
allotResultUpdate
(
AllotResultParam
allotResultParam
)
{
public
boolean
allotResultUpdate
(
AllotResultParam
allotResultParam
)
{
return
beanRemoteService
.
allotResultUpdate
(
allotResultParam
);
return
beanRemoteService
.
allotResultUpdate
(
allotResultParam
);
}
}
@Override
public
boolean
orderRescheduled
(
Rescheduled
rescheduled
)
{
return
beanRemoteService
.
orderRescheduled
(
rescheduled
);
}
}
}
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
feign
;
package
com
.
dituhui
.
pea
.
order
.
feign
;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.Rescheduled
;
import
com.dituhui.pea.order.feign.bean.*
;
import
com.dituhui.pea.order.feign.bean.*
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
...
project-order/src/main/java/com/dituhui/pea/order/feign/bean/OrderCancel.java
View file @
2021b66
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
package
com
.
dituhui
.
pea
.
order
.
feign
.
bean
;
import
com.dituhui.pea.bean.Photo
;
import
com.dituhui.pea.bean.Reason
;
import
lombok.Getter
;
import
lombok.Getter
;
import
lombok.Setter
;
import
lombok.Setter
;
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
View file @
2021b66
...
@@ -4,6 +4,8 @@ import cn.hutool.core.util.ObjUtil;
...
@@ -4,6 +4,8 @@ import cn.hutool.core.util.ObjUtil;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.nacos.common.utils.CollectionUtils
;
import
com.alibaba.nacos.common.utils.CollectionUtils
;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.AllotResultParam
;
import
com.dituhui.pea.bean.Reason
;
import
com.dituhui.pea.bean.Rescheduled
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.enums.StatusCodeEnum
;
import
com.dituhui.pea.enums.StatusCodeEnum
;
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/MsgServiceImpl.java
View file @
2021b66
...
@@ -153,8 +153,8 @@ public class MsgServiceImpl implements MsgService {
...
@@ -153,8 +153,8 @@ public class MsgServiceImpl implements MsgService {
}
}
List
<
String
>
userList
=
msgDao
.
getDispatchUserList
(
dto
.
getClusterId
(),
dto
.
getBranchId
(),
dto
.
getGroupId
());
List
<
String
>
userList
=
msgDao
.
getDispatchUserList
(
dto
.
getClusterId
(),
dto
.
getBranchId
(),
dto
.
getGroupId
());
if
(!
userList
.
contains
(
"
1
"
))
{
if
(!
userList
.
contains
(
"
c8d384973ee543d3aa6f5b355e184ccc
"
))
{
userList
.
add
(
"
1
"
);
userList
.
add
(
"
c8d384973ee543d3aa6f5b355e184ccc
"
);
}
}
MsgEntity
msgEntity
=
new
MsgEntity
();
MsgEntity
msgEntity
=
new
MsgEntity
();
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
View file @
2021b66
...
@@ -23,9 +23,7 @@ import com.dituhui.pea.order.dto.param.OrderDTO;
...
@@ -23,9 +23,7 @@ import com.dituhui.pea.order.dto.param.OrderDTO;
import
com.dituhui.pea.order.dto.param.OrgTeamInfo
;
import
com.dituhui.pea.order.dto.param.OrgTeamInfo
;
import
com.dituhui.pea.order.entity.*
;
import
com.dituhui.pea.order.entity.*
;
import
com.dituhui.pea.order.enums.*
;
import
com.dituhui.pea.order.enums.*
;
import
com.dituhui.pea.order.feign.bean.OrderCancel
;
import
com.dituhui.pea.bean.Rescheduled
;
import
com.dituhui.pea.order.feign.bean.Reason
;
import
com.dituhui.pea.order.feign.bean.Rescheduled
;
import
com.dituhui.pea.order.service.*
;
import
com.dituhui.pea.order.service.*
;
import
com.dituhui.pea.order.utils.CommonUtil
;
import
com.dituhui.pea.order.utils.CommonUtil
;
import
com.dituhui.pea.order.utils.OrderUtil
;
import
com.dituhui.pea.order.utils.OrderUtil
;
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
View file @
2021b66
...
@@ -29,8 +29,8 @@ import com.dituhui.pea.order.enums.OrderEventEnum;
...
@@ -29,8 +29,8 @@ import com.dituhui.pea.order.enums.OrderEventEnum;
import
com.dituhui.pea.order.enums.OrderFlowEnum
;
import
com.dituhui.pea.order.enums.OrderFlowEnum
;
import
com.dituhui.pea.order.enums.OrderStatusEnum
;
import
com.dituhui.pea.order.enums.OrderStatusEnum
;
import
com.dituhui.pea.order.enums.ServiceStatusEnum
;
import
com.dituhui.pea.order.enums.ServiceStatusEnum
;
import
com.dituhui.pea.
order.feign.
bean.Reason
;
import
com.dituhui.pea.bean.Reason
;
import
com.dituhui.pea.
order.feign.
bean.Rescheduled
;
import
com.dituhui.pea.bean.Rescheduled
;
import
com.dituhui.pea.order.service.CommonService
;
import
com.dituhui.pea.order.service.CommonService
;
import
com.dituhui.pea.order.service.PeaOuterAPIService
;
import
com.dituhui.pea.order.service.PeaOuterAPIService
;
import
com.dituhui.pea.order.utils.CommonUtil
;
import
com.dituhui.pea.order.utils.CommonUtil
;
...
...
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