Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
ddce604f
Commit
ddce604f
authored
Aug 28, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-make-bill-of-lading' into dev
parents
2004daef
eee2b3f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
OrderExceptionServiceImpl.java
...der/service/orderException/OrderExceptionServiceImpl.java
+7
-1
MakeBillOfLadingServiceImpl.java
...service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
+37
-2
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderException/OrderExceptionServiceImpl.java
View file @
ddce604f
...
...
@@ -1465,7 +1465,13 @@ public class OrderExceptionServiceImpl extends AbstractService<OrderExceptionMap
private
void
sendRucangSmsAfterAllExceptionProcessed
(
OrderExceptionDO
orderExceptionDO
,
long
count
)
{
ArrayList
<
String
>
orderWarhouseInExceptionList
=
CollectionUtil
.
newArrayList
(
OrderExceptionEnum
.
ORDER_OTHER_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_SUPERFLUOUS_BOX_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_LACK_BOX_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_HEAVY_CARGO_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_BULKY_CARGO_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_DOC_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_CONSIGNOR_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_NO_QUOTE_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_PAY_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
NOT_CUSTOMER_SERVICE_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
GOODS_ADD_EXCEPTION
.
getKey
());
ArrayList
<
String
>
orderWarhouseInExceptionList
=
CollectionUtil
.
newArrayList
(
OrderExceptionEnum
.
ORDER_OTHER_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_SUPERFLUOUS_BOX_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_LACK_BOX_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_HEAVY_CARGO_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_BULKY_CARGO_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_DOC_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_CONSIGNOR_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_NO_QUOTE_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
ORDER_PAY_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
NOT_CUSTOMER_SERVICE_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
GOODS_ADD_EXCEPTION
.
getKey
(),
OrderExceptionEnum
.
FEE_EXCEPTION
.
getKey
());
//当异常已处理完,且刚才处理的是入仓产生的异常时 且未发送过入仓短信的 就需要发入仓短信了
if
(
orderWarhouseInExceptionList
.
stream
().
anyMatch
(
t
->
t
.
equals
(
orderExceptionDO
.
getOrderExceptionType
())))
{
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
View file @
ddce604f
...
...
@@ -291,10 +291,16 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
return
makeBillOfLading
.
getId
();
}
@SneakyThrows
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateMakeBillOfLading
(
MakeBillOfLadingUpdateReqVO
updateReqVO
)
{
// 校验存在
this
.
validateMakeBillOfLadingExists
(
updateReqVO
.
getId
());
MakeBillOfLadingDO
makeBillOfLading
=
makeBillOfLadingMapper
.
selectById
(
updateReqVO
.
getId
());
if
(
makeBillOfLading
==
null
)
{
throw
exception
(
MAKE_BILL_OF_LADING_NOT_EXISTS
);
}
// 更新
MakeBillOfLadingDO
updateObj
=
MakeBillOfLadingConvert
.
INSTANCE
.
convert
(
updateReqVO
);
...
...
@@ -302,9 +308,38 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
updateObj
.
setStatus
(
2
);
//end 提单直接审批通过
makeBillOfLadingMapper
.
updateById
(
updateObj
);
OrderBackVO
order
=
orderQueryService
.
getOrder
(
Long
.
valueOf
(
makeBillOfLadingMapper
.
selectById
(
updateReqVO
.
getId
()).
getOrderId
()));
OrderDO
order
=
orderQueryService
.
getOrderById
(
Long
.
valueOf
(
makeBillOfLading
.
getOrderId
()));
OrderObjectiveDO
orderObjectiveDO
=
orderObjectiveService
.
getByOrderId
(
order
.
getOrderId
());
//得到订单目的仓
String
destStr
=
""
;
if
(
null
!=
orderObjectiveDO
&&
null
!=
orderObjectiveDO
.
getObjectiveWarehouseId
())
{
WarehouseDO
warehouseDO
=
warehouseService
.
getWarehouse
(
orderObjectiveDO
.
getObjectiveWarehouseId
());
destStr
=
warehouseDO
.
getTitleEn
();
}
if
(
StrUtil
.
isBlank
(
order
.
getContainerNumber
()))
{
throw
exception
(
MAKE_BILL_OF_SELF_NULL
);
}
if
(
StrUtil
.
isBlank
(
order
.
getTidanNo
()))
{
throw
exception
(
MAKE_BILL_OF_ORDER_NULL
);
}
FileClient
masterFileClient
=
fileConfigService
.
getMasterFileClient
();
String
domain
=
masterFileClient
.
getDomain
();
//创建空运的PDF提单
String
pdfFileName
=
"/admin/shipment/"
+
StrUtil
.
blankToDefault
(
order
.
getContainerNumber
(),
""
)
+
"/pdf/"
+
StrUtil
.
blankToDefault
(
order
.
getTidanNo
(),
""
)
+
" "
+
StrUtil
.
blankToDefault
(
order
.
getMarks
(),
""
)
+
" "
+
StrUtil
.
blankToDefault
(
destStr
,
""
)
+
".pdf"
;
String
pdfUrl
=
domain
+
pdfFileName
;
String
pdfPath
=
prePath
+
pdfFileName
;
try
{
AirHtmlToPdfUtil
.
convertHtmlToPdf
(
updateObj
.
getBillContent
(),
pdfPath
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
//设置生成的PDF路径
updateObj
.
setImgUrl
(
pdfUrl
);
/*
String bpmProcessId =
bpmCreateServiceFactory.createBmp(SecurityFrameworkUtils.getLoginUserId(),
...
...
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