Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
12f28a46
提交
12f28a46
authored
8月 09, 2024
作者:
jiangwujie
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v21.1_jianzhuang_20240807' into dev
上级
8369c643
8d425560
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
63 行增加
和
10 行删除
+63
-10
OrderChildEnum.java
...c/main/java/com/clx/performance/enums/OrderChildEnum.java
+9
-0
ClxMessageConfig.java
...ain/java/com/clx/performance/config/ClxMessageConfig.java
+2
-2
OrderChildServiceImpl.java
...m/clx/performance/service/impl/OrderChildServiceImpl.java
+52
-8
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/OrderChildEnum.java
浏览文件 @
12f28a46
...
@@ -308,4 +308,13 @@ public enum OrderChildEnum {
...
@@ -308,4 +308,13 @@ public enum OrderChildEnum {
private
final
String
msg
;
private
final
String
msg
;
}
}
@Getter
@AllArgsConstructor
public
enum
SuperviseTypeEnum
{
SUPERVISE_LOAD
(
1
,
"监装"
),
SUPERVISE_UNLOAD
(
2
,
"监卸"
);
private
final
int
code
;
private
final
String
msg
;
}
}
}
performance-web/src/main/java/com/clx/performance/config/ClxMessageConfig.java
浏览文件 @
12f28a46
...
@@ -38,10 +38,10 @@ public class ClxMessageConfig {
...
@@ -38,10 +38,10 @@ public class ClxMessageConfig {
/**
/**
* 上传装货信息短信模板
* 上传装货信息短信模板
*/
*/
private
String
uploadLoadInfo
;
private
String
uploadLoadInfo
TemplateCode
;
/**
/**
* 提示监装信息短信模板
* 提示监装信息短信模板
*/
*/
private
String
noticeSupervision
;
private
String
noticeSupervision
TemplateCode
;
}
}
performance-web/src/main/java/com/clx/performance/service/impl/OrderChildServiceImpl.java
浏览文件 @
12f28a46
...
@@ -1743,9 +1743,9 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -1743,9 +1743,9 @@ public class OrderChildServiceImpl implements OrderChildService {
result
.
setSendSamplingPic
(
orderInfoFeign
.
getSendSamplingPic
());
result
.
setSendSamplingPic
(
orderInfoFeign
.
getSendSamplingPic
());
result
.
setSendQualityPosition
(
orderInfoFeign
.
getSendQualityPosition
());
result
.
setSendQualityPosition
(
orderInfoFeign
.
getSendQualityPosition
());
result
.
setSendSamplingVideo
(
orderInfoFeign
.
getSendSamplingVideo
());
result
.
setSendSamplingVideo
(
orderInfoFeign
.
getSendSamplingVideo
());
// TODO 两个属性需要瑞新接口提供
Object
[]
superviseInfo
=
getSuperviseInfo
(
orderChild
.
getOrderNo
(),
orderChild
.
getChildNo
());
result
.
setSuperviseContacts
(
null
);
result
.
setSuperviseContacts
(
superviseInfo
!=
null
?
(
String
)
superviseInfo
[
0
]
:
null
);
result
.
setSuperviseMobile
(
null
);
result
.
setSuperviseMobile
(
superviseInfo
!=
null
?
(
String
)
superviseInfo
[
1
]
:
null
);
//查询结算信息
//查询结算信息
Optional
<
SettlementOwnerDetail
>
optional
=
settlementOwnerDetailDao
.
getByChildNo
(
childNo
);
Optional
<
SettlementOwnerDetail
>
optional
=
settlementOwnerDetailDao
.
getByChildNo
(
childNo
);
...
@@ -1775,6 +1775,49 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -1775,6 +1775,49 @@ public class OrderChildServiceImpl implements OrderChildService {
return
result
;
return
result
;
}
}
/**
* 获取监装
* @param orderNo
* @param childNo
* @return
*/
private
Object
[]
getSuperviseInfo
(
String
orderNo
,
String
childNo
)
{
NeedAlertSuperviseInfoResultVO
result
=
new
NeedAlertSuperviseInfoResultVO
();
App
app
=
appConfig
.
getPurchaseManageApp
();
//对接马上来供应链配置信息
//组装配置信息
RequestConfig
config
=
new
RequestConfig
()
.
setAppId
(
app
.
getAppNo
())
.
setAppKey
(
app
.
getAppKey
())
.
setGatewayUrl
(
app
.
getCallback
());
//通过订单号查询监装监卸信息
SupplyChainSupervisionLoadAction
action
=
new
SupplyChainSupervisionLoadAction
();
action
.
setOrderNo
(
orderNo
);
action
.
setType
(
OrderChildEnum
.
SuperviseTypeEnum
.
SUPERVISE_LOAD
.
getCode
());
Result
<
SupervisionLoadInfoDto
>
supervisionLoadInfoDto
=
OpenClient
.
doAction
(
config
,
action
);
if
(!
supervisionLoadInfoDto
.
succeed
())
{
//接口调用失败
return
null
;
}
SupervisionLoadInfoDto
supervisionLoadInfo
=
supervisionLoadInfoDto
.
getData
();
//监装信息
if
(
Objects
.
nonNull
(
supervisionLoadInfo
))
{
//有监装信息
//通过运单号查询监装监卸子任务状态
SupplyChainSupervisionLoadTruckAction
truckAction
=
new
SupplyChainSupervisionLoadTruckAction
();
truckAction
.
setChildNo
(
childNo
);
truckAction
.
setType
(
OrderChildEnum
.
SuperviseTypeEnum
.
SUPERVISE_LOAD
.
getCode
());
Result
<
SupervisionLoadTruckInfoDto
>
supervisionLoadTruckInfoDto
=
OpenClient
.
doAction
(
config
,
truckAction
);
if
(!
supervisionLoadTruckInfoDto
.
succeed
())
{
//接口调用失败
return
null
;
}
SupervisionLoadTruckInfoDto
supervisionLoadTruckInfo
=
supervisionLoadTruckInfoDto
.
getData
();
if
(
Objects
.
nonNull
(
supervisionLoadTruckInfo
))
{
if
(
supervisionLoadTruckInfo
.
getLoadStatus
())
{
return
new
Object
[]{
supervisionLoadInfo
.
getTaskContracts
(),
supervisionLoadInfo
.
getTaskMobile
(),
supervisionLoadInfo
.
getTaskAddress
()};
}
}
}
return
null
;
}
//查看运单车辆是否开启了中交兴路
//查看运单车辆是否开启了中交兴路
public
String
isOpenZJXL
(
Integer
orderChildStatus
,
String
truckNo
){
public
String
isOpenZJXL
(
Integer
orderChildStatus
,
String
truckNo
){
if
(
orderChildStatus
<=
OrderChildEnum
.
Status
.
UNLOAD
.
getCode
()){
if
(
orderChildStatus
<=
OrderChildEnum
.
Status
.
UNLOAD
.
getCode
()){
...
@@ -3261,11 +3304,12 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -3261,11 +3304,12 @@ public class OrderChildServiceImpl implements OrderChildService {
if
(
Objects
.
equals
(
child
.
getStatus
(),
OrderChildEnum
.
Status
.
ARRIVE_SEND
.
getCode
()))
{
if
(
Objects
.
equals
(
child
.
getStatus
(),
OrderChildEnum
.
Status
.
ARRIVE_SEND
.
getCode
()))
{
sendLoadSms
(
child
.
getDriverMobile
(),
child
.
getTruckNo
(),
child
.
getChildNo
());
sendLoadSms
(
child
.
getDriverMobile
(),
child
.
getTruckNo
(),
child
.
getChildNo
());
}
}
// todo 监装位置
String
supervisionAddress
=
""
;
// 已装货
// 已装货
if
(
Objects
.
equals
(
child
.
getStatus
(),
OrderChildEnum
.
Status
.
LOAD
.
getCode
()))
{
if
(
Objects
.
equals
(
child
.
getStatus
(),
OrderChildEnum
.
Status
.
LOAD
.
getCode
()))
{
sendSupervisionSms
(
child
.
getDriverMobile
(),
child
.
getTruckNo
(),
child
.
getChildNo
(),
supervisionAddress
);
Object
[]
superviseInfo
=
getSuperviseInfo
(
child
.
getOrderNo
(),
child
.
getChildNo
());
if
(
superviseInfo
!=
null
)
{
sendSupervisionSms
(
child
.
getDriverMobile
(),
child
.
getTruckNo
(),
child
.
getChildNo
(),
(
String
)
superviseInfo
[
2
]);
}
}
}
// 修改 通知状态 为已通知
// 修改 通知状态 为已通知
child
.
setExitNoticeStatus
(
OrderChildEnum
.
ExitNoticeStatus
.
NOTIFIED
.
getCode
());
child
.
setExitNoticeStatus
(
OrderChildEnum
.
ExitNoticeStatus
.
NOTIFIED
.
getCode
());
...
@@ -3302,7 +3346,7 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -3302,7 +3346,7 @@ public class OrderChildServiceImpl implements OrderChildService {
AliSmsMessageReq
req
=
new
AliSmsMessageReq
();
AliSmsMessageReq
req
=
new
AliSmsMessageReq
();
// 模板CODE
// 模板CODE
//SMS_470795021
//SMS_470795021
req
.
setTemplateCode
(
messageConfig
.
getUploadLoadInfo
());
req
.
setTemplateCode
(
messageConfig
.
getUploadLoadInfo
TemplateCode
());
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
set
(
"truckNo"
,
truckNo
);
jsonObject
.
set
(
"truckNo"
,
truckNo
);
jsonObject
.
set
(
"childNo"
,
childNo
);
jsonObject
.
set
(
"childNo"
,
childNo
);
...
@@ -3330,7 +3374,7 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -3330,7 +3374,7 @@ public class OrderChildServiceImpl implements OrderChildService {
AliSmsMessageReq
req
=
new
AliSmsMessageReq
();
AliSmsMessageReq
req
=
new
AliSmsMessageReq
();
//模板CODE
//模板CODE
//SMS_470740013
//SMS_470740013
req
.
setTemplateCode
(
messageConfig
.
getNoticeSupervision
());
req
.
setTemplateCode
(
messageConfig
.
getNoticeSupervision
TemplateCode
());
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
set
(
"truckNo"
,
truckNo
);
jsonObject
.
set
(
"truckNo"
,
truckNo
);
jsonObject
.
set
(
"childNo"
,
childNo
);
jsonObject
.
set
(
"childNo"
,
childNo
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论