Commit 4a789eda authored by Smile's avatar Smile

Merge remote-tracking branch 'origin/jd_dev' into jd_dev

parents 479e9f97 721443f8
...@@ -4,7 +4,6 @@ import cn.iocoder.yudao.framework.http.core.Request; ...@@ -4,7 +4,6 @@ import cn.iocoder.yudao.framework.http.core.Request;
import cn.iocoder.yudao.framework.http.core.Response; import cn.iocoder.yudao.framework.http.core.Response;
import cn.iocoder.yudao.framework.http.util.HttpUtils; import cn.iocoder.yudao.framework.http.util.HttpUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -46,7 +45,6 @@ public class BulksmsHttp { ...@@ -46,7 +45,6 @@ public class BulksmsHttp {
* @param password 密码 * @param password 密码
* @return 参数映射 * @return 参数映射
*/ */
@NotNull
public Map<String, Object> setParams(String mobiles, String message, String senderName, String username, String password) { public Map<String, Object> setParams(String mobiles, String message, String senderName, String username, String password) {
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("username", username); param.put("username", username);
......
...@@ -52,7 +52,6 @@ public class SendChampHttp { ...@@ -52,7 +52,6 @@ public class SendChampHttp {
* @param apiKey SendChamp API密钥 * @param apiKey SendChamp API密钥
* @return 返回构造好的请求头Map对象 * @return 返回构造好的请求头Map对象
*/ */
@NotNull
public Map<String, String> setHeader(String apiKey) { public Map<String, String> setHeader(String apiKey) {
Map<String, String> header = new HashMap<>(); Map<String, String> header = new HashMap<>();
header.put("Accept", "application/json,text/plain,*/*"); header.put("Accept", "application/json,text/plain,*/*");
......
...@@ -581,7 +581,7 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl ...@@ -581,7 +581,7 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl
if (result == ApprovalResultStatusEnum.reject.getValue()) { if (result == ApprovalResultStatusEnum.reject.getValue()) {
LambdaUpdateWrapper<OrderFeeApplicationDO> lambdaUpdateWrapper = new LambdaUpdateWrapper(); LambdaUpdateWrapper<OrderFeeApplicationDO> lambdaUpdateWrapper = new LambdaUpdateWrapper();
lambdaUpdateWrapper.eq(OrderFeeApplicationDO::getOrderId, orderApprovalDO.getOrderId()); lambdaUpdateWrapper.eq(OrderFeeApplicationDO::getOrderId, orderApprovalDO.getOrderId());
lambdaUpdateWrapper.eq(OrderFeeApplicationDO::getBatchBpmBusinessId, orderApprovalDO.getOrderApprovalId()); lambdaUpdateWrapper.eq(OrderFeeApplicationDO::getBatchBpmBusinessId, orderApprovalDO.getFormId());
lambdaUpdateWrapper.set(OrderFeeApplicationDO::getStatus, ApprovalResultStatusEnum.reject.getValue()); lambdaUpdateWrapper.set(OrderFeeApplicationDO::getStatus, ApprovalResultStatusEnum.reject.getValue());
this.update(lambdaUpdateWrapper); this.update(lambdaUpdateWrapper);
orderService.updateStatus(orderApprovalDO.getOrderId(), null, null, null, null, null, 0, OrderApprovalTypeResultEnum.expense_apply_reject.getDesc()); orderService.updateStatus(orderApprovalDO.getOrderId(), null, null, null, null, null, 0, OrderApprovalTypeResultEnum.expense_apply_reject.getDesc());
...@@ -590,7 +590,7 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl ...@@ -590,7 +590,7 @@ public class OrderFeeApplicationServiceImpl extends AbstractService<OrderFeeAppl
if (result == ApprovalResultStatusEnum.cancel.getValue()) { if (result == ApprovalResultStatusEnum.cancel.getValue()) {
LambdaQueryWrapper<OrderFeeApplicationDO> lambdaQueryWrapper = new LambdaQueryWrapper(); LambdaQueryWrapper<OrderFeeApplicationDO> lambdaQueryWrapper = new LambdaQueryWrapper();
lambdaQueryWrapper.eq(OrderFeeApplicationDO::getOrderId, orderApprovalDO.getOrderId()); lambdaQueryWrapper.eq(OrderFeeApplicationDO::getOrderId, orderApprovalDO.getOrderId());
lambdaQueryWrapper.eq(OrderFeeApplicationDO::getBatchBpmBusinessId, orderApprovalDO.getOrderApprovalId()); lambdaQueryWrapper.eq(OrderFeeApplicationDO::getBatchBpmBusinessId, orderApprovalDO.getFormId());
this.remove(lambdaQueryWrapper); this.remove(lambdaQueryWrapper);
orderService.updateStatus(orderApprovalDO.getOrderId(), null, null, null, null, null, 0, OrderApprovalTypeResultEnum.expense_apply_cancel.getDesc()); orderService.updateStatus(orderApprovalDO.getOrderId(), null, null, null, null, null, 0, OrderApprovalTypeResultEnum.expense_apply_cancel.getDesc());
} }
......
...@@ -57,7 +57,7 @@ public interface BoxApprovalMapper extends AbstractMapper<BoxApprovalDO> { ...@@ -57,7 +57,7 @@ public interface BoxApprovalMapper extends AbstractMapper<BoxApprovalDO> {
"from ecw_box_approval a", "from ecw_box_approval a",
"where ", "where ",
"a.shipment_id = #{shipmentId}", "a.shipment_id = #{shipmentId}",
"a.status = 0", "and a.approval_status = 0",
"and (a.order_id is null or (a.order_id is not null and a.order_id = #{orderId}) )", "and (a.order_id is null or (a.order_id is not null and a.order_id = #{orderId}) )",
"order by a.id desc", "order by a.id desc",
"</script>" "</script>"
......
...@@ -387,10 +387,9 @@ public class SmsSendServiceImpl implements SmsSendService { ...@@ -387,10 +387,9 @@ public class SmsSendServiceImpl implements SmsSendService {
throw exception(SMS_CHANNEL_NOT_EXISTS); throw exception(SMS_CHANNEL_NOT_EXISTS);
} }
//根据debug配置决定是否发送短信 //根据debug配置决定是否发送短信
// if ((Objects.isNull(businessProperties) || !businessProperties.isDebug()) && smsChannel.getStatus() == 0) { if ((Objects.isNull(businessProperties) || !businessProperties.isDebug()) && smsChannel.getStatus() == 0) {
// smsProducer.sendSmsSendMessageV2(smsSendMessage);
// }
smsProducer.sendSmsSendMessageV2(smsSendMessage); smsProducer.sendSmsSendMessageV2(smsSendMessage);
}
return sendLogId; return sendLogId;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment