|
|
@@ -1,6 +1,9 @@
|
|
|
package com.sqx.modules.order.controller.app;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.app.annotation.Login;
|
|
|
import com.sqx.modules.order.entity.Evaluate;
|
|
|
@@ -11,8 +14,10 @@ import com.sqx.modules.pay.dto.PayOrderDTO;
|
|
|
import com.sqx.modules.pay.vo.PayTransactionsVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.models.auth.In;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
@@ -273,4 +278,16 @@ public class AppOrderController {
|
|
|
PayTransactionsVO payParamVO = appOrderService.getTransactionsParam(userId, payOrderDTO);
|
|
|
return Result.success(BeanUtil.beanToMap(payParamVO, false, true));
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/getTemplateMessage")
|
|
|
+ @ApiOperation("无人机通过订单id找到订单")
|
|
|
+ public Result getTemplateMessage(String orderId) {
|
|
|
+ TbOrder byId = appOrderService.getTemplateMessage(orderId);
|
|
|
+ if (ObjectUtils.isNotEmpty(byId)) {
|
|
|
+ return Result.success(BeanUtil.beanToMap(byId));
|
|
|
+ }else {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|