删除:CmsOrder、CmsProduct系列、CmsComponents等模块

This commit is contained in:
2025-08-06 13:39:49 +08:00
parent 013916230e
commit 9695dc69b2
83 changed files with 32 additions and 5574 deletions

View File

@@ -1,7 +1,7 @@
# 服务器URL配置重构总结 # 服务器URL配置重构总结
## 概述 ## 概述
将项目中硬编码的服务器地址 `https://server.gxwebsoft.com/api` 改为从配置文件读取,提高了代码的可维护性和灵活性。 将项目中硬编码的服务器地址 `https://server.websoft.top/api` 改为从配置文件读取,提高了代码的可维护性和灵活性。
## 修改的文件 ## 修改的文件
@@ -31,7 +31,7 @@
**文件路径**: `src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java` **文件路径**: `src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java`
**修改内容**: **修改内容**:
- 将硬编码的URL `"https://server.gxwebsoft.com/api/auth/user"` - 将硬编码的URL `"https://server.websoft.top/api/auth/user"`
- 改为 `configProperties.getServerUrl() + "/auth/user"` - 改为 `configProperties.getServerUrl() + "/auth/user"`
### 3. OaAppController.java ### 3. OaAppController.java
@@ -39,21 +39,21 @@
**修改内容**: **修改内容**:
- 添加了 `ConfigProperties` 依赖注入 - 添加了 `ConfigProperties` 依赖注入
- 将硬编码的URL `"https://server.gxwebsoft.com/api/file/page"` - 将硬编码的URL `"https://server.websoft.top/api/file/page"`
- 改为 `configProperties.getServerUrl() + "/file/page"` - 改为 `configProperties.getServerUrl() + "/file/page"`
### 4. SwaggerConfig.java ### 4. SwaggerConfig.java
**文件路径**: `src/main/java/com/gxwebsoft/common/core/config/SwaggerConfig.java` **文件路径**: `src/main/java/com/gxwebsoft/common/core/config/SwaggerConfig.java`
**修改内容**: **修改内容**:
- 将硬编码的URL `"https://server.gxwebsoft.com/api/system"` - 将硬编码的URL `"https://server.websoft.top/api/system"`
- 改为 `config.getServerUrl() + "/system"` - 改为 `config.getServerUrl() + "/system"`
### 5. WxOfficialUtil.java ### 5. WxOfficialUtil.java
**文件路径**: `src/main/java/com/gxwebsoft/common/core/utils/WxOfficialUtil.java` **文件路径**: `src/main/java/com/gxwebsoft/common/core/utils/WxOfficialUtil.java`
**修改内容**: **修改内容**:
- 将硬编码的URL `"https://server.gxwebsoft.com/api/open/wx-official/accessToken"` - 将硬编码的URL `"https://server.websoft.top/api/open/wx-official/accessToken"`
- 改为 `pathConfig.getServerUrl() + "/open/wx-official/accessToken"` - 改为 `pathConfig.getServerUrl() + "/open/wx-official/accessToken"`
### 6. ShopOrderServiceImpl.java ### 6. ShopOrderServiceImpl.java
@@ -61,7 +61,7 @@
**修改内容**: **修改内容**:
- 将微信支付回调地址中的硬编码URL - 将微信支付回调地址中的硬编码URL
-`"https://server.gxwebsoft.com/api/system/wx-pay/notify/"` -`"https://server.websoft.top/api/system/wx-pay/notify/"`
- 改为 `config.getServerUrl() + "/system/wx-pay/notify/"` - 改为 `config.getServerUrl() + "/system/wx-pay/notify/"`
## 配置文件设置 ## 配置文件设置
@@ -75,13 +75,13 @@ config:
### 生产环境 (application-prod.yml) ### 生产环境 (application-prod.yml)
```yaml ```yaml
config: config:
server-url: https://server.gxwebsoft.com/api server-url: https://server.websoft.top/api
``` ```
### 默认配置 (application.yml) ### 默认配置 (application.yml)
```yaml ```yaml
config: config:
server-url: https://server.gxwebsoft.com/api server-url: https://server.websoft.top/api
``` ```
## 优势 ## 优势

View File

@@ -1,120 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsComponentsService;
import com.gxwebsoft.cms.entity.CmsComponents;
import com.gxwebsoft.cms.param.CmsComponentsParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 组件控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "组件管理")
@RestController
@RequestMapping("/api/cms/cms-components")
public class CmsComponentsController extends BaseController {
@Resource
private CmsComponentsService cmsComponentsService;
@Operation(summary = "分页查询组件")
@GetMapping("/page")
public ApiResult<PageResult<CmsComponents>> page(CmsComponentsParam param) {
// 使用关联查询
return success(cmsComponentsService.pageRel(param));
}
@Operation(summary = "查询全部组件")
@GetMapping()
public ApiResult<List<CmsComponents>> list(CmsComponentsParam param) {
PageParam<CmsComponents, CmsComponentsParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
return success(cmsComponentsService.list(page.getOrderWrapper()));
// 使用关联查询
//return success(cmsComponentsService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsComponents:list')")
@OperationLog
@Operation(summary = "根据id查询组件")
@GetMapping("/{id}")
public ApiResult<CmsComponents> get(@PathVariable("id") Integer id) {
return success(cmsComponentsService.getById(id));
// 使用关联查询
//return success(cmsComponentsService.getByIdRel(id));
}
@Operation(summary = "添加组件")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsComponents cmsComponents) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsComponents.setUserId(loginUser.getUserId());
}
if (cmsComponentsService.save(cmsComponents)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改组件")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsComponents cmsComponents) {
if (cmsComponentsService.updateById(cmsComponents)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除组件")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsComponentsService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加组件")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsComponents> list) {
if (cmsComponentsService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改组件")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsComponents> batchParam) {
if (batchParam.update(cmsComponentsService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除组件")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsComponentsService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,120 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsMpAdService;
import com.gxwebsoft.cms.entity.CmsMpAd;
import com.gxwebsoft.cms.param.CmsMpAdParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 小程序广告位控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "小程序广告位管理")
@RestController
@RequestMapping("/api/cms/cms-mp-ad")
public class CmsMpAdController extends BaseController {
@Resource
private CmsMpAdService cmsMpAdService;
@Operation(summary = "分页查询小程序广告位")
@GetMapping("/page")
public ApiResult<PageResult<CmsMpAd>> page(CmsMpAdParam param) {
// 使用关联查询
return success(cmsMpAdService.pageRel(param));
}
@Operation(summary = "查询全部小程序广告位")
@GetMapping()
public ApiResult<List<CmsMpAd>> list(CmsMpAdParam param) {
PageParam<CmsMpAd, CmsMpAdParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
return success(cmsMpAdService.list(page.getOrderWrapper()));
// 使用关联查询
//return success(cmsMpAdService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsMpAd:list')")
@OperationLog
@Operation(summary = "根据id查询小程序广告位")
@GetMapping("/{id}")
public ApiResult<CmsMpAd> get(@PathVariable("id") Integer id) {
return success(cmsMpAdService.getById(id));
// 使用关联查询
//return success(cmsMpAdService.getByIdRel(id));
}
@Operation(summary = "添加小程序广告位")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsMpAd cmsMpAd) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsMpAd.setUserId(loginUser.getUserId());
}
if (cmsMpAdService.save(cmsMpAd)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改小程序广告位")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsMpAd cmsMpAd) {
if (cmsMpAdService.updateById(cmsMpAd)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除小程序广告位")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsMpAdService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加小程序广告位")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsMpAd> list) {
if (cmsMpAdService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改小程序广告位")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsMpAd> batchParam) {
if (batchParam.update(cmsMpAdService, "ad_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除小程序广告位")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsMpAdService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,283 +0,0 @@
package com.gxwebsoft.cms.controller;
import cn.hutool.core.date.DateField;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.gxwebsoft.cms.entity.CmsMpField;
import com.gxwebsoft.cms.entity.CmsMpMenu;
import com.gxwebsoft.cms.entity.CmsMpPages;
import com.gxwebsoft.cms.service.CmsMpFieldService;
import com.gxwebsoft.cms.service.CmsMpMenuService;
import com.gxwebsoft.cms.service.CmsMpPagesService;
import com.gxwebsoft.common.core.utils.JSONUtil;
import com.gxwebsoft.common.core.utils.RedisUtil;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsMpService;
import com.gxwebsoft.cms.entity.CmsMp;
import com.gxwebsoft.cms.param.CmsMpParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.TimeUnit;
/**
* 小程序信息控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "小程序信息管理")
@RestController
@RequestMapping("/api/cms/cms-mp")
public class CmsMpController extends BaseController {
@Resource
private CmsMpService cmsMpService;
@Resource
private CmsMpPagesService cmsMpPagesService;
@Resource
private CmsMpFieldService mpFieldService;
@Resource
private CmsMpMenuService cmsMpMenuService;
@Resource
private RedisUtil redisUtil;
@Operation(summary = "分页查询小程序信息")
@GetMapping("/page")
public ApiResult<PageResult<CmsMp>> page(CmsMpParam param) {
// 使用关联查询
return success(cmsMpService.pageRel(param));
}
@Operation(summary = "查询全部小程序信息")
@GetMapping()
public ApiResult<List<CmsMp>> list(CmsMpParam param) {
// 使用关联查询
return success(cmsMpService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsMp:list')")
@OperationLog
@Operation(summary = "根据id查询小程序信息")
@GetMapping("/{id}")
public ApiResult<CmsMp> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsMpService.getByIdRel(id));
}
@Operation(summary = "添加小程序信息")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsMp cmsMp) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsMp.setUserId(loginUser.getUserId());
}
if (cmsMpService.save(cmsMp)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改小程序信息")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsMp cmsMp) {
if (cmsMpService.updateById(cmsMp)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除小程序信息")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsMpService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加小程序信息")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsMp> list) {
if (cmsMpService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改小程序信息")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsMp> batchParam) {
if (batchParam.update(cmsMpService, "mp_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除小程序信息")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsMpService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "小程序基本信息")
@GetMapping("/getMpInfo")
public ApiResult<?> getMpInfo() {
final Integer tenantId = getTenantId();
String key = "MpInfo:" + tenantId;
System.out.println("key = " + key);
final String mpInfo = redisUtil.get(key);
if (tenantId.equals(0)) {
return fail("租户ID不存在", null);
}
System.out.println("mpInfo = " + mpInfo);
// 从缓存读取信息
if (StrUtil.isNotBlank(mpInfo)) {
final Object object = JSONUtil.parseObject(mpInfo, Object.class);
System.out.println("object = " + object);
return success(object);
}
// 获取小程序
if (cmsMpService.count(new LambdaUpdateWrapper<CmsMp>().eq(CmsMp::getDeleted, 0)) == 0) {
// 创建小程序
createMp();
}
HashMap<String, Object> map = new HashMap<>();
// 获取小程序
final CmsMp mp = cmsMpService.getOne(new LambdaQueryWrapper<CmsMp>().eq(CmsMp::getTenantId, tenantId).last("limit 1"));
mp.setAppSecret(null);
map.put("mp", mp);
// 原生导航条
final List<CmsMpPages> tabBar = cmsMpPagesService.list(new LambdaQueryWrapper<CmsMpPages>().eq(CmsMpPages::getSubpackage, "MainPackage").last("limit 5"));
map.put("tabBar", tabBar);
// 配置信息
HashMap<String, Object> config = new HashMap<>();
config.put("LICENSE_CODE", "");
config.put("MAP_KEY", "");
final List<CmsMpField> fields = mpFieldService.list();
fields.forEach(d -> {
config.put(d.getName(), d.getValue());
});
map.put("config", config);
// 服务器时间
HashMap<String, Object> serverTime = new HashMap<>();
// 今天日期
DateTime date = DateUtil.date();
String today = DateUtil.today();
// 明天日期
final DateTime dateTime = DateUtil.tomorrow();
String tomorrow = DateUtil.format(dateTime, "yyyy-MM-dd");
// 后天日期
final DateTime dateTime2 = DateUtil.offsetDay(date, 2);
final String afterDay = DateUtil.format(dateTime2, "yyyy-MM-dd");
// 今天星期几
final int week = DateUtil.thisDayOfWeek();
final DateTime nextWeek = DateUtil.nextWeek();
serverTime.put("now", DateUtil.now()); // 2024-07-18 22:06:36
serverTime.put("today", today); // 2024-07-18
serverTime.put("tomorrow", tomorrow); // 2024-07-19
serverTime.put("afterDay", afterDay); // 2024-07-20
serverTime.put("nextWeek", nextWeek); // 2024-07-25 22:06:36
serverTime.put("week", week); // 5
map.put("serverTime", serverTime);
redisUtil.set(key, map, 1L, TimeUnit.DAYS);
return success(map);
}
private void createMp() {
System.out.println("创建小程序 = ");
final User loginUser = getLoginUser();
final Integer tenantId = getTenantId();
// 创建网站记录
final CmsMp mp = new CmsMp();
mp.setTenantId(tenantId);
mp.setAppId("小程序ID");
mp.setMpName("小程序名称");
mp.setMainPath("/pages/index");
if (loginUser != null) {
mp.setUserId(getLoginUserId());
}
mp.setExpirationTime(DateUtil.offset(DateUtil.date(), DateField.YEAR, 1));
cmsMpService.save(mp);
// 创建底部导航栏
final CmsMpPages mpPages = new CmsMpPages();
mpPages.setHome(1);
mpPages.setTitle("首页");
mpPages.setPath("/pages/index");
mpPages.setSubpackage("MainPackage");
mpPages.setIcon("HomeOutlined");
mpPages.setSortNumber(0);
mpPages.setTenantId(tenantId);
cmsMpPagesService.save(mpPages);
mpPages.setHome(0);
mpPages.setTitle("分类");
mpPages.setPath("/pages/category");
mpPages.setSubpackage("MainPackage");
mpPages.setIcon("AppstoreOutlined");
mpPages.setSortNumber(0);
cmsMpPagesService.save(mpPages);
mpPages.setTitle("购物车");
mpPages.setPath("/pages/category");
mpPages.setSubpackage("MainPackage");
mpPages.setIcon("ShoppingCartOutlined");
mpPages.setSortNumber(0);
cmsMpPagesService.save(mpPages);
mpPages.setTitle("我的");
mpPages.setPath("/pages/user");
mpPages.setSubpackage("MainPackage");
mpPages.setIcon("UserOutlined");
mpPages.setSortNumber(0);
cmsMpPagesService.save(mpPages);
// 创建导航图标
final CmsMpMenu mpMenu = new CmsMpMenu();
mpMenu.setTenantId(tenantId);
mpMenu.setTitle("分类1");
mpMenu.setIcon("PictureOutlined");
mpMenu.setPath("/package/order");
mpMenu.setTarget("uni.navigateTo");
cmsMpMenuService.save(mpMenu);
mpMenu.setTitle("分类2");
mpMenu.setIcon("PictureOutlined");
mpMenu.setPath("/package/order");
cmsMpMenuService.save(mpMenu);
mpMenu.setTitle("分类3");
mpMenu.setIcon("PictureOutlined");
mpMenu.setPath("/package/order");
cmsMpMenuService.save(mpMenu);
mpMenu.setTitle("分类4");
mpMenu.setIcon("PictureOutlined");
mpMenu.setPath("/package/order");
cmsMpMenuService.save(mpMenu);
// 小程序配置信息
CmsMpField field = new CmsMpField();
field.setName("mpLogo");
mpFieldService.save(field);
}
}

View File

@@ -1,114 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsMpFieldService;
import com.gxwebsoft.cms.entity.CmsMpField;
import com.gxwebsoft.cms.param.CmsMpFieldParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 小程序配置控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "小程序配置管理")
@RestController
@RequestMapping("/api/cms/cms-mp-field")
public class CmsMpFieldController extends BaseController {
@Resource
private CmsMpFieldService cmsMpFieldService;
@Operation(summary = "分页查询小程序配置")
@GetMapping("/page")
public ApiResult<PageResult<CmsMpField>> page(CmsMpFieldParam param) {
// 使用关联查询
return success(cmsMpFieldService.pageRel(param));
}
@Operation(summary = "查询全部小程序配置")
@GetMapping()
public ApiResult<List<CmsMpField>> list(CmsMpFieldParam param) {
PageParam<CmsMpField, CmsMpFieldParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
return success(cmsMpFieldService.list(page.getOrderWrapper()));
// 使用关联查询
//return success(cmsMpFieldService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsMpField:list')")
@OperationLog
@Operation(summary = "根据id查询小程序配置")
@GetMapping("/{id}")
public ApiResult<CmsMpField> get(@PathVariable("id") Integer id) {
return success(cmsMpFieldService.getById(id));
// 使用关联查询
//return success(cmsMpFieldService.getByIdRel(id));
}
@Operation(summary = "添加小程序配置")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsMpField cmsMpField) {
if (cmsMpFieldService.save(cmsMpField)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改小程序配置")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsMpField cmsMpField) {
if (cmsMpFieldService.updateById(cmsMpField)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除小程序配置")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsMpFieldService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加小程序配置")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsMpField> list) {
if (cmsMpFieldService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改小程序配置")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsMpField> batchParam) {
if (batchParam.update(cmsMpFieldService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除小程序配置")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsMpFieldService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,120 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsMpMenuService;
import com.gxwebsoft.cms.entity.CmsMpMenu;
import com.gxwebsoft.cms.param.CmsMpMenuParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 小程序端菜单控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "小程序端菜单管理")
@RestController
@RequestMapping("/api/cms/cms-mp-menu")
public class CmsMpMenuController extends BaseController {
@Resource
private CmsMpMenuService cmsMpMenuService;
@Operation(summary = "分页查询小程序端菜单")
@GetMapping("/page")
public ApiResult<PageResult<CmsMpMenu>> page(CmsMpMenuParam param) {
// 使用关联查询
return success(cmsMpMenuService.pageRel(param));
}
@Operation(summary = "查询全部小程序端菜单")
@GetMapping()
public ApiResult<List<CmsMpMenu>> list(CmsMpMenuParam param) {
PageParam<CmsMpMenu, CmsMpMenuParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
return success(cmsMpMenuService.list(page.getOrderWrapper()));
// 使用关联查询
//return success(cmsMpMenuService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsMpMenu:list')")
@OperationLog
@Operation(summary = "根据id查询小程序端菜单")
@GetMapping("/{id}")
public ApiResult<CmsMpMenu> get(@PathVariable("id") Integer id) {
return success(cmsMpMenuService.getById(id));
// 使用关联查询
//return success(cmsMpMenuService.getByIdRel(id));
}
@Operation(summary = "添加小程序端菜单")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsMpMenu cmsMpMenu) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsMpMenu.setUserId(loginUser.getUserId());
}
if (cmsMpMenuService.save(cmsMpMenu)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改小程序端菜单")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsMpMenu cmsMpMenu) {
if (cmsMpMenuService.updateById(cmsMpMenu)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除小程序端菜单")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsMpMenuService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加小程序端菜单")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsMpMenu> list) {
if (cmsMpMenuService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改小程序端菜单")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsMpMenu> batchParam) {
if (batchParam.update(cmsMpMenuService, "menu_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除小程序端菜单")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsMpMenuService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,115 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsMpPagesService;
import com.gxwebsoft.cms.entity.CmsMpPages;
import com.gxwebsoft.cms.param.CmsMpPagesParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 小程序页面控制器
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Tag(name = "小程序页面管理")
@RestController
@RequestMapping("/api/cms/cms-mp-pages")
public class CmsMpPagesController extends BaseController {
@Resource
private CmsMpPagesService cmsMpPagesService;
@Operation(summary = "分页查询小程序页面")
@GetMapping("/page")
public ApiResult<PageResult<CmsMpPages>> page(CmsMpPagesParam param) {
// 使用关联查询
return success(cmsMpPagesService.pageRel(param));
}
@Operation(summary = "查询全部小程序页面")
@GetMapping()
public ApiResult<List<CmsMpPages>> list(CmsMpPagesParam param) {
// 使用关联查询
return success(cmsMpPagesService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsMpPages:list')")
@OperationLog
@Operation(summary = "根据id查询小程序页面")
@GetMapping("/{id}")
public ApiResult<CmsMpPages> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsMpPagesService.getByIdRel(id));
}
@Operation(summary = "添加小程序页面")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsMpPages cmsMpPages) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsMpPages.setUserId(loginUser.getUserId());
}
if (cmsMpPagesService.save(cmsMpPages)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改小程序页面")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsMpPages cmsMpPages) {
if (cmsMpPagesService.updateById(cmsMpPages)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除小程序页面")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsMpPagesService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加小程序页面")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsMpPages> list) {
if (cmsMpPagesService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改小程序页面")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsMpPages> batchParam) {
if (batchParam.update(cmsMpPagesService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除小程序页面")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsMpPagesService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,131 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.utils.CommonUtil;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsOrderService;
import com.gxwebsoft.cms.entity.CmsOrder;
import com.gxwebsoft.cms.param.CmsOrderParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 订单控制器
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
@Tag(name = "订单管理")
@RestController
@RequestMapping("/api/cms/cms-order")
public class CmsOrderController extends BaseController {
@Resource
private CmsOrderService cmsOrderService;
@PreAuthorize("hasAuthority('cms:cmsOrder:list')")
@Operation(summary = "分页查询订单")
@GetMapping("/page")
public ApiResult<PageResult<CmsOrder>> page(CmsOrderParam param) {
// 使用关联查询
return success(cmsOrderService.pageRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsOrder:list')")
@Operation(summary = "查询全部订单")
@GetMapping()
public ApiResult<List<CmsOrder>> list(CmsOrderParam param) {
// 使用关联查询
return success(cmsOrderService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsOrder:list')")
@Operation(summary = "根据id查询订单")
@GetMapping("/{id}")
public ApiResult<CmsOrder> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsOrderService.getByIdRel(id));
}
@Operation(summary = "添加订单")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsOrder cmsOrder) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsOrder.setUserId(loginUser.getUserId());
}
if(cmsOrder.getCode() == null){
return fail("验证码不正确",null);
}
if(cmsOrder.getOrderNo() == null){
cmsOrder.setOrderNo(CommonUtil.createOrderNo());
}
// 默认语言
if(cmsOrder.getLang() == null){
cmsOrder.setLang("zh_CN");
}
if (cmsOrderService.save(cmsOrder)) {
return success("提交成功");
}
return fail("提交失败");
}
@PreAuthorize("hasAuthority('cms:cmsOrder:update')")
@Operation(summary = "修改订单")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsOrder cmsOrder) {
if (cmsOrderService.updateById(cmsOrder)) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('cms:cmsOrder:remove')")
@Operation(summary = "删除订单")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsOrderService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@PreAuthorize("hasAuthority('cms:cmsOrder:save')")
@Operation(summary = "批量添加订单")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsOrder> list) {
if (cmsOrderService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@PreAuthorize("hasAuthority('cms:cmsOrder:update')")
@Operation(summary = "批量修改订单")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsOrder> batchParam) {
if (batchParam.update(cmsOrderService, "order_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('cms:cmsOrder:remove')")
@Operation(summary = "批量删除订单")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsOrderService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,150 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.gxwebsoft.cms.param.CmsProductSpecParam;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsProductService;
import com.gxwebsoft.cms.entity.CmsProduct;
import com.gxwebsoft.cms.param.CmsProductParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 产品控制器
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Tag(name = "产品管理")
@RestController
@RequestMapping("/api/cms/cms-product")
public class CmsProductController extends BaseController {
@Resource
private CmsProductService cmsProductService;
@Operation(summary = "分页查询产品")
@GetMapping("/page")
public ApiResult<PageResult<CmsProduct>> page(CmsProductParam param) {
// 使用关联查询
return success(cmsProductService.pageRel(param));
}
@Operation(summary = "查询全部产品")
@GetMapping()
public ApiResult<List<CmsProduct>> list(CmsProductParam param) {
// 使用关联查询
return success(cmsProductService.listRel(param));
}
@Operation(summary = "根据id查询产品")
@GetMapping("/{id}")
public ApiResult<CmsProduct> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsProductService.getByIdRel(id));
}
@PreAuthorize("hasAuthority('cms:cmsProduct:save')")
@OperationLog
@Operation(summary = "添加产品")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsProduct cmsProduct) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsProduct.setUserId(loginUser.getUserId());
}
if (cmsProductService.save(cmsProduct)) {
return success("添加成功");
}
return fail("添加失败");
}
@PreAuthorize("hasAuthority('cms:cmsProduct:update')")
@OperationLog
@Operation(summary = "修改产品")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsProduct cmsProduct) {
if (cmsProductService.updateById(cmsProduct)) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('cms:cmsProduct:remove')")
@OperationLog
@Operation(summary = "删除产品")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsProductService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@PreAuthorize("hasAuthority('cms:cmsProduct:save')")
@OperationLog
@Operation(summary = "批量添加产品")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsProduct> list) {
if (cmsProductService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@PreAuthorize("hasAuthority('cms:cmsProduct:update')")
@OperationLog
@Operation(summary = "批量修改产品")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsProduct> batchParam) {
if (batchParam.update(cmsProductService, "product_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@PreAuthorize("hasAuthority('cms:cmsProduct:remove')")
@OperationLog
@Operation(summary = "批量删除产品")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsProductService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "统计信息")
@GetMapping("/data")
public ApiResult<Map<String, Integer>> data(CmsProductSpecParam param) {
Map<String, Integer> data = new HashMap<>();
final LambdaQueryWrapper<CmsProduct> wrapper = new LambdaQueryWrapper<>();
if(param.getMerchantId() != null){
wrapper.eq(CmsProduct::getMerchantId,param.getMerchantId());
}
Integer totalNum = Math.toIntExact(cmsProductService.count(
wrapper.eq(CmsProduct::getDeleted, 0).eq(CmsProduct::getStatus, 0)
));
data.put("totalNum", totalNum);
Integer totalNum2 = Math.toIntExact(cmsProductService.count(
wrapper.eq(CmsProduct::getStatus, 1)
));
data.put("totalNum2", totalNum2);
Integer totalNum3 = Math.toIntExact(cmsProductService.count(
wrapper.gt(CmsProduct::getStatus, 1)
));
data.put("totalNum3", totalNum3);
return success(data);
}
}

View File

@@ -1,115 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsProductSpecService;
import com.gxwebsoft.cms.entity.CmsProductSpec;
import com.gxwebsoft.cms.param.CmsProductSpecParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import com.gxwebsoft.common.system.entity.User;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 规格控制器
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Tag(name = "规格管理")
@RestController
@RequestMapping("/api/cms/cms-product-spec")
public class CmsProductSpecController extends BaseController {
@Resource
private CmsProductSpecService cmsProductSpecService;
@Operation(summary = "分页查询规格")
@GetMapping("/page")
public ApiResult<PageResult<CmsProductSpec>> page(CmsProductSpecParam param) {
// 使用关联查询
return success(cmsProductSpecService.pageRel(param));
}
@Operation(summary = "查询全部规格")
@GetMapping()
public ApiResult<List<CmsProductSpec>> list(CmsProductSpecParam param) {
// 使用关联查询
return success(cmsProductSpecService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsProductSpec:list')")
@OperationLog
@Operation(summary = "根据id查询规格")
@GetMapping("/{id}")
public ApiResult<CmsProductSpec> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsProductSpecService.getByIdRel(id));
}
@Operation(summary = "添加规格")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsProductSpec cmsProductSpec) {
// 记录当前登录用户id
User loginUser = getLoginUser();
if (loginUser != null) {
cmsProductSpec.setUserId(loginUser.getUserId());
}
if (cmsProductSpecService.save(cmsProductSpec)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改规格")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsProductSpec cmsProductSpec) {
if (cmsProductSpecService.updateById(cmsProductSpec)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除规格")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsProductSpecService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加规格")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsProductSpec> list) {
if (cmsProductSpecService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改规格")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsProductSpec> batchParam) {
if (batchParam.update(cmsProductSpecService, "spec_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除规格")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsProductSpecService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,109 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsProductSpecValueService;
import com.gxwebsoft.cms.entity.CmsProductSpecValue;
import com.gxwebsoft.cms.param.CmsProductSpecValueParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 规格值控制器
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Tag(name = "规格值管理")
@RestController
@RequestMapping("/api/cms/cms-product-spec-value")
public class CmsProductSpecValueController extends BaseController {
@Resource
private CmsProductSpecValueService cmsProductSpecValueService;
@Operation(summary = "分页查询规格值")
@GetMapping("/page")
public ApiResult<PageResult<CmsProductSpecValue>> page(CmsProductSpecValueParam param) {
// 使用关联查询
return success(cmsProductSpecValueService.pageRel(param));
}
@Operation(summary = "查询全部规格值")
@GetMapping()
public ApiResult<List<CmsProductSpecValue>> list(CmsProductSpecValueParam param) {
// 使用关联查询
return success(cmsProductSpecValueService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsProductSpecValue:list')")
@OperationLog
@Operation(summary = "根据id查询规格值")
@GetMapping("/{id}")
public ApiResult<CmsProductSpecValue> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsProductSpecValueService.getByIdRel(id));
}
@Operation(summary = "添加规格值")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsProductSpecValue cmsProductSpecValue) {
if (cmsProductSpecValueService.save(cmsProductSpecValue)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改规格值")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsProductSpecValue cmsProductSpecValue) {
if (cmsProductSpecValueService.updateById(cmsProductSpecValue)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除规格值")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsProductSpecValueService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加规格值")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsProductSpecValue> list) {
if (cmsProductSpecValueService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改规格值")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsProductSpecValue> batchParam) {
if (batchParam.update(cmsProductSpecValueService, "spec_value_id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除规格值")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsProductSpecValueService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,109 +0,0 @@
package com.gxwebsoft.cms.controller;
import com.gxwebsoft.common.core.web.BaseController;
import com.gxwebsoft.cms.service.CmsProductUrlService;
import com.gxwebsoft.cms.entity.CmsProductUrl;
import com.gxwebsoft.cms.param.CmsProductUrlParam;
import com.gxwebsoft.common.core.web.ApiResult;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.common.core.web.BatchParam;
import com.gxwebsoft.common.core.annotation.OperationLog;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 域名控制器
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Tag(name = "域名管理")
@RestController
@RequestMapping("/api/cms/cms-product-url")
public class CmsProductUrlController extends BaseController {
@Resource
private CmsProductUrlService cmsProductUrlService;
@Operation(summary = "分页查询域名")
@GetMapping("/page")
public ApiResult<PageResult<CmsProductUrl>> page(CmsProductUrlParam param) {
// 使用关联查询
return success(cmsProductUrlService.pageRel(param));
}
@Operation(summary = "查询全部域名")
@GetMapping()
public ApiResult<List<CmsProductUrl>> list(CmsProductUrlParam param) {
// 使用关联查询
return success(cmsProductUrlService.listRel(param));
}
@PreAuthorize("hasAuthority('cms:cmsProductUrl:list')")
@OperationLog
@Operation(summary = "根据id查询域名")
@GetMapping("/{id}")
public ApiResult<CmsProductUrl> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(cmsProductUrlService.getByIdRel(id));
}
@Operation(summary = "添加域名")
@PostMapping()
public ApiResult<?> save(@RequestBody CmsProductUrl cmsProductUrl) {
if (cmsProductUrlService.save(cmsProductUrl)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "修改域名")
@PutMapping()
public ApiResult<?> update(@RequestBody CmsProductUrl cmsProductUrl) {
if (cmsProductUrlService.updateById(cmsProductUrl)) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "删除域名")
@DeleteMapping("/{id}")
public ApiResult<?> remove(@PathVariable("id") Integer id) {
if (cmsProductUrlService.removeById(id)) {
return success("删除成功");
}
return fail("删除失败");
}
@Operation(summary = "批量添加域名")
@PostMapping("/batch")
public ApiResult<?> saveBatch(@RequestBody List<CmsProductUrl> list) {
if (cmsProductUrlService.saveBatch(list)) {
return success("添加成功");
}
return fail("添加失败");
}
@Operation(summary = "批量修改域名")
@PutMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody BatchParam<CmsProductUrl> batchParam) {
if (batchParam.update(cmsProductUrlService, "id")) {
return success("修改成功");
}
return fail("修改失败");
}
@Operation(summary = "批量删除域名")
@DeleteMapping("/batch")
public ApiResult<?> removeBatch(@RequestBody List<Integer> ids) {
if (cmsProductUrlService.removeByIds(ids)) {
return success("删除成功");
}
return fail("删除失败");
}
}

View File

@@ -1,69 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 组件
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsComponents对象", description = "组件")
public class CmsComponents implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@Schema(description = "组件标题")
private String title;
@Schema(description = "关联导航ID")
private Integer navigationId;
@Schema(description = "组件类型")
private String type;
@Schema(description = "页面关键词")
private String keywords;
@Schema(description = "页面描述")
private String description;
@Schema(description = "组件路径")
private String path;
@Schema(description = "组件图标")
private String icon;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -29,12 +29,16 @@ public class CmsDesign implements Serializable {
@TableId(value = "page_id", type = IdType.AUTO) @TableId(value = "page_id", type = IdType.AUTO)
private Integer pageId; private Integer pageId;
@Schema(description = "页面标题") @Schema(description = "页面")
private String name; private String name;
@Schema(description = "所属栏目ID") @Schema(description = "所属栏目ID")
private Integer categoryId; private Integer categoryId;
@Schema(description = "所属栏目")
@TableField(exist = false)
private String categoryName;
@Schema(description = "页面模型") @Schema(description = "页面模型")
private String model; private String model;

View File

@@ -1,98 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序信息
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMp对象", description = "小程序信息")
public class CmsMp implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "mp_id", type = IdType.AUTO)
private Integer mpId;
@Schema(description = "是否主账号")
private Integer type;
@Schema(description = "小程序ID")
private String appId;
@Schema(description = "小程序密钥")
private String appSecret;
@Schema(description = "小程序名称")
private String mpName;
@Schema(description = "小程序简称")
private String shortName;
@Schema(description = "头像")
private String avatar;
@Schema(description = "小程序码")
private String mpQrcode;
@Schema(description = "微信认证")
private Integer authentication;
@Schema(description = "主体信息")
private String companyName;
@Schema(description = "小程序备案")
private String icpNo;
@Schema(description = "登录邮箱")
private String email;
@Schema(description = "登录密码")
private String password;
@Schema(description = "原始ID")
private String ghId;
@Schema(description = "入口页面")
private String mainPath;
@Schema(description = "过期时间")
private Date expirationTime;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "介绍")
private String comments;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,77 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序广告位
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMpAd对象", description = "小程序广告位")
public class CmsMpAd implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "ad_id", type = IdType.AUTO)
private Integer adId;
@Schema(description = "页面ID")
private Integer pageId;
@Schema(description = "广告类型")
private String adType;
@Schema(description = "广告位名称")
private String name;
@Schema(description = "")
private String width;
@Schema(description = "")
private String height;
@Schema(description = "广告图片")
private String images;
@Schema(description = "路由/链接地址")
private String path;
@Schema(description = "页面名称")
private String pageName;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,59 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序配置
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMpField对象", description = "小程序配置")
public class CmsMpField implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@Schema(description = "类型0文本 1图片 2其他")
private Integer type;
@Schema(description = "名称")
private String name;
@Schema(description = "备注")
private String comments;
@Schema(description = "名称")
private String value;
@Schema(description = "页面ID")
private Integer pageId;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,123 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序端菜单
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMpMenu对象", description = "小程序端菜单")
public class CmsMpMenu implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "menu_id", type = IdType.AUTO)
private Integer menuId;
@Schema(description = "上级id, 0是顶级")
private Integer parentId;
@Schema(description = "菜单名称")
private String title;
@Schema(description = "类型 0功能图标 1订单状态图标 2首页导航图标 3 商城导航图标 4管理人员功能图标")
private Integer type;
@Schema(description = "是否微信小程序菜单")
private Boolean isMpWeixin;
@Schema(description = "菜单路由地址")
private String path;
@Schema(description = "菜单组件地址, 目录可为空")
private String component;
@Schema(description = "打开位置")
private String target;
@Schema(description = "菜单图标")
private String avatar;
@Schema(description = "图标颜色")
private String color;
@Schema(description = "上传图标")
private String icon;
@Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)")
private Integer hide;
@Schema(description = "位置 0不限 1顶部 2底部")
private Integer position;
@Schema(description = "0 第一行 1第二行")
private Integer rows;
@Schema(description = "菜单侧栏选中的path")
private String active;
@Schema(description = "其它路由元信息")
private String meta;
@Schema(description = "绑定的页面")
private Integer pageId;
@Schema(description = "绑定的文章分类ID")
private Integer articleCategoryId;
@Schema(description = "绑定的文章ID")
private Integer articleId;
@Schema(description = "绑定的表单ID")
private Integer formId;
@Schema(description = "绑定的知识库标识")
private String bookCode;
@Schema(description = "绑定的商品分类ID")
private Integer goodsCategoryId;
@Schema(description = "绑定的商品ID")
private Integer goodsId;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "是否管理人员可见")
private Integer adminShow;
@Schema(description = "设为首页")
private Integer home;
@Schema(description = "分组名称")
private String groupName;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,77 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序页面
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsMpPages对象", description = "小程序页面")
public class CmsMpPages implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@Schema(description = "上级id, 0是顶级")
private Integer parentId;
@Schema(description = "页面名称")
private String title;
@Schema(description = "页面路径")
private String path;
@Schema(description = "设为首页")
private Integer home;
@Schema(description = "分包")
private String subpackage;
@Schema(description = "图标")
private String icon;
@Schema(description = "未选中图标")
private String iconPath;
@Schema(description = "选中的图标")
private String selectedIconPath;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "状态, 0正常, 1冻结")
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,131 +0,0 @@
package com.gxwebsoft.cms.entity;
import java.math.BigDecimal;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 订单
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsOrder对象", description = "订单")
public class CmsOrder implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "订单号")
@TableId(value = "order_id", type = IdType.AUTO)
private Integer orderId;
@Schema(description = "订单标题")
private String title;
@Schema(description = "模型名称")
private String model;
@Schema(description = "订单编号")
private String orderNo;
@Schema(description = "订单类型0商城 1询价 2留言")
private Integer type;
@Schema(description = "关联文章ID")
private Integer articleId;
@Schema(description = "关联网站ID")
private Integer websiteId;
@Schema(description = "真实姓名")
private String realName;
@Schema(description = "手机号码")
private String phone;
@Schema(description = "电子邮箱")
private String email;
@Schema(description = "联系地址")
private String address;
@Schema(description = "订单内容")
private String content;
@Schema(description = "订单附件")
private String files;
@Schema(description = "订单总额")
private BigDecimal totalPrice;
@Schema(description = "实际付款")
private BigDecimal payPrice;
@Schema(description = "报价询价")
private BigDecimal price;
@Schema(description = "购买数量")
private Integer totalNum;
@Schema(description = "二维码地址,保存订单号,支付成功后才生成")
private String qrcode;
@Schema(description = "下单渠道0网站 1小程序 2其他")
private Integer channel;
@Schema(description = "过期时间")
private Date expirationTime;
@Schema(description = "订单是否已结算(0未结算 1已结算)")
private Boolean isSettled;
@Schema(description = "用户id")
private Integer userId;
@Schema(description = "国际化语言")
private String lang;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
private Integer sortNumber;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
@Schema(description = "图像验证码")
@TableField(exist = false)
private String code;
@Schema(description = "栏目ID")
@TableField(exist = false)
private Integer categoryId;
public String getLang() {
if(this.lang == null || this.lang.equals("zh")){
return "zh_CN";
}
return this.lang;
}
}

View File

@@ -1,118 +0,0 @@
package com.gxwebsoft.cms.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 产品
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsProduct对象", description = "产品")
public class CmsProduct implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@TableId(value = "product_id", type = IdType.AUTO)
private Integer productId;
@Schema(description = "类型 0软件产品 1实物商品 2虚拟商品")
private Integer type;
@Schema(description = "产品编码")
private String code;
@Schema(description = "产品标题")
private String title;
@Schema(description = "封面图")
private String image;
@Schema(description = "标签")
private String tag;
@Schema(description = "产品详情")
private String content;
@Schema(description = "父级分类ID")
private Integer parentId;
@Schema(description = "产品分类ID")
private Integer categoryId;
@Schema(description = "产品规格 0单规格 1多规格")
private Integer specs;
@Schema(description = "货架")
private String position;
@Schema(description = "单位名称 (个)")
private String unitName;
@Schema(description = "进货价格")
private BigDecimal price;
@Schema(description = "销售价格")
private BigDecimal salePrice;
@Schema(description = "库存计算方式(10下单减库存 20付款减库存)")
private Integer deductStockType;
@Schema(description = "轮播图")
private String files;
@Schema(description = "销量")
private Integer sales;
@Schema(description = "库存")
private Integer stock;
@Schema(description = "消费赚取积分")
private BigDecimal gainIntegral;
@Schema(description = "推荐")
private Integer recommend;
@Schema(description = "商户ID")
private Long merchantId;
@Schema(description = "状态0未上架1上架")
private Boolean isShow;
@Schema(description = "状态, 0上架 1待上架 2待审核 3审核不通过")
private Integer status;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
private Integer sortNumber;
@Schema(description = "用户ID")
private Integer userId;
@Schema(description = "是否删除, 0否, 1是")
@TableLogic
private Integer deleted;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
@Schema(description = "修改时间")
private Date updateTime;
}

View File

@@ -1,55 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 规格
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsProductSpec对象", description = "规格")
public class CmsProductSpec implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "规格ID")
@TableId(value = "spec_id", type = IdType.AUTO)
private Integer specId;
@Schema(description = "规格名称")
private String specName;
@Schema(description = "规格值")
private String specValue;
@Schema(description = "创建用户")
private Integer userId;
@Schema(description = "更新者")
private Integer updater;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1待修,2异常已修3异常未修")
private Integer status;
@Schema(description = "排序号")
private Integer sortNumber;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,46 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 规格值
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsProductSpecValue对象", description = "规格值")
public class CmsProductSpecValue implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "规格值ID")
@TableId(value = "spec_value_id", type = IdType.AUTO)
private Integer specValueId;
@Schema(description = "规格组ID")
private Integer specId;
@Schema(description = "规格值")
private String specValue;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
private Integer sortNumber;
@Schema(description = "租户id")
private Integer tenantId;
@Schema(description = "创建时间")
private Date createTime;
}

View File

@@ -1,61 +0,0 @@
package com.gxwebsoft.cms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 域名
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsProductUrl对象", description = "域名")
public class CmsProductUrl implements Serializable {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
@Schema(description = "产品ID")
private Integer productId;
@Schema(description = "域名类型")
private String type;
@Schema(description = "域名")
private String domain;
@Schema(description = "账号")
private String account;
@Schema(description = "密码")
private String password;
@Schema(description = "商户ID")
private Long merchantId;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序(数字越小越靠前)")
private Integer sortNumber;
@Schema(description = "状态, 0正常, 1待确认")
private Integer status;
@Schema(description = "创建时间")
private Date createTime;
@Schema(description = "租户id")
private Integer tenantId;
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsComponents;
import com.gxwebsoft.cms.param.CmsComponentsParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 组件Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsComponentsMapper extends BaseMapper<CmsComponents> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsComponents>
*/
List<CmsComponents> selectPageRel(@Param("page") IPage<CmsComponents> page,
@Param("param") CmsComponentsParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsComponents> selectListRel(@Param("param") CmsComponentsParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsMpAd;
import com.gxwebsoft.cms.param.CmsMpAdParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小程序广告位Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpAdMapper extends BaseMapper<CmsMpAd> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsMpAd>
*/
List<CmsMpAd> selectPageRel(@Param("page") IPage<CmsMpAd> page,
@Param("param") CmsMpAdParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsMpAd> selectListRel(@Param("param") CmsMpAdParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsMpField;
import com.gxwebsoft.cms.param.CmsMpFieldParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小程序配置Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpFieldMapper extends BaseMapper<CmsMpField> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsMpField>
*/
List<CmsMpField> selectPageRel(@Param("page") IPage<CmsMpField> page,
@Param("param") CmsMpFieldParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsMpField> selectListRel(@Param("param") CmsMpFieldParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsMp;
import com.gxwebsoft.cms.param.CmsMpParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小程序信息Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpMapper extends BaseMapper<CmsMp> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsMp>
*/
List<CmsMp> selectPageRel(@Param("page") IPage<CmsMp> page,
@Param("param") CmsMpParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsMp> selectListRel(@Param("param") CmsMpParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsMpMenu;
import com.gxwebsoft.cms.param.CmsMpMenuParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小程序端菜单Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpMenuMapper extends BaseMapper<CmsMpMenu> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsMpMenu>
*/
List<CmsMpMenu> selectPageRel(@Param("page") IPage<CmsMpMenu> page,
@Param("param") CmsMpMenuParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsMpMenu> selectListRel(@Param("param") CmsMpMenuParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsMpPages;
import com.gxwebsoft.cms.param.CmsMpPagesParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 小程序页面Mapper
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpPagesMapper extends BaseMapper<CmsMpPages> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsMpPages>
*/
List<CmsMpPages> selectPageRel(@Param("page") IPage<CmsMpPages> page,
@Param("param") CmsMpPagesParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsMpPages> selectListRel(@Param("param") CmsMpPagesParam param);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsNavigation;
import com.gxwebsoft.cms.entity.CmsOrder;
import com.gxwebsoft.cms.param.CmsNavigationParam;
import com.gxwebsoft.cms.param.CmsOrderParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 订单Mapper
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
public interface CmsOrderMapper extends BaseMapper<CmsOrder> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsOrder>
*/
List<CmsOrder> selectPageRel(@Param("page") IPage<CmsOrder> page,
@Param("param") CmsOrderParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsOrder> selectListRel(@Param("param") CmsOrderParam param);
@InterceptorIgnore(tenantLine = "true")
List<CmsOrder> selectListAllRel(@Param("param") CmsOrderParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsProduct;
import com.gxwebsoft.cms.param.CmsProductParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 产品Mapper
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductMapper extends BaseMapper<CmsProduct> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsProduct>
*/
List<CmsProduct> selectPageRel(@Param("page") IPage<CmsProduct> page,
@Param("param") CmsProductParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsProduct> selectListRel(@Param("param") CmsProductParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsProductSpec;
import com.gxwebsoft.cms.param.CmsProductSpecParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 规格Mapper
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductSpecMapper extends BaseMapper<CmsProductSpec> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsProductSpec>
*/
List<CmsProductSpec> selectPageRel(@Param("page") IPage<CmsProductSpec> page,
@Param("param") CmsProductSpecParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsProductSpec> selectListRel(@Param("param") CmsProductSpecParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsProductSpecValue;
import com.gxwebsoft.cms.param.CmsProductSpecValueParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 规格值Mapper
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductSpecValueMapper extends BaseMapper<CmsProductSpecValue> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsProductSpecValue>
*/
List<CmsProductSpecValue> selectPageRel(@Param("page") IPage<CmsProductSpecValue> page,
@Param("param") CmsProductSpecValueParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsProductSpecValue> selectListRel(@Param("param") CmsProductSpecValueParam param);
}

View File

@@ -1,37 +0,0 @@
package com.gxwebsoft.cms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.cms.entity.CmsProductUrl;
import com.gxwebsoft.cms.param.CmsProductUrlParam;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 域名Mapper
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductUrlMapper extends BaseMapper<CmsProductUrl> {
/**
* 分页查询
*
* @param page 分页对象
* @param param 查询参数
* @return List<CmsProductUrl>
*/
List<CmsProductUrl> selectPageRel(@Param("page") IPage<CmsProductUrl> page,
@Param("param") CmsProductUrlParam param);
/**
* 查询全部
*
* @param param 查询参数
* @return List<User>
*/
List<CmsProductUrl> selectListRel(@Param("param") CmsProductUrlParam param);
}

View File

@@ -1,65 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsComponentsMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_components a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.navigationId != null">
AND a.navigation_id = #{param.navigationId}
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.keywords != null">
AND a.keywords LIKE CONCAT('%', #{param.keywords}, '%')
</if>
<if test="param.description != null">
AND a.description LIKE CONCAT('%', #{param.description}, '%')
</if>
<if test="param.path != null">
AND a.path LIKE CONCAT('%', #{param.path}, '%')
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsComponents">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsComponents">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -4,7 +4,7 @@
<!-- 关联查询sql --> <!-- 关联查询sql -->
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*,b.lang_category_id SELECT a.*,b.lang_category_id, b.title as categoryName
FROM cms_design a FROM cms_design a
LEFT JOIN cms_navigation b ON a.category_id = b.navigation_id LEFT JOIN cms_navigation b ON a.category_id = b.navigation_id
<where> <where>

View File

@@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsMpAdMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_mp_ad a
<where>
<if test="param.adId != null">
AND a.ad_id = #{param.adId}
</if>
<if test="param.pageId != null">
AND a.page_id = #{param.pageId}
</if>
<if test="param.adType != null">
AND a.ad_type LIKE CONCAT('%', #{param.adType}, '%')
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.width != null">
AND a.width LIKE CONCAT('%', #{param.width}, '%')
</if>
<if test="param.height != null">
AND a.height LIKE CONCAT('%', #{param.height}, '%')
</if>
<if test="param.images != null">
AND a.images LIKE CONCAT('%', #{param.images}, '%')
</if>
<if test="param.path != null">
AND a.path LIKE CONCAT('%', #{param.path}, '%')
</if>
<if test="param.pageName != null">
AND a.page_name LIKE CONCAT('%', #{param.pageName}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsMpAd">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsMpAd">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsMpFieldMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_mp_field a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.value != null">
AND a.value LIKE CONCAT('%', #{param.value}, '%')
</if>
<if test="param.pageId != null">
AND a.page_id = #{param.pageId}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsMpField">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsMpField">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,95 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsMpMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_mp a
<where>
<if test="param.mpId != null">
AND a.mp_id = #{param.mpId}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.appId != null">
AND a.app_id LIKE CONCAT('%', #{param.appId}, '%')
</if>
<if test="param.appSecret != null">
AND a.app_secret LIKE CONCAT('%', #{param.appSecret}, '%')
</if>
<if test="param.mpName != null">
AND a.mp_name LIKE CONCAT('%', #{param.mpName}, '%')
</if>
<if test="param.shortName != null">
AND a.short_name LIKE CONCAT('%', #{param.shortName}, '%')
</if>
<if test="param.avatar != null">
AND a.avatar LIKE CONCAT('%', #{param.avatar}, '%')
</if>
<if test="param.mpQrcode != null">
AND a.mp_qrcode LIKE CONCAT('%', #{param.mpQrcode}, '%')
</if>
<if test="param.authentication != null">
AND a.authentication = #{param.authentication}
</if>
<if test="param.companyName != null">
AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%')
</if>
<if test="param.icpNo != null">
AND a.icp_no LIKE CONCAT('%', #{param.icpNo}, '%')
</if>
<if test="param.email != null">
AND a.email LIKE CONCAT('%', #{param.email}, '%')
</if>
<if test="param.password != null">
AND a.password LIKE CONCAT('%', #{param.password}, '%')
</if>
<if test="param.ghId != null">
AND a.gh_id LIKE CONCAT('%', #{param.ghId}, '%')
</if>
<if test="param.mainPath != null">
AND a.main_path LIKE CONCAT('%', #{param.mainPath}, '%')
</if>
<if test="param.expirationTime != null">
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsMp">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsMp">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,119 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsMpMenuMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_mp_menu a
<where>
<if test="param.menuId != null">
AND a.menu_id = #{param.menuId}
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.isMpWeixin != null">
AND a.is_mp_weixin = #{param.isMpWeixin}
</if>
<if test="param.path != null">
AND a.path LIKE CONCAT('%', #{param.path}, '%')
</if>
<if test="param.component != null">
AND a.component LIKE CONCAT('%', #{param.component}, '%')
</if>
<if test="param.target != null">
AND a.target LIKE CONCAT('%', #{param.target}, '%')
</if>
<if test="param.avatar != null">
AND a.avatar LIKE CONCAT('%', #{param.avatar}, '%')
</if>
<if test="param.color != null">
AND a.color LIKE CONCAT('%', #{param.color}, '%')
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.hide != null">
AND a.hide = #{param.hide}
</if>
<if test="param.position != null">
AND a.position = #{param.position}
</if>
<if test="param.rows != null">
AND a.rows = #{param.rows}
</if>
<if test="param.active != null">
AND a.active LIKE CONCAT('%', #{param.active}, '%')
</if>
<if test="param.meta != null">
AND a.meta LIKE CONCAT('%', #{param.meta}, '%')
</if>
<if test="param.pageId != null">
AND a.page_id = #{param.pageId}
</if>
<if test="param.articleCategoryId != null">
AND a.article_category_id = #{param.articleCategoryId}
</if>
<if test="param.articleId != null">
AND a.article_id = #{param.articleId}
</if>
<if test="param.formId != null">
AND a.form_id = #{param.formId}
</if>
<if test="param.bookCode != null">
AND a.book_code LIKE CONCAT('%', #{param.bookCode}, '%')
</if>
<if test="param.goodsCategoryId != null">
AND a.goods_category_id = #{param.goodsCategoryId}
</if>
<if test="param.goodsId != null">
AND a.goods_id = #{param.goodsId}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.adminShow != null">
AND a.admin_show = #{param.adminShow}
</if>
<if test="param.home != null">
AND a.home = #{param.home}
</if>
<if test="param.groupName != null">
AND a.group_name LIKE CONCAT('%', #{param.groupName}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsMpMenu">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsMpMenu">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,74 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsMpPagesMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_mp_pages a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.path != null">
AND a.path LIKE CONCAT('%', #{param.path}, '%')
</if>
<if test="param.home != null">
AND a.home = #{param.home}
</if>
<if test="param.subpackage != null">
AND a.subpackage LIKE CONCAT('%', #{param.subpackage}, '%')
</if>
<if test="param.icon != null">
AND a.icon LIKE CONCAT('%', #{param.icon}, '%')
</if>
<if test="param.iconPath != null">
AND a.icon_path LIKE CONCAT('%', #{param.iconPath}, '%')
</if>
<if test="param.selectedIconPath != null">
AND a.selected_icon_path LIKE CONCAT('%', #{param.selectedIconPath}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsMpPages">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsMpPages">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,120 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsOrderMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*, b.category_id, c.user_id as websiteUserId
FROM cms_order a
LEFT JOIN cms_article b ON a.article_id = b.article_id
LEFT JOIN cms_website c ON a.tenant_id = c.tenant_id
<where>
<if test="param.orderId != null">
AND a.order_id = #{param.orderId}
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.orderNo != null">
AND a.order_no LIKE CONCAT('%', #{param.orderNo}, '%')
</if>
<if test="param.model != null">
AND a.model = #{param.model}
</if>
<if test="param.lang != null">
AND a.lang = #{param.lang}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.articleId != null">
AND a.article_id = #{param.articleId}
</if>
<if test="param.websiteId != null">
AND a.website_id = #{param.websiteId}
</if>
<if test="param.realName != null">
AND a.real_name LIKE CONCAT('%', #{param.realName}, '%')
</if>
<if test="param.phone != null">
AND a.phone LIKE CONCAT('%', #{param.phone}, '%')
</if>
<if test="param.email != null">
AND a.email LIKE CONCAT('%', #{param.email}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.totalPrice != null">
AND a.total_price = #{param.totalPrice}
</if>
<if test="param.payPrice != null">
AND a.pay_price = #{param.payPrice}
</if>
<if test="param.price != null">
AND a.price = #{param.price}
</if>
<if test="param.totalNum != null">
AND a.total_num = #{param.totalNum}
</if>
<if test="param.qrcode != null">
AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%')
</if>
<if test="param.channel != null">
AND a.channel = #{param.channel}
</if>
<if test="param.expirationTime != null">
AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%')
</if>
<if test="param.isSettled != null">
AND a.is_settled = #{param.isSettled}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.websiteUserId != null">
AND c.user_id = #{param.websiteUserId}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
<if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%')
OR a.title LIKE CONCAT('%', #{param.keywords}, '%')
OR a.content LIKE CONCAT('%', #{param.keywords}, '%')
OR a.phone = #{param.keywords}
)
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsOrder">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsOrder">
<include refid="selectSql"></include>
</select>
<select id="selectListAllRel" resultType="com.gxwebsoft.cms.entity.CmsOrder">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,110 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsProductMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_product a
<where>
<if test="param.productId != null">
AND a.product_id = #{param.productId}
</if>
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.code != null">
AND a.code LIKE CONCAT('%', #{param.code}, '%')
</if>
<if test="param.title != null">
AND a.title LIKE CONCAT('%', #{param.title}, '%')
</if>
<if test="param.image != null">
AND a.image LIKE CONCAT('%', #{param.image}, '%')
</if>
<if test="param.content != null">
AND a.content LIKE CONCAT('%', #{param.content}, '%')
</if>
<if test="param.parentId != null">
AND a.parent_id = #{param.parentId}
</if>
<if test="param.categoryId != null">
AND a.category_id = #{param.categoryId}
</if>
<if test="param.specs != null">
AND a.specs = #{param.specs}
</if>
<if test="param.position != null">
AND a.position LIKE CONCAT('%', #{param.position}, '%')
</if>
<if test="param.unitName != null">
AND a.unit_name LIKE CONCAT('%', #{param.unitName}, '%')
</if>
<if test="param.price != null">
AND a.price = #{param.price}
</if>
<if test="param.salePrice != null">
AND a.sale_price = #{param.salePrice}
</if>
<if test="param.deductStockType != null">
AND a.deduct_stock_type = #{param.deductStockType}
</if>
<if test="param.files != null">
AND a.files LIKE CONCAT('%', #{param.files}, '%')
</if>
<if test="param.sales != null">
AND a.sales = #{param.sales}
</if>
<if test="param.stock != null">
AND a.stock = #{param.stock}
</if>
<if test="param.gainIntegral != null">
AND a.gain_integral = #{param.gainIntegral}
</if>
<if test="param.recommend != null">
AND a.recommend = #{param.recommend}
</if>
<if test="param.merchantId != null">
AND a.merchant_id = #{param.merchantId}
</if>
<if test="param.isShow != null">
AND a.is_show = #{param.isShow}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.deleted != null">
AND a.deleted = #{param.deleted}
</if>
<if test="param.deleted == null">
AND a.deleted = 0
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsProduct">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsProduct">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsProductSpecMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_product_spec a
<where>
<if test="param.specId != null">
AND a.spec_id = #{param.specId}
</if>
<if test="param.specName != null">
AND a.spec_name LIKE CONCAT('%', #{param.specName}, '%')
</if>
<if test="param.specValue != null">
AND a.spec_value LIKE CONCAT('%', #{param.specValue}, '%')
</if>
<if test="param.userId != null">
AND a.user_id = #{param.userId}
</if>
<if test="param.updater != null">
AND a.updater = #{param.updater}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsProductSpec">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsProductSpec">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsProductSpecValueMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_product_spec_value a
<where>
<if test="param.specValueId != null">
AND a.spec_value_id = #{param.specValueId}
</if>
<if test="param.specId != null">
AND a.spec_id = #{param.specId}
</if>
<if test="param.specValue != null">
AND a.spec_value LIKE CONCAT('%', #{param.specValue}, '%')
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsProductSpecValue">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsProductSpecValue">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,59 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gxwebsoft.cms.mapper.CmsProductUrlMapper">
<!-- 关联查询sql -->
<sql id="selectSql">
SELECT a.*
FROM cms_product_url a
<where>
<if test="param.id != null">
AND a.id = #{param.id}
</if>
<if test="param.productId != null">
AND a.product_id = #{param.productId}
</if>
<if test="param.type != null">
AND a.type LIKE CONCAT('%', #{param.type}, '%')
</if>
<if test="param.domain != null">
AND a.domain LIKE CONCAT('%', #{param.domain}, '%')
</if>
<if test="param.account != null">
AND a.account LIKE CONCAT('%', #{param.account}, '%')
</if>
<if test="param.password != null">
AND a.password LIKE CONCAT('%', #{param.password}, '%')
</if>
<if test="param.merchantId != null">
AND a.merchant_id = #{param.merchantId}
</if>
<if test="param.comments != null">
AND a.comments LIKE CONCAT('%', #{param.comments}, '%')
</if>
<if test="param.sortNumber != null">
AND a.sort_number = #{param.sortNumber}
</if>
<if test="param.status != null">
AND a.status = #{param.status}
</if>
<if test="param.createTimeStart != null">
AND a.create_time &gt;= #{param.createTimeStart}
</if>
<if test="param.createTimeEnd != null">
AND a.create_time &lt;= #{param.createTimeEnd}
</if>
</where>
</sql>
<!-- 分页查询 -->
<select id="selectPageRel" resultType="com.gxwebsoft.cms.entity.CmsProductUrl">
<include refid="selectSql"></include>
</select>
<!-- 查询全部 -->
<select id="selectListRel" resultType="com.gxwebsoft.cms.entity.CmsProductUrl">
<include refid="selectSql"></include>
</select>
</mapper>

View File

@@ -1,66 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 组件查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsComponentsParam对象", description = "组件查询参数")
public class CmsComponentsParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer id;
@Schema(description = "组件标题")
private String title;
@Schema(description = "关联导航ID")
@QueryField(type = QueryType.EQ)
private Integer navigationId;
@Schema(description = "组件类型")
private String type;
@Schema(description = "页面关键词")
private String keywords;
@Schema(description = "页面描述")
private String description;
@Schema(description = "组件路径")
private String path;
@Schema(description = "组件图标")
private String icon;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
}

View File

@@ -1,73 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序广告位查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsMpAdParam对象", description = "小程序广告位查询参数")
public class CmsMpAdParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer adId;
@Schema(description = "页面ID")
@QueryField(type = QueryType.EQ)
private Integer pageId;
@Schema(description = "广告类型")
private String adType;
@Schema(description = "广告位名称")
private String name;
@Schema(description = "")
private String width;
@Schema(description = "")
private String height;
@Schema(description = "广告图片")
private String images;
@Schema(description = "路由/链接地址")
private String path;
@Schema(description = "页面名称")
private String pageName;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -1,54 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序配置查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsMpFieldParam对象", description = "小程序配置查询参数")
public class CmsMpFieldParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@QueryField(type = QueryType.EQ)
private Integer id;
@Schema(description = "类型0文本 1图片 2其他")
@QueryField(type = QueryType.EQ)
private Integer type;
@Schema(description = "名称")
private String name;
@Schema(description = "备注")
private String comments;
@Schema(description = "名称")
private String value;
@Schema(description = "页面ID")
@QueryField(type = QueryType.EQ)
private Integer pageId;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -1,133 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序端菜单查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsMpMenuParam对象", description = "小程序端菜单查询参数")
public class CmsMpMenuParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer menuId;
@Schema(description = "上级id, 0是顶级")
@QueryField(type = QueryType.EQ)
private Integer parentId;
@Schema(description = "菜单名称")
private String title;
@Schema(description = "类型 0功能图标 1订单状态图标 2首页导航图标 3 商城导航图标 4管理人员功能图标")
@QueryField(type = QueryType.EQ)
private Integer type;
@Schema(description = "是否微信小程序菜单")
@QueryField(type = QueryType.EQ)
private Boolean isMpWeixin;
@Schema(description = "菜单路由地址")
private String path;
@Schema(description = "菜单组件地址, 目录可为空")
private String component;
@Schema(description = "打开位置")
private String target;
@Schema(description = "菜单图标")
private String avatar;
@Schema(description = "图标颜色")
private String color;
@Schema(description = "上传图标")
private String icon;
@Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)")
@QueryField(type = QueryType.EQ)
private Integer hide;
@Schema(description = "位置 0不限 1顶部 2底部")
@QueryField(type = QueryType.EQ)
private Integer position;
@Schema(description = "0 第一行 1第二行")
@QueryField(type = QueryType.EQ)
private Integer rows;
@Schema(description = "菜单侧栏选中的path")
private String active;
@Schema(description = "其它路由元信息")
private String meta;
@Schema(description = "绑定的页面")
@QueryField(type = QueryType.EQ)
private Integer pageId;
@Schema(description = "绑定的文章分类ID")
@QueryField(type = QueryType.EQ)
private Integer articleCategoryId;
@Schema(description = "绑定的文章ID")
@QueryField(type = QueryType.EQ)
private Integer articleId;
@Schema(description = "绑定的表单ID")
@QueryField(type = QueryType.EQ)
private Integer formId;
@Schema(description = "绑定的知识库标识")
private String bookCode;
@Schema(description = "绑定的商品分类ID")
@QueryField(type = QueryType.EQ)
private Integer goodsCategoryId;
@Schema(description = "绑定的商品ID")
@QueryField(type = QueryType.EQ)
private Integer goodsId;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "是否管理人员可见")
@QueryField(type = QueryType.EQ)
private Integer adminShow;
@Schema(description = "设为首页")
@QueryField(type = QueryType.EQ)
private Integer home;
@Schema(description = "分组名称")
private String groupName;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
}

View File

@@ -1,74 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序页面查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsMpPagesParam对象", description = "小程序页面查询参数")
public class CmsMpPagesParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer id;
@Schema(description = "上级id, 0是顶级")
@QueryField(type = QueryType.EQ)
private Integer parentId;
@Schema(description = "页面名称")
private String title;
@Schema(description = "页面路径")
private String path;
@Schema(description = "设为首页")
@QueryField(type = QueryType.EQ)
private Integer home;
@Schema(description = "分包")
private String subpackage;
@Schema(description = "图标")
private String icon;
@Schema(description = "未选中图标")
private String iconPath;
@Schema(description = "选中的图标")
private String selectedIconPath;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "备注")
private String comments;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -1,95 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 小程序信息查询参数
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsMpParam对象", description = "小程序信息查询参数")
public class CmsMpParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "ID")
@QueryField(type = QueryType.EQ)
private Integer mpId;
@Schema(description = "是否主账号")
@QueryField(type = QueryType.EQ)
private Integer type;
@Schema(description = "小程序ID")
private String appId;
@Schema(description = "小程序密钥")
private String appSecret;
@Schema(description = "小程序名称")
private String mpName;
@Schema(description = "小程序简称")
private String shortName;
@Schema(description = "头像")
private String avatar;
@Schema(description = "小程序码")
private String mpQrcode;
@Schema(description = "微信认证")
@QueryField(type = QueryType.EQ)
private Integer authentication;
@Schema(description = "主体信息")
private String companyName;
@Schema(description = "小程序备案")
private String icpNo;
@Schema(description = "登录邮箱")
private String email;
@Schema(description = "登录密码")
private String password;
@Schema(description = "原始ID")
private String ghId;
@Schema(description = "入口页面")
private String mainPath;
@Schema(description = "过期时间")
private String expirationTime;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "介绍")
private String comments;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "状态, 0正常, 1冻结")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -1,112 +0,0 @@
package com.gxwebsoft.cms.param;
import java.math.BigDecimal;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 订单查询参数
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsOrderParam对象", description = "订单查询参数")
public class CmsOrderParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "订单号")
@QueryField(type = QueryType.EQ)
private Integer orderId;
@Schema(description = "订单标题")
private String title;
@Schema(description = "模型名称")
private String model;
@Schema(description = "订单编号")
private String orderNo;
@Schema(description = "订单类型0商城 1询价 2留言")
@QueryField(type = QueryType.EQ)
private Integer type;
@Schema(description = "关联文章ID")
@QueryField(type = QueryType.EQ)
private Integer articleId;
@Schema(description = "关联网站ID")
@QueryField(type = QueryType.EQ)
private Integer websiteId;
@Schema(description = "真实姓名")
private String realName;
@Schema(description = "手机号码")
private String phone;
@Schema(description = "电子邮箱")
private String email;
@Schema(description = "订单内容")
private String content;
@Schema(description = "订单总额")
@QueryField(type = QueryType.EQ)
private BigDecimal totalPrice;
@Schema(description = "实际付款")
@QueryField(type = QueryType.EQ)
private BigDecimal payPrice;
@Schema(description = "报价询价")
@QueryField(type = QueryType.EQ)
private BigDecimal price;
@Schema(description = "购买数量")
@QueryField(type = QueryType.EQ)
private Integer totalNum;
@Schema(description = "二维码地址,保存订单号,支付成功后才生成")
private String qrcode;
@Schema(description = "下单渠道0网站 1小程序 2其他")
@QueryField(type = QueryType.EQ)
private Integer channel;
@Schema(description = "过期时间")
private String expirationTime;
@Schema(description = "订单是否已结算(0未结算 1已结算)")
@QueryField(type = QueryType.EQ)
private Boolean isSettled;
@Schema(description = "用户id")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
@Schema(description = "网站创建者ID")
@QueryField(type = QueryType.EQ)
private Integer websiteUserId;
}

View File

@@ -1,123 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* 产品查询参数
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsProductParam对象", description = "产品查询参数")
public class CmsProductParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@QueryField(type = QueryType.EQ)
private Integer productId;
@Schema(description = "类型 0软件产品 1实物商品 2虚拟商品")
@QueryField(type = QueryType.EQ)
private Integer type;
@Schema(description = "产品编码")
private String code;
@Schema(description = "产品标题")
private String title;
@Schema(description = "封面图")
private String image;
@Schema(description = "产品详情")
private String content;
@Schema(description = "父级分类ID")
@QueryField(type = QueryType.EQ)
private Integer parentId;
@Schema(description = "产品分类ID")
@QueryField(type = QueryType.EQ)
private Integer categoryId;
@Schema(description = "产品规格 0单规格 1多规格")
@QueryField(type = QueryType.EQ)
private Integer specs;
@Schema(description = "货架")
private String position;
@Schema(description = "单位名称 (个)")
private String unitName;
@Schema(description = "进货价格")
@QueryField(type = QueryType.EQ)
private BigDecimal price;
@Schema(description = "销售价格")
@QueryField(type = QueryType.EQ)
private BigDecimal salePrice;
@Schema(description = "库存计算方式(10下单减库存 20付款减库存)")
@QueryField(type = QueryType.EQ)
private Integer deductStockType;
@Schema(description = "轮播图")
private String files;
@Schema(description = "销量")
@QueryField(type = QueryType.EQ)
private Integer sales;
@Schema(description = "库存")
@QueryField(type = QueryType.EQ)
private Integer stock;
@Schema(description = "消费赚取积分")
@QueryField(type = QueryType.EQ)
private BigDecimal gainIntegral;
@Schema(description = "推荐")
@QueryField(type = QueryType.EQ)
private Integer recommend;
@Schema(description = "商户ID")
@QueryField(type = QueryType.EQ)
private Long merchantId;
@Schema(description = "状态0未上架1上架")
@QueryField(type = QueryType.EQ)
private Boolean isShow;
@Schema(description = "状态, 0上架 1待上架 2待审核 3审核不通过")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "用户ID")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "是否删除, 0否, 1是")
@QueryField(type = QueryType.EQ)
private Integer deleted;
}

View File

@@ -1,54 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 规格查询参数
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsProductSpecParam对象", description = "规格查询参数")
public class CmsProductSpecParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "规格ID")
@QueryField(type = QueryType.EQ)
private Integer specId;
@Schema(description = "规格名称")
private String specName;
@Schema(description = "规格值")
private String specValue;
@Schema(description = "创建用户")
@QueryField(type = QueryType.EQ)
private Integer userId;
@Schema(description = "更新者")
@QueryField(type = QueryType.EQ)
private Integer updater;
@Schema(description = "备注")
private String comments;
@Schema(description = "状态, 0正常, 1待修,2异常已修3异常未修")
@QueryField(type = QueryType.EQ)
private Integer status;
@Schema(description = "排序号")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
}

View File

@@ -1,43 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 规格值查询参数
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsProductSpecValueParam对象", description = "规格值查询参数")
public class CmsProductSpecValueParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "规格值ID")
@QueryField(type = QueryType.EQ)
private Integer specValueId;
@Schema(description = "规格组ID")
@QueryField(type = QueryType.EQ)
private Integer specId;
@Schema(description = "规格值")
private String specValue;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序号")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
}

View File

@@ -1,60 +0,0 @@
package com.gxwebsoft.cms.param;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 域名查询参数
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsProductUrlParam对象", description = "域名查询参数")
public class CmsProductUrlParam extends BaseParam {
private static final long serialVersionUID = 1L;
@Schema(description = "自增ID")
@QueryField(type = QueryType.EQ)
private Integer id;
@Schema(description = "产品ID")
@QueryField(type = QueryType.EQ)
private Integer productId;
@Schema(description = "域名类型")
private String type;
@Schema(description = "域名")
private String domain;
@Schema(description = "账号")
private String account;
@Schema(description = "密码")
private String password;
@Schema(description = "商户ID")
@QueryField(type = QueryType.EQ)
private Long merchantId;
@Schema(description = "备注")
private String comments;
@Schema(description = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;
@Schema(description = "状态, 0正常, 1待确认")
@QueryField(type = QueryType.EQ)
private Integer status;
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsComponents;
import com.gxwebsoft.cms.param.CmsComponentsParam;
import java.util.List;
/**
* 组件Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsComponentsService extends IService<CmsComponents> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsComponents>
*/
PageResult<CmsComponents> pageRel(CmsComponentsParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsComponents>
*/
List<CmsComponents> listRel(CmsComponentsParam param);
/**
* 根据id查询
*
* @param id ID
* @return CmsComponents
*/
CmsComponents getByIdRel(Integer id);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsMpAd;
import com.gxwebsoft.cms.param.CmsMpAdParam;
import java.util.List;
/**
* 小程序广告位Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpAdService extends IService<CmsMpAd> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsMpAd>
*/
PageResult<CmsMpAd> pageRel(CmsMpAdParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsMpAd>
*/
List<CmsMpAd> listRel(CmsMpAdParam param);
/**
* 根据id查询
*
* @param adId ID
* @return CmsMpAd
*/
CmsMpAd getByIdRel(Integer adId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsMpField;
import com.gxwebsoft.cms.param.CmsMpFieldParam;
import java.util.List;
/**
* 小程序配置Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpFieldService extends IService<CmsMpField> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsMpField>
*/
PageResult<CmsMpField> pageRel(CmsMpFieldParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsMpField>
*/
List<CmsMpField> listRel(CmsMpFieldParam param);
/**
* 根据id查询
*
* @param id 自增ID
* @return CmsMpField
*/
CmsMpField getByIdRel(Integer id);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsMpMenu;
import com.gxwebsoft.cms.param.CmsMpMenuParam;
import java.util.List;
/**
* 小程序端菜单Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpMenuService extends IService<CmsMpMenu> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsMpMenu>
*/
PageResult<CmsMpMenu> pageRel(CmsMpMenuParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsMpMenu>
*/
List<CmsMpMenu> listRel(CmsMpMenuParam param);
/**
* 根据id查询
*
* @param menuId ID
* @return CmsMpMenu
*/
CmsMpMenu getByIdRel(Integer menuId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsMpPages;
import com.gxwebsoft.cms.param.CmsMpPagesParam;
import java.util.List;
/**
* 小程序页面Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpPagesService extends IService<CmsMpPages> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsMpPages>
*/
PageResult<CmsMpPages> pageRel(CmsMpPagesParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsMpPages>
*/
List<CmsMpPages> listRel(CmsMpPagesParam param);
/**
* 根据id查询
*
* @param id ID
* @return CmsMpPages
*/
CmsMpPages getByIdRel(Integer id);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsMp;
import com.gxwebsoft.cms.param.CmsMpParam;
import java.util.List;
/**
* 小程序信息Service
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
public interface CmsMpService extends IService<CmsMp> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsMp>
*/
PageResult<CmsMp> pageRel(CmsMpParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsMp>
*/
List<CmsMp> listRel(CmsMpParam param);
/**
* 根据id查询
*
* @param mpId ID
* @return CmsMp
*/
CmsMp getByIdRel(Integer mpId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsOrder;
import com.gxwebsoft.cms.param.CmsOrderParam;
import java.util.List;
/**
* 订单Service
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
public interface CmsOrderService extends IService<CmsOrder> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsOrder>
*/
PageResult<CmsOrder> pageRel(CmsOrderParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsOrder>
*/
List<CmsOrder> listRel(CmsOrderParam param);
/**
* 根据id查询
*
* @param orderId 订单号
* @return CmsOrder
*/
CmsOrder getByIdRel(Integer orderId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsProduct;
import com.gxwebsoft.cms.param.CmsProductParam;
import java.util.List;
/**
* 产品Service
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductService extends IService<CmsProduct> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsProduct>
*/
PageResult<CmsProduct> pageRel(CmsProductParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsProduct>
*/
List<CmsProduct> listRel(CmsProductParam param);
/**
* 根据id查询
*
* @param productId 自增ID
* @return CmsProduct
*/
CmsProduct getByIdRel(Integer productId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsProductSpec;
import com.gxwebsoft.cms.param.CmsProductSpecParam;
import java.util.List;
/**
* 规格Service
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductSpecService extends IService<CmsProductSpec> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsProductSpec>
*/
PageResult<CmsProductSpec> pageRel(CmsProductSpecParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsProductSpec>
*/
List<CmsProductSpec> listRel(CmsProductSpecParam param);
/**
* 根据id查询
*
* @param specId 规格ID
* @return CmsProductSpec
*/
CmsProductSpec getByIdRel(Integer specId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsProductSpecValue;
import com.gxwebsoft.cms.param.CmsProductSpecValueParam;
import java.util.List;
/**
* 规格值Service
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductSpecValueService extends IService<CmsProductSpecValue> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsProductSpecValue>
*/
PageResult<CmsProductSpecValue> pageRel(CmsProductSpecValueParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsProductSpecValue>
*/
List<CmsProductSpecValue> listRel(CmsProductSpecValueParam param);
/**
* 根据id查询
*
* @param specValueId 规格值ID
* @return CmsProductSpecValue
*/
CmsProductSpecValue getByIdRel(Integer specValueId);
}

View File

@@ -1,42 +0,0 @@
package com.gxwebsoft.cms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxwebsoft.common.core.web.PageResult;
import com.gxwebsoft.cms.entity.CmsProductUrl;
import com.gxwebsoft.cms.param.CmsProductUrlParam;
import java.util.List;
/**
* 域名Service
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
public interface CmsProductUrlService extends IService<CmsProductUrl> {
/**
* 分页关联查询
*
* @param param 查询参数
* @return PageResult<CmsProductUrl>
*/
PageResult<CmsProductUrl> pageRel(CmsProductUrlParam param);
/**
* 关联查询全部
*
* @param param 查询参数
* @return List<CmsProductUrl>
*/
List<CmsProductUrl> listRel(CmsProductUrlParam param);
/**
* 根据id查询
*
* @param id 自增ID
* @return CmsProductUrl
*/
CmsProductUrl getByIdRel(Integer id);
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsComponentsMapper;
import com.gxwebsoft.cms.service.CmsComponentsService;
import com.gxwebsoft.cms.entity.CmsComponents;
import com.gxwebsoft.cms.param.CmsComponentsParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 组件Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsComponentsServiceImpl extends ServiceImpl<CmsComponentsMapper, CmsComponents> implements CmsComponentsService {
@Override
public PageResult<CmsComponents> pageRel(CmsComponentsParam param) {
PageParam<CmsComponents, CmsComponentsParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsComponents> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsComponents> listRel(CmsComponentsParam param) {
List<CmsComponents> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsComponents, CmsComponentsParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsComponents getByIdRel(Integer id) {
CmsComponentsParam param = new CmsComponentsParam();
param.setId(id);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsMpAdMapper;
import com.gxwebsoft.cms.service.CmsMpAdService;
import com.gxwebsoft.cms.entity.CmsMpAd;
import com.gxwebsoft.cms.param.CmsMpAdParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 小程序广告位Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsMpAdServiceImpl extends ServiceImpl<CmsMpAdMapper, CmsMpAd> implements CmsMpAdService {
@Override
public PageResult<CmsMpAd> pageRel(CmsMpAdParam param) {
PageParam<CmsMpAd, CmsMpAdParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsMpAd> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsMpAd> listRel(CmsMpAdParam param) {
List<CmsMpAd> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsMpAd, CmsMpAdParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsMpAd getByIdRel(Integer adId) {
CmsMpAdParam param = new CmsMpAdParam();
param.setAdId(adId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsMpFieldMapper;
import com.gxwebsoft.cms.service.CmsMpFieldService;
import com.gxwebsoft.cms.entity.CmsMpField;
import com.gxwebsoft.cms.param.CmsMpFieldParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 小程序配置Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsMpFieldServiceImpl extends ServiceImpl<CmsMpFieldMapper, CmsMpField> implements CmsMpFieldService {
@Override
public PageResult<CmsMpField> pageRel(CmsMpFieldParam param) {
PageParam<CmsMpField, CmsMpFieldParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsMpField> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsMpField> listRel(CmsMpFieldParam param) {
List<CmsMpField> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsMpField, CmsMpFieldParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsMpField getByIdRel(Integer id) {
CmsMpFieldParam param = new CmsMpFieldParam();
param.setId(id);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsMpMenuMapper;
import com.gxwebsoft.cms.service.CmsMpMenuService;
import com.gxwebsoft.cms.entity.CmsMpMenu;
import com.gxwebsoft.cms.param.CmsMpMenuParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 小程序端菜单Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsMpMenuServiceImpl extends ServiceImpl<CmsMpMenuMapper, CmsMpMenu> implements CmsMpMenuService {
@Override
public PageResult<CmsMpMenu> pageRel(CmsMpMenuParam param) {
PageParam<CmsMpMenu, CmsMpMenuParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsMpMenu> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsMpMenu> listRel(CmsMpMenuParam param) {
List<CmsMpMenu> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsMpMenu, CmsMpMenuParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsMpMenu getByIdRel(Integer menuId) {
CmsMpMenuParam param = new CmsMpMenuParam();
param.setMenuId(menuId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsMpPagesMapper;
import com.gxwebsoft.cms.service.CmsMpPagesService;
import com.gxwebsoft.cms.entity.CmsMpPages;
import com.gxwebsoft.cms.param.CmsMpPagesParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 小程序页面Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsMpPagesServiceImpl extends ServiceImpl<CmsMpPagesMapper, CmsMpPages> implements CmsMpPagesService {
@Override
public PageResult<CmsMpPages> pageRel(CmsMpPagesParam param) {
PageParam<CmsMpPages, CmsMpPagesParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsMpPages> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsMpPages> listRel(CmsMpPagesParam param) {
List<CmsMpPages> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsMpPages, CmsMpPagesParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsMpPages getByIdRel(Integer id) {
CmsMpPagesParam param = new CmsMpPagesParam();
param.setId(id);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsMpMapper;
import com.gxwebsoft.cms.service.CmsMpService;
import com.gxwebsoft.cms.entity.CmsMp;
import com.gxwebsoft.cms.param.CmsMpParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 小程序信息Service实现
*
* @author 科技小王子
* @since 2024-09-10 20:47:57
*/
@Service
public class CmsMpServiceImpl extends ServiceImpl<CmsMpMapper, CmsMp> implements CmsMpService {
@Override
public PageResult<CmsMp> pageRel(CmsMpParam param) {
PageParam<CmsMp, CmsMpParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsMp> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsMp> listRel(CmsMpParam param) {
List<CmsMp> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsMp, CmsMpParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsMp getByIdRel(Integer mpId) {
CmsMpParam param = new CmsMpParam();
param.setMpId(mpId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsOrderMapper;
import com.gxwebsoft.cms.service.CmsOrderService;
import com.gxwebsoft.cms.entity.CmsOrder;
import com.gxwebsoft.cms.param.CmsOrderParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 订单Service实现
*
* @author 科技小王子
* @since 2024-11-25 12:14:05
*/
@Service
public class CmsOrderServiceImpl extends ServiceImpl<CmsOrderMapper, CmsOrder> implements CmsOrderService {
@Override
public PageResult<CmsOrder> pageRel(CmsOrderParam param) {
PageParam<CmsOrder, CmsOrderParam> page = new PageParam<>(param);
page.setDefaultOrder("sort_number asc, create_time desc");
List<CmsOrder> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsOrder> listRel(CmsOrderParam param) {
List<CmsOrder> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsOrder, CmsOrderParam> page = new PageParam<>();
page.setDefaultOrder("sort_number asc, create_time desc");
return page.sortRecords(list);
}
@Override
public CmsOrder getByIdRel(Integer orderId) {
CmsOrderParam param = new CmsOrderParam();
param.setOrderId(orderId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsProductMapper;
import com.gxwebsoft.cms.service.CmsProductService;
import com.gxwebsoft.cms.entity.CmsProduct;
import com.gxwebsoft.cms.param.CmsProductParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 产品Service实现
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Service
public class CmsProductServiceImpl extends ServiceImpl<CmsProductMapper, CmsProduct> implements CmsProductService {
@Override
public PageResult<CmsProduct> pageRel(CmsProductParam param) {
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>(param);
page.setDefaultOrder("sort_number asc,create_time desc");
List<CmsProduct> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsProduct> listRel(CmsProductParam param) {
List<CmsProduct> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsProduct, CmsProductParam> page = new PageParam<>();
page.setDefaultOrder("sort_number asc,create_time desc");
return page.sortRecords(list);
}
@Override
public CmsProduct getByIdRel(Integer productId) {
CmsProductParam param = new CmsProductParam();
param.setProductId(productId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsProductSpecMapper;
import com.gxwebsoft.cms.service.CmsProductSpecService;
import com.gxwebsoft.cms.entity.CmsProductSpec;
import com.gxwebsoft.cms.param.CmsProductSpecParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 规格Service实现
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Service
public class CmsProductSpecServiceImpl extends ServiceImpl<CmsProductSpecMapper, CmsProductSpec> implements CmsProductSpecService {
@Override
public PageResult<CmsProductSpec> pageRel(CmsProductSpecParam param) {
PageParam<CmsProductSpec, CmsProductSpecParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsProductSpec> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsProductSpec> listRel(CmsProductSpecParam param) {
List<CmsProductSpec> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsProductSpec, CmsProductSpecParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsProductSpec getByIdRel(Integer specId) {
CmsProductSpecParam param = new CmsProductSpecParam();
param.setSpecId(specId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsProductSpecValueMapper;
import com.gxwebsoft.cms.service.CmsProductSpecValueService;
import com.gxwebsoft.cms.entity.CmsProductSpecValue;
import com.gxwebsoft.cms.param.CmsProductSpecValueParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 规格值Service实现
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Service
public class CmsProductSpecValueServiceImpl extends ServiceImpl<CmsProductSpecValueMapper, CmsProductSpecValue> implements CmsProductSpecValueService {
@Override
public PageResult<CmsProductSpecValue> pageRel(CmsProductSpecValueParam param) {
PageParam<CmsProductSpecValue, CmsProductSpecValueParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time desc");
List<CmsProductSpecValue> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsProductSpecValue> listRel(CmsProductSpecValueParam param) {
List<CmsProductSpecValue> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsProductSpecValue, CmsProductSpecValueParam> page = new PageParam<>();
page.setDefaultOrder("create_time desc");
return page.sortRecords(list);
}
@Override
public CmsProductSpecValue getByIdRel(Integer specValueId) {
CmsProductSpecValueParam param = new CmsProductSpecValueParam();
param.setSpecValueId(specValueId);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -1,47 +0,0 @@
package com.gxwebsoft.cms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxwebsoft.cms.mapper.CmsProductUrlMapper;
import com.gxwebsoft.cms.service.CmsProductUrlService;
import com.gxwebsoft.cms.entity.CmsProductUrl;
import com.gxwebsoft.cms.param.CmsProductUrlParam;
import com.gxwebsoft.common.core.web.PageParam;
import com.gxwebsoft.common.core.web.PageResult;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 域名Service实现
*
* @author 科技小王子
* @since 2024-09-27 16:03:44
*/
@Service
public class CmsProductUrlServiceImpl extends ServiceImpl<CmsProductUrlMapper, CmsProductUrl> implements CmsProductUrlService {
@Override
public PageResult<CmsProductUrl> pageRel(CmsProductUrlParam param) {
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>(param);
page.setDefaultOrder("create_time asc");
List<CmsProductUrl> list = baseMapper.selectPageRel(page, param);
return new PageResult<>(list, page.getTotal());
}
@Override
public List<CmsProductUrl> listRel(CmsProductUrlParam param) {
List<CmsProductUrl> list = baseMapper.selectListRel(param);
// 排序
PageParam<CmsProductUrl, CmsProductUrlParam> page = new PageParam<>();
page.setDefaultOrder("create_time asc");
return page.sortRecords(list);
}
@Override
public CmsProductUrl getByIdRel(Integer id) {
CmsProductUrlParam param = new CmsProductUrlParam();
param.setId(id);
return param.getOne(baseMapper.selectListRel(param));
}
}

View File

@@ -183,7 +183,7 @@ public class SignCheckUtil {
return true; return true;
} }
// 服务器域名白名单列表 // 服务器域名白名单列表
whiteDomains.add("server.gxwebsoft.com"); whiteDomains.add("server.websoft.top");
System.out.println("whiteDomains = " + whiteDomains); System.out.println("whiteDomains = " + whiteDomains);
System.out.println(">>> domainName = " + domainName); System.out.println(">>> domainName = " + domainName);
for(String item: whiteDomains){ for(String item: whiteDomains){

View File

@@ -130,7 +130,8 @@
</if> </if>
</if> </if>
<if test="param.keywords != null"> <if test="param.keywords != null">
AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%') AND (a.name LIKE CONCAT('%', #{param.keywords}, '%')
OR a.comments LIKE CONCAT('%', #{param.keywords}, '%')
) )
</if> </if>
</where> </where>

View File

@@ -18,16 +18,10 @@ spring:
pathmatch: pathmatch:
matching-strategy: ant_path_matcher matching-strategy: ant_path_matcher
# 启用 SpringDoc OpenAPI # json时间格式设置
springdoc: jackson:
api-docs: time-zone: GMT+8
enabled: true date-format: yyyy-MM-dd HH:mm:ss
swagger-ui:
enabled: true
# 启用 Knife4j
knife4j:
enable: true
# 连接池配置 # 连接池配置
datasource: datasource:
@@ -54,11 +48,6 @@ knife4j:
login-username: admin login-username: admin
login-password: admin login-password: admin
# json时间格式设置
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# 设置上传文件大小 # 设置上传文件大小
servlet: servlet:
multipart: multipart:
@@ -166,3 +155,14 @@ certificate:
app-cert-public-key-file: "appCertPublicKey.crt" app-cert-public-key-file: "appCertPublicKey.crt"
alipay-cert-public-key-file: "alipayCertPublicKey.crt" alipay-cert-public-key-file: "alipayCertPublicKey.crt"
alipay-root-cert-file: "alipayRootCert.crt" alipay-root-cert-file: "alipayRootCert.crt"
# 启用 SpringDoc OpenAPI
springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
# 启用 Knife4j
knife4j:
enable: true