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
7485fdb0
Commit
7485fdb0
authored
Nov 23, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整测试短信节点
parent
786d9819
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
13 deletions
+14
-13
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+2
-2
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+4
-4
BoxServiceImpl.java
...der/yudao/module/shipment/service/box/BoxServiceImpl.java
+1
-1
SmsIsTransportEnum.java
...der/yudao/module/system/enums/sms/SmsIsTransportEnum.java
+2
-2
SmsNodeController.java
...module/system/controller/admin/sms/SmsNodeController.java
+2
-2
SmsReceiveJob.java
...cn/iocoder/yudao/module/system/job/sms/SmsReceiveJob.java
+3
-2
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
7485fdb0
...
...
@@ -1245,7 +1245,7 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
reqDTO
.
setMobile
(
consignorPhone
);
reqDTO
.
setUserId
(
consignorCustomerId
);
reqDTO
.
setNodeValue
(
nodeValue
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_0
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_0
.
getValue
());
reqDTO
.
setTransportId
(
TransportTypeEnum
.
OTHER
.
getValue
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
@@ -1265,7 +1265,7 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
reqDTO
.
setMobile
(
consigneePhone
);
reqDTO
.
setUserId
(
consigneeCustomerId
);
reqDTO
.
setNodeValue
(
nodeValue
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_0
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_0
.
getValue
());
reqDTO
.
setTransportId
(
TransportTypeEnum
.
OTHER
.
getValue
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
7485fdb0
...
...
@@ -2351,7 +2351,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
reqDTO
.
setUserId
(
consignorCustomerId
);
reqDTO
.
setMobile
(
consignorPhone
);
reqDTO
.
setAreaCode
(
consignorCountryCode
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_1
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_1
.
getValue
());
reqDTO
.
setTransportId
(
orderDO
.
getTransportId
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
@@ -2408,7 +2408,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
reqDTO
.
setUserId
(
cargoControlCustomerId
);
reqDTO
.
setMobile
(
cargoControlPhone
);
reqDTO
.
setAreaCode
(
cargoControlCode
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_1
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_1
.
getValue
());
reqDTO
.
setTransportId
(
orderDO
.
getTransportId
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
@@ -2455,7 +2455,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
reqDTO
.
setUserId
(
consignorCustomerId
);
reqDTO
.
setMobile
(
consignorPhone
);
reqDTO
.
setAreaCode
(
consignorCountryCode
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_1
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_1
.
getValue
());
reqDTO
.
setTransportId
(
orderDO
.
getTransportId
());
reqDTO
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
@@ -2497,7 +2497,7 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
reqDTO2
.
setUserId
(
consigneeCustomerId
);
reqDTO2
.
setMobile
(
consigneePhone
);
reqDTO2
.
setAreaCode
(
consigneeCountryCode
);
reqDTO2
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_1
.
getValue
());
reqDTO2
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_1
.
getValue
());
reqDTO2
.
setTransportId
(
orderDO
.
getTransportId
());
reqDTO2
.
setIsOrders
(
SmsIsOrdersEnum
.
SMS_ORDERS_0
.
getValue
());
reqDTO2
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/box/BoxServiceImpl.java
View file @
7485fdb0
...
...
@@ -1763,7 +1763,7 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
reqDTO
.
setUserId
(
0L
);
reqDTO
.
setMobile
(
phone
);
reqDTO
.
setAreaCode
(
areaCode
);
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
ORDERS
_1
.
getValue
());
reqDTO
.
setIsTransport
(
SmsIsTransportEnum
.
SMS_
IS_TRANSPORT
_1
.
getValue
());
reqDTO
.
setTransportId
(
Integer
.
valueOf
(
boxDO
.
getTransportType
()));
reqDTO
.
setIsOrders
(
isOrders
);
reqDTO
.
setMessageType
(
SmsMessageTypeEnum
.
SMS_MESSAGE_TYPE_1
.
getValue
());
...
...
yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/enums/sms/SmsIsTransportEnum.java
View file @
7485fdb0
...
...
@@ -12,8 +12,8 @@ import lombok.Getter;
@AllArgsConstructor
public
enum
SmsIsTransportEnum
{
SMS_
ORDERS
_0
(
"否"
,
0
),
SMS_
ORDERS
_1
(
"是"
,
1
);
SMS_
IS_TRANSPORT
_0
(
"否"
,
0
),
SMS_
IS_TRANSPORT
_1
(
"是"
,
1
);
private
final
String
name
;
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsNodeController.java
View file @
7485fdb0
...
...
@@ -102,9 +102,9 @@ public class SmsNodeController {
ExcelUtils
.
write
(
response
,
"短信节点.xls"
,
"数据"
,
SmsNodeBackVO
.
class
,
datas
);
}
@
Ge
tMapping
(
"/test"
)
@
Pos
tMapping
(
"/test"
)
@ApiOperation
(
"测试短信节点"
)
public
CommonResult
<
Boolean
>
test
(
@Valid
SmsNodeTestVO
smsNodeTestVO
)
{
public
CommonResult
<
Boolean
>
test
(
@Valid
@RequestBody
SmsNodeTestVO
smsNodeTestVO
)
{
smsSendService
.
sendSingleSmsV2
(
smsNodeTestVO
.
getMobile
(),
SecurityFrameworkUtils
.
getLoginUserId
(),
UserTypeEnum
.
ADMIN
.
getValue
(),
smsNodeTestVO
.
getNodeValue
(),
smsNodeTestVO
.
getCountryCode
(),
smsNodeTestVO
.
getIsOrders
(),
smsNodeTestVO
.
getIsTransport
(),
smsNodeTestVO
.
getTransportId
(),
smsNodeTestVO
.
getMessageType
(),
smsNodeTestVO
.
getTemplateParams
(),
null
,
smsNodeTestVO
.
getNodeTemplateSn
());
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/job/sms/SmsReceiveJob.java
View file @
7485fdb0
...
...
@@ -4,9 +4,10 @@ import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import
cn.iocoder.yudao.module.system.service.sms.SmsNodeService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.Resource
;
/**
* 短信接收 Job
...
...
@@ -18,7 +19,7 @@ import org.springframework.stereotype.Component;
@Slf4j
public
class
SmsReceiveJob
implements
JobHandler
{
@
Autowired
@
Resource
private
SmsNodeService
smsNodeService
;
@Override
public
String
execute
(
String
time
)
{
...
...
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