From 0e6be9f75b84ebdf6ed3943853d514966134da34 Mon Sep 17 00:00:00 2001
From: 18516761980 <tqsxp@163.com>
Date: 星期五, 23 九月 2022 14:05:13 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/controller/MobileController.java | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index 0b1729b..08ee0f9 100644
--- a/src/main/java/com/zy/asrs/controller/MobileController.java
+++ b/src/main/java/com/zy/asrs/controller/MobileController.java
@@ -1,26 +1,35 @@
package com.zy.asrs.controller;
+import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
+import com.core.annotations.AppAuth;
import com.core.annotations.ManagerAuth;
import com.core.common.BaseRes;
import com.core.common.Cools;
+import com.core.common.DateUtils;
import com.core.common.R;
import com.core.exception.CoolException;
import com.zy.asrs.entity.*;
import com.zy.asrs.entity.param.CombParam;
import com.zy.asrs.entity.param.MobileAdjustParam;
+import com.zy.asrs.entity.param.Review;
import com.zy.asrs.entity.result.MobileAdjustResult;
import com.zy.asrs.service.*;
+import com.zy.asrs.task.handler.WorkLogHandler;
+import com.zy.common.constant.MesConstant;
import com.zy.common.model.LocDto;
import com.zy.common.model.TaskDto;
import com.zy.common.model.WrkDto;
+import com.zy.common.utils.HttpHandler;
import com.zy.common.web.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
+import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
import java.util.*;
/**
@@ -51,6 +60,16 @@
private BasDevpService basDevpService;
@Autowired
private PackService packService;
+
+
+ // 鍟嗗搧涓婃灦
+ @RequestMapping("/mat/onSale/auth")
+ //@ManagerAuth
+ public R matOnSale(@RequestBody CombParam combParam){
+ mobileService.onSale(combParam);
+ return R.ok("涓婃灦鎴愬姛");
+ }
+ // 鍟嗗搧涓嬫灦
// 缁勬墭 ----------------------------------------------------------------------------------------------------
@@ -308,4 +327,24 @@
return R.ok("鍑哄簱鎴愬姛");
}
+
+ /*...........................璧e窞鏂板..............浠ヤ笅.............璧e窞鏂板...........................*/
+ @PostMapping("/test/startUp/auth")
+ @ManagerAuth(memo = "鐢宠PACK娴嬭瘯")
+ public synchronized R startUpTestPACK(@RequestBody TestMast testMast) {
+ if (Cools.isEmpty(testMast)) {
+ return R.parse(BaseRes.PARAM);
+ }
+ mobileService.startUpTestPACK(testMast); //鎻愪氦娴嬭瘯绯荤粺
+ return R.ok();
+ }
+ @PostMapping("/test/suspend/auth")
+// @ManagerAuth(memo = "鏆傚仠娴嬭瘯")
+ public synchronized R suspendTestPACK() {
+ mobileService.suspendTestPACK(); //璇锋眰鏆傚仠娴嬭瘯
+ return R.ok();
+ }
+ /*...........................璧e窞鏂板..............浠ヤ笂.............璧e窞鏂板...........................*/
+
+
}
--
Gitblit v1.9.1