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
fbd88a3f
Commit
fbd88a3f
authored
Aug 27, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '_dev_yh' into dev
parents
d1e74ee7
b0ff6c5f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
33 deletions
+48
-33
20240826.sql
sql/v2.1/20240826.sql
+11
-0
CustomerMapper.java
...ao/module/customer/dal/mysql/customer/CustomerMapper.java
+2
-2
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+35
-31
No files found.
sql/v2.1/20240826.sql
0 → 100644
View file @
fbd88a3f
-- 添加新字段
alter
table
`ecw_customer`
add
column
`no_consignee`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'控货无收货人'
;
alter
table
`ecw_customer`
add
column
`default_pay`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否默认付款'
;
-- 添加新字段
alter
table
`ecw_warehouse`
add
column
`rent_free_days`
int
DEFAULT
NULL
COMMENT
'仓库免租期'
;
alter
table
`ecw_warehouse`
add
column
`lock_recipient_days`
int
DEFAULT
NULL
COMMENT
'锁定收货人天数'
;
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/mysql/customer/CustomerMapper.java
View file @
fbd88a3f
...
...
@@ -98,8 +98,8 @@ public interface CustomerMapper extends BaseMapperX<CustomerDO> {
"left join ecw_country country on c.country = country.id"
,
"left join ecw_product_type pt on c.product_type = pt.id"
,
"left join system_user u on c.customer_service = u.id"
,
"left join system_user uc on c.creator = u.id"
,
"left join system_user uu on c.updater = u.id"
,
"left join system_user uc on c.creator = u
c
.id"
,
"left join system_user uu on c.updater = u
u
.id"
,
"where c.id = #{id}"
,
"</script>"
})
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
fbd88a3f
...
...
@@ -2272,24 +2272,12 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
String
consignorPhone
=
orderConsignorDO
.
getPhone
();
Long
consignorCustomerId
=
orderConsignorDO
.
getCustomerId
();
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
())
.
orderByDesc
(
OrderConsigneeDO:
:
getId
)
.
last
(
"limit 1"
));
// 收货人 短信发送信息
String
consigneeCountryCode
=
orderConsigneeDO
.
getCountryCode
();
String
consigneePhone
=
orderConsigneeDO
.
getPhone
();
Long
consigneeCustomerId
=
orderConsigneeDO
.
getCustomerId
();
// 查询仓库
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
orderDO
.
getLineId
());
String
consignorStartWarehouseName
=
consignorCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getStartTitleZh
()
:
logisticsInfoDto
.
getStartTitleEn
();
String
consignorDestWearehouseName
=
consignorCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getDestTitleZh
()
:
logisticsInfoDto
.
getDestTitleEn
();
String
consigneeStartWarehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getStartTitleZh
()
:
logisticsInfoDto
.
getStartTitleEn
();
String
consigneeDestWearehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getDestTitleZh
()
:
logisticsInfoDto
.
getDestTitleEn
();
DateTime
ruchang
=
DateTime
.
of
(
orderDO
.
getRucangTime
());
// 追加短信
...
...
@@ -2396,22 +2384,8 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
consignorParamMap
.
put
(
"cmb"
,
chargeVolume
);
consignorParamMap
.
put
(
"kg"
,
chargeWeight
);
Map
<
String
,
Object
>
consigneeParamMap
=
new
HashMap
<>();
if
(!
StringUtils
.
equals
(
consignorCountryCode
.
concat
(
consignorPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
consigneeParamMap
.
put
(
"date"
,
DateUtils
.
formatDateTime
(
orderDO
.
getRucangTime
()));
consigneeParamMap
.
put
(
"cnts"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"warehouse"
,
consigneeStartWarehouseName
);
// 入仓名
consigneeParamMap
.
put
(
"year"
,
ruchang
.
year
());
consigneeParamMap
.
put
(
"month"
,
ruchang
.
month
()
+
1
);
consigneeParamMap
.
put
(
"day"
,
ruchang
.
dayOfMonth
());
consigneeParamMap
.
put
(
"order"
,
orderDO
.
getOrderNo
());
// orderNo
consigneeParamMap
.
put
(
"branch"
,
consigneeDestWearehouseName
);
// 提货点
consigneeParamMap
.
put
(
"box"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"marks"
,
marks
);
consigneeParamMap
.
put
(
"cmb"
,
chargeVolume
);
consigneeParamMap
.
put
(
"kg"
,
chargeWeight
);
}
if
(
orderDO
.
getIsCollection
())
{
Map
<
Integer
,
CurrencyRespDTO
>
currencyRespDTOMap
=
currencyApi
.
getAllCurrency
();
...
...
@@ -2430,9 +2404,39 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
}
// 给发货人发送短信
this
.
smsSendNotice
(
consignorCountryCode
,
consignorPhone
,
consignorCustomerId
,
templateCode
,
consignorParamMap
);
if
(!
StringUtils
.
equals
(
consignorCountryCode
.
concat
(
consignorPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
// 给收货人发送短信
this
.
smsSendNotice
(
consigneeCountryCode
,
consigneePhone
,
consigneeCustomerId
,
templateCode
,
consigneeParamMap
);
// 收货人 短信发送信息
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
())
.
orderByDesc
(
OrderConsigneeDO:
:
getId
)
.
last
(
"limit 1"
));
if
(
orderConsigneeDO
!=
null
)
{
String
consigneeCountryCode
=
orderConsigneeDO
.
getCountryCode
();
String
consigneePhone
=
orderConsigneeDO
.
getPhone
();
Long
consigneeCustomerId
=
orderConsigneeDO
.
getCustomerId
();
String
consigneeStartWarehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getStartTitleZh
()
:
logisticsInfoDto
.
getStartTitleEn
();
String
consigneeDestWearehouseName
=
consigneeCountryCode
.
equals
(
"86"
)
?
logisticsInfoDto
.
getDestTitleZh
()
:
logisticsInfoDto
.
getDestTitleEn
();
if
(!
StringUtils
.
equals
(
consignorCountryCode
.
concat
(
consignorPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
consigneeParamMap
.
put
(
"date"
,
DateUtils
.
formatDateTime
(
orderDO
.
getRucangTime
()));
consigneeParamMap
.
put
(
"cnts"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"warehouse"
,
consigneeStartWarehouseName
);
// 入仓名
consigneeParamMap
.
put
(
"year"
,
ruchang
.
year
());
consigneeParamMap
.
put
(
"month"
,
ruchang
.
month
()
+
1
);
consigneeParamMap
.
put
(
"day"
,
ruchang
.
dayOfMonth
());
consigneeParamMap
.
put
(
"order"
,
orderDO
.
getOrderNo
());
// orderNo
consigneeParamMap
.
put
(
"branch"
,
consigneeDestWearehouseName
);
// 提货点
consigneeParamMap
.
put
(
"box"
,
orderDO
.
getSumNum
());
// 多少箱
consigneeParamMap
.
put
(
"marks"
,
marks
);
consigneeParamMap
.
put
(
"cmb"
,
chargeVolume
);
consigneeParamMap
.
put
(
"kg"
,
chargeWeight
);
}
if
(!
StringUtils
.
equals
(
consignorCountryCode
.
concat
(
consignorPhone
),
consigneeCountryCode
.
concat
(
consigneePhone
)))
{
// 给收货人发送短信
this
.
smsSendNotice
(
consigneeCountryCode
,
consigneePhone
,
consigneeCustomerId
,
templateCode
,
consigneeParamMap
);
}
}
}
...
...
@@ -2482,7 +2486,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
// 收货人
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
())
.
orderByDesc
(
OrderConsigneeDO:
:
getId
).
last
(
"limit 1"
));
if
(
orderConsigneeDO
.
getCustomerId
()
!=
null
)
{
if
(
orderConsigneeDO
!=
null
&&
orderConsigneeDO
.
getCustomerId
()
!=
null
)
{
Long
consigneeUserId
=
getUserId
(
orderConsigneeDO
.
getCustomerId
());
if
(
consigneeUserId
!=
null
)
{
internalMsgUserIdSet
.
add
(
consigneeUserId
);
...
...
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