|
@@ -1,11 +1,14 @@
|
|
|
package com.fs.web.controller.system;
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
|
import com.fs.common.constant.UserConstants;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
+import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.core.security.SecurityUtils;
|
|
@@ -29,7 +32,8 @@ public class SysConfigController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private ISysConfigService configService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private RedisCache redisCache;
|
|
|
/**
|
|
|
* 获取参数配置列表
|
|
|
*/
|
|
@@ -144,4 +148,27 @@ public class SysConfigController extends BaseController
|
|
|
configService.clearCache();
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 启用-关闭小程序销售管理
|
|
|
+ * @param bock
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/updateIsTownOn")
|
|
|
+ public R queryIsTownOn(String bock, String appId)
|
|
|
+ {
|
|
|
+ String key = appId+"start_status_001";
|
|
|
+ String start = redisCache.getCacheObject(key);
|
|
|
+ if (ObjectUtil.isNotEmpty(bock)){
|
|
|
+ if (bock.equals("001")){
|
|
|
+ redisCache.setCacheObject(key,bock);
|
|
|
+ return R.ok("调整成功");
|
|
|
+ }else if (bock.equals("002")){
|
|
|
+ redisCache.setCacheObject(key,bock);
|
|
|
+ return R.ok("调整成功");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ return R.ok().put("date",start);
|
|
|
+ }
|
|
|
}
|