update:调整异步策略,bug
This commit is contained in:
parent
9a8decd608
commit
01e68a051d
|
@ -23,9 +23,9 @@ import cn.iocoder.yudao.module.haoka.service.product.ProductLimitService;
|
|||
import cn.iocoder.yudao.module.haoka.service.smstask.SmsTaskService;
|
||||
import cn.iocoder.yudao.module.haoka.utils.IdCardAgeCalculator;
|
||||
import cn.iocoder.yudao.module.haoka.utils.SnowflakeId;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.doudian.open.api.order_addOrderRemark.param.OrderAddOrderRemarkParam;
|
||||
import com.doudian.open.utils.JsonUtil;
|
||||
import com.google.common.collect.Lists;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -35,8 +35,6 @@ import org.springframework.scheduling.annotation.Async;
|
|||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.support.TransactionSynchronizationAdapter;
|
||||
import org.springframework.transaction.support.TransactionSynchronizationManager;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import cn.iocoder.yudao.module.haoka.controller.admin.orders.vo.*;
|
||||
|
@ -427,7 +425,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
|
||||
@Override
|
||||
public void auditOrders(OrdersSaveReqVO updateReqVO) {
|
||||
log.error("【审核订单开始】,订单数据{}", JsonUtil.toJson(updateReqVO));
|
||||
log.error("【审核订单开始】,订单数据{}", JSON.toJSONString(updateReqVO));
|
||||
// 校验存在
|
||||
OrdersDO ordersOld = validateOrdersExists(updateReqVO.getId());
|
||||
// 校验是否可以审核
|
||||
|
@ -453,13 +451,13 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
logSaveReqVO.setMsg("已自动提交到上游");
|
||||
logSaveReqVO.setMsgType("0");
|
||||
logSaveReqVO.setMsgSource("1");
|
||||
log.error("【审核订单自动生产】,操作日志数据:{}",JsonUtil.toJson(logSaveReqVO));
|
||||
log.error("【审核订单自动生产】,操作日志数据:{}",JSON.toJSONString(logSaveReqVO));
|
||||
orderOperateLogService.createOrderOperateLog(logSaveReqVO);
|
||||
log.error("【审核订单自动提交上游】,订单数据:{}",JsonUtil.toJson(updateObj));
|
||||
log.error("【审核订单自动提交上游】,订单数据:{}",JSON.toJSONString(updateObj));
|
||||
createOrderToOperators(updateObj);
|
||||
} else {
|
||||
// 手动生产
|
||||
log.error("【审核订单手动】,订单数据:{}",JsonUtil.toJson(updateObj));
|
||||
log.error("【审核订单手动】,订单数据:{}",JSON.toJSONString(updateObj));
|
||||
updateObj.setStatus(450L);
|
||||
this.updateOrderById(updateObj);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue