|
|
@@ -15,6 +15,7 @@ import com.yc.ship.framework.excel.core.annotations.DictFormat;
|
|
|
import com.yc.ship.framework.excel.core.util.ExcelUtils;
|
|
|
import com.yc.ship.framework.ip.core.utils.AreaUtils;
|
|
|
import com.yc.ship.framework.operatelog.core.annotations.OperateLog;
|
|
|
+import com.yc.ship.framework.security.core.LoginUser;
|
|
|
import com.yc.ship.module.product.api.dto.CategoryRespDTO;
|
|
|
import com.yc.ship.module.product.api.dto.ProductSpuRespDTO;
|
|
|
import com.yc.ship.module.product.controller.admin.voyage.vo.VoyageRespVO;
|
|
|
@@ -137,6 +138,18 @@ public class OtcTradeOrderController {
|
|
|
return otcTradeOrderService.getOrderById(orderId);
|
|
|
}
|
|
|
|
|
|
+ @RequestDecryption
|
|
|
+ @GetMapping("/travl/getRole")
|
|
|
+ @Operation(summary = "win-旅行社游船订单获取")
|
|
|
+ @OperateLog(type = TRADE)
|
|
|
+ public CommonResult<?> getRole() {
|
|
|
+ LoginUser agencyLoginUser = agencyAuthUtils.getAgencyLoginUser();
|
|
|
+ if (agencyLoginUser!= null && agencyLoginUser.getDistributorId() != null) {
|
|
|
+ return success(1);
|
|
|
+ }
|
|
|
+ return success(2);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@RequestDecryption
|
|
|
@PostMapping("/travl/motifyOtcOrder")
|