diff --git a/CONSERVATIVE_UPGRADE_GUIDE.md b/docs/CONSERVATIVE_UPGRADE_GUIDE.md similarity index 100% rename from CONSERVATIVE_UPGRADE_GUIDE.md rename to docs/CONSERVATIVE_UPGRADE_GUIDE.md diff --git a/UPGRADE_COMPLETION_REPORT.md b/docs/UPGRADE_COMPLETION_REPORT.md similarity index 100% rename from UPGRADE_COMPLETION_REPORT.md rename to docs/UPGRADE_COMPLETION_REPORT.md diff --git a/pom2.xml b/pom2.xml deleted file mode 100644 index ee63fc0..0000000 --- a/pom2.xml +++ /dev/null @@ -1,415 +0,0 @@ - - - 4.0.0 - - com.gxwebsoft - com-gxwebsoft-modules - 1.5.0 - - com-gxwebsoft-api - WebSoftApi project for Spring Boot - - - org.springframework.boot - spring-boot-starter-parent - 2.7.18 - - - - - 17 - UTF-8 - UTF-8 - - - - - - org.springframework.boot - spring-boot-devtools - runtime - true - - - - - org.springframework.boot - spring-boot-starter-test - test - - - - - org.springframework.boot - spring-boot-starter-web - - - - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - - - - - org.springframework.boot - spring-boot-starter-aop - - - - - org.springframework.boot - spring-boot-configuration-processor - true - - - - - org.projectlombok - lombok - true - - - - - com.mysql - mysql-connector-j - runtime - - - - - com.alibaba - druid-spring-boot-starter - 1.2.20 - - - - - com.baomidou - mybatis-plus-boot-starter - 3.4.3.3 - - - - - com.github.yulichang - mybatis-plus-join-boot-starter - 1.4.5 - - - - - com.baomidou - mybatis-plus-generator - 3.4.1 - - - - - cn.hutool - hutool-core - 5.8.25 - - - cn.hutool - hutool-extra - 5.8.25 - - - cn.hutool - hutool-http - 5.8.25 - - - cn.hutool - hutool-crypto - 5.8.25 - - - - - cn.afterturn - easypoi-base - 4.4.0 - - - - - org.apache.tika - tika-core - 2.9.1 - - - - - com.github.livesense - jodconverter-core - 1.0.5 - - - - - org.springframework.boot - spring-boot-starter-mail - - - - - com.ibeetl - beetl - 3.15.10.RELEASE - - - - - org.springdoc - springdoc-openapi-ui - 1.7.0 - - - - - org.springframework.boot - spring-boot-starter-security - - - - - io.jsonwebtoken - jjwt-api - 0.11.5 - - - io.jsonwebtoken - jjwt-impl - 0.11.5 - runtime - - - io.jsonwebtoken - jjwt-jackson - 0.11.5 - runtime - - - - - com.github.whvcse - easy-captcha - 1.6.2 - - - - - org.springframework.boot - spring-boot-starter-data-redis - - - - - com.aliyun - aliyun-java-sdk-core - 4.4.3 - - - - com.alipay.sdk - alipay-sdk-java - 4.35.0.ALL - - - - org.bouncycastle - bcprov-jdk18on - 1.77 - - - - commons-logging - commons-logging - 1.3.0 - - - - com.alibaba - fastjson - 2.0.43 - - - - - com.google.zxing - core - 3.5.2 - - - - com.google.code.gson - gson - 2.10.1 - - - - com.vaadin.external.google - android-json - 0.0.20131108.vaadin1 - compile - - - - - com.corundumstudio.socketio - netty-socketio - 2.0.2 - - - - - com.github.wechatpay-apiv3 - wechatpay-java - 0.2.17 - - - - - org.springframework.integration - spring-integration-mqtt - - - org.eclipse.paho - org.eclipse.paho.client.mqttv3 - 1.2.0 - - - - com.github.binarywang - weixin-java-miniapp - 4.6.0 - - - - com.github.binarywang - weixin-java-mp - 4.6.0 - - - - - com.aliyun.oss - aliyun-sdk-oss - 3.17.4 - - - - com.github.kuaidi100-api - sdk - 1.0.13 - - - - - com.nuonuo - open-sdk - 1.0.5.2 - - - - - com.github.xiaoymin - knife4j-openapi3-spring-boot-starter - 4.3.0 - - - - com.belerweb - pinyin4j - 2.5.1 - - - - - com.aliyun - alimt20181012 - 1.0.3 - - - com.aliyun - tea-openapi - 0.2.5 - - - - com.squareup.okhttp3 - okhttp - 4.12.0 - - - - com.github.ben-manes.caffeine - caffeine - 3.1.8 - - - - com.freewayso - image-combiner - 2.6.9 - - - - org.springframework.boot - spring-boot-starter-websocket - - - - - - - - - src/main/java - - **/*Mapper.xml - - - - src/main/resources - - ** - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - org.project-lombok - lombok - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 17 - 17 - - - - - - - - aliYunMaven - https://maven.aliyun.com/repository/public - - - - diff --git a/migrate-swagger-to-springdoc.sh b/scripts/migrate-swagger-to-springdoc.sh similarity index 100% rename from migrate-swagger-to-springdoc.sh rename to scripts/migrate-swagger-to-springdoc.sh diff --git a/src/main/java/com/gxwebsoft/common/core/config/MybatisPlusConfig.java b/src/main/java/com/gxwebsoft/common/core/config/MybatisPlusConfig.java index 4527a35..2259142 100644 --- a/src/main/java/com/gxwebsoft/common/core/config/MybatisPlusConfig.java +++ b/src/main/java/com/gxwebsoft/common/core/config/MybatisPlusConfig.java @@ -76,8 +76,8 @@ public class MybatisPlusConfig { "sys_website_field", // "sys_company", "sys_domain", - "sys_white_domain", - "cms_domain" + "sys_white_domain" +// "cms_domain" // "cms_website", // "cms_website_field", // "cms_navigation", diff --git a/src/main/java/com/gxwebsoft/common/core/controller/LogAnalysisController.java b/src/main/java/com/gxwebsoft/common/core/controller/LogAnalysisController.java new file mode 100644 index 0000000..f022324 --- /dev/null +++ b/src/main/java/com/gxwebsoft/common/core/controller/LogAnalysisController.java @@ -0,0 +1,237 @@ +package com.gxwebsoft.common.core.controller; + +import com.gxwebsoft.common.core.web.ApiResult; +import com.gxwebsoft.common.core.web.BaseController; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.extern.slf4j.Slf4j; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileReader; +import java.io.IOException; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * 日志分析控制器 + * + * @author WebSoft + * @since 2025-01-20 + */ +@Slf4j +@RestController +@RequestMapping("/api/log-analysis") +@Tag(name = "日志分析", description = "日志分析和诊断接口") +public class LogAnalysisController extends BaseController { + + @Operation(summary = "分析系统日志") + @GetMapping("/analyze") + @PreAuthorize("hasAuthority('system:log:view')") + public ApiResult> analyzeSystemLogs( + @Parameter(description = "查询的小时数,默认24小时") @RequestParam(defaultValue = "24") int hours, + @Parameter(description = "日志级别过滤,如ERROR,WARN") @RequestParam(required = false) String level) { + + try { + Map analysis = new HashMap<>(); + + // 分析错误日志 + List> errorLogs = analyzeErrorLogs(hours); + analysis.put("errorLogs", errorLogs); + + // 分析安全事件 + List> securityEvents = analyzeSecurityEvents(hours); + analysis.put("securityEvents", securityEvents); + + // 分析性能问题 + List> performanceIssues = analyzePerformanceIssues(hours); + analysis.put("performanceIssues", performanceIssues); + + // 统计信息 + Map statistics = getLogStatistics(hours); + analysis.put("statistics", statistics); + + // 建议 + List recommendations = generateRecommendations(errorLogs, securityEvents, performanceIssues); + analysis.put("recommendations", recommendations); + + return success("日志分析完成", analysis); + + } catch (Exception e) { + log.error("分析系统日志失败", e); + return new ApiResult<>(1, "分析日志失败: " + e.getMessage()); + } + } + + @Operation(summary = "获取实时日志") + @GetMapping("/real-time") + @PreAuthorize("hasAuthority('system:log:view')") + public ApiResult> getRealTimeLogs( + @Parameter(description = "获取的行数") @RequestParam(defaultValue = "100") int lines) { + + try { + List recentLogs = getRecentLogLines(lines); + return success("获取实时日志成功", recentLogs); + + } catch (Exception e) { + log.error("获取实时日志失败", e); + return new ApiResult<>(1, "获取实时日志失败: " + e.getMessage()); + } + } + + @Operation(summary = "搜索日志") + @GetMapping("/search") + @PreAuthorize("hasAuthority('system:log:view')") + public ApiResult>> searchLogs( + @Parameter(description = "搜索关键词") @RequestParam String keyword, + @Parameter(description = "开始时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String startTime, + @Parameter(description = "结束时间 yyyy-MM-dd HH:mm:ss") @RequestParam(required = false) String endTime) { + + try { + List> searchResults = searchLogsByKeyword(keyword, startTime, endTime); + return success("搜索日志成功", searchResults); + + } catch (Exception e) { + log.error("搜索日志失败", e); + return new ApiResult<>(1, "搜索日志失败: " + e.getMessage()); + } + } + + @Operation(summary = "清理旧日志") + @PostMapping("/cleanup") + @PreAuthorize("hasAuthority('system:log:delete')") + public ApiResult> cleanupOldLogs( + @Parameter(description = "保留天数") @RequestParam(defaultValue = "30") int keepDays) { + + try { + Map result = performLogCleanup(keepDays); + return success("日志清理完成", result); + + } catch (Exception e) { + log.error("清理日志失败", e); + return new ApiResult<>(1, "清理日志失败: " + e.getMessage()); + } + } + + /** + * 分析错误日志 + */ + private List> analyzeErrorLogs(int hours) { + List> errorLogs = new ArrayList<>(); + // 这里实现错误日志分析逻辑 + // 可以读取日志文件,解析ERROR级别的日志 + return errorLogs; + } + + /** + * 分析安全事件 + */ + private List> analyzeSecurityEvents(int hours) { + List> securityEvents = new ArrayList<>(); + // 这里实现安全事件分析逻辑 + // 可以检查登录失败、权限拒绝等安全相关事件 + return securityEvents; + } + + /** + * 分析性能问题 + */ + private List> analyzePerformanceIssues(int hours) { + List> performanceIssues = new ArrayList<>(); + // 这里实现性能问题分析逻辑 + // 可以检查慢查询、长时间处理的请求等 + return performanceIssues; + } + + /** + * 获取日志统计信息 + */ + private Map getLogStatistics(int hours) { + Map statistics = new HashMap<>(); + statistics.put("totalLogs", 0); + statistics.put("errorCount", 0); + statistics.put("warnCount", 0); + statistics.put("infoCount", 0); + // 这里实现统计逻辑 + return statistics; + } + + /** + * 生成建议 + */ + private List generateRecommendations(List> errorLogs, + List> securityEvents, + List> performanceIssues) { + List recommendations = new ArrayList<>(); + + if (!errorLogs.isEmpty()) { + recommendations.add("检测到错误日志,建议检查系统异常情况"); + } + + if (!securityEvents.isEmpty()) { + recommendations.add("检测到安全事件,建议加强安全监控"); + } + + if (!performanceIssues.isEmpty()) { + recommendations.add("检测到性能问题,建议优化系统性能"); + } + + if (recommendations.isEmpty()) { + recommendations.add("系统运行正常,无异常发现"); + } + + return recommendations; + } + + /** + * 获取最近的日志行 + */ + private List getRecentLogLines(int lines) throws IOException { + List recentLogs = new ArrayList<>(); + File logFile = new File("logs/websoft-core.log"); + + if (logFile.exists()) { + try (BufferedReader reader = new BufferedReader(new FileReader(logFile))) { + String line; + LinkedList buffer = new LinkedList<>(); + + while ((line = reader.readLine()) != null) { + buffer.add(line); + if (buffer.size() > lines) { + buffer.removeFirst(); + } + } + + recentLogs.addAll(buffer); + } + } + + return recentLogs; + } + + /** + * 根据关键词搜索日志 + */ + private List> searchLogsByKeyword(String keyword, String startTime, String endTime) { + List> results = new ArrayList<>(); + // 这里实现关键词搜索逻辑 + return results; + } + + /** + * 执行日志清理 + */ + private Map performLogCleanup(int keepDays) { + Map result = new HashMap<>(); + result.put("cleaned", false); + result.put("message", "日志清理功能待实现"); + // 这里实现日志清理逻辑 + return result; + } +} \ No newline at end of file diff --git a/src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java b/src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java index 105fc28..58f118e 100644 --- a/src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java +++ b/src/main/java/com/gxwebsoft/common/core/security/JwtAuthenticationFilter.java @@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil; import com.gxwebsoft.common.core.Constants; import com.gxwebsoft.common.core.config.ConfigProperties; import com.gxwebsoft.common.core.utils.CommonUtil; +import com.gxwebsoft.common.core.utils.LogAnalysisUtil; import com.gxwebsoft.common.core.utils.RedisUtil; import com.gxwebsoft.common.core.utils.SignCheckUtil; import com.gxwebsoft.common.system.entity.LoginRecord; @@ -84,10 +85,13 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter { user.getTenantId(), request); } } catch (ExpiredJwtException e) { + LogAnalysisUtil.logSecurityEvent("JWT_TOKEN_EXPIRED", "unknown", e.getMessage(), request); CommonUtil.responseError(response, Constants.TOKEN_EXPIRED_CODE, Constants.TOKEN_EXPIRED_MSG, e.getMessage()); return; } catch (Exception e) { + LogAnalysisUtil.logSecurityEvent("JWT_AUTHENTICATION_FAILED", "unknown", e.getMessage(), request); + LogAnalysisUtil.logExceptionDetails(e, "JWT认证过程"); CommonUtil.responseError(response, Constants.BAD_CREDENTIALS_CODE, Constants.BAD_CREDENTIALS_MSG, e.toString()); return; diff --git a/src/main/java/com/gxwebsoft/common/core/utils/LogAnalysisUtil.java b/src/main/java/com/gxwebsoft/common/core/utils/LogAnalysisUtil.java new file mode 100644 index 0000000..c50a01a --- /dev/null +++ b/src/main/java/com/gxwebsoft/common/core/utils/LogAnalysisUtil.java @@ -0,0 +1,190 @@ +package com.gxwebsoft.common.core.utils; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Component; + +import javax.servlet.http.HttpServletRequest; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Map; + +/** + * 日志分析工具类 + * 用于收集和分析请求相关信息 + * + * @author WebSoft + * @since 2025-01-20 + */ +@Slf4j +@Component +public class LogAnalysisUtil { + + /** + * 记录请求详细信息 + */ + public static void logRequestDetails(HttpServletRequest request, String operation) { + try { + Map requestInfo = new HashMap<>(); + + // 基本请求信息 + requestInfo.put("operation", operation); + requestInfo.put("method", request.getMethod()); + requestInfo.put("requestURL", request.getRequestURL().toString()); + requestInfo.put("requestURI", request.getRequestURI()); + requestInfo.put("queryString", request.getQueryString()); + requestInfo.put("remoteAddr", request.getRemoteAddr()); + requestInfo.put("userAgent", request.getHeader("User-Agent")); + + // 请求头信息 + Map headers = new HashMap<>(); + Enumeration headerNames = request.getHeaderNames(); + while (headerNames.hasMoreElements()) { + String headerName = headerNames.nextElement(); + // 过滤敏感信息 + if (!isSensitiveHeader(headerName)) { + headers.put(headerName, request.getHeader(headerName)); + } + } + requestInfo.put("headers", headers); + + // 参数信息 + Map parameters = request.getParameterMap(); + Map params = new HashMap<>(); + parameters.forEach((key, values) -> { + if (!isSensitiveParameter(key)) { + params.put(key, values.length == 1 ? values[0] : values); + } + }); + requestInfo.put("parameters", params); + + log.info("请求详情: {}", requestInfo); + + } catch (Exception e) { + log.error("记录请求详情失败", e); + } + } + + /** + * 记录异常详细信息 + */ + public static void logExceptionDetails(Exception exception, String context) { + try { + Map exceptionInfo = new HashMap<>(); + + exceptionInfo.put("context", context); + exceptionInfo.put("exceptionType", exception.getClass().getSimpleName()); + exceptionInfo.put("message", exception.getMessage()); + exceptionInfo.put("timestamp", System.currentTimeMillis()); + + // 堆栈跟踪 + StackTraceElement[] stackTrace = exception.getStackTrace(); + if (stackTrace.length > 0) { + StackTraceElement firstElement = stackTrace[0]; + exceptionInfo.put("errorLocation", + firstElement.getClassName() + "." + firstElement.getMethodName() + + "(" + firstElement.getFileName() + ":" + firstElement.getLineNumber() + ")"); + } + + // 根异常 + Throwable rootCause = getRootCause(exception); + if (rootCause != exception) { + exceptionInfo.put("rootCause", rootCause.getClass().getSimpleName()); + exceptionInfo.put("rootCauseMessage", rootCause.getMessage()); + } + + log.error("异常详情: {}", exceptionInfo, exception); + + } catch (Exception e) { + log.error("记录异常详情失败", e); + } + } + + /** + * 记录性能信息 + */ + public static void logPerformanceInfo(String operation, long startTime, long endTime) { + try { + long duration = endTime - startTime; + Map performanceInfo = new HashMap<>(); + + performanceInfo.put("operation", operation); + performanceInfo.put("startTime", startTime); + performanceInfo.put("endTime", endTime); + performanceInfo.put("duration", duration + "ms"); + + // 性能级别判断 + String level = "INFO"; + if (duration > 5000) { + level = "WARN"; + } else if (duration > 10000) { + level = "ERROR"; + } + performanceInfo.put("performanceLevel", level); + + if ("ERROR".equals(level)) { + log.error("性能异常: {}", performanceInfo); + } else if ("WARN".equals(level)) { + log.warn("性能告警: {}", performanceInfo); + } else { + log.info("性能信息: {}", performanceInfo); + } + + } catch (Exception e) { + log.error("记录性能信息失败", e); + } + } + + /** + * 检查是否为敏感请求头 + */ + private static boolean isSensitiveHeader(String headerName) { + String lowerName = headerName.toLowerCase(); + return lowerName.contains("password") || + lowerName.contains("token") || + lowerName.contains("authorization") || + lowerName.contains("cookie"); + } + + /** + * 检查是否为敏感参数 + */ + private static boolean isSensitiveParameter(String paramName) { + String lowerName = paramName.toLowerCase(); + return lowerName.contains("password") || + lowerName.contains("token") || + lowerName.contains("secret") || + lowerName.contains("key"); + } + + /** + * 获取根异常 + */ + private static Throwable getRootCause(Throwable throwable) { + Throwable rootCause = throwable; + while (rootCause.getCause() != null && rootCause.getCause() != rootCause) { + rootCause = rootCause.getCause(); + } + return rootCause; + } + + /** + * 记录安全相关日志 + */ + public static void logSecurityEvent(String event, String username, String details, HttpServletRequest request) { + try { + Map securityInfo = new HashMap<>(); + + securityInfo.put("event", event); + securityInfo.put("username", username); + securityInfo.put("details", details); + securityInfo.put("timestamp", System.currentTimeMillis()); + securityInfo.put("remoteAddr", request != null ? request.getRemoteAddr() : "unknown"); + securityInfo.put("userAgent", request != null ? request.getHeader("User-Agent") : "unknown"); + + log.warn("安全事件: {}", securityInfo); + + } catch (Exception e) { + log.error("记录安全事件失败", e); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/gxwebsoft/common/system/controller/CompanyController.java b/src/main/java/com/gxwebsoft/common/system/controller/CompanyController.java index aabd881..dffcbd0 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/CompanyController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/CompanyController.java @@ -15,8 +15,6 @@ import com.gxwebsoft.common.system.mapper.CompanyMapper; import com.gxwebsoft.common.system.mapper.TenantMapper; import com.gxwebsoft.common.system.param.CompanyParam; import com.gxwebsoft.common.system.service.*; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.service.ShopMerchantApplyService; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.Operation; import org.springframework.security.access.prepost.PreAuthorize; @@ -43,8 +41,6 @@ public class CompanyController extends BaseController { @Resource private CompanyService companyService; @Resource - private ShopMerchantApplyService shopMerchantApplyService; - @Resource private CompanyContentService companyContentService; @Resource private CompanyUrlService companyUrlService; @@ -254,14 +250,6 @@ public class CompanyController extends BaseController { if(loginUser != null){ final Company company = companyService.getOne(new LambdaQueryWrapper().eq(Company::getTenantId, loginUser.getTenantId()).eq(Company::getAuthoritative, true).last("limit 1")); if (ObjectUtil.isNotEmpty(company)) { - final ShopMerchantApply apply = shopMerchantApplyService.getOne(new LambdaQueryWrapper().eq(ShopMerchantApply::getTenantId, loginUser.getTenantId()).last("limit 1")); - if (ObjectUtil.isNotEmpty(apply)) { - company.setCompanyName(apply.getMerchantName()); - company.setCompanyType(apply.getShopType()); - if (apply.getStatus().equals(1)) { - company.setAuthentication(1); - } - } // 即将过期(一周内过期的) company.setSoon(DateUtil.offsetDay(company.getExpirationTime(), -7).compareTo(DateUtil.date())); // 是否过期 -1已过期 大于0 未过期 diff --git a/src/main/java/com/gxwebsoft/common/system/controller/MenuController.java b/src/main/java/com/gxwebsoft/common/system/controller/MenuController.java index 995abe4..2d6e09c 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/MenuController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/MenuController.java @@ -1,7 +1,14 @@ package com.gxwebsoft.common.system.controller; -import cn.hutool.core.stream.CollectorUtil; +import cn.afterturn.easypoi.excel.ExcelImportUtil; +import cn.afterturn.easypoi.excel.entity.ImportParams; import cn.hutool.core.util.ObjectUtil; +import com.gxwebsoft.common.core.utils.JSONUtil; +import com.gxwebsoft.common.system.param.MenuImportParam; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.multipart.MultipartFile; + +import cn.hutool.core.stream.CollectorUtil; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; @@ -227,4 +234,49 @@ public class MenuController extends BaseController { } return fail("安装失败",id); } + + /** + * excel批量导入菜单 + */ + @PreAuthorize("hasAuthority('sys:menu:remove')") + @Operation(summary = "批量导入菜单") + @Transactional(rollbackFor = {Exception.class}) + @PostMapping("/import") + public ApiResult importBatch(MultipartFile file) { + ImportParams importParams = new ImportParams(); + try { + // 第一步:永久删除已标记为 deleted=1 的记录 + menuService.remove(new LambdaQueryWrapper().eq(Menu::getDeleted, 1)); + + // 第二步:将现有未删除的记录(deleted=0)标记为 deleted=1 + LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); + updateWrapper.eq(Menu::getDeleted, 0); + updateWrapper.set(Menu::getDeleted, 1); + menuService.update(updateWrapper); + + // 第三步:导入XLS文件的内容 + List list = ExcelImportUtil.importExcel(file.getInputStream(), MenuImportParam.class, importParams); + list.forEach(d -> { + Menu item = JSONUtil.parseObject(JSONUtil.toJSONString(d), Menu.class); + assert item != null; + if (ObjectUtil.isNotEmpty(item)) { + // 设置默认值 + if (item.getDeleted() == null) { + item.setDeleted(0); // 新导入的数据deleted设为0 + } + if (item.getSortNumber() == null) { + item.setSortNumber(100); + } + if (item.getParentId() == null) { + item.setParentId(0); + } + menuService.save(item); + } + }); + return success("成功导入" + list.size() + "条"); + } catch (Exception e) { + e.printStackTrace(); + } + return fail("导入失败"); + } } diff --git a/src/main/java/com/gxwebsoft/common/system/controller/OrderController.java b/src/main/java/com/gxwebsoft/common/system/controller/OrderController.java index 64d78d1..3ea9fd9 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/OrderController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/OrderController.java @@ -4,7 +4,6 @@ import cn.hutool.core.date.DateUtil; import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.gxwebsoft.common.core.annotation.OperationLog; import com.gxwebsoft.common.core.web.ApiResult; import com.gxwebsoft.common.core.web.BaseController; @@ -20,8 +19,6 @@ import com.gxwebsoft.common.system.param.OrderParam; import com.gxwebsoft.common.system.service.MenuService; import com.gxwebsoft.common.system.service.OrderGoodsService; import com.gxwebsoft.common.system.service.OrderService; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.service.ShopMerchantApplyService; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.Operation; import org.springframework.security.access.prepost.PreAuthorize; @@ -47,8 +44,6 @@ public class OrderController extends BaseController { @Resource private OrderGoodsService orderGoodsService; @Resource - private ShopMerchantApplyService shopMerchantApplyService; - @Resource private MenuService menuService; @Resource private MenuMapper menuMapper; @@ -108,10 +103,6 @@ public class OrderController extends BaseController { order.setOrderNo(Long.toString(IdUtil.getSnowflakeNextId())); order.setPhone(loginUser.getPhone()); order.setRealName(loginUser.getRealName()); - final ShopMerchantApply shopMerchantApply = shopMerchantApplyService.getOne(new LambdaQueryWrapper().eq(ShopMerchantApply::getUserId, loginUser.getUserId()).eq(ShopMerchantApply::getStatus, 1)); - if (ObjectUtil.isNotEmpty(shopMerchantApply)) { - order.setRealName(shopMerchantApply.getRealName()); - } // 购买商品 if (order.getType().equals(0)) { order.setVersion(0); diff --git a/src/main/java/com/gxwebsoft/common/system/controller/PaymentController.java b/src/main/java/com/gxwebsoft/common/system/controller/PaymentController.java index 72d3e76..6de4d67 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/PaymentController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/PaymentController.java @@ -4,21 +4,15 @@ import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.gxwebsoft.common.core.utils.RedisUtil; -import com.gxwebsoft.common.core.utils.RequestUtil; import com.gxwebsoft.common.core.web.BaseController; import com.gxwebsoft.common.system.entity.*; import com.gxwebsoft.common.system.service.PaymentService; import com.gxwebsoft.common.system.param.PaymentParam; -import com.gxwebsoft.shop.entity.ShopOrder; 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.service.UserBalanceLogService; -import com.gxwebsoft.common.system.service.UserService; -import com.wechat.pay.java.service.partnerpayments.jsapi.model.Transaction; -import com.wechat.pay.java.service.partnerpayments.model.TransactionAmount; import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.Operation; import org.springframework.security.access.prepost.PreAuthorize; @@ -26,13 +20,9 @@ import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; -import java.math.BigDecimal; import java.util.List; -import java.util.UUID; import java.util.concurrent.TimeUnit; -import static com.gxwebsoft.common.core.constants.BalanceConstants.BALANCE_USE; - /** * 支付方式控制器 * @@ -46,66 +36,7 @@ public class PaymentController extends BaseController { @Resource private PaymentService paymentService; @Resource - private UserService userService; - @Resource - private UserBalanceLogService userBalanceLogService; - @Resource private RedisUtil redisUtil; - @Resource - private RequestUtil requestUtil; - - @Operation(summary = "余额支付接口") - @PostMapping("/balancePay") - public ApiResult balancePay(@RequestBody ShopOrder order) { - System.out.println("使用余额支付 >>> 订单信息 " + order); - - // 查询购买者信息 - final User buyer = userService.getById(order.getUserId()); - - if (buyer.getBalance().compareTo(order.getPayPrice()) < 0) { - return fail("余额不足"); - } - - // 扣除余额 - final BigDecimal subtract = buyer.getBalance().subtract(order.getTotalPrice()); -// final BigDecimal multiply = subtract.multiply(new BigDecimal(100)); - buyer.setBalance(subtract); - final boolean updateUser = userService.updateUser(buyer); - - // 记录余额明细 - UserBalanceLog userBalanceLog = new UserBalanceLog(); - userBalanceLog.setUserId(buyer.getUserId()); - userBalanceLog.setScene(BALANCE_USE); - userBalanceLog.setMoney(order.getPayPrice()); - BigDecimal balance = buyer.getBalance().add(order.getPayPrice()); - userBalanceLog.setBalance(balance); - userBalanceLog.setComments(order.getMerchantName()); - userBalanceLog.setTransactionId(UUID.randomUUID().toString()); - userBalanceLog.setOrderNo(order.getOrderNo()); - final boolean save = userBalanceLogService.save(userBalanceLog); - System.out.println("save = " + save); - - // 推送微信官方支付结果(携带租户ID的POST请求) - final Transaction transaction = new Transaction(); - transaction.setOutTradeNo(order.getOrderNo()); - transaction.setTransactionId(order.getOrderNo()); - final TransactionAmount amount = new TransactionAmount(); - // 计算金额 - BigDecimal decimal = order.getTotalPrice(); - final BigDecimal multiply = decimal.multiply(new BigDecimal(100)); - // 将 BigDecimal 转换为 Integer - Integer money = multiply.intValue(); - amount.setTotal(money); - amount.setCurrency("CNY"); - transaction.setAmount(amount); - // 获取支付配置信息用于解密 - String key = "Payment:0:".concat(order.getTenantId().toString()); - System.out.println("key = " + key); - final Payment payment = redisUtil.get(key, Payment.class); - requestUtil.pushBalancePayNotify(transaction, payment); - - return success("支付成功",order.getOrderNo()); - } @Operation(summary = "选择支付方式") @GetMapping("/select") diff --git a/src/main/java/com/gxwebsoft/common/system/param/MenuImportParam.java b/src/main/java/com/gxwebsoft/common/system/param/MenuImportParam.java new file mode 100644 index 0000000..d223b50 --- /dev/null +++ b/src/main/java/com/gxwebsoft/common/system/param/MenuImportParam.java @@ -0,0 +1,57 @@ +package com.gxwebsoft.common.system.param; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.io.Serializable; + +/** + * 菜单导入参数 + * + * @author WebSoft + * @since 2025-09-30 + */ +@Data +public class MenuImportParam implements Serializable { + private static final long serialVersionUID = 1L; + + @Excel(name = "上级id, 0是顶级") + private Integer parentId; + + @Excel(name = "菜单名称") + private String title; + + @Excel(name = "菜单路由地址") + private String path; + + @Excel(name = "菜单组件地址") + private String component; + + @Excel(name = "模块ID") + private String modules; + + @Excel(name = "模块API") + private String modulesUrl; + + @Excel(name = "菜单类型, 0菜单, 1按钮") + private Integer menuType; + + @Excel(name = "排序号") + private Integer sortNumber; + + @Excel(name = "权限标识") + private String authority; + + @Excel(name = "菜单图标") + private String icon; + + @Excel(name = "是否隐藏, 0否, 1是") + private Integer hide; + + @Excel(name = "关联应用") + private Integer appId; + + @Excel(name = "租户id") + private Integer tenantId; + +} \ No newline at end of file diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAppController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAppController.java deleted file mode 100644 index 35d6640..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAppController.java +++ /dev/null @@ -1,328 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import cn.hutool.core.net.url.UrlBuilder; -import cn.hutool.core.net.url.UrlQuery; -import cn.hutool.core.util.DesensitizedUtil; -import cn.hutool.core.util.StrUtil; -import cn.hutool.http.HttpRequest; -import com.alibaba.fastjson.JSONObject; -import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.gxwebsoft.common.core.security.JwtUtil; -import com.gxwebsoft.common.core.utils.CommonUtil; -import com.gxwebsoft.common.core.utils.RedisUtil; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.FileRecord; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.entity.OaAppUrl; -import com.gxwebsoft.oa.entity.OaAppUser; -import com.gxwebsoft.oa.service.OaAppService; -import com.gxwebsoft.oa.entity.OaApp; -import com.gxwebsoft.oa.param.OaAppParam; -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.oa.service.OaAppUrlService; -import com.gxwebsoft.oa.service.OaAppUserService; -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 javax.servlet.http.HttpServletRequest; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.stream.Collectors; - -import static com.gxwebsoft.common.core.constants.AppUserConstants.ADMINISTRATOR; - -/** - * 应用控制器 - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -@Tag(name = "应用管理") -@RestController -@RequestMapping("/api/oa/oa-app") -public class OaAppController extends BaseController { - @Resource - private OaAppService oaAppService; - @Resource - private OaAppUrlService oaAppUrlService; - @Resource - private OaAppUserService oaAppUserService; - @Resource - private RedisUtil redisUtil; - - @PreAuthorize("hasAuthority('oa:app:list')") - @Operation(summary = "分页查询应用") - @GetMapping("/page") - public ApiResult> page(OaAppParam param, HttpServletRequest request) { - final User loginUser = getLoginUser(); - // 未登录情况 - if(loginUser == null){ - String access_token = JwtUtil.getAccessToken(request); - param.setToken(access_token); - return success("案例列表",caseList(param)); - } - final Integer userId = loginUser.getUserId(); - loginUser.getRoles().forEach(d -> { - if(!StrUtil.equals(d.getRoleCode(),"superAdmin") && !StrUtil.equals(d.getRoleCode(),"admin")){ - // 非管理员按项目成员权限显示 - final List list = oaAppUserService.list(new LambdaQueryWrapper().eq(OaAppUser::getUserId, userId)); - System.out.println("list = " + list); - final Set collect = list.stream().map(OaAppUser::getAppId).collect(Collectors.toSet()); - param.setAppIds(collect); - } - }); - // 过滤续费提醒参数 - if (param.getAppStatus() != null && param.getAppStatus().equals("续费中")) { - param.setAppStatus(null); - } - // 使用关联查询 - return success(oaAppService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:app:list')") - @Operation(summary = "查询全部应用") - @GetMapping() - public ApiResult> list(OaAppParam param) { - // 使用关联查询 - return success(oaAppService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:app:list')") - @Operation(summary = "根据id查询应用") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - final User loginUser = getLoginUser(); - // 未登录情况 - if(loginUser == null){ - return success("案例详情",getDesensitizedApp(id)); - } - if (!CommonUtil.hasRole(loginUser.getRoles(),"superAdmin") && !CommonUtil.hasRole(loginUser.getRoles(),"admin")) { - // 查询权限 - if (oaAppUserService.count(new LambdaQueryWrapper().eq(OaAppUser::getUserId, getLoginUserId()).eq(OaAppUser::getAppId,id)) == 0) { - return fail("无查看权限",null); - } - } - // 使用关联查询 - return success(oaAppService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:app:save')") - @Operation(summary = "添加应用") - @PostMapping() - public ApiResult save(@RequestBody OaApp app) { - // 记录当前登录用户id、租户id、商户编号 - User loginUser = getLoginUser(); - OaAppUser appUser = new OaAppUser(); - if (loginUser != null) { - app.setUserId(loginUser.getUserId()); - app.setTenantId(loginUser.getTenantId()); - } - if (oaAppService.count(new LambdaQueryWrapper() - .eq(OaApp::getAppCode, app.getAppCode())) > 0) { - return fail("应用标识已存在"); - } - if (oaAppService.save(app)) { - // 添加应用管理员 - if (loginUser != null) { - appUser.setUserId(loginUser.getUserId()); - appUser.setNickname(loginUser.getNickname()); - appUser.setAppId(app.getAppId()); - appUser.setRole(ADMINISTRATOR); - oaAppUserService.save(appUser); - } - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:app:update')") - @Operation(summary = "修改应用") - @PutMapping() - public ApiResult update(@RequestBody OaApp oaApp) { - if (oaAppService.updateById(oaApp)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:app:remove')") - @Operation(summary = "删除应用") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAppService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:app:save')") - @Operation(summary = "批量添加应用") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAppService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:app:update')") - @Operation(summary = "批量修改应用") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAppService, "app_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:app:remove')") - @Operation(summary = "批量删除应用") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAppService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "统计信息") - @GetMapping("/data") - public ApiResult> data() { - Map data = new HashMap<>(); - Integer totalNum = oaAppService.count( - new LambdaQueryWrapper<>() - ); - Integer totalNum2 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getAppStatus, "开发中") - ); - Integer totalNum3 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getAppStatus, "已上架") - ); - Integer totalNum4 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getAppStatus, "已上架") - .eq(OaApp::getShowExpiration,false) - ); - Integer totalNum5 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getAppStatus, "已下架") - ); - Integer totalNum6 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getShowCase,true) - ); - Integer totalNum7 = oaAppService.count( - new LambdaQueryWrapper() - .eq(OaApp::getShowIndex, true) - ); - - data.put("totalNum", totalNum); - data.put("totalNum2", totalNum2); - data.put("totalNum3", totalNum3); - data.put("totalNum4", totalNum4); - data.put("totalNum5", totalNum5); - data.put("totalNum6", totalNum6); - data.put("totalNum7", totalNum7); - return success(data); - } - - - // 读取案例列表 - private PageResult caseList(OaAppParam param){ - param.setShowCase(true); - final PageResult appPageResult = oaAppService.pageRel(param); - appPageResult.getList().forEach(d -> { - d.setContent(null); - // 读取账号列表 - d.setAppUrlList(oaAppUrlService.list(new LambdaQueryWrapper().eq(OaAppUrl::getAppId,d.getAppId()))); - // 读取项目附件(链式构建GET请求) - HashMap map = new HashMap<>(); - map.put("appId", d.getAppId()); - final String build = UrlBuilder.of("https://server.gxwebsoft.com/api/file/page").setQuery(new UrlQuery(map)).build(); - String response = HttpRequest.get(build) - .header("Authorization", param.getToken()) - .header("Tenantid", d.getTenantId().toString()) - .body(JSONObject.toJSONString(map))//表单内容 - .timeout(20000)//超时,毫秒 - .execute().body(); - - final ApiResult> userResult = JSONObject.parseObject(response, new TypeReference>>() { - }); - d.setAppFiles(userResult.getData().getList()); - }); - return appPageResult; - } - - private OaApp getDesensitizedApp(Integer id) { - final OaApp app = oaAppService.getByIdRel(id); - app.setPhone(DesensitizedUtil.mobilePhone(app.getPhone())); - app.setCompanyName( - StrUtil.hide(app.getCompanyName(), 2, app.getCompanyName().length() - 2)); - app.setRequirement(DesensitizedUtil.chineseName(app.getCompanyName())); - return app; - } - - @PreAuthorize("hasAuthority('oa:app:update')") - @Operation(summary = "重置秘钥") - @PostMapping("/updateAppSecret") - public ApiResult updateAppSecret(@RequestBody OaApp app) { - String key = "code:" + app.getPhone(); - final String code = redisUtil.get(key); - if (app.getAppId() == null) { - return fail("appId不合法"); - } - if(app.getAppSecret() == null){ - return fail("appSecret不合法"); - } - if(app.getAppCode() == null){ - return fail("短信验证码不正确"); - } -// && !app.getAppCode().equals("170083") - if(!app.getAppCode().equals(code)){ - return fail("短信验证码不正确"); - } - oaAppService.updateById(app); - // 保存到redis - redisUtil.set("AppSecret:" + app.getAppId(),app.getAppSecret()); - redisUtil.delete(key); - return success("重置成功",app.getAppSecret()); - } - - @PreAuthorize("hasAuthority('oa:app:list')") - @Operation(summary = "APP应用授权身份效验") - @GetMapping("/authentication/{appid}") - public ApiResult authentication(@PathVariable("appid") String appid) { - final OaApp appInfo = oaAppService.getById(appid); - if(appInfo == null){ - return fail("应用不存在:".concat(appid)); - } - return success("应用信息",appInfo); - } - - @Operation(summary = "查询我的项目信息") - @GetMapping("/getMyApp") - public ApiResult getMyApp() { - final User loginUser = getLoginUser(); - // 未登录情况 - if(loginUser == null){ - return fail("请先登录",null); - } - oaAppService.list(); - - // 使用关联查询 - return success("查询成功",null); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAppFieldController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAppFieldController.java deleted file mode 100644 index 7805e3c..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAppFieldController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAppFieldService; -import com.gxwebsoft.oa.entity.OaAppField; -import com.gxwebsoft.oa.param.OaAppFieldParam; -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:57:41 - */ -@Tag(name = "应用参数管理") -@RestController -@RequestMapping("/api/oa/oa-app-field") -public class OaAppFieldController extends BaseController { - @Resource - private OaAppFieldService oaAppFieldService; - - @Operation(summary = "分页查询应用参数") - @GetMapping("/page") - public ApiResult> page(OaAppFieldParam param) { - // 使用关联查询 - return success(oaAppFieldService.pageRel(param)); - } - - @Operation(summary = "查询全部应用参数") - @GetMapping() - public ApiResult> list(OaAppFieldParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaAppFieldService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaAppFieldService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAppField:list')") - @OperationLog - @Operation(summary = "根据id查询应用参数") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaAppFieldService.getById(id)); - // 使用关联查询 - //return success(oaAppFieldService.getByIdRel(id)); - } - - @Operation(summary = "添加应用参数") - @PostMapping() - public ApiResult save(@RequestBody OaAppField oaAppField) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAppField.setUserId(loginUser.getUserId()); - } - if (oaAppFieldService.save(oaAppField)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改应用参数") - @PutMapping() - public ApiResult update(@RequestBody OaAppField oaAppField) { - if (oaAppFieldService.updateById(oaAppField)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除应用参数") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAppFieldService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加应用参数") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAppFieldService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改应用参数") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAppFieldService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除应用参数") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAppFieldService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAppRenewController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAppRenewController.java deleted file mode 100644 index 5fd1acc..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAppRenewController.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.entity.OaApp; -import com.gxwebsoft.oa.service.OaAppRenewService; -import com.gxwebsoft.oa.entity.OaAppRenew; -import com.gxwebsoft.oa.param.OaAppRenewParam; -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.oa.service.OaAppService; -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.math.BigDecimal; -import java.time.LocalDateTime; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * 续费管理控制器 - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -@Tag(name = "续费管理管理") -@RestController -@RequestMapping("/api/oa/oa-app-renew") -public class OaAppRenewController extends BaseController { - @Resource - private OaAppRenewService oaAppRenewService; - @Resource - private OaAppService oaAppService; - - @Operation(summary = "分页查询续费管理") - @GetMapping("/page") - public ApiResult> page(OaAppRenewParam param) { - // 使用关联查询 - return success(oaAppRenewService.pageRel(param)); - } - - @Operation(summary = "查询全部续费管理") - @GetMapping() - public ApiResult> list(OaAppRenewParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaAppRenewService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaAppRenewService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAppRenew:list')") - @OperationLog - @Operation(summary = "根据id查询续费管理") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaAppRenewService.getById(id)); - // 使用关联查询 - //return success(oaAppRenewService.getByIdRel(id)); - } - - @Operation(summary = "添加续费管理") - @PostMapping() - public ApiResult save(@RequestBody OaAppRenew oaAppRenew) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAppRenew.setUserId(loginUser.getUserId()); - } - if (oaAppRenewService.save(oaAppRenew)) { - oaAppService.update(new LambdaUpdateWrapper().eq(OaApp::getAppId, oaAppRenew.getAppId()).set(OaApp::getShowExpiration, true)); - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改续费管理") - @PutMapping() - public ApiResult update(@RequestBody OaAppRenew oaAppRenew) { - if (oaAppRenewService.updateById(oaAppRenew)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除续费管理") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAppRenewService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加续费管理") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAppRenewService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改续费管理") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAppRenewService, "app_renew_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除续费管理") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAppRenewService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - - @Operation(summary = "统计信息") - @GetMapping("/data") - public ApiResult> data() { - Map data = new HashMap<>(); - final User loginUser = getLoginUser(); - if(loginUser == null){ - return fail("请先登录",null); - } - - // 获取当前年份的起止时间 - LocalDateTime startOfYear = LocalDateTime.now().withMonth(1).withDayOfMonth(1) - .withHour(0).withMinute(0).withSecond(0); - LocalDateTime endOfYear = startOfYear.plusYears(1).minusNanos(1); - - // 今年应收续费总金额(到期时间在今年的记录) - java.math.BigDecimal totalNum1 = oaAppService.sumMoney(new LambdaQueryWrapper() - .between(OaApp::getExpirationTime, startOfYear, endOfYear)); - // 今年已收续费总金额(到期时间在今年的记录) - java.math.BigDecimal totalNum2 = oaAppRenewService.sumMoney(new LambdaQueryWrapper() - .between(OaAppRenew::getEndTime, startOfYear, endOfYear)); - - // 今年已收续费总金额(创建时间在今年且已支付的记录) - java.math.BigDecimal totalNum3 = oaAppRenewService.sumMoney(new LambdaQueryWrapper() - .between(OaAppRenew::getCreateTime, startOfYear, endOfYear) - .isNotNull(OaAppRenew::getMoney)); - - data.put("totalNum1", totalNum1 != null ? totalNum1 : java.math.BigDecimal.ZERO); - data.put("totalNum2", totalNum2 != null ? totalNum2 : BigDecimal.ZERO); - return success(data); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAppUrlController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAppUrlController.java deleted file mode 100644 index 49bf27b..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAppUrlController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAppUrlService; -import com.gxwebsoft.oa.entity.OaAppUrl; -import com.gxwebsoft.oa.param.OaAppUrlParam; -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:57:41 - */ -@Tag(name = "项目域名管理") -@RestController -@RequestMapping("/api/oa/oa-app-url") -public class OaAppUrlController extends BaseController { - @Resource - private OaAppUrlService oaAppUrlService; - - @Operation(summary = "分页查询项目域名") - @GetMapping("/page") - public ApiResult> page(OaAppUrlParam param) { - // 使用关联查询 - return success(oaAppUrlService.pageRel(param)); - } - - @Operation(summary = "查询全部项目域名") - @GetMapping() - public ApiResult> list(OaAppUrlParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaAppUrlService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaAppUrlService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAppUrl:list')") - @OperationLog - @Operation(summary = "根据id查询项目域名") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaAppUrlService.getById(id)); - // 使用关联查询 - //return success(oaAppUrlService.getByIdRel(id)); - } - - @Operation(summary = "添加项目域名") - @PostMapping() - public ApiResult save(@RequestBody OaAppUrl oaAppUrl) { - if (oaAppUrlService.save(oaAppUrl)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改项目域名") - @PutMapping() - public ApiResult update(@RequestBody OaAppUrl oaAppUrl) { - if (oaAppUrlService.updateById(oaAppUrl)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除项目域名") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAppUrlService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加项目域名") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAppUrlService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改项目域名") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAppUrlService, "app_url_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除项目域名") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAppUrlService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAppUserController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAppUserController.java deleted file mode 100644 index ab3687d..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAppUserController.java +++ /dev/null @@ -1,111 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAppUserService; -import com.gxwebsoft.oa.entity.OaAppUser; -import com.gxwebsoft.oa.param.OaAppUserParam; -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:57:41 - */ -@Tag(name = "应用成员管理") -@RestController -@RequestMapping("/api/oa/oa-app-user") -public class OaAppUserController extends BaseController { - @Resource - private OaAppUserService oaAppUserService; - - @Operation(summary = "分页查询应用成员") - @GetMapping("/page") - public ApiResult> page(OaAppUserParam param) { - // 使用关联查询 - return success(oaAppUserService.pageRel(param)); - } - - @Operation(summary = "查询全部应用成员") - @GetMapping() - public ApiResult> list(OaAppUserParam param) { - // 使用关联查询 - return success(oaAppUserService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAppUser:list')") - @OperationLog - @Operation(summary = "根据id查询应用成员") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAppUserService.getByIdRel(id)); - } - - @Operation(summary = "添加应用成员") - @PostMapping() - public ApiResult save(@RequestBody OaAppUser oaAppUser) { - if (oaAppUserService.save(oaAppUser)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改应用成员") - @PutMapping() - public ApiResult update(@RequestBody OaAppUser oaAppUser) { - if (oaAppUserService.updateById(oaAppUser)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除应用成员") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAppUserService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加应用成员") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAppUserService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改应用成员") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAppUserService, "app_user_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除应用成员") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAppUserService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsCodeController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsCodeController.java deleted file mode 100644 index bee4518..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsCodeController.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsCodeService; -import com.gxwebsoft.oa.entity.OaAssetsCode; -import com.gxwebsoft.oa.param.OaAssetsCodeParam; -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-10-18 18:27:01 - */ -@Tag(name = "代码仓库管理") -@RestController -@RequestMapping("/api/oa/oa-assets-code") -public class OaAssetsCodeController extends BaseController { - @Resource - private OaAssetsCodeService oaAssetsCodeService; - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:list')") - @Operation(summary = "分页查询代码仓库") - @GetMapping("/page") - public ApiResult> page(OaAssetsCodeParam param) { - // 使用关联查询 - return success(oaAssetsCodeService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:list')") - @Operation(summary = "查询全部代码仓库") - @GetMapping() - public ApiResult> list(OaAssetsCodeParam param) { - // 使用关联查询 - return success(oaAssetsCodeService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:list')") - @Operation(summary = "根据id查询代码仓库") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsCodeService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:save')") - @OperationLog - @Operation(summary = "添加代码仓库") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsCode oaAssetsCode) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsCode.setUserId(loginUser.getUserId()); - } - if (oaAssetsCodeService.save(oaAssetsCode)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:update')") - @Operation(summary = "修改代码仓库") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsCode oaAssetsCode) { - if (oaAssetsCodeService.updateById(oaAssetsCode)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:remove')") - @Operation(summary = "删除代码仓库") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsCodeService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:save')") - @Operation(summary = "批量添加代码仓库") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsCodeService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:update')") - @Operation(summary = "批量修改代码仓库") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsCodeService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsCode:remove')") - @Operation(summary = "批量删除代码仓库") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsCodeService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsController.java deleted file mode 100644 index 6f66706..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsController.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsService; -import com.gxwebsoft.oa.entity.OaAssets; -import com.gxwebsoft.oa.param.OaAssetsParam; -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-10-18 18:34:15 - */ -@Tag(name = "云服务器管理") -@RestController -@RequestMapping("/api/oa/oa-assets") -public class OaAssetsController extends BaseController { - @Resource - private OaAssetsService oaAssetsService; - - @PreAuthorize("hasAuthority('oa:oaAssets:list')") - @Operation(summary = "分页查询云服务器") - @GetMapping("/page") - public ApiResult> page(OaAssetsParam param) { - // 使用关联查询 - return success(oaAssetsService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:list')") - @Operation(summary = "查询全部云服务器") - @GetMapping() - public ApiResult> list(OaAssetsParam param) { - // 使用关联查询 - return success(oaAssetsService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:list')") - @Operation(summary = "根据id查询云服务器") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:save')") - @OperationLog - @Operation(summary = "添加云服务器") - @PostMapping() - public ApiResult save(@RequestBody OaAssets oaAssets) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssets.setUserId(loginUser.getUserId()); - } - if (oaAssetsService.save(oaAssets)) { - return success("添加成功"); - } - return fail("添加失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssets:update')") - @Operation(summary = "修改云服务器") - @PutMapping() - public ApiResult update(@RequestBody OaAssets oaAssets) { - if (oaAssetsService.updateById(oaAssets)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:remvoe')") - @Operation(summary = "删除云服务器") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:save')") - @Operation(summary = "批量添加云服务器") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:update')") - @Operation(summary = "批量修改云服务器") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsService, "assets_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssets:remove')") - @Operation(summary = "批量删除云服务器") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsDomainController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsDomainController.java deleted file mode 100644 index bacd540..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsDomainController.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsDomainService; -import com.gxwebsoft.oa.entity.OaAssetsDomain; -import com.gxwebsoft.oa.param.OaAssetsDomainParam; -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-10-18 18:27:02 - */ -@Tag(name = "域名管理") -@RestController -@RequestMapping("/api/oa/oa-assets-domain") -public class OaAssetsDomainController extends BaseController { - @Resource - private OaAssetsDomainService oaAssetsDomainService; - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')") - @Operation(summary = "分页查询域名") - @GetMapping("/page") - public ApiResult> page(OaAssetsDomainParam param) { - // 使用关联查询 - return success(oaAssetsDomainService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')") - @Operation(summary = "查询全部域名") - @GetMapping() - public ApiResult> list(OaAssetsDomainParam param) { - // 使用关联查询 - return success(oaAssetsDomainService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:list')") - @Operation(summary = "根据id查询域名") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsDomainService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:save')") - @OperationLog - @Operation(summary = "添加域名") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsDomain oaAssetsDomain) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsDomain.setUserId(loginUser.getUserId()); - } - if (oaAssetsDomainService.save(oaAssetsDomain)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:update')") - @Operation(summary = "修改域名") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsDomain oaAssetsDomain) { - if (oaAssetsDomainService.updateById(oaAssetsDomain)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:remove')") - @Operation(summary = "删除域名") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsDomainService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:save')") - @Operation(summary = "批量添加域名") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsDomainService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:update')") - @Operation(summary = "批量修改域名") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsDomainService, "domain_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsDomain:remove')") - @Operation(summary = "批量删除域名") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsDomainService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsEmailController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsEmailController.java deleted file mode 100644 index 551905c..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsEmailController.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsEmailService; -import com.gxwebsoft.oa.entity.OaAssetsEmail; -import com.gxwebsoft.oa.param.OaAssetsEmailParam; -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-10-18 18:27:02 - */ -@Tag(name = "企业邮箱记录表管理") -@RestController -@RequestMapping("/api/oa/oa-assets-email") -public class OaAssetsEmailController extends BaseController { - @Resource - private OaAssetsEmailService oaAssetsEmailService; - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')") - @Operation(summary = "分页查询企业邮箱记录表") - @GetMapping("/page") - public ApiResult> page(OaAssetsEmailParam param) { - // 使用关联查询 - return success(oaAssetsEmailService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')") - @Operation(summary = "查询全部企业邮箱记录表") - @GetMapping() - public ApiResult> list(OaAssetsEmailParam param) { - // 使用关联查询 - return success(oaAssetsEmailService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:list')") - @OperationLog - @Operation(summary = "根据id查询企业邮箱记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsEmailService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:save')") - @OperationLog - @Operation(summary = "添加企业邮箱记录表") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsEmail oaAssetsEmail) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsEmail.setUserId(loginUser.getUserId()); - } - if (oaAssetsEmailService.save(oaAssetsEmail)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:update')") - @Operation(summary = "修改企业邮箱记录表") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsEmail oaAssetsEmail) { - if (oaAssetsEmailService.updateById(oaAssetsEmail)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:remove')") - @Operation(summary = "删除企业邮箱记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsEmailService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:save')") - @Operation(summary = "批量添加企业邮箱记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsEmailService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:update')") - @Operation(summary = "批量修改企业邮箱记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsEmailService, "email_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsEmail:remove')") - @Operation(summary = "批量删除企业邮箱记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsEmailService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsMysqlController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsMysqlController.java deleted file mode 100644 index db6dc1c..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsMysqlController.java +++ /dev/null @@ -1,122 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsMysqlService; -import com.gxwebsoft.oa.entity.OaAssetsMysql; -import com.gxwebsoft.oa.param.OaAssetsMysqlParam; -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-10-18 19:00:20 - */ -@Tag(name = "云数据库管理") -@RestController -@RequestMapping("/api/oa/oa-assets-mysql") -public class OaAssetsMysqlController extends BaseController { - @Resource - private OaAssetsMysqlService oaAssetsMysqlService; - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')") - @Operation(summary = "分页查询云数据库") - @GetMapping("/page") - public ApiResult> page(OaAssetsMysqlParam param) { - // 使用关联查询 - return success(oaAssetsMysqlService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')") - @Operation(summary = "查询全部云数据库") - @GetMapping() - public ApiResult> list(OaAssetsMysqlParam param) { - // 使用关联查询 - return success(oaAssetsMysqlService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:list')") - @Operation(summary = "根据id查询云数据库") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsMysqlService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:save')") - @Operation(summary = "添加云数据库") - @OperationLog - @PostMapping() - public ApiResult save(@RequestBody OaAssetsMysql oaAssetsMysql) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsMysql.setUserId(loginUser.getUserId()); - } - if (oaAssetsMysqlService.save(oaAssetsMysql)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:update')") - @Operation(summary = "修改云数据库") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsMysql oaAssetsMysql) { - if (oaAssetsMysqlService.updateById(oaAssetsMysql)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:remove')") - @Operation(summary = "删除云数据库") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsMysqlService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:save')") - @Operation(summary = "批量添加云数据库") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsMysqlService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:update')") - @Operation(summary = "批量修改云数据库") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsMysqlService, "mysql_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsMysql:remove')") - @Operation(summary = "批量删除云数据库") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsMysqlService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsServerController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsServerController.java deleted file mode 100644 index f8d4275..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsServerController.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.ApiResult; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.core.web.BatchParam; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.entity.OaAssetsServer; -import com.gxwebsoft.oa.param.OaAssetsServerParam; -import com.gxwebsoft.oa.service.OaAssetsServerService; -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-10-21 19:15:26 - */ -@Tag(name = "服务管理") -@RestController -@RequestMapping("/api/oa/oa-assets-server") -public class OaAssetsServerController extends BaseController { - @Resource - private OaAssetsServerService oaAssetsServerService; - - @Operation(summary = "分页查询服务") - @GetMapping("/page") - public ApiResult> page(OaAssetsServerParam param) { - // 使用关联查询 - return success(oaAssetsServerService.pageRel(param)); - } - - @Operation(summary = "查询全部服务") - @GetMapping() - public ApiResult> list(OaAssetsServerParam param) { - // 使用关联查询 - return success(oaAssetsServerService.listRel(param)); - } - - @Operation(summary = "根据id查询服务") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsServerService.getByIdRel(id)); - } - @PreAuthorize("hasAuthority('oa:oaAssetsServer:save')") - @Operation(summary = "添加服务") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsServer oaAssetsServer) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsServer.setUserId(loginUser.getUserId()); - oaAssetsServer.setTenantId(loginUser.getTenantId()); - } - if (oaAssetsServerService.save(oaAssetsServer)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsServer:update')") - @Operation(summary = "修改服务") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsServer oaAssetsServer) { - if (oaAssetsServerService.updateById(oaAssetsServer)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsServer:remove')") - @Operation(summary = "删除服务") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsServerService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsServer:save')") - @Operation(summary = "批量添加服务") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsServerService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsServer:update')") - @Operation(summary = "批量修改服务") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsServerService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsServer:remove')") - @Operation(summary = "批量删除服务") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsServerService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSiteController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSiteController.java deleted file mode 100644 index a1f8286..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSiteController.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsSiteService; -import com.gxwebsoft.oa.entity.OaAssetsSite; -import com.gxwebsoft.oa.param.OaAssetsSiteParam; -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-10-18 18:27:02 - */ -@Tag(name = "网站信息记录表管理") -@RestController -@RequestMapping("/api/oa/oa-assets-site") -public class OaAssetsSiteController extends BaseController { - @Resource - private OaAssetsSiteService oaAssetsSiteService; - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:list')") - @Operation(summary = "分页查询网站信息记录表") - @GetMapping("/page") - public ApiResult> page(OaAssetsSiteParam param) { - // 使用关联查询 - return success(oaAssetsSiteService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:list')") - @Operation(summary = "查询全部网站信息记录表") - @GetMapping() - public ApiResult> list(OaAssetsSiteParam param) { - // 使用关联查询 - return success(oaAssetsSiteService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:list')") - @Operation(summary = "根据id查询网站信息记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsSiteService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:save')") - @OperationLog - @Operation(summary = "添加网站信息记录表") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsSite oaAssetsSite) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsSite.setUserId(loginUser.getUserId()); - } - if (oaAssetsSiteService.save(oaAssetsSite)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:update')") - @Operation(summary = "修改网站信息记录表") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsSite oaAssetsSite) { - if (oaAssetsSiteService.updateById(oaAssetsSite)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:remove')") - @Operation(summary = "删除网站信息记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsSiteService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:save')") - @Operation(summary = "批量添加网站信息记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsSiteService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:update')") - @Operation(summary = "批量修改网站信息记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsSiteService, "website_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSite:remove')") - @Operation(summary = "批量删除网站信息记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsSiteService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSoftwareCertController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSoftwareCertController.java deleted file mode 100644 index 4cd4b82..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSoftwareCertController.java +++ /dev/null @@ -1,123 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsSoftwareCertService; -import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert; -import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam; -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-10-18 19:46:21 - */ -@Tag(name = "计算机软件著作权登记管理") -@RestController -@RequestMapping("/api/oa/oa-assets-software-cert") -public class OaAssetsSoftwareCertController extends BaseController { - @Resource - private OaAssetsSoftwareCertService oaAssetsSoftwareCertService; - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')") - @Operation(summary = "分页查询计算机软件著作权登记") - @GetMapping("/page") - public ApiResult> page(OaAssetsSoftwareCertParam param) { - // 使用关联查询 - return success(oaAssetsSoftwareCertService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')") - @Operation(summary = "查询全部计算机软件著作权登记") - @GetMapping() - public ApiResult> list(OaAssetsSoftwareCertParam param) { - // 使用关联查询 - return success(oaAssetsSoftwareCertService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:list')") - @Operation(summary = "根据id查询计算机软件著作权登记") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsSoftwareCertService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:save')") - @OperationLog - @Operation(summary = "添加计算机软件著作权登记") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsSoftwareCert oaAssetsSoftwareCert) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsSoftwareCert.setUserId(loginUser.getUserId()); - } - if (oaAssetsSoftwareCertService.save(oaAssetsSoftwareCert)) { - return success("添加成功"); - } - return fail("添加失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:update')") - @Operation(summary = "修改计算机软件著作权登记") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsSoftwareCert oaAssetsSoftwareCert) { - if (oaAssetsSoftwareCertService.updateById(oaAssetsSoftwareCert)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:remove')") - @Operation(summary = "删除计算机软件著作权登记") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsSoftwareCertService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:save')") - @Operation(summary = "批量添加计算机软件著作权登记") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsSoftwareCertService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:update')") - @Operation(summary = "批量修改计算机软件著作权登记") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsSoftwareCertService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSoftwareCert:remove')") - @Operation(summary = "批量删除计算机软件著作权登记") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsSoftwareCertService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSslController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSslController.java deleted file mode 100644 index 0d27eb2..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsSslController.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsSslService; -import com.gxwebsoft.oa.entity.OaAssetsSsl; -import com.gxwebsoft.oa.param.OaAssetsSslParam; -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.time.LocalDateTime; -import java.util.List; - -/** - * ssl证书控制器 - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -@Tag(name = "ssl证书管理") -@RestController -@RequestMapping("/api/oa/oa-assets-ssl") -public class OaAssetsSslController extends BaseController { - @Resource - private OaAssetsSslService oaAssetsSslService; - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')") - @Operation(summary = "分页查询ssl证书") - @GetMapping("/page") - public ApiResult> page(OaAssetsSslParam param) { - // 使用关联查询 - return success(oaAssetsSslService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')") - @Operation(summary = "查询全部ssl证书") - @GetMapping() - public ApiResult> list(OaAssetsSslParam param) { - // 使用关联查询 - return success(oaAssetsSslService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:list')") - @OperationLog - @Operation(summary = "根据id查询ssl证书") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsSslService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:save')") - @Operation(summary = "添加ssl证书") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsSsl oaAssetsSsl) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsSsl.setUserId(loginUser.getUserId()); - oaAssetsSsl.setTenantId(loginUser.getTenantId()); - } - if (oaAssetsSslService.save(oaAssetsSsl)) { - return success("添加成功"); - } - return fail("添加失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:update')") - @Operation(summary = "修改ssl证书") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsSsl oaAssetsSsl) { - if (oaAssetsSslService.updateById(oaAssetsSsl)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:remove')") - @Operation(summary = "删除ssl证书") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsSslService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:save')") - @Operation(summary = "批量添加ssl证书") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsSslService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:update')") - @Operation(summary = "批量修改ssl证书") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsSslService, "ssl_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsSsl:remove')") - @Operation(summary = "批量删除ssl证书") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsSslService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsTrademarkController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsTrademarkController.java deleted file mode 100644 index 18a5bf6..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsTrademarkController.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsTrademarkService; -import com.gxwebsoft.oa.entity.OaAssetsTrademark; -import com.gxwebsoft.oa.param.OaAssetsTrademarkParam; -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-10-18 19:46:21 - */ -@Tag(name = "商标注册管理") -@RestController -@RequestMapping("/api/oa/oa-assets-trademark") -public class OaAssetsTrademarkController extends BaseController { - @Resource - private OaAssetsTrademarkService oaAssetsTrademarkService; - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')") - @Operation(summary = "分页查询商标注册") - @GetMapping("/page") - public ApiResult> page(OaAssetsTrademarkParam param) { - // 使用关联查询 - return success(oaAssetsTrademarkService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')") - @Operation(summary = "查询全部商标注册") - @GetMapping() - public ApiResult> list(OaAssetsTrademarkParam param) { - // 使用关联查询 - return success(oaAssetsTrademarkService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:list')") - @Operation(summary = "根据id查询商标注册") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsTrademarkService.getByIdRel(id)); - } - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:save')") - @Operation(summary = "添加商标注册") - @OperationLog - @PostMapping() - public ApiResult save(@RequestBody OaAssetsTrademark oaAssetsTrademark) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsTrademark.setUserId(loginUser.getUserId()); - } - if (oaAssetsTrademarkService.save(oaAssetsTrademark)) { - return success("添加成功"); - } - return fail("添加失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:update')") - @Operation(summary = "修改商标注册") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsTrademark oaAssetsTrademark) { - if (oaAssetsTrademarkService.updateById(oaAssetsTrademark)) { - return success("修改成功"); - } - return fail("修改失败"); - } - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:remove')") - @Operation(summary = "删除商标注册") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsTrademarkService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:save')") - @Operation(summary = "批量添加商标注册") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsTrademarkService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:update')") - @Operation(summary = "批量修改商标注册") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsTrademarkService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsTrademark:remove')") - @Operation(summary = "批量删除商标注册") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsTrademarkService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsUserController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsUserController.java deleted file mode 100644 index 30f47db..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsUserController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsUserService; -import com.gxwebsoft.oa.entity.OaAssetsUser; -import com.gxwebsoft.oa.param.OaAssetsUserParam; -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:57:41 - */ -@Tag(name = "服务器成员管理管理") -@RestController -@RequestMapping("/api/oa/oa-assets-user") -public class OaAssetsUserController extends BaseController { - @Resource - private OaAssetsUserService oaAssetsUserService; - - @Operation(summary = "分页查询服务器成员管理") - @GetMapping("/page") - public ApiResult> page(OaAssetsUserParam param) { - // 使用关联查询 - return success(oaAssetsUserService.pageRel(param)); - } - - @Operation(summary = "查询全部服务器成员管理") - @GetMapping() - public ApiResult> list(OaAssetsUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaAssetsUserService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaAssetsUserService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsUser:list')") - @OperationLog - @Operation(summary = "根据id查询服务器成员管理") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaAssetsUserService.getById(id)); - // 使用关联查询 - //return success(oaAssetsUserService.getByIdRel(id)); - } - - @Operation(summary = "添加服务器成员管理") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsUser oaAssetsUser) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsUser.setUserId(loginUser.getUserId()); - } - if (oaAssetsUserService.save(oaAssetsUser)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改服务器成员管理") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsUser oaAssetsUser) { - if (oaAssetsUserService.updateById(oaAssetsUser)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除服务器成员管理") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsUserService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加服务器成员管理") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsUserService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改服务器成员管理") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsUserService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除服务器成员管理") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsUserService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsVhostController.java b/src/main/java/com/gxwebsoft/oa/controller/OaAssetsVhostController.java deleted file mode 100644 index 17b5875..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaAssetsVhostController.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaAssetsVhostService; -import com.gxwebsoft.oa.entity.OaAssetsVhost; -import com.gxwebsoft.oa.param.OaAssetsVhostParam; -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-10-18 18:27:02 - */ -@Tag(name = "虚拟主机记录表管理") -@RestController -@RequestMapping("/api/oa/oa-assets-vhost") -public class OaAssetsVhostController extends BaseController { - @Resource - private OaAssetsVhostService oaAssetsVhostService; - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')") - @Operation(summary = "分页查询虚拟主机记录表") - @GetMapping("/page") - public ApiResult> page(OaAssetsVhostParam param) { - // 使用关联查询 - return success(oaAssetsVhostService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')") - @Operation(summary = "查询全部虚拟主机记录表") - @GetMapping() - public ApiResult> list(OaAssetsVhostParam param) { - // 使用关联查询 - return success(oaAssetsVhostService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:list')") - @Operation(summary = "根据id查询虚拟主机记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(oaAssetsVhostService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:save')") - @OperationLog - @Operation(summary = "添加虚拟主机记录表") - @PostMapping() - public ApiResult save(@RequestBody OaAssetsVhost oaAssetsVhost) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaAssetsVhost.setUserId(loginUser.getUserId()); - } - if (oaAssetsVhostService.save(oaAssetsVhost)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:update')") - @Operation(summary = "修改虚拟主机记录表") - @PutMapping() - public ApiResult update(@RequestBody OaAssetsVhost oaAssetsVhost) { - if (oaAssetsVhostService.updateById(oaAssetsVhost)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:remove')") - @Operation(summary = "删除虚拟主机记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaAssetsVhostService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:save')") - @Operation(summary = "批量添加虚拟主机记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaAssetsVhostService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:update')") - @Operation(summary = "批量修改虚拟主机记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaAssetsVhostService, "vhost_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('oa:oaAssetsVhost:remove')") - @Operation(summary = "批量删除虚拟主机记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaAssetsVhostService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyController.java b/src/main/java/com/gxwebsoft/oa/controller/OaCompanyController.java deleted file mode 100644 index 338baad..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyController.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.oa.service.OaCompanyService; -import com.gxwebsoft.oa.entity.OaCompany; -import com.gxwebsoft.oa.param.OaCompanyParam; -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-20 12:33:12 - */ -@Tag(name = "企业信息管理") -@RestController -@RequestMapping("/api/oa/oa-company") -public class OaCompanyController extends BaseController { - @Resource - private OaCompanyService oaCompanyService; - - @Operation(summary = "分页查询企业信息") - @GetMapping("/page") - public ApiResult> page(OaCompanyParam param) { - // 使用关联查询 - return success(oaCompanyService.pageRel(param)); - } - - @Operation(summary = "查询全部企业信息") - @GetMapping() - public ApiResult> list(OaCompanyParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaCompanyService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaCompanyService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaCompany:list')") - @OperationLog - @Operation(summary = "根据id查询企业信息") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaCompanyService.getById(id)); - // 使用关联查询 - //return success(oaCompanyService.getByIdRel(id)); - } - - @Operation(summary = "添加企业信息") - @PostMapping() - public ApiResult save(@RequestBody OaCompany oaCompany) { - if (oaCompanyService.save(oaCompany)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改企业信息") - @PutMapping() - public ApiResult update(@RequestBody OaCompany oaCompany) { - if (oaCompanyService.updateById(oaCompany)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除企业信息") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaCompanyService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加企业信息") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaCompanyService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改企业信息") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaCompanyService, "company_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除企业信息") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaCompanyService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyFieldController.java b/src/main/java/com/gxwebsoft/oa/controller/OaCompanyFieldController.java deleted file mode 100644 index f24b320..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyFieldController.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.oa.service.OaCompanyFieldService; -import com.gxwebsoft.oa.entity.OaCompanyField; -import com.gxwebsoft.oa.param.OaCompanyFieldParam; -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-20 12:33:12 - */ -@Tag(name = "企业参数管理") -@RestController -@RequestMapping("/api/oa/oa-company-field") -public class OaCompanyFieldController extends BaseController { - @Resource - private OaCompanyFieldService oaCompanyFieldService; - - @Operation(summary = "分页查询企业参数") - @GetMapping("/page") - public ApiResult> page(OaCompanyFieldParam param) { - // 使用关联查询 - return success(oaCompanyFieldService.pageRel(param)); - } - - @Operation(summary = "查询全部企业参数") - @GetMapping() - public ApiResult> list(OaCompanyFieldParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaCompanyFieldService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaCompanyFieldService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaCompanyField:list')") - @OperationLog - @Operation(summary = "根据id查询企业参数") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaCompanyFieldService.getById(id)); - // 使用关联查询 - //return success(oaCompanyFieldService.getByIdRel(id)); - } - - @Operation(summary = "添加企业参数") - @PostMapping() - public ApiResult save(@RequestBody OaCompanyField oaCompanyField) { - if (oaCompanyFieldService.save(oaCompanyField)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改企业参数") - @PutMapping() - public ApiResult update(@RequestBody OaCompanyField oaCompanyField) { - if (oaCompanyFieldService.updateById(oaCompanyField)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除企业参数") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaCompanyFieldService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加企业参数") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaCompanyFieldService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改企业参数") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaCompanyFieldService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除企业参数") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaCompanyFieldService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyUserController.java b/src/main/java/com/gxwebsoft/oa/controller/OaCompanyUserController.java deleted file mode 100644 index dcb2653..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaCompanyUserController.java +++ /dev/null @@ -1,114 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.oa.service.OaCompanyUserService; -import com.gxwebsoft.oa.entity.OaCompanyUser; -import com.gxwebsoft.oa.param.OaCompanyUserParam; -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-20 12:33:12 - */ -@Tag(name = "成员管理管理") -@RestController -@RequestMapping("/api/oa/oa-company-user") -public class OaCompanyUserController extends BaseController { - @Resource - private OaCompanyUserService oaCompanyUserService; - - @Operation(summary = "分页查询成员管理") - @GetMapping("/page") - public ApiResult> page(OaCompanyUserParam param) { - // 使用关联查询 - return success(oaCompanyUserService.pageRel(param)); - } - - @Operation(summary = "查询全部成员管理") - @GetMapping() - public ApiResult> list(OaCompanyUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaCompanyUserService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaCompanyUserService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaCompanyUser:list')") - @OperationLog - @Operation(summary = "根据id查询成员管理") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaCompanyUserService.getById(id)); - // 使用关联查询 - //return success(oaCompanyUserService.getByIdRel(id)); - } - - @Operation(summary = "添加成员管理") - @PostMapping() - public ApiResult save(@RequestBody OaCompanyUser oaCompanyUser) { - if (oaCompanyUserService.save(oaCompanyUser)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改成员管理") - @PutMapping() - public ApiResult update(@RequestBody OaCompanyUser oaCompanyUser) { - if (oaCompanyUserService.updateById(oaCompanyUser)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除成员管理") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaCompanyUserService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加成员管理") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaCompanyUserService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改成员管理") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaCompanyUserService, "company_user_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除成员管理") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaCompanyUserService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaLinkController.java b/src/main/java/com/gxwebsoft/oa/controller/OaLinkController.java deleted file mode 100644 index 9a7286e..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaLinkController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaLinkService; -import com.gxwebsoft.oa.entity.OaLink; -import com.gxwebsoft.oa.param.OaLinkParam; -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:57:42 - */ -@Tag(name = "常用链接管理") -@RestController -@RequestMapping("/api/oa/oa-link") -public class OaLinkController extends BaseController { - @Resource - private OaLinkService oaLinkService; - - @Operation(summary = "分页查询常用链接") - @GetMapping("/page") - public ApiResult> page(OaLinkParam param) { - // 使用关联查询 - return success(oaLinkService.pageRel(param)); - } - - @Operation(summary = "查询全部常用链接") - @GetMapping() - public ApiResult> list(OaLinkParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaLinkService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaLinkService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaLink:list')") - @OperationLog - @Operation(summary = "根据id查询常用链接") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaLinkService.getById(id)); - // 使用关联查询 - //return success(oaLinkService.getByIdRel(id)); - } - - @Operation(summary = "添加常用链接") - @PostMapping() - public ApiResult save(@RequestBody OaLink oaLink) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaLink.setUserId(loginUser.getUserId()); - } - if (oaLinkService.save(oaLink)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改常用链接") - @PutMapping() - public ApiResult update(@RequestBody OaLink oaLink) { - if (oaLinkService.updateById(oaLink)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除常用链接") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaLinkService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加常用链接") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaLinkService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改常用链接") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaLinkService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除常用链接") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaLinkService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaProductController.java b/src/main/java/com/gxwebsoft/oa/controller/OaProductController.java deleted file mode 100644 index 0996cb6..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaProductController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaProductService; -import com.gxwebsoft.oa.entity.OaProduct; -import com.gxwebsoft.oa.param.OaProductParam; -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:57:42 - */ -@Tag(name = "产品记录表管理") -@RestController -@RequestMapping("/api/oa/oa-product") -public class OaProductController extends BaseController { - @Resource - private OaProductService oaProductService; - - @Operation(summary = "分页查询产品记录表") - @GetMapping("/page") - public ApiResult> page(OaProductParam param) { - // 使用关联查询 - return success(oaProductService.pageRel(param)); - } - - @Operation(summary = "查询全部产品记录表") - @GetMapping() - public ApiResult> list(OaProductParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaProductService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaProductService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaProduct:list')") - @OperationLog - @Operation(summary = "根据id查询产品记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaProductService.getById(id)); - // 使用关联查询 - //return success(oaProductService.getByIdRel(id)); - } - - @Operation(summary = "添加产品记录表") - @PostMapping() - public ApiResult save(@RequestBody OaProduct oaProduct) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaProduct.setUserId(loginUser.getUserId()); - } - if (oaProductService.save(oaProduct)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改产品记录表") - @PutMapping() - public ApiResult update(@RequestBody OaProduct oaProduct) { - if (oaProductService.updateById(oaProduct)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除产品记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaProductService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加产品记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaProductService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改产品记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaProductService, "product_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除产品记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaProductService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaProductTabsController.java b/src/main/java/com/gxwebsoft/oa/controller/OaProductTabsController.java deleted file mode 100644 index ac7836e..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaProductTabsController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaProductTabsService; -import com.gxwebsoft.oa.entity.OaProductTabs; -import com.gxwebsoft.oa.param.OaProductTabsParam; -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:57:42 - */ -@Tag(name = "产品标签记录表管理") -@RestController -@RequestMapping("/api/oa/oa-product-tabs") -public class OaProductTabsController extends BaseController { - @Resource - private OaProductTabsService oaProductTabsService; - - @Operation(summary = "分页查询产品标签记录表") - @GetMapping("/page") - public ApiResult> page(OaProductTabsParam param) { - // 使用关联查询 - return success(oaProductTabsService.pageRel(param)); - } - - @Operation(summary = "查询全部产品标签记录表") - @GetMapping() - public ApiResult> list(OaProductTabsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaProductTabsService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaProductTabsService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaProductTabs:list')") - @OperationLog - @Operation(summary = "根据id查询产品标签记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaProductTabsService.getById(id)); - // 使用关联查询 - //return success(oaProductTabsService.getByIdRel(id)); - } - - @Operation(summary = "添加产品标签记录表") - @PostMapping() - public ApiResult save(@RequestBody OaProductTabs oaProductTabs) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaProductTabs.setUserId(loginUser.getUserId()); - } - if (oaProductTabsService.save(oaProductTabs)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改产品标签记录表") - @PutMapping() - public ApiResult update(@RequestBody OaProductTabs oaProductTabs) { - if (oaProductTabsService.updateById(oaProductTabs)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除产品标签记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaProductTabsService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加产品标签记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaProductTabsService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改产品标签记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaProductTabsService, "tab_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除产品标签记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaProductTabsService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaTaskController.java b/src/main/java/com/gxwebsoft/oa/controller/OaTaskController.java deleted file mode 100644 index fab3f41..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaTaskController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaTaskService; -import com.gxwebsoft.oa.entity.OaTask; -import com.gxwebsoft.oa.param.OaTaskParam; -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:57:42 - */ -@Tag(name = "任务记录表管理") -@RestController -@RequestMapping("/api/oa/oa-task") -public class OaTaskController extends BaseController { - @Resource - private OaTaskService oaTaskService; - - @Operation(summary = "分页查询任务记录表") - @GetMapping("/page") - public ApiResult> page(OaTaskParam param) { - // 使用关联查询 - return success(oaTaskService.pageRel(param)); - } - - @Operation(summary = "查询全部任务记录表") - @GetMapping() - public ApiResult> list(OaTaskParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaTaskService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaTaskService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaTask:list')") - @OperationLog - @Operation(summary = "根据id查询任务记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaTaskService.getById(id)); - // 使用关联查询 - //return success(oaTaskService.getByIdRel(id)); - } - - @Operation(summary = "添加任务记录表") - @PostMapping() - public ApiResult save(@RequestBody OaTask oaTask) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaTask.setUserId(loginUser.getUserId()); - } - if (oaTaskService.save(oaTask)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改任务记录表") - @PutMapping() - public ApiResult update(@RequestBody OaTask oaTask) { - if (oaTaskService.updateById(oaTask)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除任务记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaTaskService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加任务记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaTaskService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改任务记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaTaskService, "task_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除任务记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaTaskService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaTaskCountController.java b/src/main/java/com/gxwebsoft/oa/controller/OaTaskCountController.java deleted file mode 100644 index d4ba413..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaTaskCountController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaTaskCountService; -import com.gxwebsoft.oa.entity.OaTaskCount; -import com.gxwebsoft.oa.param.OaTaskCountParam; -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:57:42 - */ -@Tag(name = "数据统计管理") -@RestController -@RequestMapping("/api/oa/oa-task-count") -public class OaTaskCountController extends BaseController { - @Resource - private OaTaskCountService oaTaskCountService; - - @Operation(summary = "分页查询数据统计") - @GetMapping("/page") - public ApiResult> page(OaTaskCountParam param) { - // 使用关联查询 - return success(oaTaskCountService.pageRel(param)); - } - - @Operation(summary = "查询全部数据统计") - @GetMapping() - public ApiResult> list(OaTaskCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaTaskCountService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaTaskCountService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaTaskCount:list')") - @OperationLog - @Operation(summary = "根据id查询数据统计") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaTaskCountService.getById(id)); - // 使用关联查询 - //return success(oaTaskCountService.getByIdRel(id)); - } - - @Operation(summary = "添加数据统计") - @PostMapping() - public ApiResult save(@RequestBody OaTaskCount oaTaskCount) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaTaskCount.setUserId(loginUser.getUserId()); - } - if (oaTaskCountService.save(oaTaskCount)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改数据统计") - @PutMapping() - public ApiResult update(@RequestBody OaTaskCount oaTaskCount) { - if (oaTaskCountService.updateById(oaTaskCount)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除数据统计") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaTaskCountService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加数据统计") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaTaskCountService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改数据统计") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaTaskCountService, "task_count_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除数据统计") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaTaskCountService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaTaskRecordController.java b/src/main/java/com/gxwebsoft/oa/controller/OaTaskRecordController.java deleted file mode 100644 index 8fa9d1d..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaTaskRecordController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaTaskRecordService; -import com.gxwebsoft.oa.entity.OaTaskRecord; -import com.gxwebsoft.oa.param.OaTaskRecordParam; -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:57:42 - */ -@Tag(name = "工单回复记录表管理") -@RestController -@RequestMapping("/api/oa/oa-task-record") -public class OaTaskRecordController extends BaseController { - @Resource - private OaTaskRecordService oaTaskRecordService; - - @Operation(summary = "分页查询工单回复记录表") - @GetMapping("/page") - public ApiResult> page(OaTaskRecordParam param) { - // 使用关联查询 - return success(oaTaskRecordService.pageRel(param)); - } - - @Operation(summary = "查询全部工单回复记录表") - @GetMapping() - public ApiResult> list(OaTaskRecordParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaTaskRecordService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaTaskRecordService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaTaskRecord:list')") - @OperationLog - @Operation(summary = "根据id查询工单回复记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaTaskRecordService.getById(id)); - // 使用关联查询 - //return success(oaTaskRecordService.getByIdRel(id)); - } - - @Operation(summary = "添加工单回复记录表") - @PostMapping() - public ApiResult save(@RequestBody OaTaskRecord oaTaskRecord) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaTaskRecord.setUserId(loginUser.getUserId()); - } - if (oaTaskRecordService.save(oaTaskRecord)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改工单回复记录表") - @PutMapping() - public ApiResult update(@RequestBody OaTaskRecord oaTaskRecord) { - if (oaTaskRecordService.updateById(oaTaskRecord)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除工单回复记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaTaskRecordService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加工单回复记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaTaskRecordService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改工单回复记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaTaskRecordService, "task_record_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除工单回复记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaTaskRecordService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/controller/OaTaskUserController.java b/src/main/java/com/gxwebsoft/oa/controller/OaTaskUserController.java deleted file mode 100644 index 59423c9..0000000 --- a/src/main/java/com/gxwebsoft/oa/controller/OaTaskUserController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.oa.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.oa.service.OaTaskUserService; -import com.gxwebsoft.oa.entity.OaTaskUser; -import com.gxwebsoft.oa.param.OaTaskUserParam; -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:57:42 - */ -@Tag(name = "工单成员管理") -@RestController -@RequestMapping("/api/oa/oa-task-user") -public class OaTaskUserController extends BaseController { - @Resource - private OaTaskUserService oaTaskUserService; - - @Operation(summary = "分页查询工单成员") - @GetMapping("/page") - public ApiResult> page(OaTaskUserParam param) { - // 使用关联查询 - return success(oaTaskUserService.pageRel(param)); - } - - @Operation(summary = "查询全部工单成员") - @GetMapping() - public ApiResult> list(OaTaskUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(oaTaskUserService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(oaTaskUserService.listRel(param)); - } - - @PreAuthorize("hasAuthority('oa:oaTaskUser:list')") - @OperationLog - @Operation(summary = "根据id查询工单成员") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(oaTaskUserService.getById(id)); - // 使用关联查询 - //return success(oaTaskUserService.getByIdRel(id)); - } - - @Operation(summary = "添加工单成员") - @PostMapping() - public ApiResult save(@RequestBody OaTaskUser oaTaskUser) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - oaTaskUser.setUserId(loginUser.getUserId()); - } - if (oaTaskUserService.save(oaTaskUser)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改工单成员") - @PutMapping() - public ApiResult update(@RequestBody OaTaskUser oaTaskUser) { - if (oaTaskUserService.updateById(oaTaskUser)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除工单成员") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (oaTaskUserService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加工单成员") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (oaTaskUserService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改工单成员") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(oaTaskUserService, "task_user_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除工单成员") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (oaTaskUserService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaApp.java b/src/main/java/com/gxwebsoft/oa/entity/OaApp.java deleted file mode 100644 index 4f2d41c..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaApp.java +++ /dev/null @@ -1,266 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -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 java.util.List; - -import com.gxwebsoft.common.system.entity.FileRecord; -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:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaApp对象", description = "应用") -public class OaApp implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "应用ID") - @TableId(value = "app_id", type = IdType.AUTO) - private Integer appId; - - @Schema(description = "应用名称") - private String appName; - - @Schema(description = "应用标识") - private String appCode; - - @Schema(description = "应用秘钥") - private String appSecret; - - @Schema(description = "上级id, 0是顶级") - private Integer parentId; - - @Schema(description = "应用类型") - private String appType; - - @Schema(description = "应用类型") - private String appTypeMultiple; - - @Schema(description = "类型, 0菜单, 1按钮") - private Integer menuType; - - @Schema(description = "企业ID") - private Integer companyId; - - @Schema(description = "企业名称") - private String companyName; - - @Schema(description = "应用图标") - private String appIcon; - - @Schema(description = "二维码") - private String appQrcode; - - @Schema(description = "链接地址") - private String appUrl; - - @Schema(description = "后台管理地址") - private String adminUrl; - - @Schema(description = "下载地址") - private String downUrl; - - @Schema(description = "链接地址") - private String serverUrl; - - @Schema(description = "文件服务器") - private String fileUrl; - - @Schema(description = "回调地址") - private String callbackUrl; - - @Schema(description = "腾讯文档地址") - private String docsUrl; - - @Schema(description = "代码仓库地址") - private String gitUrl; - - @Schema(description = "原型图地址") - private String prototypeUrl; - - @Schema(description = "IP白名单") - private String ipAddress; - - @Schema(description = "应用截图") - private String images; - - @Schema(description = "应用包名") - private String packageName; - - @Schema(description = "下载次数") - private Integer clicks; - - @Schema(description = "安装次数") - private Integer installs; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "应用介绍") - private String content; - - @Schema(description = "项目需求") - private String requirement; - - @Schema(description = "开发者(个人或公司)") - private String developer; - - @Schema(description = "项目负责人") - private String director; - - @Schema(description = "项目经理") - private String projectDirector; - - @Schema(description = "业务员") - private String salesman; - - @Schema(description = "软件定价") - private BigDecimal price; - - @Schema(description = "划线价格") - private BigDecimal linePrice; - - @Schema(description = "评分") - private String score; - - @Schema(description = "星级") - private String star; - - @Schema(description = "菜单路由地址") - private String path; - - @Schema(description = "菜单组件地址, 目录可为空") - private String component; - - @Schema(description = "权限标识") - private String authority; - - @Schema(description = "打开位置") - private String target; - - @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)") - private Integer hide; - - @Schema(description = "禁止搜索,1禁止 0 允许") - private Integer search; - - @Schema(description = "菜单侧栏选中的path") - private String active; - - @Schema(description = "其它路由元信息") - private String meta; - - @Schema(description = "版本,0正式版 1体验版 2开发版") - private String edition; - - @Schema(description = "版本号") - private String version; - - @Schema(description = "是否已安装") - private Integer isUse; - - @Schema(description = "附近1") - private String file1; - - @Schema(description = "附件2") - private String file2; - - @Schema(description = "附件3") - private String file3; - - @Schema(description = "是否显示续费提醒") - private Boolean showExpiration; - - @Schema(description = "是否作为案例展示") - private Integer showCase; - - @Schema(description = "是否显示在首页") - private Integer showIndex; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "到期时间") - private Date expirationTime; - - @Schema(description = "续费金额") - private BigDecimal renewMoney; - - @Schema(description = "应用状态") - private String appStatus; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "机构id") - private Integer organizationId; - - @Schema(description = "租户编号") - private String tenantCode; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - - @Schema(description = "成员管理") - @TableField(exist = false) - private List users; - - @Schema(description = "链接列表") - @TableField(exist = false) - private List appUrlList; - - @Schema(description = "项目附件") - @TableField(exist = false) - private List appFiles; - - @Schema(description = "主体名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "开发者名称") - @TableField(exist = false) - private String realName; - - @Schema(description = "开发者名称") - @TableField(exist = false) - private String nickname; - - @Schema(description = "开发者头像") - @TableField(exist = false) - private String avatar; - - @Schema(description = "手机号码") - @TableField(exist = false) - private String phone; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAppField.java b/src/main/java/com/gxwebsoft/oa/entity/OaAppField.java deleted file mode 100644 index 2245088..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAppField.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAppField对象", description = "应用参数") -public class OaAppField 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 appId; - - @Schema(description = "名称") - private String name; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "状态, 0正常, 1删除") - private Integer status; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAppRenew.java b/src/main/java/com/gxwebsoft/oa/entity/OaAppRenew.java deleted file mode 100644 index f7be2ca..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAppRenew.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAppRenew对象", description = "续费管理") -public class OaAppRenew implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "app_renew_id", type = IdType.AUTO) - private Integer appRenewId; - - @Schema(description = "应用ID") - private Integer appId; - - @Schema(description = "续费金额") - private BigDecimal money; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "开始时间") - private Date startTime; - - @Schema(description = "到期时间") - private Date endTime; - - @Schema(description = "企业ID") - private Integer companyId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "付款凭证") - private String images; - - @Schema(description = "用户姓名") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAppUrl.java b/src/main/java/com/gxwebsoft/oa/entity/OaAppUrl.java deleted file mode 100644 index c3369ed..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAppUrl.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAppUrl对象", description = "项目域名") -public class OaAppUrl implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "app_url_id", type = IdType.AUTO) - private Integer appUrlId; - - @Schema(description = "应用ID") - private Integer appId; - - @Schema(description = "域名类型") - private String name; - - @Schema(description = "域名") - private String domain; - - @Schema(description = "账号") - private String account; - - @Schema(description = "密码") - private String password; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAppUser.java b/src/main/java/com/gxwebsoft/oa/entity/OaAppUser.java deleted file mode 100644 index eaf1a08..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAppUser.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAppUser对象", description = "应用成员") -public class OaAppUser implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "app_user_id", type = IdType.AUTO) - private Integer appUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - private Integer role; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "应用ID") - private Integer appId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssets.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssets.java deleted file mode 100644 index d4afe3e..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssets.java +++ /dev/null @@ -1,159 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -import com.fasterxml.jackson.annotation.JsonProperty; -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-10-18 18:34:15 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssets对象", description = "云服务器") -public class OaAssets implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "资产ID") - @TableId(value = "assets_id", type = IdType.AUTO) - private Integer assetsId; - - @Schema(description = "资产名称") - private String name; - - @Schema(description = "资产标识") - private String code; - - @Schema(description = "资产类型") - private String type; - - @Schema(description = "服务器厂商") - private String brand; - - @Schema(description = "服务器配置") - private String configuration; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "(阿里云/腾讯云)登录账号") - private String brandAccount; - - @Schema(description = "(阿里云/腾讯云)登录密码") - private String brandPassword; - - @Schema(description = "宝塔面板") - private String panel; - - @Schema(description = "宝塔面板账号") - private String panelAccount; - - @Schema(description = "宝塔面板密码") - private String panelPassword; - - @Schema(description = "财务信息-合同金额") - private BigDecimal financeAmount; - - @Schema(description = "购买年限") - private Integer financeYears; - - @Schema(description = "续费金额") - private BigDecimal financeRenew; - - @Schema(description = "客户名称") - private String financeCustomerName; - - @Schema(description = "客户联系人") - private String financeCustomerContact; - - @Schema(description = "客户联系电话") - private String financeCustomerPhone; - - @Schema(description = "客户ID") - private Integer customerId; - - @Schema(description = "客户名称") - private String customerName; - - @Schema(description = "开放端口") - private String openPort; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "可见性(public,private,protected)") - private String visibility; - - @Schema(description = "宝塔接口秘钥") - private String btSign; - - @Schema(description = "文章排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "客户ID") - private Integer companyId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "机构id") - private Integer organizationId; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsCode.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsCode.java deleted file mode 100644 index f304395..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsCode.java +++ /dev/null @@ -1,89 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; - -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-10-18 18:27:01 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsCode对象", description = "代码仓库") -public class OaAssetsCode 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 assetsId; - - @Schema(description = "名称") - private String name; - - @Schema(description = "英文标识") - private String code; - - @Schema(description = "仓库地址") - private String gitUrl; - - @Schema(description = "仓库品牌") - private String brand; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsDomain.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsDomain.java deleted file mode 100644 index 5943d6a..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsDomain.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; - -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsDomain对象", description = "域名") -public class OaAssetsDomain implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "domain_id", type = IdType.AUTO) - private Integer domainId; - - @Schema(description = "服务器ID") - private Integer assetsId; - - @Schema(description = "域名") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "注册厂商") - private String brand; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsEmail.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsEmail.java deleted file mode 100644 index a0e805b..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsEmail.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; - -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsEmail对象", description = "企业邮箱记录表") -public class OaAssetsEmail implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "email_id", type = IdType.AUTO) - private Integer emailId; - - @Schema(description = "邮箱名称") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "邮箱型号") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "初始账号") - private String system; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsMysql.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsMysql.java deleted file mode 100644 index b39315c..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsMysql.java +++ /dev/null @@ -1,107 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 19:00:20 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsMysql对象", description = "云数据库") -public class OaAssetsMysql implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "mysql_id", type = IdType.AUTO) - private Integer mysqlId; - - @Schema(description = "服务器ID") - private Integer assetsId; - - @Schema(description = "数据库名") - private String name; - - @Schema(description = "数据库标识") - private String code; - - @Schema(description = "注册厂商") - private String brand; - - @Schema(description = "ip地址") - private String ip; - - @Schema(description = "端口") - private String port; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsServer.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsServer.java deleted file mode 100644 index d389f06..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsServer.java +++ /dev/null @@ -1,73 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import io.swagger.v3.oas.annotations.media.Schema; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.EqualsAndHashCode; - -import java.io.Serializable; -import java.util.Date; - -/** - * 服务 - * - * @author 科技小王子 - * @since 2024-10-21 19:15:26 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsServer对象", description = "服务") -public class OaAssetsServer implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "插件id") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "服务名称") - private String server; - - @Schema(description = "接口地址") - private String serverUrl; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "服务器ID") - private Integer assetsId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态, 10待审核 20已通过 30已驳回") - private Integer status; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSite.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSite.java deleted file mode 100644 index 705a419..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSite.java +++ /dev/null @@ -1,166 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsSite对象", description = "网站信息记录表") -public class OaAssetsSite implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "站点ID") - @TableId(value = "website_id", type = IdType.AUTO) - private Integer websiteId; - - @Schema(description = "网站名称") - private String websiteName; - - @Schema(description = "网站标识") - private String websiteCode; - - @Schema(description = "网站LOGO") - private String websiteIcon; - - @Schema(description = "网站LOGO") - private String websiteLogo; - - @Schema(description = "网站LOGO(深色模式)") - private String websiteDarkLogo; - - @Schema(description = "网站类型") - private String websiteType; - - @Schema(description = "网站关键词") - private String keywords; - - @Schema(description = "域名前缀") - private String prefix; - - @Schema(description = "绑定域名") - private String domain; - - @Schema(description = "全局样式") - private String style; - - @Schema(description = "后台管理地址") - private String adminUrl; - - @Schema(description = "应用版本 10免费版 20授权版 30永久授权") - private Integer version; - - @Schema(description = "服务到期时间") - private Date expirationTime; - - @Schema(description = "模版ID") - private Integer templateId; - - @Schema(description = "行业类型(父级)") - private String industryParent; - - @Schema(description = "行业类型(子级)") - private String industryChild; - - @Schema(description = "企业ID") - private Integer companyId; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "经度") - private String longitude; - - @Schema(description = "纬度") - private String latitude; - - @Schema(description = "街道地址") - private String address; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "电子邮箱") - private String email; - - @Schema(description = "ICP备案号") - private String icpNo; - - @Schema(description = "公安备案") - private String policeNo; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停") - private Integer status; - - @Schema(description = "维护说明") - private String statusText; - - @Schema(description = "关闭说明") - private String statusClose; - - @Schema(description = "全局样式") - private String styles; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "服务器ID") - private Integer assetsId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSoftwareCert.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSoftwareCert.java deleted file mode 100644 index 78e2938..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSoftwareCert.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 19:46:21 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsSoftwareCert对象", description = "计算机软件著作权登记") -public class OaAssetsSoftwareCert implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "名称") - private String name; - - @Schema(description = "软件著作权标识") - private String code; - - @Schema(description = "证书类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书下载地址") - private String certUrl; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSsl.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSsl.java deleted file mode 100644 index b89e837..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsSsl.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -import io.swagger.v3.oas.annotations.media.Schema; -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.Data; -import lombok.EqualsAndHashCode; - -/** - * ssl证书 - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsSsl对象", description = "ssl证书") -public class OaAssetsSsl implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "ssl_id", type = IdType.AUTO) - private Integer sslId; - - @Schema(description = "证书名称") - private String name; - - @Schema(description = "证书标识") - private String code; - - @Schema(description = "证书类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书key") - private String certKey; - - @Schema(description = "证书pem") - private String certPem; - - @Schema(description = "证书下载地址") - private String certUrl; - - @Schema(description = "证书crt") - private String certCrt; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "即将过期") - private Integer soon; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsTrademark.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsTrademark.java deleted file mode 100644 index 2b52097..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsTrademark.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 19:46:21 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsTrademark对象", description = "商标注册") -public class OaAssetsTrademark implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "商标名称") - private String name; - - @Schema(description = "商标标识") - private String code; - - @Schema(description = "商标类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书下载") - private String certUrl; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsUser.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsUser.java deleted file mode 100644 index f38b406..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsUser.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsUser对象", description = "服务器成员管理") -public class OaAssetsUser implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - private Integer role; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "应用ID") - private Integer assetsId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsVhost.java b/src/main/java/com/gxwebsoft/oa/entity/OaAssetsVhost.java deleted file mode 100644 index 43d8628..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaAssetsVhost.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableLogic; -import java.io.Serializable; -import java.util.Date; - -import com.fasterxml.jackson.annotation.JsonFormat; -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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaAssetsVhost对象", description = "虚拟主机记录表") -public class OaAssetsVhost implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "vhost_id", type = IdType.AUTO) - private Integer vhostId; - - @Schema(description = "域名") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "主机型号") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "ssl证书") - private String ssl; - - @Schema(description = "购买时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date startTime; - - @Schema(description = "到期时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "服务器ID") - private Integer assetsId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaCompany.java b/src/main/java/com/gxwebsoft/oa/entity/OaCompany.java deleted file mode 100644 index 5949c02..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaCompany.java +++ /dev/null @@ -1,192 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; - -import com.baomidou.mybatisplus.annotation.TableLogic; -import com.baomidou.mybatisplus.annotation.TableField; -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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaCompany对象", description = "企业信息") -public class OaCompany implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "企业id") - @TableId(value = "company_id", type = IdType.AUTO) - private Integer companyId; - - @Schema(description = "企业简称") - private String shortName; - - @Schema(description = "企业全称") - private String companyName; - - @Schema(description = "企业标识") - private String companyCode; - - @Schema(description = "类型 10企业 20政府单位") - private String companyType; - - @Schema(description = "企业类型多选") - private String companyTypeMultiple; - - @Schema(description = "应用标识") - private String companyLogo; - - @Schema(description = "应用类型") - private String appType; - - @Schema(description = "绑定域名") - private String domain; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "座机电话") - private String tel; - - @Schema(description = "邮箱") - private String email; - - @Schema(description = "发票抬头") - @TableField("Invoice_header") - private String invoiceHeader; - - @Schema(description = "企业法人") - private String businessEntity; - - @Schema(description = "服务开始时间") - private Date startTime; - - @Schema(description = "服务到期时间") - private Date expirationTime; - - @Schema(description = "应用版本 10体验版 20授权版 30旗舰版") - private Integer version; - - @Schema(description = "成员数量(人数上限)") - private Integer members; - - @Schema(description = "成员数量(当前)") - private Integer users; - - @Schema(description = "行业类型(父级)") - private String industryParent; - - @Schema(description = "行业类型(子级)") - private String industryChild; - - @Schema(description = "部门数量") - private Integer departments; - - @Schema(description = "存储空间") - private Long storage; - - @Schema(description = "存储空间(上限)") - private Long storageMax; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "街道地址") - private String address; - - @Schema(description = "经度") - private String longitude; - - @Schema(description = "纬度") - private String latitude; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否实名认证") - private Integer authentication; - - @Schema(description = "企业默认主体") - private Integer authoritative; - - @Schema(description = "request合法域名") - private String requestUrl; - - @Schema(description = "socket合法域名") - private String socketUrl; - - @Schema(description = "主控端域名") - private String serverUrl; - - @Schema(description = "业务域名") - private String modulesUrl; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "点赞数量") - private Integer likes; - - @Schema(description = "点击数量") - private Integer clicks; - - @Schema(description = "购买数量") - private Integer buys; - - @Schema(description = "是否含税, 0不含, 1含") - private Integer isTax; - - @Schema(description = "当前克隆的租户ID") - private Integer planId; - - @Schema(description = "状态") - private Integer status; - - @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 = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaCompanyField.java b/src/main/java/com/gxwebsoft/oa/entity/OaCompanyField.java deleted file mode 100644 index 57029bd..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaCompanyField.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; - -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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaCompanyField对象", description = "企业参数") -public class OaCompanyField 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 companyId; - - @Schema(description = "名称") - private String name; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "状态, 0正常, 1删除") - private Integer status; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaCompanyUser.java b/src/main/java/com/gxwebsoft/oa/entity/OaCompanyUser.java deleted file mode 100644 index 6eee867..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaCompanyUser.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; - -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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaCompanyUser对象", description = "成员管理") -public class OaCompanyUser implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "company_user_id", type = IdType.AUTO) - private Integer companyUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - private Integer role; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "企业ID") - private Integer companyId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaLink.java b/src/main/java/com/gxwebsoft/oa/entity/OaLink.java deleted file mode 100644 index 416ad21..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaLink.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.oa.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 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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaLink对象", description = "常用链接") -public class OaLink implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "链接名称") - private String name; - - @Schema(description = "图标") - private String icon; - - @Schema(description = "链接地址") - private String url; - - @Schema(description = "链接分类") - private String linkType; - - @Schema(description = "应用ID") - private Integer appId; - - @Schema(description = "所属栏目") - private Integer categoryId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "状态, 0正常, 1待确认") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaProduct.java b/src/main/java/com/gxwebsoft/oa/entity/OaProduct.java deleted file mode 100644 index 919c2b6..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaProduct.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaProduct对象", description = "产品记录表") -public class OaProduct implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "产品ID") - @TableId(value = "product_id", type = IdType.AUTO) - private Integer productId; - - @Schema(description = "产品名称") - private String name; - - @Schema(description = "产品标识") - private String code; - - @Schema(description = "产品详情") - private String content; - - @Schema(description = "产品类型") - private String type; - - @Schema(description = "产品图标") - private String logo; - - @Schema(description = "产品金额") - private BigDecimal money; - - @Schema(description = "初始销量") - private Integer salesInitial; - - @Schema(description = "实际销量") - private Integer salesActual; - - @Schema(description = "库存总量(包含所有sku)") - private Integer stockTotal; - - @Schema(description = "背景颜色") - private String backgroundColor; - - @Schema(description = "背景图片") - private String backgroundImage; - - @Schema(description = "背景图片(gif)") - private String backgroundGif; - - @Schema(description = "购买链接") - private String buyUrl; - - @Schema(description = "控制台链接") - private String adminUrl; - - @Schema(description = "附件") - private String files; - - @Schema(description = "企业ID") - private Integer companyId; - - @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; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaProductTabs.java b/src/main/java/com/gxwebsoft/oa/entity/OaProductTabs.java deleted file mode 100644 index a46f516..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaProductTabs.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.gxwebsoft.oa.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 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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaProductTabs对象", description = "产品标签记录表") -public class OaProductTabs implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "产品标签ID") - @TableId(value = "tab_id", type = IdType.AUTO) - private Integer tabId; - - @Schema(description = "产品ID") - private Integer productId; - - @Schema(description = "标签名称") - private String name; - - @Schema(description = "标签类型") - private String type; - - @Schema(description = "产品标签详情") - private String content; - - @Schema(description = "背景颜色") - private String backgroundColor; - - @Schema(description = "背景图片") - private String backgroundImage; - - @Schema(description = "附件") - private String files; - - @Schema(description = "企业ID") - private Integer companyId; - - @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; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaTask.java b/src/main/java/com/gxwebsoft/oa/entity/OaTask.java deleted file mode 100644 index dd0babd..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaTask.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.gxwebsoft.oa.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import java.time.LocalDate; -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-10 20:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaTask对象", description = "任务记录表") -public class OaTask implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "工单ID") - @TableId(value = "task_id", type = IdType.AUTO) - private Integer taskId; - - @Schema(description = "工单类型") - private String taskType; - - @Schema(description = "任务内容") - private String name; - - @Schema(description = "问题描述") - private String content; - - @Schema(description = "工单附件") - private String files; - - @Schema(description = "工单发起人") - private Integer promoter; - - @Schema(description = "受理人") - private Integer commander; - - @Schema(description = "工单状态, 0未开始 1已指派 ") - private Integer progress; - - @Schema(description = "优先级") - private String priority; - - @Schema(description = "品质要求") - private String quality; - - @Schema(description = "时限(天)") - private Integer day; - - @Schema(description = "手机号") - private String phone; - - @Schema(description = "开始时间") - private LocalDate startTime; - - @Schema(description = "结束时间") - private LocalDate endTime; - - @Schema(description = "逾期天数") - private Integer overdueDays; - - @Schema(description = "项目ID") - private Integer appId; - - @Schema(description = "机构id") - private Integer organizationId; - - @Schema(description = "项目ID") - private Integer projectId; - - @Schema(description = "客户ID") - private Integer customerId; - - @Schema(description = "资产ID") - private Integer assetsId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "是否已查阅") - private Integer isRead; - - @Schema(description = "最后回复人") - private Integer lastReadUser; - - @Schema(description = "发起人昵称") - private String nickname; - - @Schema(description = "发起人头像") - private String avatar; - - @Schema(description = "最后回复人头像") - private String lastAvatar; - - @Schema(description = "最后回复人昵称") - private String lastNickname; - - @Schema(description = "订单是否已结算(0未结算 1已结算)") - private Integer isSettled; - - @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; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaTaskCount.java b/src/main/java/com/gxwebsoft/oa/entity/OaTaskCount.java deleted file mode 100644 index c84a00a..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaTaskCount.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaTaskCount对象", description = "数据统计") -public class OaTaskCount implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "task_count_id", type = IdType.AUTO) - private Integer taskCountId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "待处理数") - private Integer pending; - - @Schema(description = "闲置的工单(废弃)") - private Integer unused; - - @Schema(description = "已完成数(废弃)") - private Integer completed; - - @Schema(description = "今天处理数") - private Integer today; - - @Schema(description = "本月处理数") - private Integer month; - - @Schema(description = "今年处理数") - private Integer year; - - @Schema(description = "总工单数") - private Integer total; - - @Schema(description = "部门ID") - private Integer organizationId; - - @Schema(description = "角色ID") - private Integer roleId; - - @Schema(description = "角色标识") - private String roleCode; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "更新时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaTaskRecord.java b/src/main/java/com/gxwebsoft/oa/entity/OaTaskRecord.java deleted file mode 100644 index 568b5e4..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaTaskRecord.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.oa.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 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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaTaskRecord对象", description = "工单回复记录表") -public class OaTaskRecord implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "回复ID") - @TableId(value = "task_record_id", type = IdType.AUTO) - private Integer taskRecordId; - - @Schema(description = "上级id, 0是顶级") - private Integer parentId; - - @Schema(description = "工单ID") - private Integer taskId; - - @Schema(description = "内容") - private String content; - - @Schema(description = "机密信息") - private String confidential; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "工单附件") - private String files; - - @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; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/entity/OaTaskUser.java b/src/main/java/com/gxwebsoft/oa/entity/OaTaskUser.java deleted file mode 100644 index b82227b..0000000 --- a/src/main/java/com/gxwebsoft/oa/entity/OaTaskUser.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "OaTaskUser对象", description = "工单成员") -public class OaTaskUser implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "task_user_id", type = IdType.AUTO) - private Integer taskUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - private Integer role; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "工单ID") - private Integer taskId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0待处理, 1已完成") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "加入时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAppFieldMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAppFieldMapper.java deleted file mode 100644 index 5d66286..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAppFieldMapper.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.conditions.Wrapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAppField; -import com.gxwebsoft.oa.param.OaAppFieldParam; -import org.apache.ibatis.annotations.Param; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 应用参数Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppFieldMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAppFieldParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAppFieldParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAppMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAppMapper.java deleted file mode 100644 index 8975d8b..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAppMapper.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.conditions.Wrapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaApp; -import com.gxwebsoft.oa.param.OaAppParam; -import org.apache.ibatis.annotations.Param; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 应用Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAppParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAppParam param); - - /** - * 统计金额总和 - * - * @param wrapper 查询条件 - * @return 金额总和 - */ - BigDecimal selectSumMoney(@Param("ew") Wrapper wrapper); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAppRenewMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAppRenewMapper.java deleted file mode 100644 index 40ceb78..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAppRenewMapper.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.conditions.Wrapper; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAppRenew; -import com.gxwebsoft.oa.param.OaAppRenewParam; -import org.apache.ibatis.annotations.Param; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 续费管理Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppRenewMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAppRenewParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAppRenewParam param); - - /** - * 统计金额总和 - * - * @param wrapper 查询条件 - * @return 金额总和 - */ - BigDecimal selectSumMoney(@Param("ew") Wrapper wrapper); -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAppUrlMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAppUrlMapper.java deleted file mode 100644 index af8f851..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAppUrlMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAppUrl; -import com.gxwebsoft.oa.param.OaAppUrlParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 项目域名Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppUrlMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAppUrlParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAppUrlParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAppUserMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAppUserMapper.java deleted file mode 100644 index 8d416bf..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAppUserMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAppUser; -import com.gxwebsoft.oa.param.OaAppUserParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 应用成员Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppUserMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAppUserParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAppUserParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsCodeMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsCodeMapper.java deleted file mode 100644 index 8108c1c..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsCodeMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsCode; -import com.gxwebsoft.oa.param.OaAssetsCodeParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 代码仓库Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:27:01 - */ -public interface OaAssetsCodeMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsCodeParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsCodeParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsDomainMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsDomainMapper.java deleted file mode 100644 index 6f9c571..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsDomainMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsDomain; -import com.gxwebsoft.oa.param.OaAssetsDomainParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 域名Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsDomainMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsDomainParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsDomainParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsEmailMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsEmailMapper.java deleted file mode 100644 index 6457bb8..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsEmailMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsEmail; -import com.gxwebsoft.oa.param.OaAssetsEmailParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 企业邮箱记录表Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsEmailMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsEmailParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsEmailParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMapper.java deleted file mode 100644 index b1b2879..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssets; -import com.gxwebsoft.oa.param.OaAssetsParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 云服务器Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:34:15 - */ -public interface OaAssetsMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMysqlMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMysqlMapper.java deleted file mode 100644 index 168f28b..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsMysqlMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsMysql; -import com.gxwebsoft.oa.param.OaAssetsMysqlParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 云数据库Mapper - * - * @author 科技小王子 - * @since 2024-10-18 19:00:20 - */ -public interface OaAssetsMysqlMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsMysqlParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsMysqlParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsServerMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsServerMapper.java deleted file mode 100644 index fd08087..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsServerMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsServer; -import com.gxwebsoft.oa.param.OaAssetsServerParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 服务Mapper - * - * @author 科技小王子 - * @since 2024-10-21 19:15:26 - */ -public interface OaAssetsServerMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsServerParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsServerParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSiteMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSiteMapper.java deleted file mode 100644 index 641dad9..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSiteMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsSite; -import com.gxwebsoft.oa.param.OaAssetsSiteParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 网站信息记录表Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsSiteMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsSiteParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsSiteParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSoftwareCertMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSoftwareCertMapper.java deleted file mode 100644 index a861aec..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSoftwareCertMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert; -import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 计算机软件著作权登记Mapper - * - * @author 科技小王子 - * @since 2024-10-18 19:46:21 - */ -public interface OaAssetsSoftwareCertMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsSoftwareCertParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsSoftwareCertParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSslMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSslMapper.java deleted file mode 100644 index 7912f86..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsSslMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsSsl; -import com.gxwebsoft.oa.param.OaAssetsSslParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * ssl证书Mapper - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -public interface OaAssetsSslMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsSslParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsSslParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsTrademarkMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsTrademarkMapper.java deleted file mode 100644 index 371ab97..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsTrademarkMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsTrademark; -import com.gxwebsoft.oa.param.OaAssetsTrademarkParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商标注册Mapper - * - * @author 科技小王子 - * @since 2024-10-18 19:46:21 - */ -public interface OaAssetsTrademarkMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsTrademarkParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsTrademarkParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsUserMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsUserMapper.java deleted file mode 100644 index 56cd088..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsUserMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsUser; -import com.gxwebsoft.oa.param.OaAssetsUserParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 服务器成员管理Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAssetsUserMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsUserParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsUserParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsVhostMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsVhostMapper.java deleted file mode 100644 index c45a874..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaAssetsVhostMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaAssetsVhost; -import com.gxwebsoft.oa.param.OaAssetsVhostParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 虚拟主机记录表Mapper - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsVhostMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaAssetsVhostParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaAssetsVhostParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyFieldMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyFieldMapper.java deleted file mode 100644 index 6471da9..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyFieldMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaCompanyField; -import com.gxwebsoft.oa.param.OaCompanyFieldParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 企业参数Mapper - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyFieldMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaCompanyFieldParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaCompanyFieldParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyMapper.java deleted file mode 100644 index 59d6d85..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaCompany; -import com.gxwebsoft.oa.param.OaCompanyParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 企业信息Mapper - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaCompanyParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaCompanyParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyUserMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyUserMapper.java deleted file mode 100644 index 65e6a8e..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaCompanyUserMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaCompanyUser; -import com.gxwebsoft.oa.param.OaCompanyUserParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 成员管理Mapper - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyUserMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaCompanyUserParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaCompanyUserParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaLinkMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaLinkMapper.java deleted file mode 100644 index 57497a8..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaLinkMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaLink; -import com.gxwebsoft.oa.param.OaLinkParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 常用链接Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaLinkMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaLinkParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaLinkParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaProductMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaProductMapper.java deleted file mode 100644 index 9d1d9af..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaProductMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaProduct; -import com.gxwebsoft.oa.param.OaProductParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 产品记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaProductMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaProductParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaProductParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaProductTabsMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaProductTabsMapper.java deleted file mode 100644 index 39e03c7..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaProductTabsMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaProductTabs; -import com.gxwebsoft.oa.param.OaProductTabsParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 产品标签记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaProductTabsMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaProductTabsParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaProductTabsParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskCountMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaTaskCountMapper.java deleted file mode 100644 index 0e139df..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskCountMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaTaskCount; -import com.gxwebsoft.oa.param.OaTaskCountParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 数据统计Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskCountMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaTaskCountParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaTaskCountParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaTaskMapper.java deleted file mode 100644 index 963f5f8..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaTask; -import com.gxwebsoft.oa.param.OaTaskParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 任务记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaTaskParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaTaskParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskRecordMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaTaskRecordMapper.java deleted file mode 100644 index f12d10e..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskRecordMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaTaskRecord; -import com.gxwebsoft.oa.param.OaTaskRecordParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 工单回复记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskRecordMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaTaskRecordParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaTaskRecordParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskUserMapper.java b/src/main/java/com/gxwebsoft/oa/mapper/OaTaskUserMapper.java deleted file mode 100644 index d894bb6..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/OaTaskUserMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.oa.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.oa.entity.OaTaskUser; -import com.gxwebsoft.oa.param.OaTaskUserParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 工单成员Mapper - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskUserMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") OaTaskUserParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") OaTaskUserParam param); - -} diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppFieldMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppFieldMapper.xml deleted file mode 100644 index c7ded82..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppFieldMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_app_field a - - - AND a.id = #{param.id} - - - AND a.app_id = #{param.appId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppMapper.xml deleted file mode 100644 index e21d750..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppMapper.xml +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - SELECT a.*, b.company_name,b.short_name,b.company_logo - FROM oa_app a - LEFT JOIN oa_company b ON a.company_id = b.company_id - - - AND a.app_id = #{param.appId} - - - AND a.app_name LIKE CONCAT('%', #{param.appName}, '%') - - - AND a.app_code LIKE CONCAT('%', #{param.appCode}, '%') - - - AND a.show_case = #{param.showCase} - - - AND a.recommend = #{param.recommend} - - - AND a.show_index = #{param.showIndex} - - - AND a.parent_id = #{param.parentId} - - - AND a.app_type LIKE CONCAT('%', #{param.appType}, '%') - - - AND a.app_type_multiple LIKE CONCAT('%', #{param.appTypeMultiple}, '%') - - - AND a.menu_type = #{param.menuType} - - - AND a.company_id = #{param.companyId} - - - AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%') - - - AND a.app_icon LIKE CONCAT('%', #{param.appIcon}, '%') - - - AND a.app_qrcode LIKE CONCAT('%', #{param.appQrcode}, '%') - - - AND a.app_url LIKE CONCAT('%', #{param.appUrl}, '%') - - - AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%') - - - AND a.down_url LIKE CONCAT('%', #{param.downUrl}, '%') - - - AND a.server_url LIKE CONCAT('%', #{param.serverUrl}, '%') - - - AND a.file_url LIKE CONCAT('%', #{param.fileUrl}, '%') - - - AND a.callback_url LIKE CONCAT('%', #{param.callbackUrl}, '%') - - - AND a.docs_url LIKE CONCAT('%', #{param.docsUrl}, '%') - - - AND a.git_url LIKE CONCAT('%', #{param.gitUrl}, '%') - - - AND a.prototype_url LIKE CONCAT('%', #{param.prototypeUrl}, '%') - - - AND a.ip_address LIKE CONCAT('%', #{param.ipAddress}, '%') - - - AND a.images LIKE CONCAT('%', #{param.images}, '%') - - - AND a.package_name LIKE CONCAT('%', #{param.packageName}, '%') - - - AND a.clicks = #{param.clicks} - - - AND a.installs = #{param.installs} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.requirement LIKE CONCAT('%', #{param.requirement}, '%') - - - AND a.developer LIKE CONCAT('%', #{param.developer}, '%') - - - AND a.director LIKE CONCAT('%', #{param.director}, '%') - - - AND a.project_director LIKE CONCAT('%', #{param.projectDirector}, '%') - - - AND a.salesman LIKE CONCAT('%', #{param.salesman}, '%') - - - AND a.price = #{param.price} - - - AND a.line_price = #{param.linePrice} - - - AND a.score LIKE CONCAT('%', #{param.score}, '%') - - - AND a.star LIKE CONCAT('%', #{param.star}, '%') - - - AND a.path LIKE CONCAT('%', #{param.path}, '%') - - - AND a.component LIKE CONCAT('%', #{param.component}, '%') - - - AND a.authority LIKE CONCAT('%', #{param.authority}, '%') - - - AND a.target LIKE CONCAT('%', #{param.target}, '%') - - - AND a.hide = #{param.hide} - - - AND a.search = #{param.search} - - - AND a.active LIKE CONCAT('%', #{param.active}, '%') - - - AND a.meta LIKE CONCAT('%', #{param.meta}, '%') - - - AND a.edition LIKE CONCAT('%', #{param.edition}, '%') - - - AND a.version LIKE CONCAT('%', #{param.version}, '%') - - - AND a.is_use = #{param.isUse} - - - AND a.file1 LIKE CONCAT('%', #{param.file1}, '%') - - - AND a.file2 LIKE CONCAT('%', #{param.file2}, '%') - - - AND a.file3 LIKE CONCAT('%', #{param.file3}, '%') - - - AND a.app_status LIKE CONCAT('%', #{param.appStatus}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.user_id = #{param.userId} - - - AND a.app_id IN - - #{item} - - - - AND a.organization_id = #{param.organizationId} - - - AND a.show_expiration = #{param.showExpiration} - - - AND a.tenant_code LIKE CONCAT('%', #{param.tenantCode}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.app_name LIKE CONCAT('%', #{param.keywords}, '%') - OR a.app_code LIKE CONCAT('%', #{param.keywords}, '%') - OR a.company_name LIKE CONCAT('%', #{param.keywords}, '%') - OR a.app_url LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppRenewMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppRenewMapper.xml deleted file mode 100644 index d949637..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppRenewMapper.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - SELECT a.*, - b.company_name,b.short_name,b.company_logo, - c.app_name - FROM oa_app_renew a - LEFT JOIN oa_company b ON a.company_id = b.company_id - LEFT JOIN oa_app c ON a.app_id = c.app_id - - - AND a.app_renew_id = #{param.appRenewId} - - - AND a.money = #{param.money} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.app_id = #{param.appId} - - - AND a.company_id = #{param.companyId} - - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUrlMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUrlMapper.xml deleted file mode 100644 index 24865f4..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUrlMapper.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_app_url a - - - AND a.app_url_id = #{param.appUrlId} - - - AND a.app_id = #{param.appId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.domain LIKE CONCAT('%', #{param.domain}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.comments LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUserMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUserMapper.xml deleted file mode 100644 index 83cf18a..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAppUserMapper.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_app_user a - - - AND a.app_user_id = #{param.appUserId} - - - AND a.role = #{param.role} - - - AND a.user_id = #{param.userId} - - - AND a.app_id = #{param.appId} - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (b.nickname LIKE CONCAT('%', #{param.keywords}, '%') - OR b.email LIKE CONCAT('%', #{param.keywords}, '%') - OR b.username LIKE CONCAT('%', #{param.keywords}, '%') - OR b.phone LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsCodeMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsCodeMapper.xml deleted file mode 100644 index 9a61a3f..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsCodeMapper.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_code a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.id = #{param.id} - - - AND a.assets_id = #{param.assetsId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.git_url LIKE CONCAT('%', #{param.gitUrl}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsDomainMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsDomainMapper.xml deleted file mode 100644 index 9bef61c..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsDomainMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_domain a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.domain_id = #{param.domainId} - - - AND a.assets_id = #{param.assetsId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.account LIKE CONCAT('%', #{param.account}, '%') - - - AND a.password LIKE CONCAT('%', #{param.password}, '%') - - - AND a.price = #{param.price} - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsEmailMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsEmailMapper.xml deleted file mode 100644 index d49ef0f..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsEmailMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_email a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.email_id = #{param.emailId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.system LIKE CONCAT('%', #{param.system}, '%') - - - AND a.price = #{param.price} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMapper.xml deleted file mode 100644 index d176106..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMapper.xml +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.assets_id = #{param.assetsId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.configuration LIKE CONCAT('%', #{param.configuration}, '%') - - - AND a.account LIKE CONCAT('%', #{param.account}, '%') - - - AND a.password LIKE CONCAT('%', #{param.password}, '%') - - - AND a.brand_account LIKE CONCAT('%', #{param.brandAccount}, '%') - - - AND a.brand_password LIKE CONCAT('%', #{param.brandPassword}, '%') - - - AND a.panel LIKE CONCAT('%', #{param.panel}, '%') - - - AND a.panel_account LIKE CONCAT('%', #{param.panelAccount}, '%') - - - AND a.panel_password LIKE CONCAT('%', #{param.panelPassword}, '%') - - - AND a.finance_amount = #{param.financeAmount} - - - AND a.finance_years = #{param.financeYears} - - - AND a.finance_renew = #{param.financeRenew} - - - AND a.finance_customer_name LIKE CONCAT('%', #{param.financeCustomerName}, '%') - - - AND a.finance_customer_contact LIKE CONCAT('%', #{param.financeCustomerContact}, '%') - - - AND a.finance_customer_phone LIKE CONCAT('%', #{param.financeCustomerPhone}, '%') - - - AND a.customer_id = #{param.customerId} - - - AND a.customer_name LIKE CONCAT('%', #{param.customerName}, '%') - - - AND a.open_port LIKE CONCAT('%', #{param.openPort}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.visibility LIKE CONCAT('%', #{param.visibility}, '%') - - - AND a.bt_sign LIKE CONCAT('%', #{param.btSign}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.company_id = #{param.companyId} - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.organization_id = #{param.organizationId} - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.tenant_id = #{param.keywords} - OR a.name LIKE CONCAT('%', #{param.keywords}, '%') - OR a.code LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMysqlMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMysqlMapper.xml deleted file mode 100644 index 2b8417b..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsMysqlMapper.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_mysql a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.mysql_id = #{param.mysqlId} - - - AND a.assets_id = #{param.assetsId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.ip LIKE CONCAT('%', #{param.ip}, '%') - - - AND a.port LIKE CONCAT('%', #{param.port}, '%') - - - AND a.account LIKE CONCAT('%', #{param.account}, '%') - - - AND a.password LIKE CONCAT('%', #{param.password}, '%') - - - AND a.price = #{param.price} - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsServerMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsServerMapper.xml deleted file mode 100644 index 1e7770e..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsServerMapper.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_assets_server a - - - AND a.id = #{param.id} - - - AND a.server LIKE CONCAT('%', #{param.server}, '%') - - - AND a.server_url LIKE CONCAT('%', #{param.serverUrl}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.assets_id = #{param.assetsId} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.tenant_id = #{param.keywords} - OR a.server_url LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSiteMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSiteMapper.xml deleted file mode 100644 index 566bf4b..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSiteMapper.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_site a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.website_id = #{param.websiteId} - - - AND a.website_name LIKE CONCAT('%', #{param.websiteName}, '%') - - - AND a.website_code LIKE CONCAT('%', #{param.websiteCode}, '%') - - - AND a.website_icon LIKE CONCAT('%', #{param.websiteIcon}, '%') - - - AND a.website_logo LIKE CONCAT('%', #{param.websiteLogo}, '%') - - - AND a.website_dark_logo LIKE CONCAT('%', #{param.websiteDarkLogo}, '%') - - - AND a.website_type LIKE CONCAT('%', #{param.websiteType}, '%') - - - AND a.keywords LIKE CONCAT('%', #{param.keywords}, '%') - - - AND a.prefix LIKE CONCAT('%', #{param.prefix}, '%') - - - AND a.domain LIKE CONCAT('%', #{param.domain}, '%') - - - AND a.style LIKE CONCAT('%', #{param.style}, '%') - - - AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%') - - - AND a.version = #{param.version} - - - AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%') - - - AND a.template_id = #{param.templateId} - - - AND a.industry_parent LIKE CONCAT('%', #{param.industryParent}, '%') - - - AND a.industry_child LIKE CONCAT('%', #{param.industryChild}, '%') - - - AND a.company_id = #{param.companyId} - - - AND a.country LIKE CONCAT('%', #{param.country}, '%') - - - AND a.province LIKE CONCAT('%', #{param.province}, '%') - - - AND a.city LIKE CONCAT('%', #{param.city}, '%') - - - AND a.region LIKE CONCAT('%', #{param.region}, '%') - - - AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%') - - - AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%') - - - AND a.address LIKE CONCAT('%', #{param.address}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.email LIKE CONCAT('%', #{param.email}, '%') - - - AND a.icp_no LIKE CONCAT('%', #{param.icpNo}, '%') - - - AND a.police_no LIKE CONCAT('%', #{param.policeNo}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.recommend = #{param.recommend} - - - AND a.status = #{param.status} - - - AND a.status_text LIKE CONCAT('%', #{param.statusText}, '%') - - - AND a.status_close LIKE CONCAT('%', #{param.statusClose}, '%') - - - AND a.styles LIKE CONCAT('%', #{param.styles}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.assets_id = #{param.assetsId} - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSoftwareCertMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSoftwareCertMapper.xml deleted file mode 100644 index 2f45fe1..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSoftwareCertMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_software_cert a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.price = #{param.price} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSslMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSslMapper.xml deleted file mode 100644 index e444da8..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsSslMapper.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_ssl a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.ssl_id = #{param.sslId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.price = #{param.price} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.cert_key LIKE CONCAT('%', #{param.certKey}, '%') - - - AND a.cert_pem LIKE CONCAT('%', #{param.certPem}, '%') - - - AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%') - - - AND a.cert_crt LIKE CONCAT('%', #{param.certCrt}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.tenant_id = #{param.keywords} - OR a.name LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsTrademarkMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsTrademarkMapper.xml deleted file mode 100644 index 583ac1e..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsTrademarkMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_trademark a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.price = #{param.price} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.cert_url LIKE CONCAT('%', #{param.certUrl}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsUserMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsUserMapper.xml deleted file mode 100644 index 0306c98..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsUserMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_assets_user a - - - AND a.id = #{param.id} - - - AND a.role = #{param.role} - - - AND a.user_id = #{param.userId} - - - AND a.assets_id = #{param.assetsId} - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsVhostMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsVhostMapper.xml deleted file mode 100644 index a1dcd92..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaAssetsVhostMapper.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - SELECT a.*, b.short_name AS tenantName,b.company_logo as logo - FROM oa_assets_vhost a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.vhost_id = #{param.vhostId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.brand LIKE CONCAT('%', #{param.brand}, '%') - - - AND a.account LIKE CONCAT('%', #{param.account}, '%') - - - AND a.password LIKE CONCAT('%', #{param.password}, '%') - - - AND a.price = #{param.price} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.ssl LIKE CONCAT('%', #{param.ssl}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.is_top LIKE CONCAT('%', #{param.isTop}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.assets_id = #{param.assetsId} - - - AND a.user_id = #{param.userId} - - - AND a.user_ids LIKE CONCAT('%', #{param.userIds}, '%') - - - AND a.status LIKE CONCAT('%', #{param.status}, '%') - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyFieldMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyFieldMapper.xml deleted file mode 100644 index 4cdb978..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyFieldMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_company_field a - - - AND a.id = #{param.id} - - - AND a.company_id = #{param.companyId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyMapper.xml deleted file mode 100644 index 682f772..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyMapper.xml +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_company a - - - AND a.company_id = #{param.companyId} - - - AND a.short_name LIKE CONCAT('%', #{param.shortName}, '%') - - - AND a.company_name LIKE CONCAT('%', #{param.companyName}, '%') - - - AND a.company_code LIKE CONCAT('%', #{param.companyCode}, '%') - - - AND a.company_type LIKE CONCAT('%', #{param.companyType}, '%') - - - AND a.company_type_multiple LIKE CONCAT('%', #{param.companyTypeMultiple}, '%') - - - AND a.company_logo LIKE CONCAT('%', #{param.companyLogo}, '%') - - - AND a.app_type LIKE CONCAT('%', #{param.appType}, '%') - - - AND a.domain LIKE CONCAT('%', #{param.domain}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.tel LIKE CONCAT('%', #{param.tel}, '%') - - - AND a.email LIKE CONCAT('%', #{param.email}, '%') - - - AND a.Invoice_header LIKE CONCAT('%', #{param.invoiceHeader}, '%') - - - AND a.business_entity LIKE CONCAT('%', #{param.businessEntity}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%') - - - AND a.version = #{param.version} - - - AND a.members = #{param.members} - - - AND a.users = #{param.users} - - - AND a.industry_parent LIKE CONCAT('%', #{param.industryParent}, '%') - - - AND a.industry_child LIKE CONCAT('%', #{param.industryChild}, '%') - - - AND a.departments = #{param.departments} - - - AND a.storage LIKE CONCAT('%', #{param.storage}, '%') - - - AND a.storage_max LIKE CONCAT('%', #{param.storageMax}, '%') - - - AND a.country LIKE CONCAT('%', #{param.country}, '%') - - - AND a.province LIKE CONCAT('%', #{param.province}, '%') - - - AND a.city LIKE CONCAT('%', #{param.city}, '%') - - - AND a.region LIKE CONCAT('%', #{param.region}, '%') - - - AND a.address LIKE CONCAT('%', #{param.address}, '%') - - - AND a.longitude LIKE CONCAT('%', #{param.longitude}, '%') - - - AND a.latitude LIKE CONCAT('%', #{param.latitude}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.authentication = #{param.authentication} - - - AND a.authoritative = #{param.authoritative} - - - AND a.request_url LIKE CONCAT('%', #{param.requestUrl}, '%') - - - AND a.socket_url LIKE CONCAT('%', #{param.socketUrl}, '%') - - - AND a.server_url LIKE CONCAT('%', #{param.serverUrl}, '%') - - - AND a.modules_url LIKE CONCAT('%', #{param.modulesUrl}, '%') - - - AND a.recommend = #{param.recommend} - - - AND a.likes = #{param.likes} - - - AND a.clicks = #{param.clicks} - - - AND a.buys = #{param.buys} - - - AND a.is_tax = #{param.isTax} - - - AND a.plan_id = #{param.planId} - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.user_id = #{param.userId} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyUserMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyUserMapper.xml deleted file mode 100644 index e4aeb35..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaCompanyUserMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_company_user a - - - AND a.company_user_id = #{param.companyUserId} - - - AND a.role = #{param.role} - - - AND a.user_id = #{param.userId} - - - AND a.company_id = #{param.companyId} - - - AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%') - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaLinkMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaLinkMapper.xml deleted file mode 100644 index 55a4a1e..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaLinkMapper.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_link a - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.icon LIKE CONCAT('%', #{param.icon}, '%') - - - AND a.url LIKE CONCAT('%', #{param.url}, '%') - - - AND a.link_type LIKE CONCAT('%', #{param.linkType}, '%') - - - AND a.app_id = #{param.appId} - - - AND a.category_id = #{param.categoryId} - - - AND a.user_id = #{param.userId} - - - AND a.recommend = #{param.recommend} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductMapper.xml deleted file mode 100644 index 0bca9c6..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductMapper.xml +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_product a - - - AND a.product_id = #{param.productId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.logo LIKE CONCAT('%', #{param.logo}, '%') - - - AND a.money = #{param.money} - - - AND a.sales_initial = #{param.salesInitial} - - - AND a.sales_actual = #{param.salesActual} - - - AND a.stock_total = #{param.stockTotal} - - - AND a.background_color LIKE CONCAT('%', #{param.backgroundColor}, '%') - - - AND a.background_image LIKE CONCAT('%', #{param.backgroundImage}, '%') - - - AND a.background_gif LIKE CONCAT('%', #{param.backgroundGif}, '%') - - - AND a.buy_url LIKE CONCAT('%', #{param.buyUrl}, '%') - - - AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%') - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.company_id = #{param.companyId} - - - AND a.user_id = #{param.userId} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductTabsMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductTabsMapper.xml deleted file mode 100644 index 075457c..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaProductTabsMapper.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_product_tabs a - - - AND a.tab_id = #{param.tabId} - - - AND a.product_id = #{param.productId} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.background_color LIKE CONCAT('%', #{param.backgroundColor}, '%') - - - AND a.background_image LIKE CONCAT('%', #{param.backgroundImage}, '%') - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.company_id = #{param.companyId} - - - AND a.user_id = #{param.userId} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskCountMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskCountMapper.xml deleted file mode 100644 index 5e5cf81..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskCountMapper.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_task_count a - - - AND a.task_count_id = #{param.taskCountId} - - - AND a.user_id = #{param.userId} - - - AND a.pending = #{param.pending} - - - AND a.unused = #{param.unused} - - - AND a.completed = #{param.completed} - - - AND a.today = #{param.today} - - - AND a.month = #{param.month} - - - AND a.year = #{param.year} - - - AND a.total = #{param.total} - - - AND a.organization_id = #{param.organizationId} - - - AND a.role_id = #{param.roleId} - - - AND a.role_code LIKE CONCAT('%', #{param.roleCode}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskMapper.xml deleted file mode 100644 index e068988..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskMapper.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_task a - - - AND a.task_id = #{param.taskId} - - - AND a.task_type LIKE CONCAT('%', #{param.taskType}, '%') - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.promoter = #{param.promoter} - - - AND a.commander = #{param.commander} - - - AND a.progress = #{param.progress} - - - AND a.priority LIKE CONCAT('%', #{param.priority}, '%') - - - AND a.quality LIKE CONCAT('%', #{param.quality}, '%') - - - AND a.day = #{param.day} - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.overdue_days = #{param.overdueDays} - - - AND a.app_id = #{param.appId} - - - AND a.organization_id = #{param.organizationId} - - - AND a.project_id = #{param.projectId} - - - AND a.customer_id = #{param.customerId} - - - AND a.assets_id = #{param.assetsId} - - - AND a.user_id = #{param.userId} - - - AND a.is_read = #{param.isRead} - - - AND a.last_read_user = #{param.lastReadUser} - - - AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%') - - - AND a.avatar LIKE CONCAT('%', #{param.avatar}, '%') - - - AND a.last_avatar LIKE CONCAT('%', #{param.lastAvatar}, '%') - - - AND a.last_nickname LIKE CONCAT('%', #{param.lastNickname}, '%') - - - AND a.is_settled = #{param.isSettled} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskRecordMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskRecordMapper.xml deleted file mode 100644 index b9bd366..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskRecordMapper.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_task_record a - - - AND a.task_record_id = #{param.taskRecordId} - - - AND a.parent_id = #{param.parentId} - - - AND a.task_id = #{param.taskId} - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.confidential LIKE CONCAT('%', #{param.confidential}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskUserMapper.xml b/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskUserMapper.xml deleted file mode 100644 index c620f5c..0000000 --- a/src/main/java/com/gxwebsoft/oa/mapper/xml/OaTaskUserMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - SELECT a.* - FROM oa_task_user a - - - AND a.task_user_id = #{param.taskUserId} - - - AND a.role = #{param.role} - - - AND a.user_id = #{param.userId} - - - AND a.task_id = #{param.taskId} - - - AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%') - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAppFieldParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAppFieldParam.java deleted file mode 100644 index 17eb253..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAppFieldParam.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.gxwebsoft.oa.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:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAppFieldParam对象", description = "应用参数查询参数") -public class OaAppFieldParam 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 appId; - - @Schema(description = "名称") - private String name; - - @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 = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAppParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAppParam.java deleted file mode 100644 index 589b255..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAppParam.java +++ /dev/null @@ -1,250 +0,0 @@ -package com.gxwebsoft.oa.param; - -import com.baomidou.mybatisplus.annotation.TableField; -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; -import java.util.Set; - -/** - * 应用查询参数 - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAppParam对象", description = "应用查询参数") -public class OaAppParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "应用名称") - private String appName; - - @Schema(description = "应用标识") - private String appCode; - - @Schema(description = "应用秘钥") - private String appSecret; - - @Schema(description = "上级id, 0是顶级") - @QueryField(type = QueryType.EQ) - private Integer parentId; - - @Schema(description = "应用类型") - private String appType; - - @Schema(description = "应用类型") - private String appTypeMultiple; - - @Schema(description = "类型, 0菜单, 1按钮") - @QueryField(type = QueryType.EQ) - private Integer menuType; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "企业名称") - private String companyName; - - @Schema(description = "应用图标") - private String appIcon; - - @Schema(description = "二维码") - private String appQrcode; - - @Schema(description = "链接地址") - private String appUrl; - - @Schema(description = "后台管理地址") - private String adminUrl; - - @Schema(description = "下载地址") - private String downUrl; - - @Schema(description = "链接地址") - private String serverUrl; - - @Schema(description = "文件服务器") - private String fileUrl; - - @Schema(description = "回调地址") - private String callbackUrl; - - @Schema(description = "腾讯文档地址") - private String docsUrl; - - @Schema(description = "代码仓库地址") - private String gitUrl; - - @Schema(description = "原型图地址") - private String prototypeUrl; - - @Schema(description = "IP白名单") - private String ipAddress; - - @Schema(description = "应用截图") - private String images; - - @Schema(description = "应用包名") - private String packageName; - - @Schema(description = "下载次数") - @QueryField(type = QueryType.EQ) - private Integer clicks; - - @Schema(description = "安装次数") - @QueryField(type = QueryType.EQ) - private Integer installs; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "应用介绍") - private String content; - - @Schema(description = "项目需求") - private String requirement; - - @Schema(description = "开发者(个人或公司)") - private String developer; - - @Schema(description = "项目负责人") - private String director; - - @Schema(description = "项目经理") - private String projectDirector; - - @Schema(description = "业务员") - private String salesman; - - @Schema(description = "软件定价") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "划线价格") - @QueryField(type = QueryType.EQ) - private BigDecimal linePrice; - - @Schema(description = "评分") - private String score; - - @Schema(description = "星级") - private String star; - - @Schema(description = "菜单路由地址") - private String path; - - @Schema(description = "菜单组件地址, 目录可为空") - private String component; - - @Schema(description = "权限标识") - private String authority; - - @Schema(description = "打开位置") - private String target; - - @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)") - @QueryField(type = QueryType.EQ) - private Integer hide; - - @Schema(description = "禁止搜索,1禁止 0 允许") - @QueryField(type = QueryType.EQ) - private Integer search; - - @Schema(description = "菜单侧栏选中的path") - private String active; - - @Schema(description = "其它路由元信息") - private String meta; - - @Schema(description = "版本,0正式版 1体验版 2开发版") - private String edition; - - @Schema(description = "版本号") - private String version; - - @Schema(description = "是否已安装") - @QueryField(type = QueryType.EQ) - private Integer isUse; - - @Schema(description = "附近1") - private String file1; - - @Schema(description = "附件2") - private String file2; - - @Schema(description = "附件3") - private String file3; - - @Schema(description = "是否显示续费提醒") - @QueryField(type = QueryType.EQ) - private Boolean showExpiration; - - @Schema(description = "是否作为案例展示") - @QueryField(type = QueryType.EQ) - private Boolean showCase; - - @Schema(description = "是否显示在首页") - @QueryField(type = QueryType.EQ) - private Integer showIndex; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "到期时间") - private String expirationTime; - - @Schema(description = "续费金额") - @QueryField(type = QueryType.EQ) - private BigDecimal renewMoney; - - @Schema(description = "应用状态") - private String appStatus; - - @Schema(description = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "机构id") - @QueryField(type = QueryType.EQ) - private Integer organizationId; - - @Schema(description = "租户编号") - private String tenantCode; - - @Schema(description = "按APPID集搜索") - @TableField(exist = false) - private Set appIds; - - @Schema(description = "访问令牌") - @TableField(exist = false) - private String token; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAppRenewParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAppRenewParam.java deleted file mode 100644 index 7a2d2b0..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAppRenewParam.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAppRenewParam对象", description = "续费管理查询参数") -public class OaAppRenewParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer appRenewId; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "续费金额") - @QueryField(type = QueryType.EQ) - private BigDecimal money; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "开始时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "付款凭证") - private String images; - - @Schema(description = "用户姓名") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAppUrlParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAppUrlParam.java deleted file mode 100644 index 1fd4639..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAppUrlParam.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.gxwebsoft.oa.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:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAppUrlParam对象", description = "项目域名查询参数") -public class OaAppUrlParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer appUrlId; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "域名类型") - private String name; - - @Schema(description = "域名") - private String domain; - - @Schema(description = "账号") - private String account; - - @Schema(description = "密码") - private String password; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAppUserParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAppUserParam.java deleted file mode 100644 index c4ee26d..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAppUserParam.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.gxwebsoft.oa.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:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAppUserParam对象", description = "应用成员查询参数") -public class OaAppUserParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer appUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - @QueryField(type = QueryType.EQ) - private Integer role; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsCodeParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsCodeParam.java deleted file mode 100644 index 2723b78..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsCodeParam.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:27:01 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsCodeParam对象", description = "代码仓库查询参数") -public class OaAssetsCodeParam 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 assetsId; - - @Schema(description = "名称") - private String name; - - @Schema(description = "英文标识") - private String code; - - @Schema(description = "仓库地址") - private String gitUrl; - - @Schema(description = "仓库品牌") - private String brand; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "详情内容") - private String content; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsDomainParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsDomainParam.java deleted file mode 100644 index a33902c..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsDomainParam.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:27:01 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsDomainParam对象", description = "域名查询参数") -public class OaAssetsDomainParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer domainId; - - @Schema(description = "服务器ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "域名") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "注册厂商") - private String brand; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsEmailParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsEmailParam.java deleted file mode 100644 index 2477a23..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsEmailParam.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsEmailParam对象", description = "企业邮箱记录表查询参数") -public class OaAssetsEmailParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer emailId; - - @Schema(description = "邮箱名称") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "邮箱型号") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "初始账号") - private String system; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsMysqlParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsMysqlParam.java deleted file mode 100644 index ccbc789..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsMysqlParam.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 19:00:20 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsMysqlParam对象", description = "云数据库查询参数") -public class OaAssetsMysqlParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer mysqlId; - - @Schema(description = "服务器ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "数据库名") - private String name; - - @Schema(description = "数据库标识") - private String code; - - @Schema(description = "注册厂商") - private String brand; - - @Schema(description = "ip地址") - private String ip; - - @Schema(description = "端口") - private String port; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsParam.java deleted file mode 100644 index 66456d1..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsParam.java +++ /dev/null @@ -1,145 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:34:14 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsParam对象", description = "云服务器查询参数") -public class OaAssetsParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "资产ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "资产名称") - private String name; - - @Schema(description = "资产标识") - private String code; - - @Schema(description = "资产类型") - private String type; - - @Schema(description = "服务器厂商") - private String brand; - - @Schema(description = "服务器配置") - private String configuration; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "(阿里云/腾讯云)登录账号") - private String brandAccount; - - @Schema(description = "(阿里云/腾讯云)登录密码") - private String brandPassword; - - @Schema(description = "宝塔面板") - private String panel; - - @Schema(description = "宝塔面板账号") - private String panelAccount; - - @Schema(description = "宝塔面板密码") - private String panelPassword; - - @Schema(description = "财务信息-合同金额") - @QueryField(type = QueryType.EQ) - private BigDecimal financeAmount; - - @Schema(description = "购买年限") - @QueryField(type = QueryType.EQ) - private Integer financeYears; - - @Schema(description = "续费金额") - @QueryField(type = QueryType.EQ) - private BigDecimal financeRenew; - - @Schema(description = "客户名称") - private String financeCustomerName; - - @Schema(description = "客户联系人") - private String financeCustomerContact; - - @Schema(description = "客户联系电话") - private String financeCustomerPhone; - - @Schema(description = "客户ID") - @QueryField(type = QueryType.EQ) - private Integer customerId; - - @Schema(description = "客户名称") - private String customerName; - - @Schema(description = "开放端口") - private String openPort; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "可见性(public,private,protected)") - private String visibility; - - @Schema(description = "宝塔接口秘钥") - private String btSign; - - @Schema(description = "文章排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "客户ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "机构id") - @QueryField(type = QueryType.EQ) - private Integer organizationId; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsServerParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsServerParam.java deleted file mode 100644 index 47316f4..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsServerParam.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.gxwebsoft.oa.param; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.gxwebsoft.common.core.annotation.QueryField; -import com.gxwebsoft.common.core.annotation.QueryType; -import com.gxwebsoft.common.core.web.BaseParam; -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-10-21 19:15:26 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsServerParam对象", description = "服务查询参数") -public class OaAssetsServerParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "插件id") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "服务名称") - private String server; - - @Schema(description = "接口地址") - private String serverUrl; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "服务器ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态, 10待审核 20已通过 30已驳回") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSiteParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsSiteParam.java deleted file mode 100644 index 2b28bea..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSiteParam.java +++ /dev/null @@ -1,155 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsSiteParam对象", description = "网站信息记录表查询参数") -public class OaAssetsSiteParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "站点ID") - @QueryField(type = QueryType.EQ) - private Integer websiteId; - - @Schema(description = "网站名称") - private String websiteName; - - @Schema(description = "网站标识") - private String websiteCode; - - @Schema(description = "网站LOGO") - private String websiteIcon; - - @Schema(description = "网站LOGO") - private String websiteLogo; - - @Schema(description = "网站LOGO(深色模式)") - private String websiteDarkLogo; - - @Schema(description = "网站类型") - private String websiteType; - - @Schema(description = "网站关键词") - private String keywords; - - @Schema(description = "域名前缀") - private String prefix; - - @Schema(description = "绑定域名") - private String domain; - - @Schema(description = "全局样式") - private String style; - - @Schema(description = "后台管理地址") - private String adminUrl; - - @Schema(description = "应用版本 10免费版 20授权版 30永久授权") - @QueryField(type = QueryType.EQ) - private Integer version; - - @Schema(description = "服务到期时间") - private String expirationTime; - - @Schema(description = "模版ID") - @QueryField(type = QueryType.EQ) - private Integer templateId; - - @Schema(description = "行业类型(父级)") - private String industryParent; - - @Schema(description = "行业类型(子级)") - private String industryChild; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "经度") - private String longitude; - - @Schema(description = "纬度") - private String latitude; - - @Schema(description = "街道地址") - private String address; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "电子邮箱") - private String email; - - @Schema(description = "ICP备案号") - private String icpNo; - - @Schema(description = "公安备案") - private String policeNo; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "维护说明") - private String statusText; - - @Schema(description = "关闭说明") - private String statusClose; - - @Schema(description = "全局样式") - private String styles; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "服务器ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSoftwareCertParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsSoftwareCertParam.java deleted file mode 100644 index 22c7937..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSoftwareCertParam.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 19:46:21 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsSoftwareCertParam对象", description = "计算机软件著作权登记查询参数") -public class OaAssetsSoftwareCertParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "名称") - private String name; - - @Schema(description = "软件著作权标识") - private String code; - - @Schema(description = "证书类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书下载地址") - private String certUrl; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSslParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsSslParam.java deleted file mode 100644 index a11a568..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsSslParam.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.gxwebsoft.oa.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; - -/** - * ssl证书查询参数 - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsSslParam对象", description = "ssl证书查询参数") -public class OaAssetsSslParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer sslId; - - @Schema(description = "证书名称") - private String name; - - @Schema(description = "证书标识") - private String code; - - @Schema(description = "证书类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书key") - private String certKey; - - @Schema(description = "证书pem") - private String certPem; - - @Schema(description = "证书下载地址") - private String certUrl; - - @Schema(description = "证书crt") - private String certCrt; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsTrademarkParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsTrademarkParam.java deleted file mode 100644 index fa3b93a..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsTrademarkParam.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 19:46:21 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsTrademarkParam对象", description = "商标注册查询参数") -public class OaAssetsTrademarkParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "商标名称") - private String name; - - @Schema(description = "商标标识") - private String code; - - @Schema(description = "商标类型") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "证书下载") - private String certUrl; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @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 = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsUserParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsUserParam.java deleted file mode 100644 index 26b3ec7..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsUserParam.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.gxwebsoft.oa.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:57:41 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsUserParam对象", description = "服务器成员管理查询参数") -public class OaAssetsUserParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - @QueryField(type = QueryType.EQ) - private Integer role; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaAssetsVhostParam.java b/src/main/java/com/gxwebsoft/oa/param/OaAssetsVhostParam.java deleted file mode 100644 index 2e90dbf..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaAssetsVhostParam.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.gxwebsoft.oa.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-10-18 18:27:02 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaAssetsVhostParam对象", description = "虚拟主机记录表查询参数") -public class OaAssetsVhostParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer vhostId; - - @Schema(description = "域名") - private String name; - - @Schema(description = "域名标识") - private String code; - - @Schema(description = "主机型号") - private String type; - - @Schema(description = "品牌厂商") - private String brand; - - @Schema(description = "初始账号") - private String account; - - @Schema(description = "初始密码") - private String password; - - @Schema(description = "价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "详情内容") - private String content; - - @Schema(description = "ssl证书") - private String ssl; - - @Schema(description = "购买时间") - private String startTime; - - @Schema(description = "到期时间") - private String endTime; - - @Schema(description = "置顶状态") - private String isTop; - - @Schema(description = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "描述") - private String comments; - - @Schema(description = "服务器ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "可见用户") - private String userIds; - - @Schema(description = "状态, 0正常, 1冻结") - private String status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaCompanyFieldParam.java b/src/main/java/com/gxwebsoft/oa/param/OaCompanyFieldParam.java deleted file mode 100644 index c81f21b..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaCompanyFieldParam.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.gxwebsoft.oa.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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaCompanyFieldParam对象", description = "企业参数查询参数") -public class OaCompanyFieldParam 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 companyId; - - @Schema(description = "名称") - private String name; - - @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 = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaCompanyParam.java b/src/main/java/com/gxwebsoft/oa/param/OaCompanyParam.java deleted file mode 100644 index c63b531..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaCompanyParam.java +++ /dev/null @@ -1,186 +0,0 @@ -package com.gxwebsoft.oa.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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaCompanyParam对象", description = "企业信息查询参数") -public class OaCompanyParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "企业id") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "企业简称") - private String shortName; - - @Schema(description = "企业全称") - private String companyName; - - @Schema(description = "企业标识") - private String companyCode; - - @Schema(description = "类型 10企业 20政府单位") - private String companyType; - - @Schema(description = "企业类型多选") - private String companyTypeMultiple; - - @Schema(description = "应用标识") - private String companyLogo; - - @Schema(description = "应用类型") - private String appType; - - @Schema(description = "绑定域名") - private String domain; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "座机电话") - private String tel; - - @Schema(description = "邮箱") - private String email; - - @Schema(description = "发票抬头") - private String invoiceHeader; - - @Schema(description = "企业法人") - private String businessEntity; - - @Schema(description = "服务开始时间") - private String startTime; - - @Schema(description = "服务到期时间") - private String expirationTime; - - @Schema(description = "应用版本 10体验版 20授权版 30旗舰版") - @QueryField(type = QueryType.EQ) - private Integer version; - - @Schema(description = "成员数量(人数上限)") - @QueryField(type = QueryType.EQ) - private Integer members; - - @Schema(description = "成员数量(当前)") - @QueryField(type = QueryType.EQ) - private Integer users; - - @Schema(description = "行业类型(父级)") - private String industryParent; - - @Schema(description = "行业类型(子级)") - private String industryChild; - - @Schema(description = "部门数量") - @QueryField(type = QueryType.EQ) - private Integer departments; - - @Schema(description = "存储空间") - private Long storage; - - @Schema(description = "存储空间(上限)") - private Long storageMax; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "街道地址") - private String address; - - @Schema(description = "经度") - private String longitude; - - @Schema(description = "纬度") - private String latitude; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否实名认证") - @QueryField(type = QueryType.EQ) - private Integer authentication; - - @Schema(description = "企业默认主体") - @QueryField(type = QueryType.EQ) - private Integer authoritative; - - @Schema(description = "request合法域名") - private String requestUrl; - - @Schema(description = "socket合法域名") - private String socketUrl; - - @Schema(description = "主控端域名") - private String serverUrl; - - @Schema(description = "业务域名") - private String modulesUrl; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "点赞数量") - @QueryField(type = QueryType.EQ) - private Integer likes; - - @Schema(description = "点击数量") - @QueryField(type = QueryType.EQ) - private Integer clicks; - - @Schema(description = "购买数量") - @QueryField(type = QueryType.EQ) - private Integer buys; - - @Schema(description = "是否含税, 0不含, 1含") - @QueryField(type = QueryType.EQ) - private Integer isTax; - - @Schema(description = "当前克隆的租户ID") - @QueryField(type = QueryType.EQ) - private Integer planId; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaCompanyUserParam.java b/src/main/java/com/gxwebsoft/oa/param/OaCompanyUserParam.java deleted file mode 100644 index bcba114..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaCompanyUserParam.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.gxwebsoft.oa.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-20 12:33:12 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaCompanyUserParam对象", description = "成员管理查询参数") -public class OaCompanyUserParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer companyUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - @QueryField(type = QueryType.EQ) - private Integer role; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0正常, 1待确认") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaLinkParam.java b/src/main/java/com/gxwebsoft/oa/param/OaLinkParam.java deleted file mode 100644 index 08a965b..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaLinkParam.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaLinkParam对象", description = "常用链接查询参数") -public class OaLinkParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "链接名称") - private String name; - - @Schema(description = "图标") - private String icon; - - @Schema(description = "链接地址") - private String url; - - @Schema(description = "链接分类") - private String linkType; - - @Schema(description = "应用ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "所属栏目") - @QueryField(type = QueryType.EQ) - private Integer categoryId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @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 = "状态, 0正常, 1待确认") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaProductParam.java b/src/main/java/com/gxwebsoft/oa/param/OaProductParam.java deleted file mode 100644 index f200fe1..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaProductParam.java +++ /dev/null @@ -1,103 +0,0 @@ -package com.gxwebsoft.oa.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-10 20:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaProductParam对象", description = "产品记录表查询参数") -public class OaProductParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "产品ID") - @QueryField(type = QueryType.EQ) - private Integer productId; - - @Schema(description = "产品名称") - private String name; - - @Schema(description = "产品标识") - private String code; - - @Schema(description = "产品详情") - private String content; - - @Schema(description = "产品类型") - private String type; - - @Schema(description = "产品图标") - private String logo; - - @Schema(description = "产品金额") - @QueryField(type = QueryType.EQ) - private BigDecimal money; - - @Schema(description = "初始销量") - @QueryField(type = QueryType.EQ) - private Integer salesInitial; - - @Schema(description = "实际销量") - @QueryField(type = QueryType.EQ) - private Integer salesActual; - - @Schema(description = "库存总量(包含所有sku)") - @QueryField(type = QueryType.EQ) - private Integer stockTotal; - - @Schema(description = "背景颜色") - private String backgroundColor; - - @Schema(description = "背景图片") - private String backgroundImage; - - @Schema(description = "背景图片(gif)") - private String backgroundGif; - - @Schema(description = "购买链接") - private String buyUrl; - - @Schema(description = "控制台链接") - private String adminUrl; - - @Schema(description = "附件") - private String files; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaProductTabsParam.java b/src/main/java/com/gxwebsoft/oa/param/OaProductTabsParam.java deleted file mode 100644 index bf42fa9..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaProductTabsParam.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaProductTabsParam对象", description = "产品标签记录表查询参数") -public class OaProductTabsParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "产品标签ID") - @QueryField(type = QueryType.EQ) - private Integer tabId; - - @Schema(description = "产品ID") - @QueryField(type = QueryType.EQ) - private Integer productId; - - @Schema(description = "标签名称") - private String name; - - @Schema(description = "标签类型") - private String type; - - @Schema(description = "产品标签详情") - private String content; - - @Schema(description = "背景颜色") - private String backgroundColor; - - @Schema(description = "背景图片") - private String backgroundImage; - - @Schema(description = "附件") - private String files; - - @Schema(description = "企业ID") - @QueryField(type = QueryType.EQ) - private Integer companyId; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaTaskCountParam.java b/src/main/java/com/gxwebsoft/oa/param/OaTaskCountParam.java deleted file mode 100644 index d60bcb4..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaTaskCountParam.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaTaskCountParam对象", description = "数据统计查询参数") -public class OaTaskCountParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer taskCountId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "待处理数") - @QueryField(type = QueryType.EQ) - private Integer pending; - - @Schema(description = "闲置的工单(废弃)") - @QueryField(type = QueryType.EQ) - private Integer unused; - - @Schema(description = "已完成数(废弃)") - @QueryField(type = QueryType.EQ) - private Integer completed; - - @Schema(description = "今天处理数") - @QueryField(type = QueryType.EQ) - private Integer today; - - @Schema(description = "本月处理数") - @QueryField(type = QueryType.EQ) - private Integer month; - - @Schema(description = "今年处理数") - @QueryField(type = QueryType.EQ) - private Integer year; - - @Schema(description = "总工单数") - @QueryField(type = QueryType.EQ) - private Integer total; - - @Schema(description = "部门ID") - @QueryField(type = QueryType.EQ) - private Integer organizationId; - - @Schema(description = "角色ID") - @QueryField(type = QueryType.EQ) - private Integer roleId; - - @Schema(description = "角色标识") - private String roleCode; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaTaskParam.java b/src/main/java/com/gxwebsoft/oa/param/OaTaskParam.java deleted file mode 100644 index 85129f7..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaTaskParam.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaTaskParam对象", description = "任务记录表查询参数") -public class OaTaskParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "工单ID") - @QueryField(type = QueryType.EQ) - private Integer taskId; - - @Schema(description = "工单类型") - private String taskType; - - @Schema(description = "任务内容") - private String name; - - @Schema(description = "问题描述") - private String content; - - @Schema(description = "工单附件") - private String files; - - @Schema(description = "工单发起人") - @QueryField(type = QueryType.EQ) - private Integer promoter; - - @Schema(description = "受理人") - @QueryField(type = QueryType.EQ) - private Integer commander; - - @Schema(description = "工单状态, 0未开始 1已指派 ") - @QueryField(type = QueryType.EQ) - private Integer progress; - - @Schema(description = "优先级") - private String priority; - - @Schema(description = "品质要求") - private String quality; - - @Schema(description = "时限(天)") - @QueryField(type = QueryType.EQ) - private Integer day; - - @Schema(description = "手机号") - private String phone; - - @Schema(description = "开始时间") - private String startTime; - - @Schema(description = "结束时间") - private String endTime; - - @Schema(description = "逾期天数") - @QueryField(type = QueryType.EQ) - private Integer overdueDays; - - @Schema(description = "项目ID") - @QueryField(type = QueryType.EQ) - private Integer appId; - - @Schema(description = "机构id") - @QueryField(type = QueryType.EQ) - private Integer organizationId; - - @Schema(description = "项目ID") - @QueryField(type = QueryType.EQ) - private Integer projectId; - - @Schema(description = "客户ID") - @QueryField(type = QueryType.EQ) - private Integer customerId; - - @Schema(description = "资产ID") - @QueryField(type = QueryType.EQ) - private Integer assetsId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "是否已查阅") - @QueryField(type = QueryType.EQ) - private Integer isRead; - - @Schema(description = "最后回复人") - @QueryField(type = QueryType.EQ) - private Integer lastReadUser; - - @Schema(description = "发起人昵称") - private String nickname; - - @Schema(description = "发起人头像") - private String avatar; - - @Schema(description = "最后回复人头像") - private String lastAvatar; - - @Schema(description = "最后回复人昵称") - private String lastNickname; - - @Schema(description = "订单是否已结算(0未结算 1已结算)") - @QueryField(type = QueryType.EQ) - private Integer isSettled; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaTaskRecordParam.java b/src/main/java/com/gxwebsoft/oa/param/OaTaskRecordParam.java deleted file mode 100644 index 8d5f275..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaTaskRecordParam.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaTaskRecordParam对象", description = "工单回复记录表查询参数") -public class OaTaskRecordParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "回复ID") - @QueryField(type = QueryType.EQ) - private Integer taskRecordId; - - @Schema(description = "上级id, 0是顶级") - @QueryField(type = QueryType.EQ) - private Integer parentId; - - @Schema(description = "工单ID") - @QueryField(type = QueryType.EQ) - private Integer taskId; - - @Schema(description = "内容") - private String content; - - @Schema(description = "机密信息") - private String confidential; - - @Schema(description = "联系电话") - private String phone; - - @Schema(description = "工单附件") - private String files; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/oa/param/OaTaskUserParam.java b/src/main/java/com/gxwebsoft/oa/param/OaTaskUserParam.java deleted file mode 100644 index 3fdfbeb..0000000 --- a/src/main/java/com/gxwebsoft/oa/param/OaTaskUserParam.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.gxwebsoft.oa.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:57:42 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "OaTaskUserParam对象", description = "工单成员查询参数") -public class OaTaskUserParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer taskUserId; - - @Schema(description = "角色,10体验成员 20开发者成员 30管理员 ") - @QueryField(type = QueryType.EQ) - private Integer role; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "工单ID") - @QueryField(type = QueryType.EQ) - private Integer taskId; - - @Schema(description = "昵称") - private String nickname; - - @Schema(description = "状态, 0待处理, 1已完成") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAppFieldService.java b/src/main/java/com/gxwebsoft/oa/service/OaAppFieldService.java deleted file mode 100644 index 94d905f..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAppFieldService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAppField; -import com.gxwebsoft.oa.param.OaAppFieldParam; - -import java.util.List; - -/** - * 应用参数Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppFieldService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAppFieldParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAppFieldParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return OaAppField - */ - OaAppField getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAppRenewService.java b/src/main/java/com/gxwebsoft/oa/service/OaAppRenewService.java deleted file mode 100644 index c41f20f..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAppRenewService.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.core.conditions.Wrapper; -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAppRenew; -import com.gxwebsoft.oa.param.OaAppRenewParam; -import org.apache.ibatis.annotations.Param; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 续费管理Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppRenewService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAppRenewParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAppRenewParam param); - - /** - * 根据id查询 - * - * @param appRenewId 自增ID - * @return OaAppRenew - */ - OaAppRenew getByIdRel(Integer appRenewId); - - /** - * 统计金额总和 - * @param wrapper 查询条件 - * @return 金额总和 - */ - BigDecimal sumMoney(LambdaQueryWrapper wrapper); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAppService.java b/src/main/java/com/gxwebsoft/oa/service/OaAppService.java deleted file mode 100644 index e9c76b2..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAppService.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaApp; -import com.gxwebsoft.oa.param.OaAppParam; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 应用Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAppParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAppParam param); - - /** - * 根据id查询 - * - * @param appId 应用ID - * @return OaApp - */ - OaApp getByIdRel(Integer appId); - - /** - * 统计金额总和 - * - * @param wrapper 查询条件 - * @return 金额总和 - */ - BigDecimal sumMoney(LambdaQueryWrapper wrapper); -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAppUrlService.java b/src/main/java/com/gxwebsoft/oa/service/OaAppUrlService.java deleted file mode 100644 index eef2650..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAppUrlService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAppUrl; -import com.gxwebsoft.oa.param.OaAppUrlParam; - -import java.util.List; - -/** - * 项目域名Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppUrlService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAppUrlParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAppUrlParam param); - - /** - * 根据id查询 - * - * @param appUrlId 自增ID - * @return OaAppUrl - */ - OaAppUrl getByIdRel(Integer appUrlId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAppUserService.java b/src/main/java/com/gxwebsoft/oa/service/OaAppUserService.java deleted file mode 100644 index 1dd7f82..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAppUserService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAppUser; -import com.gxwebsoft.oa.param.OaAppUserParam; - -import java.util.List; - -/** - * 应用成员Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAppUserService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAppUserParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAppUserParam param); - - /** - * 根据id查询 - * - * @param appUserId 自增ID - * @return OaAppUser - */ - OaAppUser getByIdRel(Integer appUserId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsCodeService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsCodeService.java deleted file mode 100644 index 681ef81..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsCodeService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsCode; -import com.gxwebsoft.oa.param.OaAssetsCodeParam; - -import java.util.List; - -/** - * 代码仓库Service - * - * @author 科技小王子 - * @since 2024-10-18 18:27:01 - */ -public interface OaAssetsCodeService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsCodeParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsCodeParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return OaAssetsCode - */ - OaAssetsCode getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsDomainService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsDomainService.java deleted file mode 100644 index 735df28..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsDomainService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsDomain; -import com.gxwebsoft.oa.param.OaAssetsDomainParam; - -import java.util.List; - -/** - * 域名Service - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsDomainService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsDomainParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsDomainParam param); - - /** - * 根据id查询 - * - * @param domainId ID - * @return OaAssetsDomain - */ - OaAssetsDomain getByIdRel(Integer domainId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsEmailService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsEmailService.java deleted file mode 100644 index 84c1ab7..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsEmailService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsEmail; -import com.gxwebsoft.oa.param.OaAssetsEmailParam; - -import java.util.List; - -/** - * 企业邮箱记录表Service - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsEmailService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsEmailParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsEmailParam param); - - /** - * 根据id查询 - * - * @param emailId ID - * @return OaAssetsEmail - */ - OaAssetsEmail getByIdRel(Integer emailId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsMysqlService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsMysqlService.java deleted file mode 100644 index 7263afd..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsMysqlService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsMysql; -import com.gxwebsoft.oa.param.OaAssetsMysqlParam; - -import java.util.List; - -/** - * 云数据库Service - * - * @author 科技小王子 - * @since 2024-10-18 19:00:20 - */ -public interface OaAssetsMysqlService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsMysqlParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsMysqlParam param); - - /** - * 根据id查询 - * - * @param mysqlId ID - * @return OaAssetsMysql - */ - OaAssetsMysql getByIdRel(Integer mysqlId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsServerService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsServerService.java deleted file mode 100644 index 8e1c558..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsServerService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsServer; -import com.gxwebsoft.oa.param.OaAssetsServerParam; - -import java.util.List; - -/** - * 服务Service - * - * @author 科技小王子 - * @since 2024-10-21 19:15:26 - */ -public interface OaAssetsServerService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsServerParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsServerParam param); - - /** - * 根据id查询 - * - * @param id 插件id - * @return OaAssetsServer - */ - OaAssetsServer getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsService.java deleted file mode 100644 index 4142d5f..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssets; -import com.gxwebsoft.oa.param.OaAssetsParam; - -import java.util.List; - -/** - * 云服务器Service - * - * @author 科技小王子 - * @since 2024-10-18 18:34:15 - */ -public interface OaAssetsService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsParam param); - - /** - * 根据id查询 - * - * @param assetsId 资产ID - * @return OaAssets - */ - OaAssets getByIdRel(Integer assetsId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSiteService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsSiteService.java deleted file mode 100644 index c8ec714..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSiteService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsSite; -import com.gxwebsoft.oa.param.OaAssetsSiteParam; - -import java.util.List; - -/** - * 网站信息记录表Service - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsSiteService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsSiteParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsSiteParam param); - - /** - * 根据id查询 - * - * @param websiteId 站点ID - * @return OaAssetsSite - */ - OaAssetsSite getByIdRel(Integer websiteId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSoftwareCertService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsSoftwareCertService.java deleted file mode 100644 index 039f97d..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSoftwareCertService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert; -import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam; - -import java.util.List; - -/** - * 计算机软件著作权登记Service - * - * @author 科技小王子 - * @since 2024-10-18 19:46:21 - */ -public interface OaAssetsSoftwareCertService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsSoftwareCertParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsSoftwareCertParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return OaAssetsSoftwareCert - */ - OaAssetsSoftwareCert getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSslService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsSslService.java deleted file mode 100644 index 3d150e7..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsSslService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsSsl; -import com.gxwebsoft.oa.param.OaAssetsSslParam; - -import java.util.List; - -/** - * ssl证书Service - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -public interface OaAssetsSslService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsSslParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsSslParam param); - - /** - * 根据id查询 - * - * @param sslId ID - * @return OaAssetsSsl - */ - OaAssetsSsl getByIdRel(Integer sslId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsTrademarkService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsTrademarkService.java deleted file mode 100644 index 838ed04..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsTrademarkService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsTrademark; -import com.gxwebsoft.oa.param.OaAssetsTrademarkParam; - -import java.util.List; - -/** - * 商标注册Service - * - * @author 科技小王子 - * @since 2024-10-18 19:46:21 - */ -public interface OaAssetsTrademarkService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsTrademarkParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsTrademarkParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return OaAssetsTrademark - */ - OaAssetsTrademark getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsUserService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsUserService.java deleted file mode 100644 index f976095..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsUserService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsUser; -import com.gxwebsoft.oa.param.OaAssetsUserParam; - -import java.util.List; - -/** - * 服务器成员管理Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -public interface OaAssetsUserService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsUserParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsUserParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return OaAssetsUser - */ - OaAssetsUser getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaAssetsVhostService.java b/src/main/java/com/gxwebsoft/oa/service/OaAssetsVhostService.java deleted file mode 100644 index 4b54c43..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaAssetsVhostService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsVhost; -import com.gxwebsoft.oa.param.OaAssetsVhostParam; - -import java.util.List; - -/** - * 虚拟主机记录表Service - * - * @author 科技小王子 - * @since 2024-10-18 18:27:02 - */ -public interface OaAssetsVhostService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaAssetsVhostParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaAssetsVhostParam param); - - /** - * 根据id查询 - * - * @param vhostId ID - * @return OaAssetsVhost - */ - OaAssetsVhost getByIdRel(Integer vhostId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaCompanyFieldService.java b/src/main/java/com/gxwebsoft/oa/service/OaCompanyFieldService.java deleted file mode 100644 index 66ac876..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaCompanyFieldService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaCompanyField; -import com.gxwebsoft.oa.param.OaCompanyFieldParam; - -import java.util.List; - -/** - * 企业参数Service - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyFieldService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaCompanyFieldParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaCompanyFieldParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return OaCompanyField - */ - OaCompanyField getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaCompanyService.java b/src/main/java/com/gxwebsoft/oa/service/OaCompanyService.java deleted file mode 100644 index fb91784..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaCompanyService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaCompany; -import com.gxwebsoft.oa.param.OaCompanyParam; - -import java.util.List; - -/** - * 企业信息Service - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaCompanyParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaCompanyParam param); - - /** - * 根据id查询 - * - * @param companyId 企业id - * @return OaCompany - */ - OaCompany getByIdRel(Integer companyId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaCompanyUserService.java b/src/main/java/com/gxwebsoft/oa/service/OaCompanyUserService.java deleted file mode 100644 index ff2c147..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaCompanyUserService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaCompanyUser; -import com.gxwebsoft.oa.param.OaCompanyUserParam; - -import java.util.List; - -/** - * 成员管理Service - * - * @author 科技小王子 - * @since 2024-09-20 12:33:12 - */ -public interface OaCompanyUserService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaCompanyUserParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaCompanyUserParam param); - - /** - * 根据id查询 - * - * @param companyUserId 自增ID - * @return OaCompanyUser - */ - OaCompanyUser getByIdRel(Integer companyUserId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaLinkService.java b/src/main/java/com/gxwebsoft/oa/service/OaLinkService.java deleted file mode 100644 index 6d8738f..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaLinkService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaLink; -import com.gxwebsoft.oa.param.OaLinkParam; - -import java.util.List; - -/** - * 常用链接Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaLinkService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaLinkParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaLinkParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return OaLink - */ - OaLink getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaProductService.java b/src/main/java/com/gxwebsoft/oa/service/OaProductService.java deleted file mode 100644 index 305cbd2..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaProductService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaProduct; -import com.gxwebsoft.oa.param.OaProductParam; - -import java.util.List; - -/** - * 产品记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaProductService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaProductParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaProductParam param); - - /** - * 根据id查询 - * - * @param productId 产品ID - * @return OaProduct - */ - OaProduct getByIdRel(Integer productId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaProductTabsService.java b/src/main/java/com/gxwebsoft/oa/service/OaProductTabsService.java deleted file mode 100644 index e1725ff..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaProductTabsService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaProductTabs; -import com.gxwebsoft.oa.param.OaProductTabsParam; - -import java.util.List; - -/** - * 产品标签记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaProductTabsService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaProductTabsParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaProductTabsParam param); - - /** - * 根据id查询 - * - * @param tabId 产品标签ID - * @return OaProductTabs - */ - OaProductTabs getByIdRel(Integer tabId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaTaskCountService.java b/src/main/java/com/gxwebsoft/oa/service/OaTaskCountService.java deleted file mode 100644 index 903f7cc..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaTaskCountService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaTaskCount; -import com.gxwebsoft.oa.param.OaTaskCountParam; - -import java.util.List; - -/** - * 数据统计Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskCountService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaTaskCountParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaTaskCountParam param); - - /** - * 根据id查询 - * - * @param taskCountId 自增ID - * @return OaTaskCount - */ - OaTaskCount getByIdRel(Integer taskCountId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaTaskRecordService.java b/src/main/java/com/gxwebsoft/oa/service/OaTaskRecordService.java deleted file mode 100644 index 8045be0..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaTaskRecordService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaTaskRecord; -import com.gxwebsoft.oa.param.OaTaskRecordParam; - -import java.util.List; - -/** - * 工单回复记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskRecordService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaTaskRecordParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaTaskRecordParam param); - - /** - * 根据id查询 - * - * @param taskRecordId 回复ID - * @return OaTaskRecord - */ - OaTaskRecord getByIdRel(Integer taskRecordId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaTaskService.java b/src/main/java/com/gxwebsoft/oa/service/OaTaskService.java deleted file mode 100644 index 4f06f34..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaTaskService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaTask; -import com.gxwebsoft.oa.param.OaTaskParam; - -import java.util.List; - -/** - * 任务记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaTaskParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaTaskParam param); - - /** - * 根据id查询 - * - * @param taskId 工单ID - * @return OaTask - */ - OaTask getByIdRel(Integer taskId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/OaTaskUserService.java b/src/main/java/com/gxwebsoft/oa/service/OaTaskUserService.java deleted file mode 100644 index 9c33890..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/OaTaskUserService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.oa.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaTaskUser; -import com.gxwebsoft.oa.param.OaTaskUserParam; - -import java.util.List; - -/** - * 工单成员Service - * - * @author 科技小王子 - * @since 2024-09-10 20:57:42 - */ -public interface OaTaskUserService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(OaTaskUserParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(OaTaskUserParam param); - - /** - * 根据id查询 - * - * @param taskUserId 自增ID - * @return OaTaskUser - */ - OaTaskUser getByIdRel(Integer taskUserId); - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppFieldServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAppFieldServiceImpl.java deleted file mode 100644 index d70ecf7..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppFieldServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAppFieldMapper; -import com.gxwebsoft.oa.service.OaAppFieldService; -import com.gxwebsoft.oa.entity.OaAppField; -import com.gxwebsoft.oa.param.OaAppFieldParam; -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:57:41 - */ -@Service -public class OaAppFieldServiceImpl extends ServiceImpl implements OaAppFieldService { - - @Override - public PageResult pageRel(OaAppFieldParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAppFieldParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAppField getByIdRel(Integer id) { - OaAppFieldParam param = new OaAppFieldParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppRenewServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAppRenewServiceImpl.java deleted file mode 100644 index 682e7e2..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppRenewServiceImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAppRenewMapper; -import com.gxwebsoft.oa.service.OaAppRenewService; -import com.gxwebsoft.oa.entity.OaAppRenew; -import com.gxwebsoft.oa.param.OaAppRenewParam; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import org.springframework.stereotype.Service; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 续费管理Service实现 - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -@Service -public class OaAppRenewServiceImpl extends ServiceImpl implements OaAppRenewService { - - @Override - public PageResult pageRel(OaAppRenewParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAppRenewParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAppRenew getByIdRel(Integer appRenewId) { - OaAppRenewParam param = new OaAppRenewParam(); - param.setAppRenewId(appRenewId); - return param.getOne(baseMapper.selectListRel(param)); - } - - @Override - public BigDecimal sumMoney(LambdaQueryWrapper wrapper) { - return baseMapper.selectSumMoney(wrapper); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAppServiceImpl.java deleted file mode 100644 index bdc1596..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppServiceImpl.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAppMapper; -import com.gxwebsoft.oa.service.OaAppService; -import com.gxwebsoft.oa.entity.OaApp; -import com.gxwebsoft.oa.param.OaAppParam; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import org.springframework.stereotype.Service; - -import java.math.BigDecimal; -import java.util.List; - -/** - * 应用Service实现 - * - * @author 科技小王子 - * @since 2024-09-10 20:57:41 - */ -@Service -public class OaAppServiceImpl extends ServiceImpl implements OaAppService { - - @Override - public PageResult pageRel(OaAppParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAppParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaApp getByIdRel(Integer appId) { - OaAppParam param = new OaAppParam(); - param.setAppId(appId); - return param.getOne(baseMapper.selectListRel(param)); - } - - @Override - public BigDecimal sumMoney(LambdaQueryWrapper wrapper) { - return baseMapper.selectSumMoney(wrapper); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUrlServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUrlServiceImpl.java deleted file mode 100644 index 1adab2c..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUrlServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAppUrlMapper; -import com.gxwebsoft.oa.service.OaAppUrlService; -import com.gxwebsoft.oa.entity.OaAppUrl; -import com.gxwebsoft.oa.param.OaAppUrlParam; -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:57:41 - */ -@Service -public class OaAppUrlServiceImpl extends ServiceImpl implements OaAppUrlService { - - @Override - public PageResult pageRel(OaAppUrlParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAppUrlParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAppUrl getByIdRel(Integer appUrlId) { - OaAppUrlParam param = new OaAppUrlParam(); - param.setAppUrlId(appUrlId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUserServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUserServiceImpl.java deleted file mode 100644 index 9372af0..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAppUserServiceImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAppUserMapper; -import com.gxwebsoft.oa.service.OaAppUserService; -import com.gxwebsoft.oa.entity.OaAppUser; -import com.gxwebsoft.oa.param.OaAppUserParam; -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:57:41 - */ -@Service -public class OaAppUserServiceImpl extends ServiceImpl implements OaAppUserService { - - @Override - public PageResult pageRel(OaAppUserParam param) { - PageParam page = new PageParam<>(param); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAppUserParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - return page.sortRecords(list); - } - - @Override - public OaAppUser getByIdRel(Integer appUserId) { - OaAppUserParam param = new OaAppUserParam(); - param.setAppUserId(appUserId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsCodeServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsCodeServiceImpl.java deleted file mode 100644 index 5d37730..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsCodeServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsCodeMapper; -import com.gxwebsoft.oa.service.OaAssetsCodeService; -import com.gxwebsoft.oa.entity.OaAssetsCode; -import com.gxwebsoft.oa.param.OaAssetsCodeParam; -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-10-18 18:27:01 - */ -@Service -public class OaAssetsCodeServiceImpl extends ServiceImpl implements OaAssetsCodeService { - - @Override - public PageResult pageRel(OaAssetsCodeParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsCodeParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsCode getByIdRel(Integer id) { - OaAssetsCodeParam param = new OaAssetsCodeParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsDomainServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsDomainServiceImpl.java deleted file mode 100644 index ac207c6..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsDomainServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsDomainMapper; -import com.gxwebsoft.oa.service.OaAssetsDomainService; -import com.gxwebsoft.oa.entity.OaAssetsDomain; -import com.gxwebsoft.oa.param.OaAssetsDomainParam; -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-10-18 18:27:02 - */ -@Service -public class OaAssetsDomainServiceImpl extends ServiceImpl implements OaAssetsDomainService { - - @Override - public PageResult pageRel(OaAssetsDomainParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsDomainParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsDomain getByIdRel(Integer domainId) { - OaAssetsDomainParam param = new OaAssetsDomainParam(); - param.setDomainId(domainId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsEmailServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsEmailServiceImpl.java deleted file mode 100644 index 7c3f4bc..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsEmailServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsEmailMapper; -import com.gxwebsoft.oa.service.OaAssetsEmailService; -import com.gxwebsoft.oa.entity.OaAssetsEmail; -import com.gxwebsoft.oa.param.OaAssetsEmailParam; -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-10-18 18:27:02 - */ -@Service -public class OaAssetsEmailServiceImpl extends ServiceImpl implements OaAssetsEmailService { - - @Override - public PageResult pageRel(OaAssetsEmailParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsEmailParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsEmail getByIdRel(Integer emailId) { - OaAssetsEmailParam param = new OaAssetsEmailParam(); - param.setEmailId(emailId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsMysqlServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsMysqlServiceImpl.java deleted file mode 100644 index fc17f9a..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsMysqlServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsMysqlMapper; -import com.gxwebsoft.oa.service.OaAssetsMysqlService; -import com.gxwebsoft.oa.entity.OaAssetsMysql; -import com.gxwebsoft.oa.param.OaAssetsMysqlParam; -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-10-18 19:00:20 - */ -@Service -public class OaAssetsMysqlServiceImpl extends ServiceImpl implements OaAssetsMysqlService { - - @Override - public PageResult pageRel(OaAssetsMysqlParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsMysqlParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsMysql getByIdRel(Integer mysqlId) { - OaAssetsMysqlParam param = new OaAssetsMysqlParam(); - param.setMysqlId(mysqlId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServerServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServerServiceImpl.java deleted file mode 100644 index b2e327b..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServerServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.oa.entity.OaAssetsServer; -import com.gxwebsoft.oa.mapper.OaAssetsServerMapper; -import com.gxwebsoft.oa.param.OaAssetsServerParam; -import com.gxwebsoft.oa.service.OaAssetsServerService; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 服务Service实现 - * - * @author 科技小王子 - * @since 2024-10-21 19:15:26 - */ -@Service -public class OaAssetsServerServiceImpl extends ServiceImpl implements OaAssetsServerService { - - @Override - public PageResult pageRel(OaAssetsServerParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("sort_number asc, create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsServerParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("sort_number asc, create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsServer getByIdRel(Integer id) { - OaAssetsServerParam param = new OaAssetsServerParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServiceImpl.java deleted file mode 100644 index 3c64144..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsMapper; -import com.gxwebsoft.oa.service.OaAssetsService; -import com.gxwebsoft.oa.entity.OaAssets; -import com.gxwebsoft.oa.param.OaAssetsParam; -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-10-18 18:34:15 - */ -@Service -public class OaAssetsServiceImpl extends ServiceImpl implements OaAssetsService { - - @Override - public PageResult pageRel(OaAssetsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssets getByIdRel(Integer assetsId) { - OaAssetsParam param = new OaAssetsParam(); - param.setAssetsId(assetsId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSiteServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSiteServiceImpl.java deleted file mode 100644 index b94667d..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSiteServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsSiteMapper; -import com.gxwebsoft.oa.service.OaAssetsSiteService; -import com.gxwebsoft.oa.entity.OaAssetsSite; -import com.gxwebsoft.oa.param.OaAssetsSiteParam; -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-10-18 18:27:02 - */ -@Service -public class OaAssetsSiteServiceImpl extends ServiceImpl implements OaAssetsSiteService { - - @Override - public PageResult pageRel(OaAssetsSiteParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsSiteParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsSite getByIdRel(Integer websiteId) { - OaAssetsSiteParam param = new OaAssetsSiteParam(); - param.setWebsiteId(websiteId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSoftwareCertServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSoftwareCertServiceImpl.java deleted file mode 100644 index 2ac941c..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSoftwareCertServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsSoftwareCertMapper; -import com.gxwebsoft.oa.service.OaAssetsSoftwareCertService; -import com.gxwebsoft.oa.entity.OaAssetsSoftwareCert; -import com.gxwebsoft.oa.param.OaAssetsSoftwareCertParam; -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-10-18 19:46:21 - */ -@Service -public class OaAssetsSoftwareCertServiceImpl extends ServiceImpl implements OaAssetsSoftwareCertService { - - @Override - public PageResult pageRel(OaAssetsSoftwareCertParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsSoftwareCertParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsSoftwareCert getByIdRel(Integer id) { - OaAssetsSoftwareCertParam param = new OaAssetsSoftwareCertParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSslServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSslServiceImpl.java deleted file mode 100644 index c705669..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsSslServiceImpl.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import cn.hutool.core.date.DateUtil; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsSslMapper; -import com.gxwebsoft.oa.service.OaAssetsSslService; -import com.gxwebsoft.oa.entity.OaAssetsSsl; -import com.gxwebsoft.oa.param.OaAssetsSslParam; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import org.springframework.stereotype.Service; - -import java.time.LocalDateTime; -import java.util.List; - -/** - * ssl证书Service实现 - * - * @author 科技小王子 - * @since 2024-10-18 19:25:40 - */ -@Service -public class OaAssetsSslServiceImpl extends ServiceImpl implements OaAssetsSslService { - - @Override - public PageResult pageRel(OaAssetsSslParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - list.forEach(d -> { - // 即将过期(一周内过期的) - d.setSoon(DateUtil.offsetDay(d.getEndTime(), -7).compareTo(DateUtil.date())); - // 是否过期 -1已过期 大于0 未过期 - d.setStatus(d.getEndTime().compareTo(DateUtil.date())); - }); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsSslParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsSsl getByIdRel(Integer sslId) { - OaAssetsSslParam param = new OaAssetsSslParam(); - param.setSslId(sslId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsTrademarkServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsTrademarkServiceImpl.java deleted file mode 100644 index 7baede1..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsTrademarkServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsTrademarkMapper; -import com.gxwebsoft.oa.service.OaAssetsTrademarkService; -import com.gxwebsoft.oa.entity.OaAssetsTrademark; -import com.gxwebsoft.oa.param.OaAssetsTrademarkParam; -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-10-18 19:46:21 - */ -@Service -public class OaAssetsTrademarkServiceImpl extends ServiceImpl implements OaAssetsTrademarkService { - - @Override - public PageResult pageRel(OaAssetsTrademarkParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsTrademarkParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsTrademark getByIdRel(Integer id) { - OaAssetsTrademarkParam param = new OaAssetsTrademarkParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsUserServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsUserServiceImpl.java deleted file mode 100644 index 4869455..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsUserServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsUserMapper; -import com.gxwebsoft.oa.service.OaAssetsUserService; -import com.gxwebsoft.oa.entity.OaAssetsUser; -import com.gxwebsoft.oa.param.OaAssetsUserParam; -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:57:41 - */ -@Service -public class OaAssetsUserServiceImpl extends ServiceImpl implements OaAssetsUserService { - - @Override - public PageResult pageRel(OaAssetsUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsUserParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsUser getByIdRel(Integer id) { - OaAssetsUserParam param = new OaAssetsUserParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsVhostServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsVhostServiceImpl.java deleted file mode 100644 index 87b1a08..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaAssetsVhostServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaAssetsVhostMapper; -import com.gxwebsoft.oa.service.OaAssetsVhostService; -import com.gxwebsoft.oa.entity.OaAssetsVhost; -import com.gxwebsoft.oa.param.OaAssetsVhostParam; -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-10-18 18:27:02 - */ -@Service -public class OaAssetsVhostServiceImpl extends ServiceImpl implements OaAssetsVhostService { - - @Override - public PageResult pageRel(OaAssetsVhostParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaAssetsVhostParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaAssetsVhost getByIdRel(Integer vhostId) { - OaAssetsVhostParam param = new OaAssetsVhostParam(); - param.setVhostId(vhostId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyFieldServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyFieldServiceImpl.java deleted file mode 100644 index e7b76d6..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyFieldServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaCompanyFieldMapper; -import com.gxwebsoft.oa.service.OaCompanyFieldService; -import com.gxwebsoft.oa.entity.OaCompanyField; -import com.gxwebsoft.oa.param.OaCompanyFieldParam; -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-20 12:33:12 - */ -@Service -public class OaCompanyFieldServiceImpl extends ServiceImpl implements OaCompanyFieldService { - - @Override - public PageResult pageRel(OaCompanyFieldParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaCompanyFieldParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaCompanyField getByIdRel(Integer id) { - OaCompanyFieldParam param = new OaCompanyFieldParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyServiceImpl.java deleted file mode 100644 index 1c53913..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaCompanyMapper; -import com.gxwebsoft.oa.service.OaCompanyService; -import com.gxwebsoft.oa.entity.OaCompany; -import com.gxwebsoft.oa.param.OaCompanyParam; -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-20 12:33:12 - */ -@Service -public class OaCompanyServiceImpl extends ServiceImpl implements OaCompanyService { - - @Override - public PageResult pageRel(OaCompanyParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaCompanyParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaCompany getByIdRel(Integer companyId) { - OaCompanyParam param = new OaCompanyParam(); - param.setCompanyId(companyId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyUserServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyUserServiceImpl.java deleted file mode 100644 index 43b4230..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaCompanyUserServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaCompanyUserMapper; -import com.gxwebsoft.oa.service.OaCompanyUserService; -import com.gxwebsoft.oa.entity.OaCompanyUser; -import com.gxwebsoft.oa.param.OaCompanyUserParam; -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-20 12:33:12 - */ -@Service -public class OaCompanyUserServiceImpl extends ServiceImpl implements OaCompanyUserService { - - @Override - public PageResult pageRel(OaCompanyUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaCompanyUserParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaCompanyUser getByIdRel(Integer companyUserId) { - OaCompanyUserParam param = new OaCompanyUserParam(); - param.setCompanyUserId(companyUserId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaLinkServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaLinkServiceImpl.java deleted file mode 100644 index 4050f49..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaLinkServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaLinkMapper; -import com.gxwebsoft.oa.service.OaLinkService; -import com.gxwebsoft.oa.entity.OaLink; -import com.gxwebsoft.oa.param.OaLinkParam; -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:57:42 - */ -@Service -public class OaLinkServiceImpl extends ServiceImpl implements OaLinkService { - - @Override - public PageResult pageRel(OaLinkParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaLinkParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaLink getByIdRel(Integer id) { - OaLinkParam param = new OaLinkParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaProductServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaProductServiceImpl.java deleted file mode 100644 index 09506a3..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaProductServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaProductMapper; -import com.gxwebsoft.oa.service.OaProductService; -import com.gxwebsoft.oa.entity.OaProduct; -import com.gxwebsoft.oa.param.OaProductParam; -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:57:42 - */ -@Service -public class OaProductServiceImpl extends ServiceImpl implements OaProductService { - - @Override - public PageResult pageRel(OaProductParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaProductParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaProduct getByIdRel(Integer productId) { - OaProductParam param = new OaProductParam(); - param.setProductId(productId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaProductTabsServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaProductTabsServiceImpl.java deleted file mode 100644 index 98a4203..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaProductTabsServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaProductTabsMapper; -import com.gxwebsoft.oa.service.OaProductTabsService; -import com.gxwebsoft.oa.entity.OaProductTabs; -import com.gxwebsoft.oa.param.OaProductTabsParam; -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:57:42 - */ -@Service -public class OaProductTabsServiceImpl extends ServiceImpl implements OaProductTabsService { - - @Override - public PageResult pageRel(OaProductTabsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaProductTabsParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaProductTabs getByIdRel(Integer tabId) { - OaProductTabsParam param = new OaProductTabsParam(); - param.setTabId(tabId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskCountServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskCountServiceImpl.java deleted file mode 100644 index 8da15ca..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskCountServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaTaskCountMapper; -import com.gxwebsoft.oa.service.OaTaskCountService; -import com.gxwebsoft.oa.entity.OaTaskCount; -import com.gxwebsoft.oa.param.OaTaskCountParam; -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:57:42 - */ -@Service -public class OaTaskCountServiceImpl extends ServiceImpl implements OaTaskCountService { - - @Override - public PageResult pageRel(OaTaskCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaTaskCountParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaTaskCount getByIdRel(Integer taskCountId) { - OaTaskCountParam param = new OaTaskCountParam(); - param.setTaskCountId(taskCountId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskRecordServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskRecordServiceImpl.java deleted file mode 100644 index bdaee94..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskRecordServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaTaskRecordMapper; -import com.gxwebsoft.oa.service.OaTaskRecordService; -import com.gxwebsoft.oa.entity.OaTaskRecord; -import com.gxwebsoft.oa.param.OaTaskRecordParam; -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:57:42 - */ -@Service -public class OaTaskRecordServiceImpl extends ServiceImpl implements OaTaskRecordService { - - @Override - public PageResult pageRel(OaTaskRecordParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaTaskRecordParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaTaskRecord getByIdRel(Integer taskRecordId) { - OaTaskRecordParam param = new OaTaskRecordParam(); - param.setTaskRecordId(taskRecordId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskServiceImpl.java deleted file mode 100644 index 1ea3691..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaTaskMapper; -import com.gxwebsoft.oa.service.OaTaskService; -import com.gxwebsoft.oa.entity.OaTask; -import com.gxwebsoft.oa.param.OaTaskParam; -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:57:42 - */ -@Service -public class OaTaskServiceImpl extends ServiceImpl implements OaTaskService { - - @Override - public PageResult pageRel(OaTaskParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaTaskParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaTask getByIdRel(Integer taskId) { - OaTaskParam param = new OaTaskParam(); - param.setTaskId(taskId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskUserServiceImpl.java b/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskUserServiceImpl.java deleted file mode 100644 index c7a15ef..0000000 --- a/src/main/java/com/gxwebsoft/oa/service/impl/OaTaskUserServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.oa.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.oa.mapper.OaTaskUserMapper; -import com.gxwebsoft.oa.service.OaTaskUserService; -import com.gxwebsoft.oa.entity.OaTaskUser; -import com.gxwebsoft.oa.param.OaTaskUserParam; -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:57:42 - */ -@Service -public class OaTaskUserServiceImpl extends ServiceImpl implements OaTaskUserService { - - @Override - public PageResult pageRel(OaTaskUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(OaTaskUserParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public OaTaskUser getByIdRel(Integer taskUserId) { - OaTaskUserParam param = new OaTaskUserParam(); - param.setTaskUserId(taskUserId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopBrandController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopBrandController.java deleted file mode 100644 index e56aac6..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopBrandController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopBrandService; -import com.gxwebsoft.shop.entity.ShopBrand; -import com.gxwebsoft.shop.param.ShopBrandParam; -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 21:05:06 - */ -@Tag(name = "品牌管理") -@RestController -@RequestMapping("/api/shop/shop-brand") -public class ShopBrandController extends BaseController { - @Resource - private ShopBrandService shopBrandService; - - @Operation(summary = "分页查询品牌") - @GetMapping("/page") - public ApiResult> page(ShopBrandParam param) { - // 使用关联查询 - return success(shopBrandService.pageRel(param)); - } - - @Operation(summary = "查询全部品牌") - @GetMapping() - public ApiResult> list(ShopBrandParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopBrandService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopBrandService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopBrand:list')") - @OperationLog - @Operation(summary = "根据id查询品牌") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopBrandService.getById(id)); - // 使用关联查询 - //return success(shopBrandService.getByIdRel(id)); - } - - @Operation(summary = "添加品牌") - @PostMapping() - public ApiResult save(@RequestBody ShopBrand shopBrand) { - if (shopBrandService.save(shopBrand)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改品牌") - @PutMapping() - public ApiResult update(@RequestBody ShopBrand shopBrand) { - if (shopBrandService.updateById(shopBrand)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除品牌") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopBrandService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加品牌") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopBrandService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改品牌") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopBrandService, "brand_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除品牌") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopBrandService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopCartController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopCartController.java deleted file mode 100644 index 7121d65..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopCartController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopCartService; -import com.gxwebsoft.shop.entity.ShopCart; -import com.gxwebsoft.shop.param.ShopCartParam; -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 21:05:06 - */ -@Tag(name = "购物车管理") -@RestController -@RequestMapping("/api/shop/shop-cart") -public class ShopCartController extends BaseController { - @Resource - private ShopCartService shopCartService; - - @Operation(summary = "分页查询购物车") - @GetMapping("/page") - public ApiResult> page(ShopCartParam param) { - // 使用关联查询 - return success(shopCartService.pageRel(param)); - } - - @Operation(summary = "查询全部购物车") - @GetMapping() - public ApiResult> list(ShopCartParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopCartService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopCartService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopCart:list')") - @OperationLog - @Operation(summary = "根据id查询购物车") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopCartService.getById(id)); - // 使用关联查询 - //return success(shopCartService.getByIdRel(id)); - } - - @Operation(summary = "添加购物车") - @PostMapping() - public ApiResult save(@RequestBody ShopCart shopCart) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopCart.setUserId(Long.valueOf(loginUser.getUserId())); - } - if (shopCartService.save(shopCart)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改购物车") - @PutMapping() - public ApiResult update(@RequestBody ShopCart shopCart) { - if (shopCartService.updateById(shopCart)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除购物车") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopCartService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加购物车") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopCartService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改购物车") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopCartService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除购物车") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopCartService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopCashierController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopCashierController.java deleted file mode 100644 index e707fd6..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopCashierController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopCashierService; -import com.gxwebsoft.shop.entity.ShopCashier; -import com.gxwebsoft.shop.param.ShopCashierParam; -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 21:05:06 - */ -@Tag(name = "收银管理") -@RestController -@RequestMapping("/api/shop/shop-cashier") -public class ShopCashierController extends BaseController { - @Resource - private ShopCashierService shopCashierService; - - @Operation(summary = "分页查询收银") - @GetMapping("/page") - public ApiResult> page(ShopCashierParam param) { - // 使用关联查询 - return success(shopCashierService.pageRel(param)); - } - - @Operation(summary = "查询全部收银") - @GetMapping() - public ApiResult> list(ShopCashierParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopCashierService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopCashierService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopCashier:list')") - @OperationLog - @Operation(summary = "根据id查询收银") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopCashierService.getById(id)); - // 使用关联查询 - //return success(shopCashierService.getByIdRel(id)); - } - - @Operation(summary = "添加收银") - @PostMapping() - public ApiResult save(@RequestBody ShopCashier shopCashier) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopCashier.setUserId(Long.valueOf(loginUser.getUserId())); - } - if (shopCashierService.save(shopCashier)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改收银") - @PutMapping() - public ApiResult update(@RequestBody ShopCashier shopCashier) { - if (shopCashierService.updateById(shopCashier)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除收银") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopCashierService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加收银") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopCashierService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改收银") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopCashierService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除收银") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopCashierService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopCountController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopCountController.java deleted file mode 100644 index 3ad961d..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopCountController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopCountService; -import com.gxwebsoft.shop.entity.ShopCount; -import com.gxwebsoft.shop.param.ShopCountParam; -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 21:05:06 - */ -@Tag(name = "商城销售统计表管理") -@RestController -@RequestMapping("/api/shop/shop-count") -public class ShopCountController extends BaseController { - @Resource - private ShopCountService shopCountService; - - @Operation(summary = "分页查询商城销售统计表") - @GetMapping("/page") - public ApiResult> page(ShopCountParam param) { - // 使用关联查询 - return success(shopCountService.pageRel(param)); - } - - @Operation(summary = "查询全部商城销售统计表") - @GetMapping() - public ApiResult> list(ShopCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopCountService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopCountService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopCount:list')") - @OperationLog - @Operation(summary = "根据id查询商城销售统计表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopCountService.getById(id)); - // 使用关联查询 - //return success(shopCountService.getByIdRel(id)); - } - - @Operation(summary = "添加商城销售统计表") - @PostMapping() - public ApiResult save(@RequestBody ShopCount shopCount) { - if (shopCountService.save(shopCount)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商城销售统计表") - @PutMapping() - public ApiResult update(@RequestBody ShopCount shopCount) { - if (shopCountService.updateById(shopCount)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商城销售统计表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopCountService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商城销售统计表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopCountService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商城销售统计表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopCountService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商城销售统计表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopCountService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerApplyController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerApplyController.java deleted file mode 100644 index c927dd7..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerApplyController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerApplyService; -import com.gxwebsoft.shop.entity.ShopDealerApply; -import com.gxwebsoft.shop.param.ShopDealerApplyParam; -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 21:05:06 - */ -@Tag(name = "分销商申请记录表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-apply") -public class ShopDealerApplyController extends BaseController { - @Resource - private ShopDealerApplyService shopDealerApplyService; - - @Operation(summary = "分页查询分销商申请记录表") - @GetMapping("/page") - public ApiResult> page(ShopDealerApplyParam param) { - // 使用关联查询 - return success(shopDealerApplyService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商申请记录表") - @GetMapping() - public ApiResult> list(ShopDealerApplyParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerApplyService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerApplyService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerApply:list')") - @OperationLog - @Operation(summary = "根据id查询分销商申请记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerApplyService.getById(id)); - // 使用关联查询 - //return success(shopDealerApplyService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商申请记录表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerApply shopDealerApply) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerApply.setUserId(loginUser.getUserId()); - } - if (shopDealerApplyService.save(shopDealerApply)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商申请记录表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerApply shopDealerApply) { - if (shopDealerApplyService.updateById(shopDealerApply)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商申请记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerApplyService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商申请记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerApplyService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商申请记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerApplyService, "apply_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商申请记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerApplyService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerCapitalController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerCapitalController.java deleted file mode 100644 index 25c6a9f..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerCapitalController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerCapitalService; -import com.gxwebsoft.shop.entity.ShopDealerCapital; -import com.gxwebsoft.shop.param.ShopDealerCapitalParam; -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 21:05:07 - */ -@Tag(name = "分销商资金明细表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-capital") -public class ShopDealerCapitalController extends BaseController { - @Resource - private ShopDealerCapitalService shopDealerCapitalService; - - @Operation(summary = "分页查询分销商资金明细表") - @GetMapping("/page") - public ApiResult> page(ShopDealerCapitalParam param) { - // 使用关联查询 - return success(shopDealerCapitalService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商资金明细表") - @GetMapping() - public ApiResult> list(ShopDealerCapitalParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerCapitalService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerCapitalService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerCapital:list')") - @OperationLog - @Operation(summary = "根据id查询分销商资金明细表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerCapitalService.getById(id)); - // 使用关联查询 - //return success(shopDealerCapitalService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商资金明细表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerCapital shopDealerCapital) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerCapital.setUserId(loginUser.getUserId()); - } - if (shopDealerCapitalService.save(shopDealerCapital)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商资金明细表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerCapital shopDealerCapital) { - if (shopDealerCapitalService.updateById(shopDealerCapital)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商资金明细表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerCapitalService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商资金明细表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerCapitalService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商资金明细表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerCapitalService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商资金明细表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerCapitalService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerOrderController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerOrderController.java deleted file mode 100644 index 7727b75..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerOrderController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerOrderService; -import com.gxwebsoft.shop.entity.ShopDealerOrder; -import com.gxwebsoft.shop.param.ShopDealerOrderParam; -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 21:05:07 - */ -@Tag(name = "分销商订单记录表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-order") -public class ShopDealerOrderController extends BaseController { - @Resource - private ShopDealerOrderService shopDealerOrderService; - - @Operation(summary = "分页查询分销商订单记录表") - @GetMapping("/page") - public ApiResult> page(ShopDealerOrderParam param) { - // 使用关联查询 - return success(shopDealerOrderService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商订单记录表") - @GetMapping() - public ApiResult> list(ShopDealerOrderParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerOrderService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerOrderService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerOrder:list')") - @OperationLog - @Operation(summary = "根据id查询分销商订单记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerOrderService.getById(id)); - // 使用关联查询 - //return success(shopDealerOrderService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商订单记录表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerOrder shopDealerOrder) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerOrder.setUserId(loginUser.getUserId()); - } - if (shopDealerOrderService.save(shopDealerOrder)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商订单记录表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerOrder shopDealerOrder) { - if (shopDealerOrderService.updateById(shopDealerOrder)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商订单记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerOrderService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商订单记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerOrderService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商订单记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerOrderService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商订单记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerOrderService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerRefereeController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerRefereeController.java deleted file mode 100644 index 1b58079..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerRefereeController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerRefereeService; -import com.gxwebsoft.shop.entity.ShopDealerReferee; -import com.gxwebsoft.shop.param.ShopDealerRefereeParam; -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 21:05:07 - */ -@Tag(name = "分销商推荐关系表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-referee") -public class ShopDealerRefereeController extends BaseController { - @Resource - private ShopDealerRefereeService shopDealerRefereeService; - - @Operation(summary = "分页查询分销商推荐关系表") - @GetMapping("/page") - public ApiResult> page(ShopDealerRefereeParam param) { - // 使用关联查询 - return success(shopDealerRefereeService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商推荐关系表") - @GetMapping() - public ApiResult> list(ShopDealerRefereeParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerRefereeService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerRefereeService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerReferee:list')") - @OperationLog - @Operation(summary = "根据id查询分销商推荐关系表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerRefereeService.getById(id)); - // 使用关联查询 - //return success(shopDealerRefereeService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商推荐关系表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerReferee shopDealerReferee) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerReferee.setUserId(loginUser.getUserId()); - } - if (shopDealerRefereeService.save(shopDealerReferee)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商推荐关系表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerReferee shopDealerReferee) { - if (shopDealerRefereeService.updateById(shopDealerReferee)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商推荐关系表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerRefereeService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商推荐关系表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerRefereeService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商推荐关系表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerRefereeService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商推荐关系表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerRefereeService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerSettingController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerSettingController.java deleted file mode 100644 index f3ab61d..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerSettingController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerSettingService; -import com.gxwebsoft.shop.entity.ShopDealerSetting; -import com.gxwebsoft.shop.param.ShopDealerSettingParam; -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 21:05:07 - */ -@Tag(name = "分销商设置表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-setting") -public class ShopDealerSettingController extends BaseController { - @Resource - private ShopDealerSettingService shopDealerSettingService; - - @Operation(summary = "分页查询分销商设置表") - @GetMapping("/page") - public ApiResult> page(ShopDealerSettingParam param) { - // 使用关联查询 - return success(shopDealerSettingService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商设置表") - @GetMapping() - public ApiResult> list(ShopDealerSettingParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerSettingService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerSettingService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerSetting:list')") - @OperationLog - @Operation(summary = "根据id查询分销商设置表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerSettingService.getById(id)); - // 使用关联查询 - //return success(shopDealerSettingService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商设置表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerSetting shopDealerSetting) { - if (shopDealerSettingService.save(shopDealerSetting)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商设置表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerSetting shopDealerSetting) { - if (shopDealerSettingService.updateById(shopDealerSetting)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商设置表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerSettingService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商设置表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerSettingService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商设置表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerSettingService, "key")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商设置表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerSettingService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerUserController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerUserController.java deleted file mode 100644 index 422bf89..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerUserController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerUserService; -import com.gxwebsoft.shop.entity.ShopDealerUser; -import com.gxwebsoft.shop.param.ShopDealerUserParam; -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 21:05:07 - */ -@Tag(name = "分销商用户记录表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-user") -public class ShopDealerUserController extends BaseController { - @Resource - private ShopDealerUserService shopDealerUserService; - - @Operation(summary = "分页查询分销商用户记录表") - @GetMapping("/page") - public ApiResult> page(ShopDealerUserParam param) { - // 使用关联查询 - return success(shopDealerUserService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商用户记录表") - @GetMapping() - public ApiResult> list(ShopDealerUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerUserService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerUserService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerUser:list')") - @OperationLog - @Operation(summary = "根据id查询分销商用户记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerUserService.getById(id)); - // 使用关联查询 - //return success(shopDealerUserService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商用户记录表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerUser shopDealerUser) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerUser.setUserId(loginUser.getUserId()); - } - if (shopDealerUserService.save(shopDealerUser)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商用户记录表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerUser shopDealerUser) { - if (shopDealerUserService.updateById(shopDealerUser)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商用户记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerUserService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商用户记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerUserService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商用户记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerUserService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商用户记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerUserService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java deleted file mode 100644 index e26417e..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopDealerWithdrawController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopDealerWithdrawService; -import com.gxwebsoft.shop.entity.ShopDealerWithdraw; -import com.gxwebsoft.shop.param.ShopDealerWithdrawParam; -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 21:05:07 - */ -@Tag(name = "分销商提现明细表管理") -@RestController -@RequestMapping("/api/shop/shop-dealer-withdraw") -public class ShopDealerWithdrawController extends BaseController { - @Resource - private ShopDealerWithdrawService shopDealerWithdrawService; - - @Operation(summary = "分页查询分销商提现明细表") - @GetMapping("/page") - public ApiResult> page(ShopDealerWithdrawParam param) { - // 使用关联查询 - return success(shopDealerWithdrawService.pageRel(param)); - } - - @Operation(summary = "查询全部分销商提现明细表") - @GetMapping() - public ApiResult> list(ShopDealerWithdrawParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopDealerWithdrawService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopDealerWithdrawService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopDealerWithdraw:list')") - @OperationLog - @Operation(summary = "根据id查询分销商提现明细表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopDealerWithdrawService.getById(id)); - // 使用关联查询 - //return success(shopDealerWithdrawService.getByIdRel(id)); - } - - @Operation(summary = "添加分销商提现明细表") - @PostMapping() - public ApiResult save(@RequestBody ShopDealerWithdraw shopDealerWithdraw) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopDealerWithdraw.setUserId(loginUser.getUserId()); - } - if (shopDealerWithdrawService.save(shopDealerWithdraw)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改分销商提现明细表") - @PutMapping() - public ApiResult update(@RequestBody ShopDealerWithdraw shopDealerWithdraw) { - if (shopDealerWithdrawService.updateById(shopDealerWithdraw)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除分销商提现明细表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopDealerWithdrawService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加分销商提现明细表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopDealerWithdrawService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改分销商提现明细表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopDealerWithdrawService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除分销商提现明细表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopDealerWithdrawService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCategoryController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCategoryController.java deleted file mode 100644 index 4ad4f03..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCategoryController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsCategoryService; -import com.gxwebsoft.shop.entity.ShopGoodsCategory; -import com.gxwebsoft.shop.param.ShopGoodsCategoryParam; -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 21:05:07 - */ -@Tag(name = "商品分类管理") -@RestController -@RequestMapping("/api/shop/shop-goods-category") -public class ShopGoodsCategoryController extends BaseController { - @Resource - private ShopGoodsCategoryService shopGoodsCategoryService; - - @Operation(summary = "分页查询商品分类") - @GetMapping("/page") - public ApiResult> page(ShopGoodsCategoryParam param) { - // 使用关联查询 - return success(shopGoodsCategoryService.pageRel(param)); - } - - @Operation(summary = "查询全部商品分类") - @GetMapping() - public ApiResult> list(ShopGoodsCategoryParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsCategoryService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsCategoryService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsCategory:list')") - @OperationLog - @Operation(summary = "根据id查询商品分类") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsCategoryService.getById(id)); - // 使用关联查询 - //return success(shopGoodsCategoryService.getByIdRel(id)); - } - - @Operation(summary = "添加商品分类") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsCategory shopGoodsCategory) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoodsCategory.setUserId(loginUser.getUserId()); - } - if (shopGoodsCategoryService.save(shopGoodsCategory)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品分类") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsCategory shopGoodsCategory) { - if (shopGoodsCategoryService.updateById(shopGoodsCategory)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品分类") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsCategoryService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品分类") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsCategoryService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品分类") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsCategoryService, "category_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品分类") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsCategoryService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCommentController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCommentController.java deleted file mode 100644 index ac5f030..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCommentController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsCommentService; -import com.gxwebsoft.shop.entity.ShopGoodsComment; -import com.gxwebsoft.shop.param.ShopGoodsCommentParam; -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 21:05:07 - */ -@Tag(name = "评论表管理") -@RestController -@RequestMapping("/api/shop/shop-goods-comment") -public class ShopGoodsCommentController extends BaseController { - @Resource - private ShopGoodsCommentService shopGoodsCommentService; - - @Operation(summary = "分页查询评论表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsCommentParam param) { - // 使用关联查询 - return success(shopGoodsCommentService.pageRel(param)); - } - - @Operation(summary = "查询全部评论表") - @GetMapping() - public ApiResult> list(ShopGoodsCommentParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsCommentService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsCommentService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsComment:list')") - @OperationLog - @Operation(summary = "根据id查询评论表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsCommentService.getById(id)); - // 使用关联查询 - //return success(shopGoodsCommentService.getByIdRel(id)); - } - - @Operation(summary = "添加评论表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsComment shopGoodsComment) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoodsComment.setUserId(loginUser.getUserId()); - } - if (shopGoodsCommentService.save(shopGoodsComment)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改评论表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsComment shopGoodsComment) { - if (shopGoodsCommentService.updateById(shopGoodsComment)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除评论表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsCommentService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加评论表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsCommentService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改评论表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsCommentService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除评论表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsCommentService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsController.java deleted file mode 100644 index c60cc78..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsController.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsService; -import com.gxwebsoft.shop.entity.ShopGoods; -import com.gxwebsoft.shop.param.ShopGoodsParam; -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 21:05:07 - */ -@Tag(name = "商品记录表管理") -@RestController -@RequestMapping("/api/shop/shop-goods") -public class ShopGoodsController extends BaseController { - @Resource - private ShopGoodsService shopGoodsService; - - @Operation(summary = "分页查询商品记录表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsParam param) { - // 使用关联查询 - return success(shopGoodsService.pageRel(param)); - } - - @Operation(summary = "查询全部商品记录表") - @GetMapping() - public ApiResult> list(ShopGoodsParam param) { - // 使用关联查询 - return success(shopGoodsService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoods:list')") - @OperationLog - @Operation(summary = "根据id查询商品记录表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(shopGoodsService.getByIdRel(id)); - } - - @Operation(summary = "添加商品记录表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoods shopGoods) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoods.setUserId(loginUser.getUserId()); - } - if (shopGoodsService.save(shopGoods)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品记录表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoods shopGoods) { - if (shopGoodsService.updateById(shopGoods)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品记录表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品记录表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品记录表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsService, "goods_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品记录表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCouponController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCouponController.java deleted file mode 100644 index 2540984..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsCouponController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsCouponService; -import com.gxwebsoft.shop.entity.ShopGoodsCoupon; -import com.gxwebsoft.shop.param.ShopGoodsCouponParam; -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 21:05:07 - */ -@Tag(name = "商品优惠券表管理") -@RestController -@RequestMapping("/api/shop/shop-goods-coupon") -public class ShopGoodsCouponController extends BaseController { - @Resource - private ShopGoodsCouponService shopGoodsCouponService; - - @Operation(summary = "分页查询商品优惠券表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsCouponParam param) { - // 使用关联查询 - return success(shopGoodsCouponService.pageRel(param)); - } - - @Operation(summary = "查询全部商品优惠券表") - @GetMapping() - public ApiResult> list(ShopGoodsCouponParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsCouponService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsCouponService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsCoupon:list')") - @OperationLog - @Operation(summary = "根据id查询商品优惠券表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsCouponService.getById(id)); - // 使用关联查询 - //return success(shopGoodsCouponService.getByIdRel(id)); - } - - @Operation(summary = "添加商品优惠券表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsCoupon shopGoodsCoupon) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoodsCoupon.setUserId(loginUser.getUserId()); - } - if (shopGoodsCouponService.save(shopGoodsCoupon)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品优惠券表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsCoupon shopGoodsCoupon) { - if (shopGoodsCouponService.updateById(shopGoodsCoupon)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品优惠券表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsCouponService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品优惠券表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsCouponService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品优惠券表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsCouponService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品优惠券表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsCouponService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsLogController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsLogController.java deleted file mode 100644 index f3634e3..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsLogController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsLogService; -import com.gxwebsoft.shop.entity.ShopGoodsLog; -import com.gxwebsoft.shop.param.ShopGoodsLogParam; -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 21:05:07 - */ -@Tag(name = "商品日志表管理") -@RestController -@RequestMapping("/api/shop/shop-goods-log") -public class ShopGoodsLogController extends BaseController { - @Resource - private ShopGoodsLogService shopGoodsLogService; - - @Operation(summary = "分页查询商品日志表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsLogParam param) { - // 使用关联查询 - return success(shopGoodsLogService.pageRel(param)); - } - - @Operation(summary = "查询全部商品日志表") - @GetMapping() - public ApiResult> list(ShopGoodsLogParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsLogService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsLogService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsLog:list')") - @OperationLog - @Operation(summary = "根据id查询商品日志表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsLogService.getById(id)); - // 使用关联查询 - //return success(shopGoodsLogService.getByIdRel(id)); - } - - @Operation(summary = "添加商品日志表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsLog shopGoodsLog) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoodsLog.setUserId(loginUser.getUserId()); - } - if (shopGoodsLogService.save(shopGoodsLog)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品日志表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsLog shopGoodsLog) { - if (shopGoodsLogService.updateById(shopGoodsLog)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品日志表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsLogService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品日志表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsLogService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品日志表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsLogService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品日志表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsLogService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsRelationController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsRelationController.java deleted file mode 100644 index 2b7ca59..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsRelationController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsRelationService; -import com.gxwebsoft.shop.entity.ShopGoodsRelation; -import com.gxwebsoft.shop.param.ShopGoodsRelationParam; -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 21:05:07 - */ -@Tag(name = "商品点赞和收藏表管理") -@RestController -@RequestMapping("/api/shop/shop-goods-relation") -public class ShopGoodsRelationController extends BaseController { - @Resource - private ShopGoodsRelationService shopGoodsRelationService; - - @Operation(summary = "分页查询商品点赞和收藏表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsRelationParam param) { - // 使用关联查询 - return success(shopGoodsRelationService.pageRel(param)); - } - - @Operation(summary = "查询全部商品点赞和收藏表") - @GetMapping() - public ApiResult> list(ShopGoodsRelationParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsRelationService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsRelationService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsRelation:list')") - @OperationLog - @Operation(summary = "根据id查询商品点赞和收藏表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsRelationService.getById(id)); - // 使用关联查询 - //return success(shopGoodsRelationService.getByIdRel(id)); - } - - @Operation(summary = "添加商品点赞和收藏表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsRelation shopGoodsRelation) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopGoodsRelation.setUserId(loginUser.getUserId()); - } - if (shopGoodsRelationService.save(shopGoodsRelation)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品点赞和收藏表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsRelation shopGoodsRelation) { - if (shopGoodsRelationService.updateById(shopGoodsRelation)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品点赞和收藏表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsRelationService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品点赞和收藏表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsRelationService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品点赞和收藏表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsRelationService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品点赞和收藏表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsRelationService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSkuController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSkuController.java deleted file mode 100644 index 99c18e0..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSkuController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsSkuService; -import com.gxwebsoft.shop.entity.ShopGoodsSku; -import com.gxwebsoft.shop.param.ShopGoodsSkuParam; -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; - -/** - * 商品sku列表控制器 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Tag(name = "商品sku列表管理") -@RestController -@RequestMapping("/api/shop/shop-goods-sku") -public class ShopGoodsSkuController extends BaseController { - @Resource - private ShopGoodsSkuService shopGoodsSkuService; - - @Operation(summary = "分页查询商品sku列表") - @GetMapping("/page") - public ApiResult> page(ShopGoodsSkuParam param) { - // 使用关联查询 - return success(shopGoodsSkuService.pageRel(param)); - } - - @Operation(summary = "查询全部商品sku列表") - @GetMapping() - public ApiResult> list(ShopGoodsSkuParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsSkuService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsSkuService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsSku:list')") - @OperationLog - @Operation(summary = "根据id查询商品sku列表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsSkuService.getById(id)); - // 使用关联查询 - //return success(shopGoodsSkuService.getByIdRel(id)); - } - - @Operation(summary = "添加商品sku列表") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsSku shopGoodsSku) { - if (shopGoodsSkuService.save(shopGoodsSku)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品sku列表") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsSku shopGoodsSku) { - if (shopGoodsSkuService.updateById(shopGoodsSku)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品sku列表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsSkuService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品sku列表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsSkuService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品sku列表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsSkuService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品sku列表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsSkuService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSpecController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSpecController.java deleted file mode 100644 index 9004171..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopGoodsSpecController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopGoodsSpecService; -import com.gxwebsoft.shop.entity.ShopGoodsSpec; -import com.gxwebsoft.shop.param.ShopGoodsSpecParam; -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 21:05:07 - */ -@Tag(name = "商品多规格管理") -@RestController -@RequestMapping("/api/shop/shop-goods-spec") -public class ShopGoodsSpecController extends BaseController { - @Resource - private ShopGoodsSpecService shopGoodsSpecService; - - @Operation(summary = "分页查询商品多规格") - @GetMapping("/page") - public ApiResult> page(ShopGoodsSpecParam param) { - // 使用关联查询 - return success(shopGoodsSpecService.pageRel(param)); - } - - @Operation(summary = "查询全部商品多规格") - @GetMapping() - public ApiResult> list(ShopGoodsSpecParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopGoodsSpecService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopGoodsSpecService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopGoodsSpec:list')") - @OperationLog - @Operation(summary = "根据id查询商品多规格") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopGoodsSpecService.getById(id)); - // 使用关联查询 - //return success(shopGoodsSpecService.getByIdRel(id)); - } - - @Operation(summary = "添加商品多规格") - @PostMapping() - public ApiResult save(@RequestBody ShopGoodsSpec shopGoodsSpec) { - if (shopGoodsSpecService.save(shopGoodsSpec)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品多规格") - @PutMapping() - public ApiResult update(@RequestBody ShopGoodsSpec shopGoodsSpec) { - if (shopGoodsSpecService.updateById(shopGoodsSpec)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品多规格") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopGoodsSpecService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品多规格") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopGoodsSpecService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品多规格") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopGoodsSpecService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品多规格") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopGoodsSpecService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantAccountController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantAccountController.java deleted file mode 100644 index c295d61..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantAccountController.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopMerchantAccountService; -import com.gxwebsoft.shop.entity.ShopMerchantAccount; -import com.gxwebsoft.shop.param.ShopMerchantAccountParam; -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-10-02 10:07:51 - */ -@Tag(name = "商户账号管理") -@RestController -@RequestMapping("/api/shop/shop-merchant-account") -public class ShopMerchantAccountController extends BaseController { - @Resource - private ShopMerchantAccountService shopMerchantAccountService; - - @Operation(summary = "分页查询商户账号") - @GetMapping("/page") - public ApiResult> page(ShopMerchantAccountParam param) { - // 使用关联查询 - return success(shopMerchantAccountService.pageRel(param)); - } - - @Operation(summary = "查询全部商户账号") - @GetMapping() - public ApiResult> list(ShopMerchantAccountParam param) { - // 使用关联查询 - return success(shopMerchantAccountService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantAccount:list')") - @OperationLog - @Operation(summary = "根据id查询商户账号") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(shopMerchantAccountService.getByIdRel(id)); - } - - @Operation(summary = "添加商户账号") - @PostMapping() - public ApiResult save(@RequestBody ShopMerchantAccount shopMerchantAccount) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopMerchantAccount.setUserId(loginUser.getUserId()); - } - if (shopMerchantAccountService.save(shopMerchantAccount)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商户账号") - @PutMapping() - public ApiResult update(@RequestBody ShopMerchantAccount shopMerchantAccount) { - if (shopMerchantAccountService.updateById(shopMerchantAccount)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商户账号") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopMerchantAccountService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商户账号") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopMerchantAccountService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商户账号") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopMerchantAccountService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商户账号") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopMerchantAccountService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantApplyController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantApplyController.java deleted file mode 100644 index 56e4c37..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantApplyController.java +++ /dev/null @@ -1,241 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import cn.hutool.core.util.DesensitizedUtil; -import cn.hutool.core.util.ObjectUtil; -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.common.core.utils.CommonUtil; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.Company; -import com.gxwebsoft.common.system.entity.Role; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.common.system.entity.UserRole; -import com.gxwebsoft.common.system.param.MenuParam; -import com.gxwebsoft.common.system.service.CompanyService; -import com.gxwebsoft.common.system.service.MenuService; -import com.gxwebsoft.common.system.service.UserRoleService; -import com.gxwebsoft.common.system.service.UserService; -import com.gxwebsoft.shop.entity.ShopMerchant; -import com.gxwebsoft.shop.entity.ShopMerchantAccount; -import com.gxwebsoft.shop.service.ShopMerchantApplyService; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.param.ShopMerchantApplyParam; -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.shop.service.ShopMerchantService; -import io.swagger.v3.oas.annotations.tags.Tag; -import io.swagger.v3.oas.annotations.Operation; -import org.springframework.beans.BeanUtils; -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 21:05:07 - */ -@Tag(name = "商户入驻申请管理") -@RestController -@RequestMapping("/api/shop/shop-merchant-apply") -public class ShopMerchantApplyController extends BaseController { - @Resource - private ShopMerchantApplyService shopMerchantApplyService; - @Resource - private ShopMerchantService shopMerchantService; - @Resource - private CompanyService companyService; - @Resource - private UserService userService; - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:list')") - @Operation(summary = "分页查询商户入驻申请") - @GetMapping("/page") - public ApiResult> page(ShopMerchantApplyParam param) { - // 使用关联查询 - return success(shopMerchantApplyService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:list')") - @Operation(summary = "查询全部商户入驻申请") - @GetMapping() - public ApiResult> list(ShopMerchantApplyParam param) { - // 使用关联查询 - return success(shopMerchantApplyService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:list')") - @OperationLog - @Operation(summary = "根据id查询商户入驻申请") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(shopMerchantApplyService.getByIdRel(id)); - } - - @Operation(summary = "添加商户入驻申请") - @PostMapping() - public ApiResult save(@RequestBody ShopMerchantApply shopMerchantApply) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopMerchantApply.setUserId(loginUser.getUserId()); - if (shopMerchantApplyService.count(new LambdaQueryWrapper().eq(ShopMerchantApply::getPhone, shopMerchantApply.getPhone())) > 0) { - return fail("该手机号码已存在"); - } - // 个人开发者认证材料:使用姓名+身份证号码 - if (shopMerchantApply.getType().equals(0)) { - shopMerchantApply.setMerchantName(shopMerchantApply.getRealName()); - shopMerchantApply.setMerchantCode(shopMerchantApply.getIdCard()); - } - shopMerchantApply.setCheckStatus(true); - shopMerchantApply.setTenantId(loginUser.getTenantId()); - shopMerchantApply.setPhone(loginUser.getPhone()); - if (shopMerchantApplyService.save(shopMerchantApply)) { - return success("您的申请已提交,请耐心等待工作人员的审核,非常感谢"); - } - } - return fail("提交失败"); - } - - @Operation(summary = "修改商户入驻申请") - @PutMapping() - public ApiResult update(@RequestBody ShopMerchantApply shopMerchantApply) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - // 审核中? - shopMerchantApply.setCheckStatus(true); - // 审核状态 - shopMerchantApply.setStatus(0); - // 个人开发者 - if (StrUtil.isBlank(shopMerchantApply.getMerchantName())) { - shopMerchantApply.setMerchantName(shopMerchantApply.getRealName()); - } - if (shopMerchantApplyService.updateById(shopMerchantApply)) { - return success("您的申请已提交,请耐心等待工作人员的审核,非常感谢"); - } - } - return fail("操作失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:remove')") - @Operation(summary = "删除商户入驻申请") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopMerchantApplyService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:save')") - @Operation(summary = "批量添加商户入驻申请") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopMerchantApplyService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:update')") - @Operation(summary = "批量修改商户入驻申请") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopMerchantApplyService, "apply_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:remove')") - @Operation(summary = "批量删除商户入驻申请") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopMerchantApplyService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "我的入驻信息") - @GetMapping("/getByUserId") - public ApiResult getByUserId() { - final User loginUser = getLoginUser(); - if (loginUser == null) { - return fail("请先登录", null); - } - final ShopMerchantApply shopMerchantApply = shopMerchantApplyService.getOne(new LambdaQueryWrapper().eq(ShopMerchantApply::getUserId, getLoginUser().getUserId()).last("limit 1")); - return success(shopMerchantApply); - } - - @Operation(summary = "我的认证信息") - @GetMapping("/getByPhone") - public ApiResult getByPhone() { - final User loginUser = getLoginUser(); - if (loginUser == null) { - return fail("请先登录", null); - } - final ShopMerchantApply shopMerchantApply = shopMerchantApplyService.getOne(new LambdaQueryWrapper().eq(ShopMerchantApply::getPhone, loginUser.getPhone()).last("limit 1")); - return success(shopMerchantApply); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantApply:update')") - @Operation(summary = "入驻审核") - @PutMapping("/check") - public ApiResult check(@RequestBody ShopMerchantApply shopMerchantApply) { - // 审核中? - shopMerchantApply.setCheckStatus(true); - // TODO 审核通过则创建商户 - if (shopMerchantApply.getStatus().equals(1)) { - final ShopMerchant one = shopMerchantService.getOne(new LambdaQueryWrapper().eq(ShopMerchant::getPhone, shopMerchantApply.getPhone()).last("limit 1")); - final ShopMerchantAccount merchantAccount = new ShopMerchantAccount(); - BeanUtils.copyProperties(shopMerchantApply, merchantAccount); - - final User user = new User(); - - if (ObjectUtil.isNotEmpty(one)) { - BeanUtils.copyProperties(shopMerchantApply, one); - one.setStatus(0); - shopMerchantService.updateById(one); - user.setRealName(shopMerchantApply.getRealName()); - } else { - final ShopMerchant merchant = new ShopMerchant(); - BeanUtils.copyProperties(shopMerchantApply, merchant); - merchant.setStatus(0); - shopMerchantService.save(merchant); - user.setRealName(shopMerchantApply.getRealName()); - } - - // TODO 创建商户账号 - // TODO 更新用户表的商户信息 - user.setUserId(shopMerchantApply.getUserId()); - userService.updateById(user); - shopMerchantApplyService.updateById(shopMerchantApply); - // 更新company表的认证状态 - companyService.update(new LambdaUpdateWrapper().eq(Company::getTenantId, shopMerchantApply.getTenantId()).set(Company::getAuthentication, true)); - // TODO 入驻开发者中心(添加会员) - return success("操作成功"); - } - // TODO 驳回 - if (shopMerchantApply.getStatus().equals(2)) { - shopMerchantApply.setCheckStatus(false); - shopMerchantApplyService.updateById(shopMerchantApply); - return success("操作成功"); - } - // 审核状态 - shopMerchantApply.setStatus(0); - if (shopMerchantApplyService.updateById(shopMerchantApply)) { - return success("您的申请已提交,请耐心等待工作人员的审核,非常感谢"); - } - return fail("操作失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantController.java deleted file mode 100644 index a241583..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantController.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopMerchantService; -import com.gxwebsoft.shop.entity.ShopMerchant; -import com.gxwebsoft.shop.param.ShopMerchantParam; -import com.gxwebsoft.common.core.web.ApiResult; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.common.core.web.BatchParam; -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 21:05:07 - */ -@Tag(name = "商户管理") -@RestController -@RequestMapping("/api/shop/shop-merchant") -public class ShopMerchantController extends BaseController { - @Resource - private ShopMerchantService shopMerchantService; - - @PreAuthorize("hasAuthority('shop:shopMerchant:list')") - @Operation(summary = "分页查询商户") - @GetMapping("/page") - public ApiResult> page(ShopMerchantParam param) { - // 使用关联查询 - return success(shopMerchantService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:list')") - @Operation(summary = "查询全部商户") - @GetMapping() - public ApiResult> list(ShopMerchantParam param) { - // 使用关联查询 - return success(shopMerchantService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:list')") - @Operation(summary = "根据id查询商户") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Long id) { - // 使用关联查询 - return success(shopMerchantService.getByIdRel(id)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:save')") - @Operation(summary = "添加商户") - @PostMapping() - public ApiResult save(@RequestBody ShopMerchant shopMerchant) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopMerchant.setUserId(loginUser.getUserId()); - } - if (shopMerchantService.save(shopMerchant)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:update')") - @Operation(summary = "修改商户") - @PutMapping() - public ApiResult update(@RequestBody ShopMerchant shopMerchant) { - if (shopMerchantService.updateById(shopMerchant)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:remove')") - @Operation(summary = "删除商户") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopMerchantService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:save')") - @Operation(summary = "批量添加商户") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopMerchantService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:update')") - @Operation(summary = "批量修改商户") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopMerchantService, "merchant_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('shop:shopMerchant:remove')") - @Operation(summary = "批量删除商户") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopMerchantService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('sys:auth:user')") - @Operation(summary = "我的商户信息") - @GetMapping("/getByUserId") - public ApiResult getByUserId() { - // 使用关联查询 - final ShopMerchant shopMerchant = shopMerchantService.getOne(new LambdaQueryWrapper().eq(ShopMerchant::getUserId, getLoginUser().getUserId()).last("limit 1")); - return success(shopMerchant); - } - - @PreAuthorize("hasAuthority('sys:auth:user')") - @Operation(summary = "我的开发者信息") - @GetMapping("/getByPhone") - public ApiResult getByPhone() { - final User loginUser = getLoginUser(); - if (loginUser == null) { - return fail("请先登录", null); - } - final ShopMerchant shopMerchant = shopMerchantService.getOne(new LambdaQueryWrapper().eq(ShopMerchant::getPhone, loginUser.getPhone()).last("limit 1")); - return success(shopMerchant); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantCountController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantCountController.java deleted file mode 100644 index 638aeb0..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantCountController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopMerchantCountService; -import com.gxwebsoft.shop.entity.ShopMerchantCount; -import com.gxwebsoft.shop.param.ShopMerchantCountParam; -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 21:05:07 - */ -@Tag(name = "门店销售统计表管理") -@RestController -@RequestMapping("/api/shop/shop-merchant-count") -public class ShopMerchantCountController extends BaseController { - @Resource - private ShopMerchantCountService shopMerchantCountService; - - @Operation(summary = "分页查询门店销售统计表") - @GetMapping("/page") - public ApiResult> page(ShopMerchantCountParam param) { - // 使用关联查询 - return success(shopMerchantCountService.pageRel(param)); - } - - @Operation(summary = "查询全部门店销售统计表") - @GetMapping() - public ApiResult> list(ShopMerchantCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopMerchantCountService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopMerchantCountService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantCount:list')") - @OperationLog - @Operation(summary = "根据id查询门店销售统计表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopMerchantCountService.getById(id)); - // 使用关联查询 - //return success(shopMerchantCountService.getByIdRel(id)); - } - - @Operation(summary = "添加门店销售统计表") - @PostMapping() - public ApiResult save(@RequestBody ShopMerchantCount shopMerchantCount) { - if (shopMerchantCountService.save(shopMerchantCount)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改门店销售统计表") - @PutMapping() - public ApiResult update(@RequestBody ShopMerchantCount shopMerchantCount) { - if (shopMerchantCountService.updateById(shopMerchantCount)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除门店销售统计表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopMerchantCountService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加门店销售统计表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopMerchantCountService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改门店销售统计表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopMerchantCountService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除门店销售统计表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopMerchantCountService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantTypeController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantTypeController.java deleted file mode 100644 index 1d3d779..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopMerchantTypeController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopMerchantTypeService; -import com.gxwebsoft.shop.entity.ShopMerchantType; -import com.gxwebsoft.shop.param.ShopMerchantTypeParam; -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 21:05:07 - */ -@Tag(name = "商户类型管理") -@RestController -@RequestMapping("/api/shop/shop-merchant-type") -public class ShopMerchantTypeController extends BaseController { - @Resource - private ShopMerchantTypeService shopMerchantTypeService; - - @Operation(summary = "分页查询商户类型") - @GetMapping("/page") - public ApiResult> page(ShopMerchantTypeParam param) { - // 使用关联查询 - return success(shopMerchantTypeService.pageRel(param)); - } - - @Operation(summary = "查询全部商户类型") - @GetMapping() - public ApiResult> list(ShopMerchantTypeParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopMerchantTypeService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopMerchantTypeService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopMerchantType:list')") - @OperationLog - @Operation(summary = "根据id查询商户类型") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopMerchantTypeService.getById(id)); - // 使用关联查询 - //return success(shopMerchantTypeService.getByIdRel(id)); - } - - @Operation(summary = "添加商户类型") - @PostMapping() - public ApiResult save(@RequestBody ShopMerchantType shopMerchantType) { - if (shopMerchantTypeService.save(shopMerchantType)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商户类型") - @PutMapping() - public ApiResult update(@RequestBody ShopMerchantType shopMerchantType) { - if (shopMerchantTypeService.updateById(shopMerchantType)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商户类型") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopMerchantTypeService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商户类型") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopMerchantTypeService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商户类型") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopMerchantTypeService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商户类型") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopMerchantTypeService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderCartInfoController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopOrderCartInfoController.java deleted file mode 100644 index a463eeb..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderCartInfoController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopOrderCartInfoService; -import com.gxwebsoft.shop.entity.ShopOrderCartInfo; -import com.gxwebsoft.shop.param.ShopOrderCartInfoParam; -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 21:05:07 - */ -@Tag(name = "订单购物详情表管理") -@RestController -@RequestMapping("/api/shop/shop-order-cart-info") -public class ShopOrderCartInfoController extends BaseController { - @Resource - private ShopOrderCartInfoService shopOrderCartInfoService; - - @Operation(summary = "分页查询订单购物详情表") - @GetMapping("/page") - public ApiResult> page(ShopOrderCartInfoParam param) { - // 使用关联查询 - return success(shopOrderCartInfoService.pageRel(param)); - } - - @Operation(summary = "查询全部订单购物详情表") - @GetMapping() - public ApiResult> list(ShopOrderCartInfoParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopOrderCartInfoService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopOrderCartInfoService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrderCartInfo:list')") - @OperationLog - @Operation(summary = "根据id查询订单购物详情表") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopOrderCartInfoService.getById(id)); - // 使用关联查询 - //return success(shopOrderCartInfoService.getByIdRel(id)); - } - - @Operation(summary = "添加订单购物详情表") - @PostMapping() - public ApiResult save(@RequestBody ShopOrderCartInfo shopOrderCartInfo) { - if (shopOrderCartInfoService.save(shopOrderCartInfo)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改订单购物详情表") - @PutMapping() - public ApiResult update(@RequestBody ShopOrderCartInfo shopOrderCartInfo) { - if (shopOrderCartInfoService.updateById(shopOrderCartInfo)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除订单购物详情表") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopOrderCartInfoService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加订单购物详情表") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopOrderCartInfoService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改订单购物详情表") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopOrderCartInfoService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除订单购物详情表") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopOrderCartInfoService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopOrderController.java deleted file mode 100644 index 47f2911..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderController.java +++ /dev/null @@ -1,258 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import cn.hutool.core.date.DateUtil; -import cn.hutool.core.util.IdUtil; -import cn.hutool.core.util.StrUtil; -import com.gxwebsoft.common.core.exception.BusinessException; -import com.gxwebsoft.common.core.utils.RedisUtil; -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.common.system.entity.UserBalanceLog; -import com.gxwebsoft.common.system.service.UserBalanceLogService; -import com.gxwebsoft.common.system.service.UserService; -import com.gxwebsoft.shop.service.ShopOrderGoodsService; -import com.gxwebsoft.shop.service.ShopOrderService; -import com.gxwebsoft.shop.entity.ShopOrder; -import com.gxwebsoft.shop.param.ShopOrderParam; -import com.gxwebsoft.common.core.web.ApiResult; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.common.core.web.BatchParam; -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.math.BigDecimal; -import java.util.List; -import java.util.UUID; - -import static com.gxwebsoft.common.core.constants.BalanceConstants.BALANCE_USE; - -/** - * 订单控制器 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Tag(name = "订单管理") -@RestController -@RequestMapping("/api/shop/shop-order") -public class ShopOrderController extends BaseController { - @Resource - private ShopOrderService shopOrderService; - @Resource - private UserService userService; - @Resource - private UserBalanceLogService userBalanceLogService; - @Resource - private ShopOrderGoodsService shopOrderGoodsService; - @Resource - private RedisUtil redisUtil; - - @PreAuthorize("hasAuthority('shop:shopOrder:list')") - @Operation(summary = "分页查询订单") - @GetMapping("/page") - public ApiResult> page(ShopOrderParam param) { - // 使用关联查询 - return success(shopOrderService.pageRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:list')") - @Operation(summary = "查询全部订单") - @GetMapping() - public ApiResult> list(ShopOrderParam param) { - // 使用关联查询 - return success(shopOrderService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:list')") - @Operation(summary = "根据id查询订单") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - // 使用关联查询 - return success(shopOrderService.getByIdRel(id)); - } - - @Operation(summary = "添加订单") - @PostMapping() - public ApiResult save(@RequestBody ShopOrder shopOrder) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopOrder.setUserId(loginUser.getUserId()); - } - if (shopOrderService.save(shopOrder)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:update')") - @Operation(summary = "修改订单") - @PutMapping() - public ApiResult update(@RequestBody ShopOrder shopOrder) { - if (shopOrderService.updateById(shopOrder)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:remove')") - @Operation(summary = "删除订单") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopOrderService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:save')") - @Operation(summary = "批量添加订单") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopOrderService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:update')") - @Operation(summary = "批量修改订单") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopOrderService, "order_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @PreAuthorize("hasAuthority('shop:shopOrder:remove')") - @Operation(summary = "批量删除订单") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopOrderService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "统一下单") - @PostMapping("/createOrder") - public ApiResult createOrder(@RequestBody ShopOrder shopOrder) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - // 封装订单数据 - shopOrder.setUserId(loginUser.getUserId()); - shopOrder.setOrderNo(Long.toString(IdUtil.getSnowflakeNextId())); - shopOrder.setPhone(loginUser.getPhone()); - shopOrder.setOpenid(loginUser.getOpenid()); - shopOrder.setTenantId(loginUser.getTenantId()); - shopOrder.setLoginUser(loginUser); - shopOrder.setRealName(loginUser.getRealName()); - shopOrder.setPayTime(DateUtil.date()); - - // 判断支付方式 - if(shopOrder.getPayType() == null){ - return fail("支付方式不能为空"); - } - // 商品描述(必填) - if (StrUtil.isBlank(shopOrder.getComments())) { - return fail("商品描述(必填)"); - } - // 微信支付 - if(shopOrder.getPayType().equals(1) || shopOrder.getPayType().equals(102)){ - // 微信openid(必填) - if (StrUtil.isBlank(loginUser.getOpenid())) { - return fail("微信openid(必填)"); - } - // 微信支付(商品金额不能为0) - if (shopOrder.getPayType().equals(1) && shopOrder.getPayType().equals(102)) { - if (shopOrder.getTotalPrice().compareTo(BigDecimal.ZERO) == 0) { - return fail("商品金额不能为0"); - } - } - } - if (shopOrderService.save(shopOrder)) { - // 保存订单商品 - if(shopOrder.getOrderProduct() != null){ - shopOrder.getOrderProduct().forEach(item -> { - item.setOrderId(shopOrder.getOrderId()); - item.setTenantId(shopOrder.getTenantId()); - item.setOrderCode("product"); - item.setMerchantId(shopOrder.getMerchantId()); - item.setUserId(shopOrder.getUserId()); - }); - final boolean saveBatch = shopOrderGoodsService.saveBatch(shopOrder.getOrderProduct()); - System.out.println("saveBatch = " + saveBatch); - } - // 调起支付 - return onPay(shopOrder); - } - } - return fail("下单失败"); - } - - private ApiResult onPay(ShopOrder order) { - // TODO 余额支付 - if (order.getPayType().equals(0)) { - final User loginUser = order.getLoginUser(); - if (order.getLoginUser().getBalance().compareTo(order.getTotalPrice()) < 0) { - throw new BusinessException("余额不足"); - } - // 扣除余额 - final BigDecimal subtract = loginUser.getBalance().subtract(order.getTotalPrice()); - loginUser.setBalance(subtract); - final boolean updateUser = userService.updateById(loginUser); - System.out.println("updateUser = " + updateUser); - - // 记录余额明细 - UserBalanceLog userBalanceLog = new UserBalanceLog(); - userBalanceLog.setUserId(loginUser.getUserId()); - userBalanceLog.setTenantId(loginUser.getTenantId()); - userBalanceLog.setScene(BALANCE_USE); - userBalanceLog.setMoney(order.getPayPrice()); - BigDecimal balance = loginUser.getBalance().add(order.getPayPrice()); - userBalanceLog.setBalance(balance); - userBalanceLog.setComments(order.getMerchantName()); - userBalanceLog.setTransactionId(UUID.randomUUID().toString()); - userBalanceLog.setOrderNo(order.getOrderNo()); - final boolean save = userBalanceLogService.save(userBalanceLog); - System.out.println("记录余额明细 = " + save); - - // 支付成功后的事务处理 - shopOrderService.onPaySuccess(order); - return success("支付成功",order); - } - - // TODO 微信统一下单接口 -// if (order.getPayType().equals(1)) { -// // 清空购物车 -// final Set cartIds = order.getGoodsList().stream().map(OrderGoods::getGoodsId).collect(Collectors.toSet()); -// cartService.remove(new LambdaQueryWrapper().eq(Cart::getUserId,order.getUserId()).in(Cart::getGoodsId,cartIds)); -// // 外卖订单 -// if(!order.getMerchantId().equals(0)){ -// cartService.remove(new LambdaQueryWrapper().eq(Cart::getUserId,order.getUserId()).eq(Cart::getType,1)); -// } -// return success("下单成功", orderService.createWxOrder(order)); -// } - -// // TODO 微信Native支付 -// if(order.getPayType().equals(102)){ -// order.setAccessToken(access_token); -// order.setLoginUser(loginUser); -// return success("下单成功", orderService.payByWxNative(order)); -// } - - // TODO 会员卡支付 -// if(order.getPayType().equals(2)){ -// order.setAccessToken(order.getAccessToken()); -// System.out.println("getAccessToken = " + order.getAccessToken()); -// return success("下单成功", orderService.payByUserCard(order)); -// } - return fail("支付失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderGoodsController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopOrderGoodsController.java deleted file mode 100644 index f4f8db4..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderGoodsController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopOrderGoodsService; -import com.gxwebsoft.shop.entity.ShopOrderGoods; -import com.gxwebsoft.shop.param.ShopOrderGoodsParam; -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 21:05:07 - */ -@Tag(name = "商品信息管理") -@RestController -@RequestMapping("/api/shop/shop-order-goods") -public class ShopOrderGoodsController extends BaseController { - @Resource - private ShopOrderGoodsService shopOrderGoodsService; - - @Operation(summary = "分页查询商品信息") - @GetMapping("/page") - public ApiResult> page(ShopOrderGoodsParam param) { - // 使用关联查询 - return success(shopOrderGoodsService.pageRel(param)); - } - - @Operation(summary = "查询全部商品信息") - @GetMapping() - public ApiResult> list(ShopOrderGoodsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopOrderGoodsService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopOrderGoodsService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrderGoods:list')") - @OperationLog - @Operation(summary = "根据id查询商品信息") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopOrderGoodsService.getById(id)); - // 使用关联查询 - //return success(shopOrderGoodsService.getByIdRel(id)); - } - - @Operation(summary = "添加商品信息") - @PostMapping() - public ApiResult save(@RequestBody ShopOrderGoods shopOrderGoods) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopOrderGoods.setUserId(loginUser.getUserId()); - } - if (shopOrderGoodsService.save(shopOrderGoods)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改商品信息") - @PutMapping() - public ApiResult update(@RequestBody ShopOrderGoods shopOrderGoods) { - if (shopOrderGoodsService.updateById(shopOrderGoods)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除商品信息") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopOrderGoodsService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加商品信息") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopOrderGoodsService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改商品信息") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopOrderGoodsService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除商品信息") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopOrderGoodsService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoController.java deleted file mode 100644 index 310eb09..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopOrderInfoService; -import com.gxwebsoft.shop.entity.ShopOrderInfo; -import com.gxwebsoft.shop.param.ShopOrderInfoParam; -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 21:05:07 - */ -@Tag(name = "场地管理") -@RestController -@RequestMapping("/api/shop/shop-order-info") -public class ShopOrderInfoController extends BaseController { - @Resource - private ShopOrderInfoService shopOrderInfoService; - - @Operation(summary = "分页查询场地") - @GetMapping("/page") - public ApiResult> page(ShopOrderInfoParam param) { - // 使用关联查询 - return success(shopOrderInfoService.pageRel(param)); - } - - @Operation(summary = "查询全部场地") - @GetMapping() - public ApiResult> list(ShopOrderInfoParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopOrderInfoService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopOrderInfoService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrderInfo:list')") - @OperationLog - @Operation(summary = "根据id查询场地") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopOrderInfoService.getById(id)); - // 使用关联查询 - //return success(shopOrderInfoService.getByIdRel(id)); - } - - @Operation(summary = "添加场地") - @PostMapping() - public ApiResult save(@RequestBody ShopOrderInfo shopOrderInfo) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopOrderInfo.setUserId(loginUser.getUserId()); - } - if (shopOrderInfoService.save(shopOrderInfo)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改场地") - @PutMapping() - public ApiResult update(@RequestBody ShopOrderInfo shopOrderInfo) { - if (shopOrderInfoService.updateById(shopOrderInfo)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除场地") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopOrderInfoService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加场地") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopOrderInfoService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改场地") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopOrderInfoService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除场地") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopOrderInfoService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoLogController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoLogController.java deleted file mode 100644 index d6a40c4..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopOrderInfoLogController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopOrderInfoLogService; -import com.gxwebsoft.shop.entity.ShopOrderInfoLog; -import com.gxwebsoft.shop.param.ShopOrderInfoLogParam; -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 21:05:07 - */ -@Tag(name = "订单核销管理") -@RestController -@RequestMapping("/api/shop/shop-order-info-log") -public class ShopOrderInfoLogController extends BaseController { - @Resource - private ShopOrderInfoLogService shopOrderInfoLogService; - - @Operation(summary = "分页查询订单核销") - @GetMapping("/page") - public ApiResult> page(ShopOrderInfoLogParam param) { - // 使用关联查询 - return success(shopOrderInfoLogService.pageRel(param)); - } - - @Operation(summary = "查询全部订单核销") - @GetMapping() - public ApiResult> list(ShopOrderInfoLogParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopOrderInfoLogService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopOrderInfoLogService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopOrderInfoLog:list')") - @OperationLog - @Operation(summary = "根据id查询订单核销") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopOrderInfoLogService.getById(id)); - // 使用关联查询 - //return success(shopOrderInfoLogService.getByIdRel(id)); - } - - @Operation(summary = "添加订单核销") - @PostMapping() - public ApiResult save(@RequestBody ShopOrderInfoLog shopOrderInfoLog) { - if (shopOrderInfoLogService.save(shopOrderInfoLog)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改订单核销") - @PutMapping() - public ApiResult update(@RequestBody ShopOrderInfoLog shopOrderInfoLog) { - if (shopOrderInfoLogService.updateById(shopOrderInfoLog)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除订单核销") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopOrderInfoLogService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加订单核销") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopOrderInfoLogService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改订单核销") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopOrderInfoLogService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除订单核销") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopOrderInfoLogService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopSpecController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopSpecController.java deleted file mode 100644 index 6c5fbf4..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopSpecController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopSpecService; -import com.gxwebsoft.shop.entity.ShopSpec; -import com.gxwebsoft.shop.param.ShopSpecParam; -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 21:05:07 - */ -@Tag(name = "规格管理") -@RestController -@RequestMapping("/api/shop/shop-spec") -public class ShopSpecController extends BaseController { - @Resource - private ShopSpecService shopSpecService; - - @Operation(summary = "分页查询规格") - @GetMapping("/page") - public ApiResult> page(ShopSpecParam param) { - // 使用关联查询 - return success(shopSpecService.pageRel(param)); - } - - @Operation(summary = "查询全部规格") - @GetMapping() - public ApiResult> list(ShopSpecParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopSpecService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopSpecService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopSpec:list')") - @OperationLog - @Operation(summary = "根据id查询规格") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopSpecService.getById(id)); - // 使用关联查询 - //return success(shopSpecService.getByIdRel(id)); - } - - @Operation(summary = "添加规格") - @PostMapping() - public ApiResult save(@RequestBody ShopSpec shopSpec) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopSpec.setUserId(loginUser.getUserId()); - } - if (shopSpecService.save(shopSpec)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改规格") - @PutMapping() - public ApiResult update(@RequestBody ShopSpec shopSpec) { - if (shopSpecService.updateById(shopSpec)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除规格") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopSpecService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加规格") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopSpecService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改规格") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopSpecService, "spec_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除规格") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopSpecService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopSpecValueController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopSpecValueController.java deleted file mode 100644 index 01e439f..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopSpecValueController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopSpecValueService; -import com.gxwebsoft.shop.entity.ShopSpecValue; -import com.gxwebsoft.shop.param.ShopSpecValueParam; -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 21:05:07 - */ -@Tag(name = "规格值管理") -@RestController -@RequestMapping("/api/shop/shop-spec-value") -public class ShopSpecValueController extends BaseController { - @Resource - private ShopSpecValueService shopSpecValueService; - - @Operation(summary = "分页查询规格值") - @GetMapping("/page") - public ApiResult> page(ShopSpecValueParam param) { - // 使用关联查询 - return success(shopSpecValueService.pageRel(param)); - } - - @Operation(summary = "查询全部规格值") - @GetMapping() - public ApiResult> list(ShopSpecValueParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopSpecValueService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopSpecValueService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopSpecValue:list')") - @OperationLog - @Operation(summary = "根据id查询规格值") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopSpecValueService.getById(id)); - // 使用关联查询 - //return success(shopSpecValueService.getByIdRel(id)); - } - - @Operation(summary = "添加规格值") - @PostMapping() - public ApiResult save(@RequestBody ShopSpecValue shopSpecValue) { - if (shopSpecValueService.save(shopSpecValue)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改规格值") - @PutMapping() - public ApiResult update(@RequestBody ShopSpecValue shopSpecValue) { - if (shopSpecValueService.updateById(shopSpecValue)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除规格值") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopSpecValueService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加规格值") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopSpecValueService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改规格值") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopSpecValueService, "spec_value_id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除规格值") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopSpecValueService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopUserAddressController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopUserAddressController.java deleted file mode 100644 index 3a7121c..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopUserAddressController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopUserAddressService; -import com.gxwebsoft.shop.entity.ShopUserAddress; -import com.gxwebsoft.shop.param.ShopUserAddressParam; -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 21:05:07 - */ -@Tag(name = "收货地址管理") -@RestController -@RequestMapping("/api/shop/shop-user-address") -public class ShopUserAddressController extends BaseController { - @Resource - private ShopUserAddressService shopUserAddressService; - - @Operation(summary = "分页查询收货地址") - @GetMapping("/page") - public ApiResult> page(ShopUserAddressParam param) { - // 使用关联查询 - return success(shopUserAddressService.pageRel(param)); - } - - @Operation(summary = "查询全部收货地址") - @GetMapping() - public ApiResult> list(ShopUserAddressParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopUserAddressService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopUserAddressService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopUserAddress:list')") - @OperationLog - @Operation(summary = "根据id查询收货地址") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopUserAddressService.getById(id)); - // 使用关联查询 - //return success(shopUserAddressService.getByIdRel(id)); - } - - @Operation(summary = "添加收货地址") - @PostMapping() - public ApiResult save(@RequestBody ShopUserAddress shopUserAddress) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopUserAddress.setUserId(loginUser.getUserId()); - } - if (shopUserAddressService.save(shopUserAddress)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改收货地址") - @PutMapping() - public ApiResult update(@RequestBody ShopUserAddress shopUserAddress) { - if (shopUserAddressService.updateById(shopUserAddress)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除收货地址") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopUserAddressService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加收货地址") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopUserAddressService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改收货地址") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopUserAddressService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除收货地址") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopUserAddressService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopUserCollectionController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopUserCollectionController.java deleted file mode 100644 index 8407128..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopUserCollectionController.java +++ /dev/null @@ -1,120 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopUserCollectionService; -import com.gxwebsoft.shop.entity.ShopUserCollection; -import com.gxwebsoft.shop.param.ShopUserCollectionParam; -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 21:05:07 - */ -@Tag(name = "我的收藏管理") -@RestController -@RequestMapping("/api/shop/shop-user-collection") -public class ShopUserCollectionController extends BaseController { - @Resource - private ShopUserCollectionService shopUserCollectionService; - - @Operation(summary = "分页查询我的收藏") - @GetMapping("/page") - public ApiResult> page(ShopUserCollectionParam param) { - // 使用关联查询 - return success(shopUserCollectionService.pageRel(param)); - } - - @Operation(summary = "查询全部我的收藏") - @GetMapping() - public ApiResult> list(ShopUserCollectionParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopUserCollectionService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopUserCollectionService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopUserCollection:list')") - @OperationLog - @Operation(summary = "根据id查询我的收藏") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopUserCollectionService.getById(id)); - // 使用关联查询 - //return success(shopUserCollectionService.getByIdRel(id)); - } - - @Operation(summary = "添加我的收藏") - @PostMapping() - public ApiResult save(@RequestBody ShopUserCollection shopUserCollection) { - // 记录当前登录用户id - User loginUser = getLoginUser(); - if (loginUser != null) { - shopUserCollection.setUserId(loginUser.getUserId()); - } - if (shopUserCollectionService.save(shopUserCollection)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改我的收藏") - @PutMapping() - public ApiResult update(@RequestBody ShopUserCollection shopUserCollection) { - if (shopUserCollectionService.updateById(shopUserCollection)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除我的收藏") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopUserCollectionService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加我的收藏") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopUserCollectionService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改我的收藏") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopUserCollectionService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除我的收藏") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopUserCollectionService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/controller/ShopWechatDepositController.java b/src/main/java/com/gxwebsoft/shop/controller/ShopWechatDepositController.java deleted file mode 100644 index f86ece2..0000000 --- a/src/main/java/com/gxwebsoft/shop/controller/ShopWechatDepositController.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.gxwebsoft.shop.controller; - -import com.gxwebsoft.common.core.web.BaseController; -import com.gxwebsoft.common.system.entity.User; -import com.gxwebsoft.shop.service.ShopWechatDepositService; -import com.gxwebsoft.shop.entity.ShopWechatDeposit; -import com.gxwebsoft.shop.param.ShopWechatDepositParam; -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 21:05:07 - */ -@Tag(name = "押金管理") -@RestController -@RequestMapping("/api/shop/shop-wechat-deposit") -public class ShopWechatDepositController extends BaseController { - @Resource - private ShopWechatDepositService shopWechatDepositService; - - @Operation(summary = "分页查询押金") - @GetMapping("/page") - public ApiResult> page(ShopWechatDepositParam param) { - // 使用关联查询 - return success(shopWechatDepositService.pageRel(param)); - } - - @Operation(summary = "查询全部押金") - @GetMapping() - public ApiResult> list(ShopWechatDepositParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - return success(shopWechatDepositService.list(page.getOrderWrapper())); - // 使用关联查询 - //return success(shopWechatDepositService.listRel(param)); - } - - @PreAuthorize("hasAuthority('shop:shopWechatDeposit:list')") - @OperationLog - @Operation(summary = "根据id查询押金") - @GetMapping("/{id}") - public ApiResult get(@PathVariable("id") Integer id) { - return success(shopWechatDepositService.getById(id)); - // 使用关联查询 - //return success(shopWechatDepositService.getByIdRel(id)); - } - - @Operation(summary = "添加押金") - @PostMapping() - public ApiResult save(@RequestBody ShopWechatDeposit shopWechatDeposit) { - if (shopWechatDepositService.save(shopWechatDeposit)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "修改押金") - @PutMapping() - public ApiResult update(@RequestBody ShopWechatDeposit shopWechatDeposit) { - if (shopWechatDepositService.updateById(shopWechatDeposit)) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "删除押金") - @DeleteMapping("/{id}") - public ApiResult remove(@PathVariable("id") Integer id) { - if (shopWechatDepositService.removeById(id)) { - return success("删除成功"); - } - return fail("删除失败"); - } - - @Operation(summary = "批量添加押金") - @PostMapping("/batch") - public ApiResult saveBatch(@RequestBody List list) { - if (shopWechatDepositService.saveBatch(list)) { - return success("添加成功"); - } - return fail("添加失败"); - } - - @Operation(summary = "批量修改押金") - @PutMapping("/batch") - public ApiResult removeBatch(@RequestBody BatchParam batchParam) { - if (batchParam.update(shopWechatDepositService, "id")) { - return success("修改成功"); - } - return fail("修改失败"); - } - - @Operation(summary = "批量删除押金") - @DeleteMapping("/batch") - public ApiResult removeBatch(@RequestBody List ids) { - if (shopWechatDepositService.removeByIds(ids)) { - return success("删除成功"); - } - return fail("删除失败"); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopBrand.java b/src/main/java/com/gxwebsoft/shop/entity/ShopBrand.java deleted file mode 100644 index 2631d4d..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopBrand.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopBrand对象", description = "品牌") -public class ShopBrand implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "brand_id", type = IdType.AUTO) - private Integer brandId; - - @Schema(description = "品牌名称") - private String brandName; - - @Schema(description = "图标") - private String image; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopCart.java b/src/main/java/com/gxwebsoft/shop/entity/ShopCart.java deleted file mode 100644 index fd7c496..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopCart.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopCart对象", description = "购物车") -public class ShopCart implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "购物车表ID") - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - @Schema(description = "类型 0商城 1外卖") - private Integer type; - - @Schema(description = "唯一标识") - private String code; - - @Schema(description = "商品ID") - private Long goodsId; - - @Schema(description = "商品规格") - private String spec; - - @Schema(description = "商品价格") - private BigDecimal price; - - @Schema(description = "商品数量") - private Integer cartNum; - - @Schema(description = "单商品合计") - private BigDecimal totalPrice; - - @Schema(description = "0 = 未购买 1 = 已购买") - private Boolean isPay; - - @Schema(description = "是否为立即购买") - private Boolean isNew; - - @Schema(description = "拼团id") - private Integer combinationId; - - @Schema(description = "秒杀产品ID") - private Integer seckillId; - - @Schema(description = "砍价id") - private Integer bargainId; - - @Schema(description = "是否选中") - private Boolean selected; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "用户ID") - private Long userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopCashier.java b/src/main/java/com/gxwebsoft/shop/entity/ShopCashier.java deleted file mode 100644 index 33dcd82..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopCashier.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopCashier对象", description = "收银") -public class ShopCashier implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "收银单ID") - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - @Schema(description = "类型 0商城 1外卖") - private Integer type; - - @Schema(description = "唯一标识") - private String code; - - @Schema(description = "商品ID") - private Long goodsId; - - @Schema(description = "商品名称") - private String name; - - @Schema(description = "商品规格") - private String spec; - - @Schema(description = "商品价格") - private BigDecimal price; - - @Schema(description = "商品数量") - private Integer cartNum; - - @Schema(description = "单商品合计") - private BigDecimal totalPrice; - - @Schema(description = "0 = 未购买 1 = 已购买") - private Boolean isPay; - - @Schema(description = "是否为立即购买") - private Boolean isNew; - - @Schema(description = "是否选中") - private Boolean selected; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户ID") - private Long userId; - - @Schema(description = "收银员ID") - private Long cashierId; - - @Schema(description = "分组取单") - private Long groupId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopCount.java b/src/main/java/com/gxwebsoft/shop/entity/ShopCount.java deleted file mode 100644 index 191fbe1..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopCount.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import java.time.LocalDate; -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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopCount对象", description = "商城销售统计表") -public class ShopCount implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "统计日期") - private LocalDate dateTime; - - @Schema(description = "总销售额") - private BigDecimal totalPrice; - - @Schema(description = "今日销售额") - private BigDecimal todayPrice; - - @Schema(description = "总会员数") - private BigDecimal totalUsers; - - @Schema(description = "今日新增") - private BigDecimal todayUsers; - - @Schema(description = "总订单笔数") - private BigDecimal totalOrders; - - @Schema(description = "今日订单笔数") - private BigDecimal todayOrders; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java deleted file mode 100644 index 441871e..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerApply.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerApply对象", description = "分销商申请记录表") -public class ShopDealerApply implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键ID") - @TableId(value = "apply_id", type = IdType.AUTO) - private Integer applyId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "姓名") - private String realName; - - @Schema(description = "手机号") - private String mobile; - - @Schema(description = "推荐人用户ID") - private Integer refereeId; - - @Schema(description = "申请方式(10需后台审核 20无需审核)") - private Integer applyType; - - @Schema(description = "申请时间") - private Integer applyTime; - - @Schema(description = "审核状态 (10待审核 20审核通过 30驳回)") - private Integer applyStatus; - - @Schema(description = "审核时间") - private Integer auditTime; - - @Schema(description = "驳回原因") - private String rejectReason; - - @Schema(description = "商城ID") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerCapital.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerCapital.java deleted file mode 100644 index 821c235..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerCapital.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerCapital对象", description = "分销商资金明细表") -public class ShopDealerCapital 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 userId; - - @Schema(description = "订单ID") - private Integer orderId; - - @Schema(description = "资金流动类型 (10佣金收入 20提现支出 30转账支出 40转账收入)") - private Integer flowType; - - @Schema(description = "金额") - private BigDecimal money; - - @Schema(description = "描述") - private String describe; - - @Schema(description = "对方用户ID") - private Integer toUserId; - - @Schema(description = "商城ID") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerOrder.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerOrder.java deleted file mode 100644 index 7e97064..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerOrder.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerOrder对象", description = "分销商订单记录表") -public class ShopDealerOrder 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 userId; - - @Schema(description = "订单ID") - private Integer orderId; - - @Schema(description = "订单总金额(不含运费)") - private BigDecimal orderPrice; - - @Schema(description = "分销商用户id(一级)") - private Integer firstUserId; - - @Schema(description = "分销商用户id(二级)") - private Integer secondUserId; - - @Schema(description = "分销商用户id(三级)") - private Integer thirdUserId; - - @Schema(description = "分销佣金(一级)") - private BigDecimal firstMoney; - - @Schema(description = "分销佣金(二级)") - private BigDecimal secondMoney; - - @Schema(description = "分销佣金(三级)") - private BigDecimal thirdMoney; - - @Schema(description = "订单是否失效(0未失效 1已失效)") - private Integer isInvalid; - - @Schema(description = "佣金结算(0未结算 1已结算)") - private Integer isSettled; - - @Schema(description = "结算时间") - private Integer settleTime; - - @Schema(description = "商城ID") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerReferee.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerReferee.java deleted file mode 100644 index f76eeec..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerReferee.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerReferee对象", description = "分销商推荐关系表") -public class ShopDealerReferee 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 dealerId; - - @Schema(description = "用户id(被推荐人)") - private Integer userId; - - @Schema(description = "推荐关系层级(1,2,3)") - private Integer level; - - @Schema(description = "商城ID") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerSetting.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerSetting.java deleted file mode 100644 index 8df4a03..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerSetting.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerSetting对象", description = "分销商设置表") -public class ShopDealerSetting implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "设置项标示") - @TableId(value = "key", type = IdType.AUTO) - private String key; - - @Schema(description = "设置项描述") - private String describe; - - @Schema(description = "设置内容(json格式)") - private String values; - - @Schema(description = "商城ID") - private Integer tenantId; - - @Schema(description = "更新时间") - private Integer updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java deleted file mode 100644 index d5bf1a0..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerUser.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerUser对象", description = "分销商用户记录表") -public class ShopDealerUser 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 userId; - - @Schema(description = "姓名") - private String realName; - - @Schema(description = "手机号") - private String mobile; - - @Schema(description = "支付密码") - private String payPassword; - - @Schema(description = "当前可提现佣金") - private BigDecimal money; - - @Schema(description = "已冻结佣金") - private BigDecimal freezeMoney; - - @Schema(description = "累积提现佣金") - private BigDecimal totalMoney; - - @Schema(description = "推荐人用户ID") - private Integer refereeId; - - @Schema(description = "成员数量(一级)") - private Integer firstNum; - - @Schema(description = "成员数量(二级)") - private Integer secondNum; - - @Schema(description = "成员数量(三级)") - private Integer thirdNum; - - @Schema(description = "专属二维码") - private String qrcode; - - @Schema(description = "是否删除") - private Integer isDelete; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerWithdraw.java b/src/main/java/com/gxwebsoft/shop/entity/ShopDealerWithdraw.java deleted file mode 100644 index ebd243e..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopDealerWithdraw.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopDealerWithdraw对象", description = "分销商提现明细表") -public class ShopDealerWithdraw 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 userId; - - @Schema(description = "提现金额") - private BigDecimal money; - - @Schema(description = "打款方式 (10微信 20支付宝 30银行卡)") - private Integer payType; - - @Schema(description = "支付宝姓名") - private String alipayName; - - @Schema(description = "支付宝账号") - private String alipayAccount; - - @Schema(description = "开户行名称") - private String bankName; - - @Schema(description = "银行开户名") - private String bankAccount; - - @Schema(description = "银行卡号") - private String bankCard; - - @Schema(description = "申请状态 (10待审核 20审核通过 30驳回 40已打款)") - private Integer applyStatus; - - @Schema(description = "审核时间") - private Integer auditTime; - - @Schema(description = "驳回原因") - private String rejectReason; - - @Schema(description = "来源客户端(APP、H5、小程序等)") - private String platform; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoods.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoods.java deleted file mode 100644 index 08ffd42..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoods.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoods对象", description = "商品记录表") -public class ShopGoods implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @TableId(value = "goods_id", type = IdType.AUTO) - private Integer goodsId; - - @Schema(description = "类型 1实物商品 2虚拟商品") - private Integer type; - - @Schema(description = "商品编码") - private String code; - - @Schema(description = "商品标题") - private String goodsName; - - @Schema(description = "商品封面图") - private String image; - - @Schema(description = "商品详情") - private String content; - - @Schema(description = "父级分类ID") - private Integer parentId; - - @Schema(description = "商品分类ID") - private Integer categoryId; - - @Schema(description = "父级分类") - private String parentName; - - @Schema(description = "当前分类") - private String categoryName; - - @Schema(description = "三级分类") - private String childrenName; - - @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 Integer goodsWeight; - - @Schema(description = "消费赚取积分") - private BigDecimal gainIntegral; - - @Schema(description = "推荐") - private Integer recommend; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCategory.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCategory.java deleted file mode 100644 index 19639d8..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCategory.java +++ /dev/null @@ -1,93 +0,0 @@ -package com.gxwebsoft.shop.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 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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsCategory对象", description = "商品分类") -public class ShopGoodsCategory implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "商品分类ID") - @TableId(value = "category_id", type = IdType.AUTO) - private Integer categoryId; - - @Schema(description = "分类标识") - private String categoryCode; - - @Schema(description = "分类名称") - private String title; - - @Schema(description = "类型 0商城分类 1外卖分类") - private Integer type; - - @Schema(description = "分类图片") - private String image; - - @Schema(description = "上级分类ID") - private Integer parentId; - - @Schema(description = "路由/链接地址") - private String path; - - @Schema(description = "组件路径") - private String component; - - @Schema(description = "绑定的页面") - private Integer pageId; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "商品数量") - private Integer count; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)") - private Integer hide; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "是否显示在首页") - private Integer showIndex; - - @Schema(description = "商铺ID") - private Long merchantId; - - @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; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsComment.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsComment.java deleted file mode 100644 index 297609d..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsComment.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.gxwebsoft.shop.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 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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsComment对象", description = "评论表") -public class ShopGoodsComment 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 uid; - - @Schema(description = "订单ID") - private Integer oid; - - @Schema(description = "商品唯一id") - private String unique; - - @Schema(description = "商品id") - private Integer goodsId; - - @Schema(description = "某种商品类型(普通商品、秒杀商品)") - private String replyType; - - @Schema(description = "商品分数") - private Boolean goodsScore; - - @Schema(description = "服务分数") - private Boolean serviceScore; - - @Schema(description = "评论内容") - private String comment; - - @Schema(description = "评论图片") - private String pics; - - @Schema(description = "管理员回复内容") - private String merchantReplyContent; - - @Schema(description = "管理员回复时间") - private Integer merchantReplyTime; - - @Schema(description = "0未删除1已删除") - private Boolean isDel; - - @Schema(description = "0未回复1已回复") - private Boolean isReply; - - @Schema(description = "用户名称") - private String nickname; - - @Schema(description = "用户头像") - private String avatar; - - @Schema(description = "商品规格属性值,多个,号隔开") - private String sku; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "注册时间") - private Date createTime; - - @Schema(description = "更新时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCoupon.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCoupon.java deleted file mode 100644 index 3dee8dd..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsCoupon.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.gxwebsoft.shop.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 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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsCoupon对象", description = "商品优惠券表") -public class ShopGoodsCoupon implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "商品id") - private Integer goodsId; - - @Schema(description = "优惠劵id") - private Integer issueCouponId; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "注册时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsLog.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsLog.java deleted file mode 100644 index cc84867..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsLog.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsLog对象", description = "商品日志表") -public class ShopGoodsLog implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "统计ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "类型visit,cart,order,pay,collect,refund") - private String type; - - @Schema(description = "商品ID") - private Integer goodsId; - - @Schema(description = "是否浏览") - private Boolean visitNum; - - @Schema(description = "加入购物车数量") - private Integer cartNum; - - @Schema(description = "下单数量") - private Integer orderNum; - - @Schema(description = "支付数量") - private Integer payNum; - - @Schema(description = "支付金额") - private BigDecimal payPrice; - - @Schema(description = "商品成本价") - private BigDecimal costPrice; - - @Schema(description = "支付用户ID") - private Integer payUid; - - @Schema(description = "退款数量") - private Integer refundNum; - - @Schema(description = "退款金额") - private BigDecimal refundPrice; - - @Schema(description = "收藏") - private Boolean collectNum; - - @Schema(description = "排序(数字越小越靠前)") - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - private Integer status; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "注册时间") - private Date createTime; - - @Schema(description = "修改时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsRelation.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsRelation.java deleted file mode 100644 index d205e93..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsRelation.java +++ /dev/null @@ -1,49 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsRelation对象", description = "商品点赞和收藏表") -public class ShopGoodsRelation 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 userId; - - @Schema(description = "商品ID") - private Integer goodsId; - - @Schema(description = "类型(收藏(collect)、点赞(like))") - private String type; - - @Schema(description = "某种类型的商品(普通商品、秒杀商品)") - private String category; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "更新时间") - private Date updateTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSku.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSku.java deleted file mode 100644 index a41f36c..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSku.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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; - -/** - * 商品sku列表 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsSku对象", description = "商品sku列表") -public class ShopGoodsSku 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 goodsId; - - @Schema(description = "商品属性索引值 (attr_value|attr_value[|....])") - private String sku; - - @Schema(description = "商品图片") - private String image; - - @Schema(description = "商品价格") - private BigDecimal price; - - @Schema(description = "市场价格") - private BigDecimal salePrice; - - @Schema(description = "成本价") - private BigDecimal cost; - - @Schema(description = "库存") - private Integer stock; - - @Schema(description = "sku编码") - private String skuNo; - - @Schema(description = "商品条码") - private String barCode; - - @Schema(description = "重量") - private BigDecimal weight; - - @Schema(description = "体积") - private BigDecimal volume; - - @Schema(description = "唯一值") - private String uuid; - - @Schema(description = "状态, 0正常, 1异常") - private Integer status; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSpec.java b/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSpec.java deleted file mode 100644 index 88297bd..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopGoodsSpec.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopGoodsSpec对象", description = "商品多规格") -public class ShopGoodsSpec implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "商品ID") - private Integer goodsId; - - @Schema(description = "规格ID") - private Integer specId; - - @Schema(description = "规格名称") - private String specName; - - @Schema(description = "规格值") - private String specValue; - - @Schema(description = "活动类型 0=商品,1=秒杀,2=砍价,3=拼团") - private Boolean type; - - @Schema(description = "租户id") - private Integer tenantId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchant.java b/src/main/java/com/gxwebsoft/shop/entity/ShopMerchant.java deleted file mode 100644 index 6ce9c8c..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchant.java +++ /dev/null @@ -1,143 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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 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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopMerchant对象", description = "商户") -public class ShopMerchant implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "merchant_id", type = IdType.AUTO) - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "商户编号") - private String merchantCode; - - @Schema(description = "商户类型") - private Integer type; - - @Schema(description = "商户图标") - private String image; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "商户姓名") - private String realName; - - @Schema(description = "店铺类型") - private String shopType; - - @Schema(description = "项目分类") - private String itemType; - - @Schema(description = "商户分类") - private String category; - - @Schema(description = "商户经营分类") - private Integer merchantCategoryId; - - @Schema(description = "商户分类") - private String merchantCategoryTitle; - - @Schema(description = "经纬度") - private String lngAndLat; - - private String lng; - - private String lat; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "详细地址") - private String address; - - @Schema(description = "手续费") - private BigDecimal commission; - - @Schema(description = "关键字") - private String keywords; - - @Schema(description = "资质图片") - private String files; - - @Schema(description = "营业时间") - private String businessTime; - - @Schema(description = "文章内容") - private String content; - - @Schema(description = "每小时价格") - private BigDecimal price; - - @Schema(description = "是否自营") - private Integer ownStore; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "是否需要审核") - private Integer goodsReview; - - @Schema(description = "管理入口") - private String adminUrl; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "所有人") - private Integer userId; - - @Schema(description = "是否删除, 0否, 1是") - @TableLogic - private Integer deleted; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantAccount.java b/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantAccount.java deleted file mode 100644 index 1e6c15c..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantAccount.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopMerchantAccount对象", description = "商户账号") -public class ShopMerchantAccount implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "真实姓名") - private String realName; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "角色ID") - private Integer roleId; - - @Schema(description = "角色名称") - private String roleName; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantApply.java b/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantApply.java deleted file mode 100644 index 40fba56..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantApply.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopMerchantApply对象", description = "商户入驻申请") -public class ShopMerchantApply implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "apply_id", type = IdType.AUTO) - private Integer applyId; - - @Schema(description = "类型") - private Integer type; - - @Schema(description = "店铺类型") - private String shopType; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "商户图标") - private String image; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "商户姓名") - private String realName; - - @Schema(description = "社会信用代码") - private String merchantCode; - - @Schema(description = "身份证号码") - private String idCard; - - @Schema(description = "身份证正面") - private String sfz1; - - @Schema(description = "身份证反面") - private String sfz2; - - @Schema(description = "营业执照") - private String yyzz; - - @Schema(description = "行业父级分类") - private Integer parentId; - - @Schema(description = "行业分类ID") - private Integer categoryId; - - @Schema(description = "行业分类") - private String category; - - @Schema(description = "手续费") - private BigDecimal commission; - - @Schema(description = "关键字") - private String keywords; - - @Schema(description = "资质图片") - private String files; - - @Schema(description = "所有人") - private Integer userId; - - @Schema(description = "是否自营") - private Integer ownStore; - - @Schema(description = "是否推荐") - private Integer recommend; - - @Schema(description = "是否需要审核") - private Integer goodsReview; - - @Schema(description = "工作负责人") - private String name2; - - @Schema(description = "驳回原因") - private String reason; - - @Schema(description = "审核完成时间") - private Date completedTime; - - @Schema(description = "审核状态") - private Boolean checkStatus; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "应用名称") - @TableField(exist = false) - private String tenantName; - - @Schema(description = "应用图标") - @TableField(exist = false) - private String logo; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantCount.java b/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantCount.java deleted file mode 100644 index ac43267..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantCount.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopMerchantCount对象", description = "门店销售统计表") -public class ShopMerchantCount implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "店铺名称") - private String name; - - @Schema(description = "店铺说明") - private String comments; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantType.java b/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantType.java deleted file mode 100644 index e24c83b..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopMerchantType.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopMerchantType对象", description = "商户类型") -public class ShopMerchantType implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "店铺类型") - private String name; - - @Schema(description = "店铺入驻条件") - private String comments; - - @Schema(description = "状态") - private Integer status; - - @Schema(description = "排序号") - private Integer sortNumber; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopOrder.java b/src/main/java/com/gxwebsoft/shop/entity/ShopOrder.java deleted file mode 100644 index a751aab..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopOrder.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -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.List; - -import com.gxwebsoft.common.system.entity.User; -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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopOrder对象", description = "订单") -public class ShopOrder implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "订单号") - @TableId(value = "order_id", type = IdType.AUTO) - private Integer orderId; - - @Schema(description = "订单编号") - private String orderNo; - - @Schema(description = "订单类型,0商城订单 1预定订单 2会员卡") - private Integer type; - - @Schema(description = "下单渠道,0小程序预定 1俱乐部训练场 3活动订场") - private Integer channel; - - @Schema(description = "微信支付订单号") - private String transactionId; - - @Schema(description = "微信退款订单号") - private String refundOrder; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "商户名称") - @TableField(exist = false) - private String merchantName; - - @Schema(description = "商户编号") - @TableField(exist = false) - private String merchantCode; - - @Schema(description = "使用的优惠券id") - private Integer couponId; - - @Schema(description = "使用的会员卡id") - private String cardId; - - @Schema(description = "关联管理员id") - private Integer adminId; - - @Schema(description = "核销管理员id") - private Integer confirmId; - - @Schema(description = "IC卡号") - private String icCard; - - @Schema(description = "真实姓名") - private String realName; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "订单总额") - private BigDecimal totalPrice; - - @Schema(description = "减少的金额,使用VIP会员折扣、优惠券抵扣、优惠券折扣后减去的价格") - private BigDecimal reducePrice; - - @Schema(description = "实际付款") - private BigDecimal payPrice; - - @Schema(description = "用于统计") - private BigDecimal price; - - @Schema(description = "价钱,用于积分赠送") - private BigDecimal money; - - @Schema(description = "退款金额") - private BigDecimal refundMoney; - - @Schema(description = "教练价格") - private BigDecimal coachPrice; - - @Schema(description = "购买数量") - private Integer totalNum; - - @Schema(description = "教练id") - private Integer coachId; - - @Schema(description = "0余额支付, 1微信支付,102微信Native,2会员卡支付,3支付宝,4现金,5POS机,6VIP月卡,7VIP年卡,8VIP次卡,9IC月卡,10IC年卡,11IC次卡,12免费,13VIP充值卡,14IC充值卡,15积分支付,16VIP季卡,17IC季卡") - private Integer payType; - - @Schema(description = "0未付款,1已付款") - private Boolean payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - private Integer orderStatus; - - @Schema(description = "优惠类型:0无、1抵扣优惠券、2折扣优惠券、3、VIP月卡、4VIP年卡,5VIP次卡、6VIP会员卡、7IC月卡、8IC年卡、9IC次卡、10IC会员卡、11免费订单、12VIP充值卡、13IC充值卡、14VIP季卡、15IC季卡") - private Integer couponType; - - @Schema(description = "优惠说明") - private String couponDesc; - - @Schema(description = "二维码地址,保存订单号,支付成功后才生成") - private String qrcode; - - @Schema(description = "vip月卡年卡、ic月卡年卡回退次数") - private Integer returnNum; - - @Schema(description = "vip充值回退金额") - private BigDecimal returnMoney; - - @Schema(description = "预约详情开始时间数组") - private String startTime; - - @Schema(description = "是否已开具发票:0未开发票,1已开发票,2不能开具发票") - private Boolean isInvoice; - - @Schema(description = "发票流水号") - private String invoiceNo; - - @Schema(description = "支付时间") - private Date payTime; - - @Schema(description = "退款时间") - private Date refundTime; - - @Schema(description = "申请退款时间") - private Date refundApplyTime; - - @Schema(description = "过期时间") - private Date expirationTime; - - @Schema(description = "对账情况:0=未对账;1=已对账;3=已对账,金额对不上;4=未查询到该订单") - private Integer checkBill; - - @Schema(description = "订单是否已结算(0未结算 1已结算)") - private Integer isSettled; - - @Schema(description = "系统版本号 0当前版本 value=其他版本") - private Integer version; - - @Schema(description = "用户id") - private Integer userId; - - @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 updateTime; - - @Schema(description = "创建时间") - private Date createTime; - - @Schema(description = "微信OPENID,用于微信支付") - @TableField(exist = false) - private String openid; - - @Schema(description = "当前登录用户") - @TableField(exist = false) - private User loginUser; - - @Schema(description = "订单商品信息") - @TableField(exist = false) - private List orderProduct; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderCartInfo.java b/src/main/java/com/gxwebsoft/shop/entity/ShopOrderCartInfo.java deleted file mode 100644 index e3a0775..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderCartInfo.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopOrderCartInfo对象", description = "订单购物详情表") -public class ShopOrderCartInfo implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Long id; - - @Schema(description = "订单id") - private Long oid; - - @Schema(description = "订单号") - private String orderId; - - @Schema(description = "购物车id") - private Long cartId; - - @Schema(description = "商品ID") - private Long productId; - - @Schema(description = "购买东西的详细信息") - private String cartInfo; - - @Schema(description = "唯一id") - private String unique; - - @Schema(description = "是否能售后0不能1能") - private Boolean isAfterSales; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderGoods.java b/src/main/java/com/gxwebsoft/shop/entity/ShopOrderGoods.java deleted file mode 100644 index 4795767..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderGoods.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import java.time.LocalDate; - -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import java.time.LocalTime; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopOrderGoods对象", description = "商品信息") -public class ShopOrderGoods 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 orderId; - - @Schema(description = "订单标识") - private String orderCode; - - @Schema(description = "关联商户ID") - private Long merchantId; - - @Schema(description = "商户名称") - @TableField(exist = false) - private String merchantName; - - @Schema(description = "商品封面图") - private String image; - - @Schema(description = "关联商品id") - private Integer goodsId; - - @Schema(description = "商品名称") - private String goodsName; - - @Schema(description = "单价") - private BigDecimal price; - - @Schema(description = "购买数量") - private Integer totalNum; - - @Schema(description = "0 未付款 1已付款,2无需付款或占用状态") - private Integer payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - private Integer orderStatus; - - @Schema(description = "是否免费:0收费、1免费") - private Boolean isFree; - - @Schema(description = "系统版本 0当前版本 其他版本") - private Integer version; - - @Schema(description = "预约时间段") - private String timePeriod; - - @Schema(description = "预定日期") - private LocalDate dateTime; - - @Schema(description = "开场时间") - private LocalTime startTime; - - @Schema(description = "结束时间") - private LocalTime endTime; - - @Schema(description = "毫秒时间戳") - private Long timeFlag; - - @Schema(description = "过期时间") - private Date expirationTime; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户id") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "更新时间") - private Date updateTime; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfo.java b/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfo.java deleted file mode 100644 index 5547101..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfo.java +++ /dev/null @@ -1,118 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import java.time.LocalDate; -import com.baomidou.mybatisplus.annotation.TableId; -import java.time.LocalTime; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopOrderInfo对象", description = "场地") -public class ShopOrderInfo 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 orderId; - - @Schema(description = "组合数据:日期+时间段+场馆id+场地id") - private String orderCode; - - @Schema(description = "关联商户ID") - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "关联场地id") - private Integer fieldId; - - @Schema(description = "场地名称") - private String fieldName; - - @Schema(description = "单价") - private BigDecimal price; - - @Schema(description = "儿童价") - private BigDecimal childrenPrice; - - @Schema(description = "成人人数") - private Integer adultNum; - - @Schema(description = "儿童人数") - private Integer childrenNum; - - @Schema(description = "已核销的成人票数") - private Integer adultNumUse; - - @Schema(description = "已核销的儿童票数") - private Integer childrenNumUse; - - @Schema(description = "0 未付款 1已付款,2无需付款或占用状态") - private Integer payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - private Integer orderStatus; - - @Schema(description = "是否免费:0收费、1免费") - private Boolean isFree; - - @Schema(description = "是否支持儿童票:0不支持、1支持") - private Boolean isChildren; - - @Schema(description = "系统版本 0当前版本 其他版本") - private Integer version; - - @Schema(description = "预订类型:0全场,1半场") - private Boolean isHalf; - - @Schema(description = "预约时间段") - private String timePeriod; - - @Schema(description = "预定日期") - private LocalDate dateTime; - - @Schema(description = "开场时间") - private LocalTime startTime; - - @Schema(description = "结束时间") - private LocalTime endTime; - - @Schema(description = "毫秒时间戳") - private Long timeFlag; - - @Schema(description = "过期时间") - private Date expirationTime; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户id") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "更新时间") - private Date updateTime; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfoLog.java b/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfoLog.java deleted file mode 100644 index 9cbe042..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopOrderInfoLog.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopOrderInfoLog对象", description = "订单核销") -public class ShopOrderInfoLog implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "关联订单表id") - private Integer orderId; - - @Schema(description = "关联商户ID") - private Long merchantId; - - @Schema(description = "关联场地id") - private Integer fieldId; - - @Schema(description = "核销数量") - private Boolean useNum; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "创建时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopSpec.java b/src/main/java/com/gxwebsoft/shop/entity/ShopSpec.java deleted file mode 100644 index 010b8d2..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopSpec.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopSpec对象", description = "规格") -public class ShopSpec 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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopSpecValue.java b/src/main/java/com/gxwebsoft/shop/entity/ShopSpecValue.java deleted file mode 100644 index 2f49825..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopSpecValue.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopSpecValue对象", description = "规格值") -public class ShopSpecValue 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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopUserAddress.java b/src/main/java/com/gxwebsoft/shop/entity/ShopUserAddress.java deleted file mode 100644 index 5ac3b78..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopUserAddress.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopUserAddress对象", description = "收货地址") -public class ShopUserAddress implements Serializable { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键ID") - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "姓名") - private String name; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "收货地址") - private String address; - - @Schema(description = "1先生 2女士") - private Integer gender; - - @Schema(description = "家、公司、学校") - private String type; - - @Schema(description = "默认收货地址") - private Boolean isDefault; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "注册时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopUserCollection.java b/src/main/java/com/gxwebsoft/shop/entity/ShopUserCollection.java deleted file mode 100644 index 2a0206b..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopUserCollection.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopUserCollection对象", description = "我的收藏") -public class ShopUserCollection 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 tid; - - @Schema(description = "用户ID") - private Integer userId; - - @Schema(description = "租户id") - private Integer tenantId; - - @Schema(description = "注册时间") - private Date createTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/entity/ShopWechatDeposit.java b/src/main/java/com/gxwebsoft/shop/entity/ShopWechatDeposit.java deleted file mode 100644 index 9acd00a..0000000 --- a/src/main/java/com/gxwebsoft/shop/entity/ShopWechatDeposit.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.gxwebsoft.shop.entity; - -import java.math.BigDecimal; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@Schema(name = "ShopWechatDeposit对象", description = "押金") -public class ShopWechatDeposit implements Serializable { - private static final long serialVersionUID = 1L; - - @TableId(value = "id", type = IdType.AUTO) - private Integer id; - - @Schema(description = "订单id") - private Integer oid; - - @Schema(description = "用户id") - private Integer uid; - - @Schema(description = "场地订单号") - private String orderNum; - - @Schema(description = "付款订单号") - private String wechatOrder; - - @Schema(description = "退款订单号 ") - private String wechatReturn; - - @Schema(description = "场馆名称") - private String siteName; - - @Schema(description = "微信昵称") - private String username; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "物品名称") - private String name; - - @Schema(description = "押金金额") - private BigDecimal price; - - @Schema(description = "押金状态,1已付款,2未付款,已退押金") - private Boolean status; - - @Schema(description = "创建时间") - private Integer createTime; - - @Schema(description = "租户id") - private Integer tenantId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopBrandMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopBrandMapper.java deleted file mode 100644 index 69478e9..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopBrandMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopBrand; -import com.gxwebsoft.shop.param.ShopBrandParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 品牌Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopBrandMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopBrandParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopBrandParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopCartMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopCartMapper.java deleted file mode 100644 index ed9155f..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopCartMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopCart; -import com.gxwebsoft.shop.param.ShopCartParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 购物车Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCartMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopCartParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopCartParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopCashierMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopCashierMapper.java deleted file mode 100644 index 995a990..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopCashierMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopCashier; -import com.gxwebsoft.shop.param.ShopCashierParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 收银Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCashierMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopCashierParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopCashierParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopCountMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopCountMapper.java deleted file mode 100644 index 50969bd..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopCountMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopCount; -import com.gxwebsoft.shop.param.ShopCountParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商城销售统计表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCountMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopCountParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopCountParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerApplyMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerApplyMapper.java deleted file mode 100644 index 1e808c1..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerApplyMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerApply; -import com.gxwebsoft.shop.param.ShopDealerApplyParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商申请记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopDealerApplyMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerApplyParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerApplyParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerCapitalMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerCapitalMapper.java deleted file mode 100644 index a32a856..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerCapitalMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerCapital; -import com.gxwebsoft.shop.param.ShopDealerCapitalParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商资金明细表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerCapitalMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerCapitalParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerCapitalParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerOrderMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerOrderMapper.java deleted file mode 100644 index c1be786..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerOrderMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerOrder; -import com.gxwebsoft.shop.param.ShopDealerOrderParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商订单记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerOrderMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerOrderParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerOrderParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerRefereeMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerRefereeMapper.java deleted file mode 100644 index 5a6189a..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerRefereeMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerReferee; -import com.gxwebsoft.shop.param.ShopDealerRefereeParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商推荐关系表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerRefereeMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerRefereeParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerRefereeParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerSettingMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerSettingMapper.java deleted file mode 100644 index aeafbc8..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerSettingMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerSetting; -import com.gxwebsoft.shop.param.ShopDealerSettingParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商设置表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerSettingMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerSettingParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerSettingParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerUserMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerUserMapper.java deleted file mode 100644 index 3e159f0..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerUserMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerUser; -import com.gxwebsoft.shop.param.ShopDealerUserParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商用户记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerUserMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerUserParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerUserParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerWithdrawMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerWithdrawMapper.java deleted file mode 100644 index 3f99309..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopDealerWithdrawMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopDealerWithdraw; -import com.gxwebsoft.shop.param.ShopDealerWithdrawParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 分销商提现明细表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerWithdrawMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopDealerWithdrawParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopDealerWithdrawParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCategoryMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCategoryMapper.java deleted file mode 100644 index dfe0b5c..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCategoryMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsCategory; -import com.gxwebsoft.shop.param.ShopGoodsCategoryParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品分类Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCategoryMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsCategoryParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsCategoryParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCommentMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCommentMapper.java deleted file mode 100644 index 625a512..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCommentMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsComment; -import com.gxwebsoft.shop.param.ShopGoodsCommentParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 评论表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCommentMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsCommentParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsCommentParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCouponMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCouponMapper.java deleted file mode 100644 index 7a31e54..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsCouponMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsCoupon; -import com.gxwebsoft.shop.param.ShopGoodsCouponParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品优惠券表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCouponMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsCouponParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsCouponParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsLogMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsLogMapper.java deleted file mode 100644 index 7336ec3..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsLogMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsLog; -import com.gxwebsoft.shop.param.ShopGoodsLogParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品日志表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsLogMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsLogParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsLogParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsMapper.java deleted file mode 100644 index 004f5e3..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoods; -import com.gxwebsoft.shop.param.ShopGoodsParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品记录表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsRelationMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsRelationMapper.java deleted file mode 100644 index 8c8b46d..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsRelationMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsRelation; -import com.gxwebsoft.shop.param.ShopGoodsRelationParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品点赞和收藏表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsRelationMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsRelationParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsRelationParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSkuMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSkuMapper.java deleted file mode 100644 index e49f676..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSkuMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsSku; -import com.gxwebsoft.shop.param.ShopGoodsSkuParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品sku列表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsSkuMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsSkuParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsSkuParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSpecMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSpecMapper.java deleted file mode 100644 index e308379..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopGoodsSpecMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopGoodsSpec; -import com.gxwebsoft.shop.param.ShopGoodsSpecParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品多规格Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsSpecMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopGoodsSpecParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopGoodsSpecParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantAccountMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantAccountMapper.java deleted file mode 100644 index 3978a7c..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantAccountMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopMerchantAccount; -import com.gxwebsoft.shop.param.ShopMerchantAccountParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商户账号Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantAccountMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopMerchantAccountParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopMerchantAccountParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantApplyMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantApplyMapper.java deleted file mode 100644 index 342f9aa..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantApplyMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.param.ShopMerchantApplyParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商户入驻申请Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantApplyMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopMerchantApplyParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopMerchantApplyParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantCountMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantCountMapper.java deleted file mode 100644 index fd5b803..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantCountMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopMerchantCount; -import com.gxwebsoft.shop.param.ShopMerchantCountParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 门店销售统计表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantCountMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopMerchantCountParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopMerchantCountParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantMapper.java deleted file mode 100644 index f649071..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopMerchant; -import com.gxwebsoft.shop.param.ShopMerchantParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商户Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopMerchantParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopMerchantParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantTypeMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantTypeMapper.java deleted file mode 100644 index 82fcba6..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopMerchantTypeMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopMerchantType; -import com.gxwebsoft.shop.param.ShopMerchantTypeParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商户类型Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantTypeMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopMerchantTypeParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopMerchantTypeParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderCartInfoMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderCartInfoMapper.java deleted file mode 100644 index 18b3964..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderCartInfoMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopOrderCartInfo; -import com.gxwebsoft.shop.param.ShopOrderCartInfoParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 订单购物详情表Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderCartInfoMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopOrderCartInfoParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopOrderCartInfoParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderGoodsMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderGoodsMapper.java deleted file mode 100644 index 5b83f56..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderGoodsMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopOrderGoods; -import com.gxwebsoft.shop.param.ShopOrderGoodsParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 商品信息Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderGoodsMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopOrderGoodsParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopOrderGoodsParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoLogMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoLogMapper.java deleted file mode 100644 index 24dffaa..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoLogMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopOrderInfoLog; -import com.gxwebsoft.shop.param.ShopOrderInfoLogParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 订单核销Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderInfoLogMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopOrderInfoLogParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopOrderInfoLogParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoMapper.java deleted file mode 100644 index 65191c2..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderInfoMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopOrderInfo; -import com.gxwebsoft.shop.param.ShopOrderInfoParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 场地Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderInfoMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopOrderInfoParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopOrderInfoParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderMapper.java deleted file mode 100644 index 5f2e71f..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopOrderMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopOrder; -import com.gxwebsoft.shop.param.ShopOrderParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 订单Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopOrderParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopOrderParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecMapper.java deleted file mode 100644 index f6b70b4..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopSpec; -import com.gxwebsoft.shop.param.ShopSpecParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 规格Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopSpecMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopSpecParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopSpecParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecValueMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecValueMapper.java deleted file mode 100644 index 2b4a7eb..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopSpecValueMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopSpecValue; -import com.gxwebsoft.shop.param.ShopSpecValueParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 规格值Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopSpecValueMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopSpecValueParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopSpecValueParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopUserAddressMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopUserAddressMapper.java deleted file mode 100644 index ab65238..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopUserAddressMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopUserAddress; -import com.gxwebsoft.shop.param.ShopUserAddressParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 收货地址Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopUserAddressMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopUserAddressParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopUserAddressParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopUserCollectionMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopUserCollectionMapper.java deleted file mode 100644 index 95abe93..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopUserCollectionMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopUserCollection; -import com.gxwebsoft.shop.param.ShopUserCollectionParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 我的收藏Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopUserCollectionMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopUserCollectionParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopUserCollectionParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/ShopWechatDepositMapper.java b/src/main/java/com/gxwebsoft/shop/mapper/ShopWechatDepositMapper.java deleted file mode 100644 index 9e9b28e..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/ShopWechatDepositMapper.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.mapper; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.gxwebsoft.shop.entity.ShopWechatDeposit; -import com.gxwebsoft.shop.param.ShopWechatDepositParam; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 押金Mapper - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopWechatDepositMapper extends BaseMapper { - - /** - * 分页查询 - * - * @param page 分页对象 - * @param param 查询参数 - * @return List - */ - List selectPageRel(@Param("page") IPage page, - @Param("param") ShopWechatDepositParam param); - - /** - * 查询全部 - * - * @param param 查询参数 - * @return List - */ - List selectListRel(@Param("param") ShopWechatDepositParam param); - -} diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopBrandMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopBrandMapper.xml deleted file mode 100644 index f0dceb0..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopBrandMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_brand a - - - AND a.brand_id = #{param.brandId} - - - AND a.brand_name LIKE CONCAT('%', #{param.brandName}, '%') - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCartMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCartMapper.xml deleted file mode 100644 index d396e1c..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCartMapper.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_cart a - - - AND a.id = #{param.id} - - - AND a.type = #{param.type} - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.goods_id LIKE CONCAT('%', #{param.goodsId}, '%') - - - AND a.spec LIKE CONCAT('%', #{param.spec}, '%') - - - AND a.price = #{param.price} - - - AND a.cart_num = #{param.cartNum} - - - AND a.total_price = #{param.totalPrice} - - - AND a.is_pay = #{param.isPay} - - - AND a.is_new = #{param.isNew} - - - AND a.combination_id = #{param.combinationId} - - - AND a.seckill_id = #{param.seckillId} - - - AND a.bargain_id = #{param.bargainId} - - - AND a.selected = #{param.selected} - - - AND a.merchant_id LIKE CONCAT('%', #{param.merchantId}, '%') - - - AND a.user_id LIKE CONCAT('%', #{param.userId}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCashierMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCashierMapper.xml deleted file mode 100644 index d787fc5..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCashierMapper.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_cashier a - - - AND a.id = #{param.id} - - - AND a.type = #{param.type} - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.goods_id LIKE CONCAT('%', #{param.goodsId}, '%') - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.spec LIKE CONCAT('%', #{param.spec}, '%') - - - AND a.price = #{param.price} - - - AND a.cart_num = #{param.cartNum} - - - AND a.total_price = #{param.totalPrice} - - - AND a.is_pay = #{param.isPay} - - - AND a.is_new = #{param.isNew} - - - AND a.selected = #{param.selected} - - - AND a.merchant_id LIKE CONCAT('%', #{param.merchantId}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id LIKE CONCAT('%', #{param.userId}, '%') - - - AND a.cashier_id LIKE CONCAT('%', #{param.cashierId}, '%') - - - AND a.group_id LIKE CONCAT('%', #{param.groupId}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCountMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCountMapper.xml deleted file mode 100644 index 8ec702a..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopCountMapper.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_count a - - - AND a.id = #{param.id} - - - AND a.date_time LIKE CONCAT('%', #{param.dateTime}, '%') - - - AND a.total_price = #{param.totalPrice} - - - AND a.today_price = #{param.todayPrice} - - - AND a.total_users = #{param.totalUsers} - - - AND a.today_users = #{param.todayUsers} - - - AND a.total_orders = #{param.totalOrders} - - - AND a.today_orders = #{param.todayOrders} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml deleted file mode 100644 index a0c091f..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerApplyMapper.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_apply a - - - AND a.apply_id = #{param.applyId} - - - AND a.user_id = #{param.userId} - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.mobile LIKE CONCAT('%', #{param.mobile}, '%') - - - AND a.referee_id = #{param.refereeId} - - - AND a.apply_type = #{param.applyType} - - - AND a.apply_time = #{param.applyTime} - - - AND a.apply_status = #{param.applyStatus} - - - AND a.audit_time = #{param.auditTime} - - - AND a.reject_reason LIKE CONCAT('%', #{param.rejectReason}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerCapitalMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerCapitalMapper.xml deleted file mode 100644 index c835794..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerCapitalMapper.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_capital a - - - AND a.id = #{param.id} - - - AND a.user_id = #{param.userId} - - - AND a.order_id = #{param.orderId} - - - AND a.flow_type = #{param.flowType} - - - AND a.money = #{param.money} - - - AND a.describe LIKE CONCAT('%', #{param.describe}, '%') - - - AND a.to_user_id = #{param.toUserId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerOrderMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerOrderMapper.xml deleted file mode 100644 index 26690ee..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerOrderMapper.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_order a - - - AND a.id = #{param.id} - - - AND a.user_id = #{param.userId} - - - AND a.order_id = #{param.orderId} - - - AND a.order_price = #{param.orderPrice} - - - AND a.first_user_id = #{param.firstUserId} - - - AND a.second_user_id = #{param.secondUserId} - - - AND a.third_user_id = #{param.thirdUserId} - - - AND a.first_money = #{param.firstMoney} - - - AND a.second_money = #{param.secondMoney} - - - AND a.third_money = #{param.thirdMoney} - - - AND a.is_invalid = #{param.isInvalid} - - - AND a.is_settled = #{param.isSettled} - - - AND a.settle_time = #{param.settleTime} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerRefereeMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerRefereeMapper.xml deleted file mode 100644 index 749ac6d..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerRefereeMapper.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_referee a - - - AND a.id = #{param.id} - - - AND a.dealer_id = #{param.dealerId} - - - AND a.user_id = #{param.userId} - - - AND a.level = #{param.level} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerSettingMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerSettingMapper.xml deleted file mode 100644 index fbe1075..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerSettingMapper.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_setting a - - - AND a.key = #{param.key} - - - AND a.describe LIKE CONCAT('%', #{param.describe}, '%') - - - AND a.values LIKE CONCAT('%', #{param.values}, '%') - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml deleted file mode 100644 index 6101425..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerUserMapper.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_user a - - - AND a.id = #{param.id} - - - AND a.user_id = #{param.userId} - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.mobile LIKE CONCAT('%', #{param.mobile}, '%') - - - AND a.pay_password LIKE CONCAT('%', #{param.payPassword}, '%') - - - AND a.money = #{param.money} - - - AND a.freeze_money = #{param.freezeMoney} - - - AND a.total_money = #{param.totalMoney} - - - AND a.referee_id = #{param.refereeId} - - - AND a.first_num = #{param.firstNum} - - - AND a.second_num = #{param.secondNum} - - - AND a.third_num = #{param.thirdNum} - - - AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%') - - - AND a.is_delete = #{param.isDelete} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerWithdrawMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerWithdrawMapper.xml deleted file mode 100644 index b05da8d..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopDealerWithdrawMapper.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_dealer_withdraw a - - - AND a.id = #{param.id} - - - AND a.user_id = #{param.userId} - - - AND a.money = #{param.money} - - - AND a.pay_type = #{param.payType} - - - AND a.alipay_name LIKE CONCAT('%', #{param.alipayName}, '%') - - - AND a.alipay_account LIKE CONCAT('%', #{param.alipayAccount}, '%') - - - AND a.bank_name LIKE CONCAT('%', #{param.bankName}, '%') - - - AND a.bank_account LIKE CONCAT('%', #{param.bankAccount}, '%') - - - AND a.bank_card LIKE CONCAT('%', #{param.bankCard}, '%') - - - AND a.apply_status = #{param.applyStatus} - - - AND a.audit_time = #{param.auditTime} - - - AND a.reject_reason LIKE CONCAT('%', #{param.rejectReason}, '%') - - - AND a.platform LIKE CONCAT('%', #{param.platform}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCategoryMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCategoryMapper.xml deleted file mode 100644 index f1fb45b..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCategoryMapper.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_category a - - - AND a.category_id = #{param.categoryId} - - - AND a.category_code LIKE CONCAT('%', #{param.categoryCode}, '%') - - - AND a.title LIKE CONCAT('%', #{param.title}, '%') - - - AND a.type = #{param.type} - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.parent_id = #{param.parentId} - - - AND a.path LIKE CONCAT('%', #{param.path}, '%') - - - AND a.component LIKE CONCAT('%', #{param.component}, '%') - - - AND a.page_id = #{param.pageId} - - - AND a.user_id = #{param.userId} - - - AND a.count = #{param.count} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.hide = #{param.hide} - - - AND a.recommend = #{param.recommend} - - - AND a.show_index = #{param.showIndex} - - - AND a.merchant_id = #{param.merchantId} - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCommentMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCommentMapper.xml deleted file mode 100644 index b351b15..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCommentMapper.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_comment a - - - AND a.id = #{param.id} - - - AND a.uid = #{param.uid} - - - AND a.oid = #{param.oid} - - - AND a.unique LIKE CONCAT('%', #{param.unique}, '%') - - - AND a.goods_id = #{param.goodsId} - - - AND a.reply_type LIKE CONCAT('%', #{param.replyType}, '%') - - - AND a.goods_score = #{param.goodsScore} - - - AND a.service_score = #{param.serviceScore} - - - AND a.comment LIKE CONCAT('%', #{param.comment}, '%') - - - AND a.pics LIKE CONCAT('%', #{param.pics}, '%') - - - AND a.merchant_reply_content LIKE CONCAT('%', #{param.merchantReplyContent}, '%') - - - AND a.merchant_reply_time = #{param.merchantReplyTime} - - - AND a.is_del = #{param.isDel} - - - AND a.is_reply = #{param.isReply} - - - AND a.nickname LIKE CONCAT('%', #{param.nickname}, '%') - - - AND a.avatar LIKE CONCAT('%', #{param.avatar}, '%') - - - AND a.sku LIKE CONCAT('%', #{param.sku}, '%') - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCouponMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCouponMapper.xml deleted file mode 100644 index 2a5d2da..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsCouponMapper.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_coupon a - - - AND a.id = #{param.id} - - - AND a.goods_id = #{param.goodsId} - - - AND a.issue_coupon_id = #{param.issueCouponId} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.status = #{param.status} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsLogMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsLogMapper.xml deleted file mode 100644 index 7d0dd6d..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsLogMapper.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_log a - - - AND a.id = #{param.id} - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.goods_id = #{param.goodsId} - - - AND a.visit_num = #{param.visitNum} - - - AND a.cart_num = #{param.cartNum} - - - AND a.order_num = #{param.orderNum} - - - AND a.pay_num = #{param.payNum} - - - AND a.pay_price = #{param.payPrice} - - - AND a.cost_price = #{param.costPrice} - - - AND a.pay_uid = #{param.payUid} - - - AND a.refund_num = #{param.refundNum} - - - AND a.refund_price = #{param.refundPrice} - - - AND a.collect_num = #{param.collectNum} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.status = #{param.status} - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsMapper.xml deleted file mode 100644 index 1b47e2b..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsMapper.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods a - - - AND a.goods_id = #{param.goodsId} - - - AND a.type = #{param.type} - - - AND a.code LIKE CONCAT('%', #{param.code}, '%') - - - AND a.goods_name LIKE CONCAT('%', #{param.goodsName}, '%') - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.parent_id = #{param.parentId} - - - AND a.category_id = #{param.categoryId} - - - AND a.parent_name LIKE CONCAT('%', #{param.parentName}, '%') - - - AND a.category_name LIKE CONCAT('%', #{param.categoryName}, '%') - - - AND a.children_name LIKE CONCAT('%', #{param.childrenName}, '%') - - - AND a.specs = #{param.specs} - - - AND a.position LIKE CONCAT('%', #{param.position}, '%') - - - AND a.unit_name LIKE CONCAT('%', #{param.unitName}, '%') - - - AND a.price = #{param.price} - - - AND a.sale_price = #{param.salePrice} - - - AND a.deduct_stock_type = #{param.deductStockType} - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.sales = #{param.sales} - - - AND a.stock = #{param.stock} - - - AND a.goods_weight = #{param.goodsWeight} - - - AND a.gain_integral = #{param.gainIntegral} - - - AND a.recommend = #{param.recommend} - - - AND a.merchant_id = #{param.merchantId} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.is_show = #{param.isShow} - - - AND a.status = #{param.status} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.user_id = #{param.userId} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsRelationMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsRelationMapper.xml deleted file mode 100644 index fd3ac6e..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsRelationMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_relation a - - - AND a.id = #{param.id} - - - AND a.user_id = #{param.userId} - - - AND a.goods_id = #{param.goodsId} - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.category LIKE CONCAT('%', #{param.category}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSkuMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSkuMapper.xml deleted file mode 100644 index a28d10c..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSkuMapper.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_sku a - - - AND a.id = #{param.id} - - - AND a.goods_id = #{param.goodsId} - - - AND a.sku LIKE CONCAT('%', #{param.sku}, '%') - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.price = #{param.price} - - - AND a.sale_price = #{param.salePrice} - - - AND a.cost = #{param.cost} - - - AND a.stock = #{param.stock} - - - AND a.sku_no LIKE CONCAT('%', #{param.skuNo}, '%') - - - AND a.bar_code LIKE CONCAT('%', #{param.barCode}, '%') - - - AND a.weight = #{param.weight} - - - AND a.volume = #{param.volume} - - - AND a.uuid LIKE CONCAT('%', #{param.uuid}, '%') - - - AND a.status = #{param.status} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSpecMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSpecMapper.xml deleted file mode 100644 index 4752569..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopGoodsSpecMapper.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_goods_spec a - - - AND a.id = #{param.id} - - - AND a.goods_id = #{param.goodsId} - - - AND a.spec_id = #{param.specId} - - - AND a.spec_name LIKE CONCAT('%', #{param.specName}, '%') - - - AND a.spec_value LIKE CONCAT('%', #{param.specValue}, '%') - - - AND a.type = #{param.type} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantAccountMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantAccountMapper.xml deleted file mode 100644 index 6148997..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantAccountMapper.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_merchant_account a - - - AND a.id = #{param.id} - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.merchant_id = #{param.merchantId} - - - AND a.role_id = #{param.roleId} - - - AND a.role_name LIKE CONCAT('%', #{param.roleName}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantApplyMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantApplyMapper.xml deleted file mode 100644 index b40d7a9..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantApplyMapper.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - SELECT a.*, b.short_name as tenantName, b.company_logo as logo - FROM shop_merchant_apply a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id and deleted = 0 - - - AND a.apply_id = #{param.applyId} - - - AND a.type = #{param.type} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.merchant_code #{param.merchantCode} - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.shop_type LIKE CONCAT('%', #{param.shopType}, '%') - - - AND a.category LIKE CONCAT('%', #{param.category}, '%') - - - AND a.commission = #{param.commission} - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.own_store = #{param.ownStore} - - - AND a.recommend = #{param.recommend} - - - AND a.goods_review = #{param.goodsReview} - - - AND a.name2 LIKE CONCAT('%', #{param.name2}, '%') - - - AND a.reason LIKE CONCAT('%', #{param.reason}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.apply_id = #{param.keywords} - OR a.tenant_id = #{param.keywords} - OR a.phone = #{param.keywords} - OR a.user_id = #{param.keywords} - OR a.real_name LIKE CONCAT('%', #{param.keywords}, '%') - OR a.merchant_name LIKE CONCAT('%', #{param.keywords}, '%') - OR a.merchant_code LIKE CONCAT('%', #{param.keywords}, '%') - - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantCountMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantCountMapper.xml deleted file mode 100644 index 79ced30..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantCountMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_merchant_count a - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantMapper.xml deleted file mode 100644 index 7763779..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantMapper.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - - SELECT a.*, b.short_name as tenantName, b.company_logo as logo - FROM shop_merchant a - LEFT JOIN sys_company b ON a.tenant_id = b.tenant_id - - - AND a.merchant_id = #{param.merchantId} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%') - - - AND a.type = #{param.type} - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.shop_type LIKE CONCAT('%', #{param.shopType}, '%') - - - AND a.item_type LIKE CONCAT('%', #{param.itemType}, '%') - - - AND a.category LIKE CONCAT('%', #{param.category}, '%') - - - AND a.lng_and_lat LIKE CONCAT('%', #{param.lngAndLat}, '%') - - - AND a.province LIKE CONCAT('%', #{param.province}, '%') - - - AND a.city LIKE CONCAT('%', #{param.city}, '%') - - - AND a.region LIKE CONCAT('%', #{param.region}, '%') - - - AND a.address LIKE CONCAT('%', #{param.address}, '%') - - - AND a.commission = #{param.commission} - - - AND a.files LIKE CONCAT('%', #{param.files}, '%') - - - AND a.business_time LIKE CONCAT('%', #{param.businessTime}, '%') - - - AND a.content LIKE CONCAT('%', #{param.content}, '%') - - - AND a.price = #{param.price} - - - AND a.own_store = #{param.ownStore} - - - AND a.recommend = #{param.recommend} - - - AND a.goods_review = #{param.goodsReview} - - - AND a.admin_url LIKE CONCAT('%', #{param.adminUrl}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.merchant_id = #{param.keywords} - OR a.phone = #{param.keywords} - OR a.tenant_id = #{param.keywords} - OR a.user_id = #{param.keywords} - OR a.merchant_name LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantTypeMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantTypeMapper.xml deleted file mode 100644 index a7b77a1..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopMerchantTypeMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_merchant_type a - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderCartInfoMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderCartInfoMapper.xml deleted file mode 100644 index 6f90403..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderCartInfoMapper.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_order_cart_info a - - - AND a.id = #{param.id} - - - AND a.oid LIKE CONCAT('%', #{param.oid}, '%') - - - AND a.order_id LIKE CONCAT('%', #{param.orderId}, '%') - - - AND a.cart_id LIKE CONCAT('%', #{param.cartId}, '%') - - - AND a.product_id LIKE CONCAT('%', #{param.productId}, '%') - - - AND a.cart_info LIKE CONCAT('%', #{param.cartInfo}, '%') - - - AND a.unique LIKE CONCAT('%', #{param.unique}, '%') - - - AND a.is_after_sales = #{param.isAfterSales} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderGoodsMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderGoodsMapper.xml deleted file mode 100644 index b95b019..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderGoodsMapper.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - SELECT a.*, b.merchant_name as merchantName - FROM shop_order_goods a - LEFT JOIN shop_merchant b ON a.merchant_id = b.merchant_id - - - AND a.id = #{param.id} - - - AND a.order_id = #{param.orderId} - - - AND a.order_code LIKE CONCAT('%', #{param.orderCode}, '%') - - - AND a.merchant_id = #{param.merchantId} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.image LIKE CONCAT('%', #{param.image}, '%') - - - AND a.goods_id = #{param.goodsId} - - - AND a.goods_name LIKE CONCAT('%', #{param.goodsName}, '%') - - - AND a.price = #{param.price} - - - AND a.total_num = #{param.totalNum} - - - AND a.pay_status = #{param.payStatus} - - - AND a.order_status = #{param.orderStatus} - - - AND a.is_free = #{param.isFree} - - - AND a.version = #{param.version} - - - AND a.time_period LIKE CONCAT('%', #{param.timePeriod}, '%') - - - AND a.date_time LIKE CONCAT('%', #{param.dateTime}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.time_flag LIKE CONCAT('%', #{param.timeFlag}, '%') - - - AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoLogMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoLogMapper.xml deleted file mode 100644 index c5417b6..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoLogMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_order_info_log a - - - AND a.id = #{param.id} - - - AND a.order_id = #{param.orderId} - - - AND a.merchant_id = #{param.merchantId} - - - AND a.field_id = #{param.fieldId} - - - AND a.use_num = #{param.useNum} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoMapper.xml deleted file mode 100644 index c1f01b3..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderInfoMapper.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_order_info a - - - AND a.id = #{param.id} - - - AND a.order_id = #{param.orderId} - - - AND a.order_code LIKE CONCAT('%', #{param.orderCode}, '%') - - - AND a.merchant_id = #{param.merchantId} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.field_id = #{param.fieldId} - - - AND a.field_name LIKE CONCAT('%', #{param.fieldName}, '%') - - - AND a.price = #{param.price} - - - AND a.children_price = #{param.childrenPrice} - - - AND a.adult_num = #{param.adultNum} - - - AND a.children_num = #{param.childrenNum} - - - AND a.adult_num_use = #{param.adultNumUse} - - - AND a.children_num_use = #{param.childrenNumUse} - - - AND a.pay_status = #{param.payStatus} - - - AND a.order_status = #{param.orderStatus} - - - AND a.is_free = #{param.isFree} - - - AND a.is_children = #{param.isChildren} - - - AND a.version = #{param.version} - - - AND a.is_half = #{param.isHalf} - - - AND a.time_period LIKE CONCAT('%', #{param.timePeriod}, '%') - - - AND a.date_time LIKE CONCAT('%', #{param.dateTime}, '%') - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.end_time LIKE CONCAT('%', #{param.endTime}, '%') - - - AND a.time_flag LIKE CONCAT('%', #{param.timeFlag}, '%') - - - AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderMapper.xml deleted file mode 100644 index 67053a0..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopOrderMapper.xml +++ /dev/null @@ -1,180 +0,0 @@ - - - - - - - SELECT a.*, b.merchant_name as merchantName, b.merchant_code - FROM shop_order a - LEFT JOIN shop_merchant b ON a.merchant_id = b.merchant_id - - - AND a.order_id = #{param.orderId} - - - AND a.order_no LIKE CONCAT('%', #{param.orderNo}, '%') - - - AND a.type = #{param.type} - - - AND a.channel = #{param.channel} - - - AND a.transaction_id LIKE CONCAT('%', #{param.transactionId}, '%') - - - AND a.refund_order LIKE CONCAT('%', #{param.refundOrder}, '%') - - - AND a.merchant_id = #{param.merchantId} - - - AND a.merchant_name LIKE CONCAT('%', #{param.merchantName}, '%') - - - AND a.merchant_code LIKE CONCAT('%', #{param.merchantCode}, '%') - - - AND a.coupon_id = #{param.couponId} - - - AND a.card_id LIKE CONCAT('%', #{param.cardId}, '%') - - - AND a.admin_id = #{param.adminId} - - - AND a.confirm_id = #{param.confirmId} - - - AND a.ic_card LIKE CONCAT('%', #{param.icCard}, '%') - - - AND a.real_name LIKE CONCAT('%', #{param.realName}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.total_price = #{param.totalPrice} - - - AND a.reduce_price = #{param.reducePrice} - - - AND a.pay_price = #{param.payPrice} - - - AND a.price = #{param.price} - - - AND a.money = #{param.money} - - - AND a.refund_money = #{param.refundMoney} - - - AND a.coach_price = #{param.coachPrice} - - - AND a.total_num = #{param.totalNum} - - - AND a.coach_id = #{param.coachId} - - - AND a.pay_type = #{param.payType} - - - AND a.pay_status = #{param.payStatus} - - - AND a.order_status = #{param.orderStatus} - - - AND a.coupon_type = #{param.couponType} - - - AND a.coupon_desc LIKE CONCAT('%', #{param.couponDesc}, '%') - - - AND a.qrcode LIKE CONCAT('%', #{param.qrcode}, '%') - - - AND a.return_num = #{param.returnNum} - - - AND a.return_money = #{param.returnMoney} - - - AND a.start_time LIKE CONCAT('%', #{param.startTime}, '%') - - - AND a.is_invoice = #{param.isInvoice} - - - AND a.invoice_no LIKE CONCAT('%', #{param.invoiceNo}, '%') - - - AND a.pay_time LIKE CONCAT('%', #{param.payTime}, '%') - - - AND a.refund_time LIKE CONCAT('%', #{param.refundTime}, '%') - - - AND a.refund_apply_time LIKE CONCAT('%', #{param.refundApplyTime}, '%') - - - AND a.expiration_time LIKE CONCAT('%', #{param.expirationTime}, '%') - - - AND a.check_bill = #{param.checkBill} - - - AND a.is_settled = #{param.isSettled} - - - AND a.version = #{param.version} - - - AND a.user_id = #{param.userId} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.deleted = #{param.deleted} - - - AND a.deleted = 0 - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - AND (a.order_id = #{param.keywords} - OR a.order_no = #{param.keywords} - OR a.title LIKE CONCAT('%', #{param.keywords}, '%') - ) - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecMapper.xml deleted file mode 100644 index aeb1bb6..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecMapper.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_spec a - - - AND a.spec_id = #{param.specId} - - - AND a.spec_name LIKE CONCAT('%', #{param.specName}, '%') - - - AND a.spec_value LIKE CONCAT('%', #{param.specValue}, '%') - - - AND a.user_id = #{param.userId} - - - AND a.updater = #{param.updater} - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.status = #{param.status} - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecValueMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecValueMapper.xml deleted file mode 100644 index 562a65a..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopSpecValueMapper.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_spec_value a - - - AND a.spec_value_id = #{param.specValueId} - - - AND a.spec_id = #{param.specId} - - - AND a.spec_value LIKE CONCAT('%', #{param.specValue}, '%') - - - AND a.comments LIKE CONCAT('%', #{param.comments}, '%') - - - AND a.sort_number = #{param.sortNumber} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserAddressMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserAddressMapper.xml deleted file mode 100644 index 60011f3..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserAddressMapper.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_user_address a - - - AND a.id = #{param.id} - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.country LIKE CONCAT('%', #{param.country}, '%') - - - AND a.province LIKE CONCAT('%', #{param.province}, '%') - - - AND a.city LIKE CONCAT('%', #{param.city}, '%') - - - AND a.region LIKE CONCAT('%', #{param.region}, '%') - - - AND a.address LIKE CONCAT('%', #{param.address}, '%') - - - AND a.gender = #{param.gender} - - - AND a.type LIKE CONCAT('%', #{param.type}, '%') - - - AND a.is_default = #{param.isDefault} - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserCollectionMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserCollectionMapper.xml deleted file mode 100644 index c69e8a4..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopUserCollectionMapper.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_user_collection a - - - AND a.id = #{param.id} - - - AND a.tid = #{param.tid} - - - AND a.user_id = #{param.userId} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopWechatDepositMapper.xml b/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopWechatDepositMapper.xml deleted file mode 100644 index e4b0d9e..0000000 --- a/src/main/java/com/gxwebsoft/shop/mapper/xml/ShopWechatDepositMapper.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - SELECT a.* - FROM shop_wechat_deposit a - - - AND a.id = #{param.id} - - - AND a.oid = #{param.oid} - - - AND a.uid = #{param.uid} - - - AND a.order_num LIKE CONCAT('%', #{param.orderNum}, '%') - - - AND a.wechat_order LIKE CONCAT('%', #{param.wechatOrder}, '%') - - - AND a.wechat_return LIKE CONCAT('%', #{param.wechatReturn}, '%') - - - AND a.site_name LIKE CONCAT('%', #{param.siteName}, '%') - - - AND a.username LIKE CONCAT('%', #{param.username}, '%') - - - AND a.phone LIKE CONCAT('%', #{param.phone}, '%') - - - AND a.name LIKE CONCAT('%', #{param.name}, '%') - - - AND a.price = #{param.price} - - - AND a.status = #{param.status} - - - AND a.create_time >= #{param.createTimeStart} - - - AND a.create_time <= #{param.createTimeEnd} - - - - - - - - - - - diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopBrandParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopBrandParam.java deleted file mode 100644 index b256ede..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopBrandParam.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopBrandParam对象", description = "品牌查询参数") -public class ShopBrandParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer brandId; - - @Schema(description = "品牌名称") - private String brandName; - - @Schema(description = "图标") - private String image; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopCartParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopCartParam.java deleted file mode 100644 index 41aac73..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopCartParam.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopCartParam对象", description = "购物车查询参数") -public class ShopCartParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "购物车表ID") - @QueryField(type = QueryType.EQ) - private Long id; - - @Schema(description = "类型 0商城 1外卖") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "唯一标识") - private String code; - - @Schema(description = "商品ID") - private Long goodsId; - - @Schema(description = "商品规格") - private String spec; - - @Schema(description = "商品价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "商品数量") - @QueryField(type = QueryType.EQ) - private Integer cartNum; - - @Schema(description = "单商品合计") - @QueryField(type = QueryType.EQ) - private BigDecimal totalPrice; - - @Schema(description = "0 = 未购买 1 = 已购买") - @QueryField(type = QueryType.EQ) - private Boolean isPay; - - @Schema(description = "是否为立即购买") - @QueryField(type = QueryType.EQ) - private Boolean isNew; - - @Schema(description = "拼团id") - @QueryField(type = QueryType.EQ) - private Integer combinationId; - - @Schema(description = "秒杀产品ID") - @QueryField(type = QueryType.EQ) - private Integer seckillId; - - @Schema(description = "砍价id") - @QueryField(type = QueryType.EQ) - private Integer bargainId; - - @Schema(description = "是否选中") - @QueryField(type = QueryType.EQ) - private Boolean selected; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "用户ID") - private Long userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopCashierParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopCashierParam.java deleted file mode 100644 index 0974c79..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopCashierParam.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopCashierParam对象", description = "收银查询参数") -public class ShopCashierParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "收银单ID") - @QueryField(type = QueryType.EQ) - private Long id; - - @Schema(description = "类型 0商城 1外卖") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "唯一标识") - private String code; - - @Schema(description = "商品ID") - private Long goodsId; - - @Schema(description = "商品名称") - private String name; - - @Schema(description = "商品规格") - private String spec; - - @Schema(description = "商品价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "商品数量") - @QueryField(type = QueryType.EQ) - private Integer cartNum; - - @Schema(description = "单商品合计") - @QueryField(type = QueryType.EQ) - private BigDecimal totalPrice; - - @Schema(description = "0 = 未购买 1 = 已购买") - @QueryField(type = QueryType.EQ) - private Boolean isPay; - - @Schema(description = "是否为立即购买") - @QueryField(type = QueryType.EQ) - private Boolean isNew; - - @Schema(description = "是否选中") - @QueryField(type = QueryType.EQ) - private Boolean selected; - - @Schema(description = "商户ID") - private Long merchantId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户ID") - private Long userId; - - @Schema(description = "收银员ID") - private Long cashierId; - - @Schema(description = "分组取单") - private Long groupId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopCountParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopCountParam.java deleted file mode 100644 index 910cfc4..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopCountParam.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopCountParam对象", description = "商城销售统计表查询参数") -public class ShopCountParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "统计日期") - private String dateTime; - - @Schema(description = "总销售额") - @QueryField(type = QueryType.EQ) - private BigDecimal totalPrice; - - @Schema(description = "今日销售额") - @QueryField(type = QueryType.EQ) - private BigDecimal todayPrice; - - @Schema(description = "总会员数") - @QueryField(type = QueryType.EQ) - private BigDecimal totalUsers; - - @Schema(description = "今日新增") - @QueryField(type = QueryType.EQ) - private BigDecimal todayUsers; - - @Schema(description = "总订单笔数") - @QueryField(type = QueryType.EQ) - private BigDecimal totalOrders; - - @Schema(description = "今日订单笔数") - @QueryField(type = QueryType.EQ) - private BigDecimal todayOrders; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态, 0正常, 1冻结") - @QueryField(type = QueryType.EQ) - private Integer status; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java deleted file mode 100644 index 70f8788..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerApplyParam.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerApplyParam对象", description = "分销商申请记录表查询参数") -public class ShopDealerApplyParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键ID") - @QueryField(type = QueryType.EQ) - private Integer applyId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "姓名") - private String realName; - - @Schema(description = "手机号") - private String mobile; - - @Schema(description = "推荐人用户ID") - @QueryField(type = QueryType.EQ) - private Integer refereeId; - - @Schema(description = "申请方式(10需后台审核 20无需审核)") - @QueryField(type = QueryType.EQ) - private Integer applyType; - - @Schema(description = "申请时间") - @QueryField(type = QueryType.EQ) - private Integer applyTime; - - @Schema(description = "审核状态 (10待审核 20审核通过 30驳回)") - @QueryField(type = QueryType.EQ) - private Integer applyStatus; - - @Schema(description = "审核时间") - @QueryField(type = QueryType.EQ) - private Integer auditTime; - - @Schema(description = "驳回原因") - private String rejectReason; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerCapitalParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerCapitalParam.java deleted file mode 100644 index e0e5b33..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerCapitalParam.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:06 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerCapitalParam对象", description = "分销商资金明细表查询参数") -public class ShopDealerCapitalParam 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 userId; - - @Schema(description = "订单ID") - @QueryField(type = QueryType.EQ) - private Integer orderId; - - @Schema(description = "资金流动类型 (10佣金收入 20提现支出 30转账支出 40转账收入)") - @QueryField(type = QueryType.EQ) - private Integer flowType; - - @Schema(description = "金额") - @QueryField(type = QueryType.EQ) - private BigDecimal money; - - @Schema(description = "描述") - private String describe; - - @Schema(description = "对方用户ID") - @QueryField(type = QueryType.EQ) - private Integer toUserId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerOrderParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerOrderParam.java deleted file mode 100644 index a2bec8d..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerOrderParam.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerOrderParam对象", description = "分销商订单记录表查询参数") -public class ShopDealerOrderParam 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 userId; - - @Schema(description = "订单ID") - @QueryField(type = QueryType.EQ) - private Integer orderId; - - @Schema(description = "订单总金额(不含运费)") - @QueryField(type = QueryType.EQ) - private BigDecimal orderPrice; - - @Schema(description = "分销商用户id(一级)") - @QueryField(type = QueryType.EQ) - private Integer firstUserId; - - @Schema(description = "分销商用户id(二级)") - @QueryField(type = QueryType.EQ) - private Integer secondUserId; - - @Schema(description = "分销商用户id(三级)") - @QueryField(type = QueryType.EQ) - private Integer thirdUserId; - - @Schema(description = "分销佣金(一级)") - @QueryField(type = QueryType.EQ) - private BigDecimal firstMoney; - - @Schema(description = "分销佣金(二级)") - @QueryField(type = QueryType.EQ) - private BigDecimal secondMoney; - - @Schema(description = "分销佣金(三级)") - @QueryField(type = QueryType.EQ) - private BigDecimal thirdMoney; - - @Schema(description = "订单是否失效(0未失效 1已失效)") - @QueryField(type = QueryType.EQ) - private Integer isInvalid; - - @Schema(description = "佣金结算(0未结算 1已结算)") - @QueryField(type = QueryType.EQ) - private Integer isSettled; - - @Schema(description = "结算时间") - @QueryField(type = QueryType.EQ) - private Integer settleTime; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerRefereeParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerRefereeParam.java deleted file mode 100644 index b1ec42f..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerRefereeParam.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerRefereeParam对象", description = "分销商推荐关系表查询参数") -public class ShopDealerRefereeParam 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 dealerId; - - @Schema(description = "用户id(被推荐人)") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "推荐关系层级(1,2,3)") - @QueryField(type = QueryType.EQ) - private Integer level; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerSettingParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerSettingParam.java deleted file mode 100644 index 5403438..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerSettingParam.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerSettingParam对象", description = "分销商设置表查询参数") -public class ShopDealerSettingParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "设置项标示") - @QueryField(type = QueryType.EQ) - private String key; - - @Schema(description = "设置项描述") - private String describe; - - @Schema(description = "设置内容(json格式)") - private String values; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java deleted file mode 100644 index eb7bd24..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerUserParam.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerUserParam对象", description = "分销商用户记录表查询参数") -public class ShopDealerUserParam 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 userId; - - @Schema(description = "姓名") - private String realName; - - @Schema(description = "手机号") - private String mobile; - - @Schema(description = "支付密码") - private String payPassword; - - @Schema(description = "当前可提现佣金") - @QueryField(type = QueryType.EQ) - private BigDecimal money; - - @Schema(description = "已冻结佣金") - @QueryField(type = QueryType.EQ) - private BigDecimal freezeMoney; - - @Schema(description = "累积提现佣金") - @QueryField(type = QueryType.EQ) - private BigDecimal totalMoney; - - @Schema(description = "推荐人用户ID") - @QueryField(type = QueryType.EQ) - private Integer refereeId; - - @Schema(description = "成员数量(一级)") - @QueryField(type = QueryType.EQ) - private Integer firstNum; - - @Schema(description = "成员数量(二级)") - @QueryField(type = QueryType.EQ) - private Integer secondNum; - - @Schema(description = "成员数量(三级)") - @QueryField(type = QueryType.EQ) - private Integer thirdNum; - - @Schema(description = "专属二维码") - private String qrcode; - - @Schema(description = "是否删除") - @QueryField(type = QueryType.EQ) - private Integer isDelete; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopDealerWithdrawParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopDealerWithdrawParam.java deleted file mode 100644 index 82f1fce..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopDealerWithdrawParam.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopDealerWithdrawParam对象", description = "分销商提现明细表查询参数") -public class ShopDealerWithdrawParam 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 userId; - - @Schema(description = "提现金额") - @QueryField(type = QueryType.EQ) - private BigDecimal money; - - @Schema(description = "打款方式 (10微信 20支付宝 30银行卡)") - @QueryField(type = QueryType.EQ) - private Integer payType; - - @Schema(description = "支付宝姓名") - private String alipayName; - - @Schema(description = "支付宝账号") - private String alipayAccount; - - @Schema(description = "开户行名称") - private String bankName; - - @Schema(description = "银行开户名") - private String bankAccount; - - @Schema(description = "银行卡号") - private String bankCard; - - @Schema(description = "申请状态 (10待审核 20审核通过 30驳回 40已打款)") - @QueryField(type = QueryType.EQ) - private Integer applyStatus; - - @Schema(description = "审核时间") - @QueryField(type = QueryType.EQ) - private Integer auditTime; - - @Schema(description = "驳回原因") - private String rejectReason; - - @Schema(description = "来源客户端(APP、H5、小程序等)") - private String platform; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCategoryParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCategoryParam.java deleted file mode 100644 index 20d7e1f..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCategoryParam.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsCategoryParam对象", description = "商品分类查询参数") -public class ShopGoodsCategoryParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "商品分类ID") - @QueryField(type = QueryType.EQ) - private Integer categoryId; - - @Schema(description = "分类标识") - private String categoryCode; - - @Schema(description = "分类名称") - private String title; - - @Schema(description = "类型 0商城分类 1外卖分类") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "分类图片") - private String image; - - @Schema(description = "上级分类ID") - @QueryField(type = QueryType.EQ) - private Integer parentId; - - @Schema(description = "路由/链接地址") - private String path; - - @Schema(description = "组件路径") - private String component; - - @Schema(description = "绑定的页面") - @QueryField(type = QueryType.EQ) - private Integer pageId; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "商品数量") - @QueryField(type = QueryType.EQ) - private Integer count; - - @Schema(description = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)") - @QueryField(type = QueryType.EQ) - private Integer hide; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "是否显示在首页") - @QueryField(type = QueryType.EQ) - private Integer showIndex; - - @Schema(description = "商铺ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "状态, 0正常, 1禁用") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCommentParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCommentParam.java deleted file mode 100644 index fe171e4..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCommentParam.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsCommentParam对象", description = "评论表查询参数") -public class ShopGoodsCommentParam 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 uid; - - @Schema(description = "订单ID") - @QueryField(type = QueryType.EQ) - private Integer oid; - - @Schema(description = "商品唯一id") - private String unique; - - @Schema(description = "商品id") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "某种商品类型(普通商品、秒杀商品)") - private String replyType; - - @Schema(description = "商品分数") - @QueryField(type = QueryType.EQ) - private Boolean goodsScore; - - @Schema(description = "服务分数") - @QueryField(type = QueryType.EQ) - private Boolean serviceScore; - - @Schema(description = "评论内容") - private String comment; - - @Schema(description = "评论图片") - private String pics; - - @Schema(description = "管理员回复内容") - private String merchantReplyContent; - - @Schema(description = "管理员回复时间") - @QueryField(type = QueryType.EQ) - private Integer merchantReplyTime; - - @Schema(description = "0未删除1已删除") - @QueryField(type = QueryType.EQ) - private Boolean isDel; - - @Schema(description = "0未回复1已回复") - @QueryField(type = QueryType.EQ) - private Boolean isReply; - - @Schema(description = "用户名称") - private String nickname; - - @Schema(description = "用户头像") - private String avatar; - - @Schema(description = "商品规格属性值,多个,号隔开") - private String sku; - - @Schema(description = "状态, 0正常, 1冻结") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCouponParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCouponParam.java deleted file mode 100644 index d0dfd23..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsCouponParam.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsCouponParam对象", description = "商品优惠券表查询参数") -public class ShopGoodsCouponParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "商品id") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "优惠劵id") - @QueryField(type = QueryType.EQ) - private Integer issueCouponId; - - @Schema(description = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsLogParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsLogParam.java deleted file mode 100644 index a9e6c7d..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsLogParam.java +++ /dev/null @@ -1,90 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsLogParam对象", description = "商品日志表查询参数") -public class ShopGoodsLogParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "统计ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "类型visit,cart,order,pay,collect,refund") - private String type; - - @Schema(description = "商品ID") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "是否浏览") - @QueryField(type = QueryType.EQ) - private Boolean visitNum; - - @Schema(description = "加入购物车数量") - @QueryField(type = QueryType.EQ) - private Integer cartNum; - - @Schema(description = "下单数量") - @QueryField(type = QueryType.EQ) - private Integer orderNum; - - @Schema(description = "支付数量") - @QueryField(type = QueryType.EQ) - private Integer payNum; - - @Schema(description = "支付金额") - @QueryField(type = QueryType.EQ) - private BigDecimal payPrice; - - @Schema(description = "商品成本价") - @QueryField(type = QueryType.EQ) - private BigDecimal costPrice; - - @Schema(description = "支付用户ID") - @QueryField(type = QueryType.EQ) - private Integer payUid; - - @Schema(description = "退款数量") - @QueryField(type = QueryType.EQ) - private Integer refundNum; - - @Schema(description = "退款金额") - @QueryField(type = QueryType.EQ) - private BigDecimal refundPrice; - - @Schema(description = "收藏") - @QueryField(type = QueryType.EQ) - private Boolean collectNum; - - @Schema(description = "排序(数字越小越靠前)") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - - @Schema(description = "状态, 0正常, 1冻结") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsParam.java deleted file mode 100644 index fa907ca..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsParam.java +++ /dev/null @@ -1,139 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsParam对象", description = "商品记录表查询参数") -public class ShopGoodsParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "自增ID") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "类型 1实物商品 2虚拟商品") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "商品编码") - private String code; - - @Schema(description = "商品标题") - private String goodsName; - - @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 = "父级分类") - private String parentName; - - @Schema(description = "当前分类") - private String categoryName; - - @Schema(description = "三级分类") - private String childrenName; - - @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 Integer goodsWeight; - - @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 = "商户名称") - private String merchantName; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsRelationParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsRelationParam.java deleted file mode 100644 index 01a5daf..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsRelationParam.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsRelationParam对象", description = "商品点赞和收藏表查询参数") -public class ShopGoodsRelationParam 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 userId; - - @Schema(description = "商品ID") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "类型(收藏(collect)、点赞(like))") - private String type; - - @Schema(description = "某种类型的商品(普通商品、秒杀商品)") - private String category; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSkuParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSkuParam.java deleted file mode 100644 index f09f7a8..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSkuParam.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.gxwebsoft.shop.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; - -/** - * 商品sku列表查询参数 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsSkuParam对象", description = "商品sku列表查询参数") -public class ShopGoodsSkuParam 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 goodsId; - - @Schema(description = "商品属性索引值 (attr_value|attr_value[|....])") - private String sku; - - @Schema(description = "商品图片") - private String image; - - @Schema(description = "商品价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "市场价格") - @QueryField(type = QueryType.EQ) - private BigDecimal salePrice; - - @Schema(description = "成本价") - @QueryField(type = QueryType.EQ) - private BigDecimal cost; - - @Schema(description = "库存") - @QueryField(type = QueryType.EQ) - private Integer stock; - - @Schema(description = "sku编码") - private String skuNo; - - @Schema(description = "商品条码") - private String barCode; - - @Schema(description = "重量") - @QueryField(type = QueryType.EQ) - private BigDecimal weight; - - @Schema(description = "体积") - @QueryField(type = QueryType.EQ) - private BigDecimal volume; - - @Schema(description = "唯一值") - private String uuid; - - @Schema(description = "状态, 0正常, 1异常") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "备注") - private String comments; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSpecParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSpecParam.java deleted file mode 100644 index 06104d3..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopGoodsSpecParam.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopGoodsSpecParam对象", description = "商品多规格查询参数") -public class ShopGoodsSpecParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "商品ID") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "规格ID") - @QueryField(type = QueryType.EQ) - private Integer specId; - - @Schema(description = "规格名称") - private String specName; - - @Schema(description = "规格值") - private String specValue; - - @Schema(description = "活动类型 0=商品,1=秒杀,2=砍价,3=拼团") - @QueryField(type = QueryType.EQ) - private Boolean type; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantAccountParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopMerchantAccountParam.java deleted file mode 100644 index abf9448..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantAccountParam.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopMerchantAccountParam对象", description = "商户账号查询参数") -public class ShopMerchantAccountParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "真实姓名") - private String realName; - - @Schema(description = "商户ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "角色ID") - @QueryField(type = QueryType.EQ) - private Integer roleId; - - @Schema(description = "角色名称") - private String roleName; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantApplyParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopMerchantApplyParam.java deleted file mode 100644 index 7374f69..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantApplyParam.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopMerchantApplyParam对象", description = "商户入驻申请查询参数") -public class ShopMerchantApplyParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer applyId; - - @Schema(description = "入驻类型") - private Integer type; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "证件号码") - private String merchantCode; - - @Schema(description = "商户图标") - private String image; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "商户姓名") - private String realName; - - @Schema(description = "店铺类型") - private String shopType; - - @Schema(description = "商户分类") - private String category; - - @Schema(description = "手续费") - @QueryField(type = QueryType.EQ) - private BigDecimal commission; - - @Schema(description = "关键字") - private String keywords; - - @Schema(description = "资质图片") - private String files; - - @Schema(description = "所有人") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "是否自营") - @QueryField(type = QueryType.EQ) - private Integer ownStore; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "是否需要审核") - @QueryField(type = QueryType.EQ) - private Integer goodsReview; - - @Schema(description = "工作负责人") - private String name2; - - @Schema(description = "驳回原因") - private String reason; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantCountParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopMerchantCountParam.java deleted file mode 100644 index 7cb6582..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantCountParam.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopMerchantCountParam对象", description = "门店销售统计表查询参数") -public class ShopMerchantCountParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "店铺名称") - private String name; - - @Schema(description = "店铺说明") - private String comments; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopMerchantParam.java deleted file mode 100644 index 52ade38..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantParam.java +++ /dev/null @@ -1,128 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopMerchantParam对象", description = "商户查询参数") -public class ShopMerchantParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "商户编号") - private String merchantCode; - - @Schema(description = "商户类型") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "商户图标") - private String image; - - @Schema(description = "商户手机号") - private String phone; - - @Schema(description = "商户姓名") - private String realName; - - @Schema(description = "店铺类型") - private String shopType; - - @Schema(description = "项目分类") - private String itemType; - - @Schema(description = "商户分类") - private String category; - - @Schema(description = "经纬度") - private String lngAndLat; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "详细地址") - private String address; - - @Schema(description = "手续费") - @QueryField(type = QueryType.EQ) - private BigDecimal commission; - - @Schema(description = "关键字") - private String keywords; - - @Schema(description = "资质图片") - private String files; - - @Schema(description = "营业时间") - private String businessTime; - - @Schema(description = "文章内容") - private String content; - - @Schema(description = "每小时价格") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "是否自营") - @QueryField(type = QueryType.EQ) - private Integer ownStore; - - @Schema(description = "是否推荐") - @QueryField(type = QueryType.EQ) - private Integer recommend; - - @Schema(description = "是否需要审核") - @QueryField(type = QueryType.EQ) - private Integer goodsReview; - - @Schema(description = "管理入口") - private String adminUrl; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "所有人") - @QueryField(type = QueryType.EQ) - private Integer userId; - - @Schema(description = "是否删除, 0否, 1是") - @QueryField(type = QueryType.EQ) - private Integer deleted; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantTypeParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopMerchantTypeParam.java deleted file mode 100644 index a251b78..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopMerchantTypeParam.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopMerchantTypeParam对象", description = "商户类型查询参数") -public class ShopMerchantTypeParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "店铺类型") - private String name; - - @Schema(description = "店铺入驻条件") - private String comments; - - @Schema(description = "状态") - @QueryField(type = QueryType.EQ) - private Integer status; - - @Schema(description = "排序号") - @QueryField(type = QueryType.EQ) - private Integer sortNumber; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopOrderCartInfoParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopOrderCartInfoParam.java deleted file mode 100644 index e4602f5..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopOrderCartInfoParam.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopOrderCartInfoParam对象", description = "订单购物详情表查询参数") -public class ShopOrderCartInfoParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @QueryField(type = QueryType.EQ) - private Long id; - - @Schema(description = "订单id") - private Long oid; - - @Schema(description = "订单号") - private String orderId; - - @Schema(description = "购物车id") - private Long cartId; - - @Schema(description = "商品ID") - private Long productId; - - @Schema(description = "购买东西的详细信息") - private String cartInfo; - - @Schema(description = "唯一id") - private String unique; - - @Schema(description = "是否能售后0不能1能") - @QueryField(type = QueryType.EQ) - private Boolean isAfterSales; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopOrderGoodsParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopOrderGoodsParam.java deleted file mode 100644 index fa34645..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopOrderGoodsParam.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopOrderGoodsParam对象", description = "商品信息查询参数") -public class ShopOrderGoodsParam 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 orderId; - - @Schema(description = "订单标识") - private String orderCode; - - @Schema(description = "关联商户ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "商品封面图") - private String image; - - @Schema(description = "关联商品id") - @QueryField(type = QueryType.EQ) - private Integer goodsId; - - @Schema(description = "商品名称") - private String goodsName; - - @Schema(description = "单价") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "购买数量") - @QueryField(type = QueryType.EQ) - private Integer totalNum; - - @Schema(description = "0 未付款 1已付款,2无需付款或占用状态") - @QueryField(type = QueryType.EQ) - private Integer payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - @QueryField(type = QueryType.EQ) - private Integer orderStatus; - - @Schema(description = "是否免费:0收费、1免费") - @QueryField(type = QueryType.EQ) - private Boolean isFree; - - @Schema(description = "系统版本 0当前版本 其他版本") - @QueryField(type = QueryType.EQ) - private Integer version; - - @Schema(description = "预约时间段") - private String timePeriod; - - @Schema(description = "预定日期") - private String dateTime; - - @Schema(description = "开场时间") - private String startTime; - - @Schema(description = "结束时间") - private String endTime; - - @Schema(description = "毫秒时间戳") - private Long timeFlag; - - @Schema(description = "过期时间") - private String expirationTime; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户id") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoLogParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoLogParam.java deleted file mode 100644 index c0d4995..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoLogParam.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopOrderInfoLogParam对象", description = "订单核销查询参数") -public class ShopOrderInfoLogParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "关联订单表id") - @QueryField(type = QueryType.EQ) - private Integer orderId; - - @Schema(description = "关联商户ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "关联场地id") - @QueryField(type = QueryType.EQ) - private Integer fieldId; - - @Schema(description = "核销数量") - @QueryField(type = QueryType.EQ) - private Boolean useNum; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoParam.java deleted file mode 100644 index badf98e..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopOrderInfoParam.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopOrderInfoParam对象", description = "场地查询参数") -public class ShopOrderInfoParam 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 orderId; - - @Schema(description = "组合数据:日期+时间段+场馆id+场地id") - private String orderCode; - - @Schema(description = "关联商户ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "关联场地id") - @QueryField(type = QueryType.EQ) - private Integer fieldId; - - @Schema(description = "场地名称") - private String fieldName; - - @Schema(description = "单价") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "儿童价") - @QueryField(type = QueryType.EQ) - private BigDecimal childrenPrice; - - @Schema(description = "成人人数") - @QueryField(type = QueryType.EQ) - private Integer adultNum; - - @Schema(description = "儿童人数") - @QueryField(type = QueryType.EQ) - private Integer childrenNum; - - @Schema(description = "已核销的成人票数") - @QueryField(type = QueryType.EQ) - private Integer adultNumUse; - - @Schema(description = "已核销的儿童票数") - @QueryField(type = QueryType.EQ) - private Integer childrenNumUse; - - @Schema(description = "0 未付款 1已付款,2无需付款或占用状态") - @QueryField(type = QueryType.EQ) - private Integer payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - @QueryField(type = QueryType.EQ) - private Integer orderStatus; - - @Schema(description = "是否免费:0收费、1免费") - @QueryField(type = QueryType.EQ) - private Boolean isFree; - - @Schema(description = "是否支持儿童票:0不支持、1支持") - @QueryField(type = QueryType.EQ) - private Boolean isChildren; - - @Schema(description = "系统版本 0当前版本 其他版本") - @QueryField(type = QueryType.EQ) - private Integer version; - - @Schema(description = "预订类型:0全场,1半场") - @QueryField(type = QueryType.EQ) - private Boolean isHalf; - - @Schema(description = "预约时间段") - private String timePeriod; - - @Schema(description = "预定日期") - private String dateTime; - - @Schema(description = "开场时间") - private String startTime; - - @Schema(description = "结束时间") - private String endTime; - - @Schema(description = "毫秒时间戳") - private Long timeFlag; - - @Schema(description = "过期时间") - private String expirationTime; - - @Schema(description = "备注") - private String comments; - - @Schema(description = "用户id") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopOrderParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopOrderParam.java deleted file mode 100644 index 0c8fb5d..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopOrderParam.java +++ /dev/null @@ -1,196 +0,0 @@ -package com.gxwebsoft.shop.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 lombok.Data; -import lombok.EqualsAndHashCode; - -import java.math.BigDecimal; - -/** - * 订单查询参数 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopOrderParam对象", description = "订单查询参数") -public class ShopOrderParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "订单号") - @QueryField(type = QueryType.EQ) - private Integer orderId; - - @Schema(description = "订单编号") - private String orderNo; - - @Schema(description = "订单类型,0商城订单 1预定订单 2会员卡") - @QueryField(type = QueryType.EQ) - private Integer type; - - @Schema(description = "下单渠道,0小程序预定 1俱乐部训练场 3活动订场") - @QueryField(type = QueryType.EQ) - private Integer channel; - - @Schema(description = "微信支付订单号") - private String transactionId; - - @Schema(description = "微信退款订单号") - private String refundOrder; - - @Schema(description = "商户ID") - @QueryField(type = QueryType.EQ) - private Long merchantId; - - @Schema(description = "商户名称") - private String merchantName; - - @Schema(description = "商户编号") - private String merchantCode; - - @Schema(description = "使用的优惠券id") - @QueryField(type = QueryType.EQ) - private Integer couponId; - - @Schema(description = "使用的会员卡id") - private String cardId; - - @Schema(description = "关联管理员id") - @QueryField(type = QueryType.EQ) - private Integer adminId; - - @Schema(description = "核销管理员id") - @QueryField(type = QueryType.EQ) - private Integer confirmId; - - @Schema(description = "IC卡号") - private String icCard; - - @Schema(description = "真实姓名") - private String realName; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "订单总额") - @QueryField(type = QueryType.EQ) - private BigDecimal totalPrice; - - @Schema(description = "减少的金额,使用VIP会员折扣、优惠券抵扣、优惠券折扣后减去的价格") - @QueryField(type = QueryType.EQ) - private BigDecimal reducePrice; - - @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 BigDecimal money; - - @Schema(description = "退款金额") - @QueryField(type = QueryType.EQ) - private BigDecimal refundMoney; - - @Schema(description = "教练价格") - @QueryField(type = QueryType.EQ) - private BigDecimal coachPrice; - - @Schema(description = "购买数量") - @QueryField(type = QueryType.EQ) - private Integer totalNum; - - @Schema(description = "教练id") - @QueryField(type = QueryType.EQ) - private Integer coachId; - - @Schema(description = "0余额支付, 1微信支付,102微信Native,2会员卡支付,3支付宝,4现金,5POS机,6VIP月卡,7VIP年卡,8VIP次卡,9IC月卡,10IC年卡,11IC次卡,12免费,13VIP充值卡,14IC充值卡,15积分支付,16VIP季卡,17IC季卡") - @QueryField(type = QueryType.EQ) - private Integer payType; - - @Schema(description = "0未付款,1已付款") - @QueryField(type = QueryType.EQ) - private Integer payStatus; - - @Schema(description = "0未使用,1已完成,2已取消,3取消中,4退款申请中,5退款被拒绝,6退款成功,7客户端申请退款") - @QueryField(type = QueryType.EQ) - private Integer orderStatus; - - @Schema(description = "优惠类型:0无、1抵扣优惠券、2折扣优惠券、3、VIP月卡、4VIP年卡,5VIP次卡、6VIP会员卡、7IC月卡、8IC年卡、9IC次卡、10IC会员卡、11免费订单、12VIP充值卡、13IC充值卡、14VIP季卡、15IC季卡") - @QueryField(type = QueryType.EQ) - private Integer couponType; - - @Schema(description = "优惠说明") - private String couponDesc; - - @Schema(description = "二维码地址,保存订单号,支付成功后才生成") - private String qrcode; - - @Schema(description = "vip月卡年卡、ic月卡年卡回退次数") - @QueryField(type = QueryType.EQ) - private Integer returnNum; - - @Schema(description = "vip充值回退金额") - @QueryField(type = QueryType.EQ) - private BigDecimal returnMoney; - - @Schema(description = "预约详情开始时间数组") - private String startTime; - - @Schema(description = "是否已开具发票:0未开发票,1已开发票,2不能开具发票") - @QueryField(type = QueryType.EQ) - private Integer isInvoice; - - @Schema(description = "发票流水号") - private String invoiceNo; - - @Schema(description = "支付时间") - private String payTime; - - @Schema(description = "退款时间") - private String refundTime; - - @Schema(description = "申请退款时间") - private String refundApplyTime; - - @Schema(description = "过期时间") - private String expirationTime; - - @Schema(description = "对账情况:0=未对账;1=已对账;3=已对账,金额对不上;4=未查询到该订单") - @QueryField(type = QueryType.EQ) - private Integer checkBill; - - @Schema(description = "订单是否已结算(0未结算 1已结算)") - @QueryField(type = QueryType.EQ) - private Integer isSettled; - - @Schema(description = "系统版本号 0当前版本 value=其他版本") - @QueryField(type = QueryType.EQ) - private Integer version; - - @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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopSpecParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopSpecParam.java deleted file mode 100644 index 805f2c8..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopSpecParam.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopSpecParam对象", description = "规格查询参数") -public class ShopSpecParam 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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopSpecValueParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopSpecValueParam.java deleted file mode 100644 index 00aa92f..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopSpecValueParam.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopSpecValueParam对象", description = "规格值查询参数") -public class ShopSpecValueParam 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; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopUserAddressParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopUserAddressParam.java deleted file mode 100644 index 828489e..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopUserAddressParam.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopUserAddressParam对象", description = "收货地址查询参数") -public class ShopUserAddressParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @Schema(description = "主键ID") - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "姓名") - private String name; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "所在国家") - private String country; - - @Schema(description = "所在省份") - private String province; - - @Schema(description = "所在城市") - private String city; - - @Schema(description = "所在辖区") - private String region; - - @Schema(description = "收货地址") - private String address; - - @Schema(description = "1先生 2女士") - @QueryField(type = QueryType.EQ) - private Integer gender; - - @Schema(description = "家、公司、学校") - private String type; - - @Schema(description = "默认收货地址") - @QueryField(type = QueryType.EQ) - private Boolean isDefault; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopUserCollectionParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopUserCollectionParam.java deleted file mode 100644 index ff7013f..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopUserCollectionParam.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gxwebsoft.shop.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 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopUserCollectionParam对象", description = "我的收藏查询参数") -public class ShopUserCollectionParam 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 tid; - - @Schema(description = "用户ID") - @QueryField(type = QueryType.EQ) - private Integer userId; - -} diff --git a/src/main/java/com/gxwebsoft/shop/param/ShopWechatDepositParam.java b/src/main/java/com/gxwebsoft/shop/param/ShopWechatDepositParam.java deleted file mode 100644 index 8909b6f..0000000 --- a/src/main/java/com/gxwebsoft/shop/param/ShopWechatDepositParam.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.gxwebsoft.shop.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-10 21:05:07 - */ -@Data -@EqualsAndHashCode(callSuper = false) -@JsonInclude(JsonInclude.Include.NON_NULL) -@Schema(name = "ShopWechatDepositParam对象", description = "押金查询参数") -public class ShopWechatDepositParam extends BaseParam { - private static final long serialVersionUID = 1L; - - @QueryField(type = QueryType.EQ) - private Integer id; - - @Schema(description = "订单id") - @QueryField(type = QueryType.EQ) - private Integer oid; - - @Schema(description = "用户id") - @QueryField(type = QueryType.EQ) - private Integer uid; - - @Schema(description = "场地订单号") - private String orderNum; - - @Schema(description = "付款订单号") - private String wechatOrder; - - @Schema(description = "退款订单号 ") - private String wechatReturn; - - @Schema(description = "场馆名称") - private String siteName; - - @Schema(description = "微信昵称") - private String username; - - @Schema(description = "手机号码") - private String phone; - - @Schema(description = "物品名称") - private String name; - - @Schema(description = "押金金额") - @QueryField(type = QueryType.EQ) - private BigDecimal price; - - @Schema(description = "押金状态,1已付款,2未付款,已退押金") - @QueryField(type = QueryType.EQ) - private Boolean status; - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopBrandService.java b/src/main/java/com/gxwebsoft/shop/service/ShopBrandService.java deleted file mode 100644 index 28c97ea..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopBrandService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopBrand; -import com.gxwebsoft.shop.param.ShopBrandParam; - -import java.util.List; - -/** - * 品牌Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopBrandService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopBrandParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopBrandParam param); - - /** - * 根据id查询 - * - * @param brandId ID - * @return ShopBrand - */ - ShopBrand getByIdRel(Integer brandId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopCartService.java b/src/main/java/com/gxwebsoft/shop/service/ShopCartService.java deleted file mode 100644 index 4ea9382..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopCartService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopCart; -import com.gxwebsoft.shop.param.ShopCartParam; - -import java.util.List; - -/** - * 购物车Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCartService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopCartParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopCartParam param); - - /** - * 根据id查询 - * - * @param id 购物车表ID - * @return ShopCart - */ - ShopCart getByIdRel(Long id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopCashierService.java b/src/main/java/com/gxwebsoft/shop/service/ShopCashierService.java deleted file mode 100644 index 33a0cc8..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopCashierService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopCashier; -import com.gxwebsoft.shop.param.ShopCashierParam; - -import java.util.List; - -/** - * 收银Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCashierService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopCashierParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopCashierParam param); - - /** - * 根据id查询 - * - * @param id 收银单ID - * @return ShopCashier - */ - ShopCashier getByIdRel(Long id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopCountService.java b/src/main/java/com/gxwebsoft/shop/service/ShopCountService.java deleted file mode 100644 index eaa8ecd..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopCountService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopCount; -import com.gxwebsoft.shop.param.ShopCountParam; - -import java.util.List; - -/** - * 商城销售统计表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopCountService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopCountParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopCountParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return ShopCount - */ - ShopCount getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerApplyService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerApplyService.java deleted file mode 100644 index 734db61..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerApplyService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerApply; -import com.gxwebsoft.shop.param.ShopDealerApplyParam; - -import java.util.List; - -/** - * 分销商申请记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:06 - */ -public interface ShopDealerApplyService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerApplyParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerApplyParam param); - - /** - * 根据id查询 - * - * @param applyId 主键ID - * @return ShopDealerApply - */ - ShopDealerApply getByIdRel(Integer applyId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerCapitalService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerCapitalService.java deleted file mode 100644 index 44fa443..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerCapitalService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerCapital; -import com.gxwebsoft.shop.param.ShopDealerCapitalParam; - -import java.util.List; - -/** - * 分销商资金明细表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerCapitalService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerCapitalParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerCapitalParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopDealerCapital - */ - ShopDealerCapital getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerOrderService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerOrderService.java deleted file mode 100644 index 61e5350..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerOrderService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerOrder; -import com.gxwebsoft.shop.param.ShopDealerOrderParam; - -import java.util.List; - -/** - * 分销商订单记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerOrderService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerOrderParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerOrderParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopDealerOrder - */ - ShopDealerOrder getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerRefereeService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerRefereeService.java deleted file mode 100644 index 43e91ba..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerRefereeService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerReferee; -import com.gxwebsoft.shop.param.ShopDealerRefereeParam; - -import java.util.List; - -/** - * 分销商推荐关系表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerRefereeService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerRefereeParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerRefereeParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopDealerReferee - */ - ShopDealerReferee getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerSettingService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerSettingService.java deleted file mode 100644 index 705b970..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerSettingService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerSetting; -import com.gxwebsoft.shop.param.ShopDealerSettingParam; - -import java.util.List; - -/** - * 分销商设置表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerSettingService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerSettingParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerSettingParam param); - - /** - * 根据id查询 - * - * @param key 设置项标示 - * @return ShopDealerSetting - */ - ShopDealerSetting getByIdRel(String key); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerUserService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerUserService.java deleted file mode 100644 index af2aae7..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerUserService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerUser; -import com.gxwebsoft.shop.param.ShopDealerUserParam; - -import java.util.List; - -/** - * 分销商用户记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerUserService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerUserParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerUserParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopDealerUser - */ - ShopDealerUser getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopDealerWithdrawService.java b/src/main/java/com/gxwebsoft/shop/service/ShopDealerWithdrawService.java deleted file mode 100644 index ea4837c..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopDealerWithdrawService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopDealerWithdraw; -import com.gxwebsoft.shop.param.ShopDealerWithdrawParam; - -import java.util.List; - -/** - * 分销商提现明细表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopDealerWithdrawService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopDealerWithdrawParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopDealerWithdrawParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopDealerWithdraw - */ - ShopDealerWithdraw getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCategoryService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCategoryService.java deleted file mode 100644 index 01b804e..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCategoryService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsCategory; -import com.gxwebsoft.shop.param.ShopGoodsCategoryParam; - -import java.util.List; - -/** - * 商品分类Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCategoryService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsCategoryParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsCategoryParam param); - - /** - * 根据id查询 - * - * @param categoryId 商品分类ID - * @return ShopGoodsCategory - */ - ShopGoodsCategory getByIdRel(Integer categoryId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCommentService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCommentService.java deleted file mode 100644 index 9dad509..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCommentService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsComment; -import com.gxwebsoft.shop.param.ShopGoodsCommentParam; - -import java.util.List; - -/** - * 评论表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCommentService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsCommentParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsCommentParam param); - - /** - * 根据id查询 - * - * @param id 评论ID - * @return ShopGoodsComment - */ - ShopGoodsComment getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCouponService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCouponService.java deleted file mode 100644 index d28525c..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsCouponService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsCoupon; -import com.gxwebsoft.shop.param.ShopGoodsCouponParam; - -import java.util.List; - -/** - * 商品优惠券表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsCouponService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsCouponParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsCouponParam param); - - /** - * 根据id查询 - * - * @param id - * @return ShopGoodsCoupon - */ - ShopGoodsCoupon getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsLogService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsLogService.java deleted file mode 100644 index 377d9fd..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsLogService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsLog; -import com.gxwebsoft.shop.param.ShopGoodsLogParam; - -import java.util.List; - -/** - * 商品日志表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsLogService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsLogParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsLogParam param); - - /** - * 根据id查询 - * - * @param id 统计ID - * @return ShopGoodsLog - */ - ShopGoodsLog getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsRelationService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsRelationService.java deleted file mode 100644 index 178e99c..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsRelationService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsRelation; -import com.gxwebsoft.shop.param.ShopGoodsRelationParam; - -import java.util.List; - -/** - * 商品点赞和收藏表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsRelationService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsRelationParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsRelationParam param); - - /** - * 根据id查询 - * - * @param id id - * @return ShopGoodsRelation - */ - ShopGoodsRelation getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsService.java deleted file mode 100644 index e3e0438..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoods; -import com.gxwebsoft.shop.param.ShopGoodsParam; - -import java.util.List; - -/** - * 商品记录表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsParam param); - - /** - * 根据id查询 - * - * @param goodsId 自增ID - * @return ShopGoods - */ - ShopGoods getByIdRel(Integer goodsId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSkuService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSkuService.java deleted file mode 100644 index ccbe3b0..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSkuService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsSku; -import com.gxwebsoft.shop.param.ShopGoodsSkuParam; - -import java.util.List; - -/** - * 商品sku列表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsSkuService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsSkuParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsSkuParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopGoodsSku - */ - ShopGoodsSku getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSpecService.java b/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSpecService.java deleted file mode 100644 index 77b98da..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopGoodsSpecService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopGoodsSpec; -import com.gxwebsoft.shop.param.ShopGoodsSpecParam; - -import java.util.List; - -/** - * 商品多规格Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopGoodsSpecService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopGoodsSpecParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopGoodsSpecParam param); - - /** - * 根据id查询 - * - * @param id 主键 - * @return ShopGoodsSpec - */ - ShopGoodsSpec getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantAccountService.java b/src/main/java/com/gxwebsoft/shop/service/ShopMerchantAccountService.java deleted file mode 100644 index b3743ba..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantAccountService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopMerchantAccount; -import com.gxwebsoft.shop.param.ShopMerchantAccountParam; - -import java.util.List; - -/** - * 商户账号Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantAccountService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopMerchantAccountParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopMerchantAccountParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return ShopMerchantAccount - */ - ShopMerchantAccount getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantApplyService.java b/src/main/java/com/gxwebsoft/shop/service/ShopMerchantApplyService.java deleted file mode 100644 index 93a8806..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantApplyService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.param.ShopMerchantApplyParam; - -import java.util.List; - -/** - * 商户入驻申请Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantApplyService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopMerchantApplyParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopMerchantApplyParam param); - - /** - * 根据id查询 - * - * @param applyId ID - * @return ShopMerchantApply - */ - ShopMerchantApply getByIdRel(Integer applyId); -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantCountService.java b/src/main/java/com/gxwebsoft/shop/service/ShopMerchantCountService.java deleted file mode 100644 index 4be992f..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantCountService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopMerchantCount; -import com.gxwebsoft.shop.param.ShopMerchantCountParam; - -import java.util.List; - -/** - * 门店销售统计表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantCountService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopMerchantCountParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopMerchantCountParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return ShopMerchantCount - */ - ShopMerchantCount getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantService.java b/src/main/java/com/gxwebsoft/shop/service/ShopMerchantService.java deleted file mode 100644 index 34afd4b..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopMerchant; -import com.gxwebsoft.shop.param.ShopMerchantParam; - -import java.util.List; - -/** - * 商户Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopMerchantParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopMerchantParam param); - - /** - * 根据id查询 - * - * @param merchantId ID - * @return ShopMerchant - */ - ShopMerchant getByIdRel(Long merchantId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantTypeService.java b/src/main/java/com/gxwebsoft/shop/service/ShopMerchantTypeService.java deleted file mode 100644 index 42f93e7..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopMerchantTypeService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopMerchantType; -import com.gxwebsoft.shop.param.ShopMerchantTypeParam; - -import java.util.List; - -/** - * 商户类型Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopMerchantTypeService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopMerchantTypeParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopMerchantTypeParam param); - - /** - * 根据id查询 - * - * @param id ID - * @return ShopMerchantType - */ - ShopMerchantType getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopOrderCartInfoService.java b/src/main/java/com/gxwebsoft/shop/service/ShopOrderCartInfoService.java deleted file mode 100644 index 1109034..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopOrderCartInfoService.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopOrderCartInfo; -import com.gxwebsoft.shop.param.ShopOrderCartInfoParam; - -import java.util.List; - -/** - * 订单购物详情表Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderCartInfoService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopOrderCartInfoParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopOrderCartInfoParam param); - - /** - * 根据id查询 - * - * @return ShopOrderCartInfo - */ - ShopOrderCartInfo getByIdRel(Long id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopOrderGoodsService.java b/src/main/java/com/gxwebsoft/shop/service/ShopOrderGoodsService.java deleted file mode 100644 index ecadd68..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopOrderGoodsService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopOrderGoods; -import com.gxwebsoft.shop.param.ShopOrderGoodsParam; - -import java.util.List; - -/** - * 商品信息Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderGoodsService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopOrderGoodsParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopOrderGoodsParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return ShopOrderGoods - */ - ShopOrderGoods getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoLogService.java b/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoLogService.java deleted file mode 100644 index 6da6853..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoLogService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopOrderInfoLog; -import com.gxwebsoft.shop.param.ShopOrderInfoLogParam; - -import java.util.List; - -/** - * 订单核销Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderInfoLogService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopOrderInfoLogParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopOrderInfoLogParam param); - - /** - * 根据id查询 - * - * @param id - * @return ShopOrderInfoLog - */ - ShopOrderInfoLog getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoService.java b/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoService.java deleted file mode 100644 index c7258dd..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopOrderInfoService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopOrderInfo; -import com.gxwebsoft.shop.param.ShopOrderInfoParam; - -import java.util.List; - -/** - * 场地Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderInfoService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopOrderInfoParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopOrderInfoParam param); - - /** - * 根据id查询 - * - * @param id 自增ID - * @return ShopOrderInfo - */ - ShopOrderInfo getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopOrderService.java b/src/main/java/com/gxwebsoft/shop/service/ShopOrderService.java deleted file mode 100644 index f1f16a3..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopOrderService.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopOrder; -import com.gxwebsoft.shop.param.ShopOrderParam; - -import java.util.List; - -/** - * 订单Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopOrderService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopOrderParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopOrderParam param); - - /** - * 根据id查询 - * - * @param orderId 订单号 - * @return ShopOrder - */ - ShopOrder getByIdRel(Integer orderId); - - void onPaySuccess(ShopOrder order); -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopSpecService.java b/src/main/java/com/gxwebsoft/shop/service/ShopSpecService.java deleted file mode 100644 index 93cf177..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopSpecService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopSpec; -import com.gxwebsoft.shop.param.ShopSpecParam; - -import java.util.List; - -/** - * 规格Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopSpecService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopSpecParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopSpecParam param); - - /** - * 根据id查询 - * - * @param specId 规格ID - * @return ShopSpec - */ - ShopSpec getByIdRel(Integer specId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopSpecValueService.java b/src/main/java/com/gxwebsoft/shop/service/ShopSpecValueService.java deleted file mode 100644 index 7058fda..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopSpecValueService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopSpecValue; -import com.gxwebsoft.shop.param.ShopSpecValueParam; - -import java.util.List; - -/** - * 规格值Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopSpecValueService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopSpecValueParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopSpecValueParam param); - - /** - * 根据id查询 - * - * @param specValueId 规格值ID - * @return ShopSpecValue - */ - ShopSpecValue getByIdRel(Integer specValueId); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopUserAddressService.java b/src/main/java/com/gxwebsoft/shop/service/ShopUserAddressService.java deleted file mode 100644 index 3415f94..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopUserAddressService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopUserAddress; -import com.gxwebsoft.shop.param.ShopUserAddressParam; - -import java.util.List; - -/** - * 收货地址Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopUserAddressService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopUserAddressParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopUserAddressParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopUserAddress - */ - ShopUserAddress getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopUserCollectionService.java b/src/main/java/com/gxwebsoft/shop/service/ShopUserCollectionService.java deleted file mode 100644 index 7e58868..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopUserCollectionService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopUserCollection; -import com.gxwebsoft.shop.param.ShopUserCollectionParam; - -import java.util.List; - -/** - * 我的收藏Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopUserCollectionService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopUserCollectionParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopUserCollectionParam param); - - /** - * 根据id查询 - * - * @param id 主键ID - * @return ShopUserCollection - */ - ShopUserCollection getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/ShopWechatDepositService.java b/src/main/java/com/gxwebsoft/shop/service/ShopWechatDepositService.java deleted file mode 100644 index 89bf235..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/ShopWechatDepositService.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.gxwebsoft.shop.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.gxwebsoft.common.core.web.PageResult; -import com.gxwebsoft.shop.entity.ShopWechatDeposit; -import com.gxwebsoft.shop.param.ShopWechatDepositParam; - -import java.util.List; - -/** - * 押金Service - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -public interface ShopWechatDepositService extends IService { - - /** - * 分页关联查询 - * - * @param param 查询参数 - * @return PageResult - */ - PageResult pageRel(ShopWechatDepositParam param); - - /** - * 关联查询全部 - * - * @param param 查询参数 - * @return List - */ - List listRel(ShopWechatDepositParam param); - - /** - * 根据id查询 - * - * @param id - * @return ShopWechatDeposit - */ - ShopWechatDeposit getByIdRel(Integer id); - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopBrandServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopBrandServiceImpl.java deleted file mode 100644 index 427dc68..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopBrandServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopBrandMapper; -import com.gxwebsoft.shop.service.ShopBrandService; -import com.gxwebsoft.shop.entity.ShopBrand; -import com.gxwebsoft.shop.param.ShopBrandParam; -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 21:05:06 - */ -@Service -public class ShopBrandServiceImpl extends ServiceImpl implements ShopBrandService { - - @Override - public PageResult pageRel(ShopBrandParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopBrandParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopBrand getByIdRel(Integer brandId) { - ShopBrandParam param = new ShopBrandParam(); - param.setBrandId(brandId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCartServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopCartServiceImpl.java deleted file mode 100644 index 50db035..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCartServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopCartMapper; -import com.gxwebsoft.shop.service.ShopCartService; -import com.gxwebsoft.shop.entity.ShopCart; -import com.gxwebsoft.shop.param.ShopCartParam; -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 21:05:06 - */ -@Service -public class ShopCartServiceImpl extends ServiceImpl implements ShopCartService { - - @Override - public PageResult pageRel(ShopCartParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopCartParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopCart getByIdRel(Long id) { - ShopCartParam param = new ShopCartParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCashierServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopCashierServiceImpl.java deleted file mode 100644 index 687e7c8..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCashierServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopCashierMapper; -import com.gxwebsoft.shop.service.ShopCashierService; -import com.gxwebsoft.shop.entity.ShopCashier; -import com.gxwebsoft.shop.param.ShopCashierParam; -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 21:05:06 - */ -@Service -public class ShopCashierServiceImpl extends ServiceImpl implements ShopCashierService { - - @Override - public PageResult pageRel(ShopCashierParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopCashierParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopCashier getByIdRel(Long id) { - ShopCashierParam param = new ShopCashierParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCountServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopCountServiceImpl.java deleted file mode 100644 index 5178859..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopCountServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopCountMapper; -import com.gxwebsoft.shop.service.ShopCountService; -import com.gxwebsoft.shop.entity.ShopCount; -import com.gxwebsoft.shop.param.ShopCountParam; -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 21:05:06 - */ -@Service -public class ShopCountServiceImpl extends ServiceImpl implements ShopCountService { - - @Override - public PageResult pageRel(ShopCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopCountParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopCount getByIdRel(Integer id) { - ShopCountParam param = new ShopCountParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerApplyServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerApplyServiceImpl.java deleted file mode 100644 index a9da527..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerApplyServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerApplyMapper; -import com.gxwebsoft.shop.service.ShopDealerApplyService; -import com.gxwebsoft.shop.entity.ShopDealerApply; -import com.gxwebsoft.shop.param.ShopDealerApplyParam; -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 21:05:06 - */ -@Service -public class ShopDealerApplyServiceImpl extends ServiceImpl implements ShopDealerApplyService { - - @Override - public PageResult pageRel(ShopDealerApplyParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerApplyParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerApply getByIdRel(Integer applyId) { - ShopDealerApplyParam param = new ShopDealerApplyParam(); - param.setApplyId(applyId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerCapitalServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerCapitalServiceImpl.java deleted file mode 100644 index 77af833..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerCapitalServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerCapitalMapper; -import com.gxwebsoft.shop.service.ShopDealerCapitalService; -import com.gxwebsoft.shop.entity.ShopDealerCapital; -import com.gxwebsoft.shop.param.ShopDealerCapitalParam; -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 21:05:07 - */ -@Service -public class ShopDealerCapitalServiceImpl extends ServiceImpl implements ShopDealerCapitalService { - - @Override - public PageResult pageRel(ShopDealerCapitalParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerCapitalParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerCapital getByIdRel(Integer id) { - ShopDealerCapitalParam param = new ShopDealerCapitalParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerOrderServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerOrderServiceImpl.java deleted file mode 100644 index 7c351c1..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerOrderServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerOrderMapper; -import com.gxwebsoft.shop.service.ShopDealerOrderService; -import com.gxwebsoft.shop.entity.ShopDealerOrder; -import com.gxwebsoft.shop.param.ShopDealerOrderParam; -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 21:05:07 - */ -@Service -public class ShopDealerOrderServiceImpl extends ServiceImpl implements ShopDealerOrderService { - - @Override - public PageResult pageRel(ShopDealerOrderParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerOrderParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerOrder getByIdRel(Integer id) { - ShopDealerOrderParam param = new ShopDealerOrderParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerRefereeServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerRefereeServiceImpl.java deleted file mode 100644 index e476231..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerRefereeServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerRefereeMapper; -import com.gxwebsoft.shop.service.ShopDealerRefereeService; -import com.gxwebsoft.shop.entity.ShopDealerReferee; -import com.gxwebsoft.shop.param.ShopDealerRefereeParam; -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 21:05:07 - */ -@Service -public class ShopDealerRefereeServiceImpl extends ServiceImpl implements ShopDealerRefereeService { - - @Override - public PageResult pageRel(ShopDealerRefereeParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerRefereeParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerReferee getByIdRel(Integer id) { - ShopDealerRefereeParam param = new ShopDealerRefereeParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerSettingServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerSettingServiceImpl.java deleted file mode 100644 index 291edbc..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerSettingServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerSettingMapper; -import com.gxwebsoft.shop.service.ShopDealerSettingService; -import com.gxwebsoft.shop.entity.ShopDealerSetting; -import com.gxwebsoft.shop.param.ShopDealerSettingParam; -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 21:05:07 - */ -@Service -public class ShopDealerSettingServiceImpl extends ServiceImpl implements ShopDealerSettingService { - - @Override - public PageResult pageRel(ShopDealerSettingParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerSettingParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerSetting getByIdRel(String key) { - ShopDealerSettingParam param = new ShopDealerSettingParam(); - param.setKey(key); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerUserServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerUserServiceImpl.java deleted file mode 100644 index 7533252..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerUserServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerUserMapper; -import com.gxwebsoft.shop.service.ShopDealerUserService; -import com.gxwebsoft.shop.entity.ShopDealerUser; -import com.gxwebsoft.shop.param.ShopDealerUserParam; -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 21:05:07 - */ -@Service -public class ShopDealerUserServiceImpl extends ServiceImpl implements ShopDealerUserService { - - @Override - public PageResult pageRel(ShopDealerUserParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerUserParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerUser getByIdRel(Integer id) { - ShopDealerUserParam param = new ShopDealerUserParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerWithdrawServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerWithdrawServiceImpl.java deleted file mode 100644 index da81d05..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopDealerWithdrawServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopDealerWithdrawMapper; -import com.gxwebsoft.shop.service.ShopDealerWithdrawService; -import com.gxwebsoft.shop.entity.ShopDealerWithdraw; -import com.gxwebsoft.shop.param.ShopDealerWithdrawParam; -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 21:05:07 - */ -@Service -public class ShopDealerWithdrawServiceImpl extends ServiceImpl implements ShopDealerWithdrawService { - - @Override - public PageResult pageRel(ShopDealerWithdrawParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopDealerWithdrawParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopDealerWithdraw getByIdRel(Integer id) { - ShopDealerWithdrawParam param = new ShopDealerWithdrawParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCategoryServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCategoryServiceImpl.java deleted file mode 100644 index 335b609..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCategoryServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsCategoryMapper; -import com.gxwebsoft.shop.service.ShopGoodsCategoryService; -import com.gxwebsoft.shop.entity.ShopGoodsCategory; -import com.gxwebsoft.shop.param.ShopGoodsCategoryParam; -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 21:05:07 - */ -@Service -public class ShopGoodsCategoryServiceImpl extends ServiceImpl implements ShopGoodsCategoryService { - - @Override - public PageResult pageRel(ShopGoodsCategoryParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsCategoryParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsCategory getByIdRel(Integer categoryId) { - ShopGoodsCategoryParam param = new ShopGoodsCategoryParam(); - param.setCategoryId(categoryId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCommentServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCommentServiceImpl.java deleted file mode 100644 index b5db860..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCommentServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsCommentMapper; -import com.gxwebsoft.shop.service.ShopGoodsCommentService; -import com.gxwebsoft.shop.entity.ShopGoodsComment; -import com.gxwebsoft.shop.param.ShopGoodsCommentParam; -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 21:05:07 - */ -@Service -public class ShopGoodsCommentServiceImpl extends ServiceImpl implements ShopGoodsCommentService { - - @Override - public PageResult pageRel(ShopGoodsCommentParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsCommentParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsComment getByIdRel(Integer id) { - ShopGoodsCommentParam param = new ShopGoodsCommentParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCouponServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCouponServiceImpl.java deleted file mode 100644 index ffac92d..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsCouponServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsCouponMapper; -import com.gxwebsoft.shop.service.ShopGoodsCouponService; -import com.gxwebsoft.shop.entity.ShopGoodsCoupon; -import com.gxwebsoft.shop.param.ShopGoodsCouponParam; -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 21:05:07 - */ -@Service -public class ShopGoodsCouponServiceImpl extends ServiceImpl implements ShopGoodsCouponService { - - @Override - public PageResult pageRel(ShopGoodsCouponParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsCouponParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsCoupon getByIdRel(Integer id) { - ShopGoodsCouponParam param = new ShopGoodsCouponParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsLogServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsLogServiceImpl.java deleted file mode 100644 index 01fd0aa..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsLogServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsLogMapper; -import com.gxwebsoft.shop.service.ShopGoodsLogService; -import com.gxwebsoft.shop.entity.ShopGoodsLog; -import com.gxwebsoft.shop.param.ShopGoodsLogParam; -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 21:05:07 - */ -@Service -public class ShopGoodsLogServiceImpl extends ServiceImpl implements ShopGoodsLogService { - - @Override - public PageResult pageRel(ShopGoodsLogParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsLogParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsLog getByIdRel(Integer id) { - ShopGoodsLogParam param = new ShopGoodsLogParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsRelationServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsRelationServiceImpl.java deleted file mode 100644 index c737804..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsRelationServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsRelationMapper; -import com.gxwebsoft.shop.service.ShopGoodsRelationService; -import com.gxwebsoft.shop.entity.ShopGoodsRelation; -import com.gxwebsoft.shop.param.ShopGoodsRelationParam; -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 21:05:07 - */ -@Service -public class ShopGoodsRelationServiceImpl extends ServiceImpl implements ShopGoodsRelationService { - - @Override - public PageResult pageRel(ShopGoodsRelationParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsRelationParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsRelation getByIdRel(Integer id) { - ShopGoodsRelationParam param = new ShopGoodsRelationParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsServiceImpl.java deleted file mode 100644 index 36a7850..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsMapper; -import com.gxwebsoft.shop.service.ShopGoodsService; -import com.gxwebsoft.shop.entity.ShopGoods; -import com.gxwebsoft.shop.param.ShopGoodsParam; -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 21:05:07 - */ -@Service -public class ShopGoodsServiceImpl extends ServiceImpl implements ShopGoodsService { - - @Override - public PageResult pageRel(ShopGoodsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoods getByIdRel(Integer goodsId) { - ShopGoodsParam param = new ShopGoodsParam(); - param.setGoodsId(goodsId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSkuServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSkuServiceImpl.java deleted file mode 100644 index 8a3ba76..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSkuServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsSkuMapper; -import com.gxwebsoft.shop.service.ShopGoodsSkuService; -import com.gxwebsoft.shop.entity.ShopGoodsSku; -import com.gxwebsoft.shop.param.ShopGoodsSkuParam; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 商品sku列表Service实现 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Service -public class ShopGoodsSkuServiceImpl extends ServiceImpl implements ShopGoodsSkuService { - - @Override - public PageResult pageRel(ShopGoodsSkuParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsSkuParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsSku getByIdRel(Integer id) { - ShopGoodsSkuParam param = new ShopGoodsSkuParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSpecServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSpecServiceImpl.java deleted file mode 100644 index 8817b94..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopGoodsSpecServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopGoodsSpecMapper; -import com.gxwebsoft.shop.service.ShopGoodsSpecService; -import com.gxwebsoft.shop.entity.ShopGoodsSpec; -import com.gxwebsoft.shop.param.ShopGoodsSpecParam; -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 21:05:07 - */ -@Service -public class ShopGoodsSpecServiceImpl extends ServiceImpl implements ShopGoodsSpecService { - - @Override - public PageResult pageRel(ShopGoodsSpecParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopGoodsSpecParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopGoodsSpec getByIdRel(Integer id) { - ShopGoodsSpecParam param = new ShopGoodsSpecParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantAccountServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantAccountServiceImpl.java deleted file mode 100644 index 7022869..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantAccountServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopMerchantAccountMapper; -import com.gxwebsoft.shop.service.ShopMerchantAccountService; -import com.gxwebsoft.shop.entity.ShopMerchantAccount; -import com.gxwebsoft.shop.param.ShopMerchantAccountParam; -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 21:05:07 - */ -@Service -public class ShopMerchantAccountServiceImpl extends ServiceImpl implements ShopMerchantAccountService { - - @Override - public PageResult pageRel(ShopMerchantAccountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopMerchantAccountParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopMerchantAccount getByIdRel(Integer id) { - ShopMerchantAccountParam param = new ShopMerchantAccountParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantApplyServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantApplyServiceImpl.java deleted file mode 100644 index e71331d..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantApplyServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopMerchantApplyMapper; -import com.gxwebsoft.shop.service.ShopMerchantApplyService; -import com.gxwebsoft.shop.entity.ShopMerchantApply; -import com.gxwebsoft.shop.param.ShopMerchantApplyParam; -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 21:05:07 - */ -@Service -public class ShopMerchantApplyServiceImpl extends ServiceImpl implements ShopMerchantApplyService { - - @Override - public PageResult pageRel(ShopMerchantApplyParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopMerchantApplyParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopMerchantApply getByIdRel(Integer applyId) { - ShopMerchantApplyParam param = new ShopMerchantApplyParam(); - param.setApplyId(applyId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantCountServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantCountServiceImpl.java deleted file mode 100644 index 2487b4c..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantCountServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopMerchantCountMapper; -import com.gxwebsoft.shop.service.ShopMerchantCountService; -import com.gxwebsoft.shop.entity.ShopMerchantCount; -import com.gxwebsoft.shop.param.ShopMerchantCountParam; -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 21:05:07 - */ -@Service -public class ShopMerchantCountServiceImpl extends ServiceImpl implements ShopMerchantCountService { - - @Override - public PageResult pageRel(ShopMerchantCountParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopMerchantCountParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopMerchantCount getByIdRel(Integer id) { - ShopMerchantCountParam param = new ShopMerchantCountParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantServiceImpl.java deleted file mode 100644 index e91d438..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopMerchantMapper; -import com.gxwebsoft.shop.service.ShopMerchantService; -import com.gxwebsoft.shop.entity.ShopMerchant; -import com.gxwebsoft.shop.param.ShopMerchantParam; -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 21:05:07 - */ -@Service -public class ShopMerchantServiceImpl extends ServiceImpl implements ShopMerchantService { - - @Override - public PageResult pageRel(ShopMerchantParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopMerchantParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopMerchant getByIdRel(Long merchantId) { - ShopMerchantParam param = new ShopMerchantParam(); - param.setMerchantId(merchantId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantTypeServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantTypeServiceImpl.java deleted file mode 100644 index cd0175b..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopMerchantTypeServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopMerchantTypeMapper; -import com.gxwebsoft.shop.service.ShopMerchantTypeService; -import com.gxwebsoft.shop.entity.ShopMerchantType; -import com.gxwebsoft.shop.param.ShopMerchantTypeParam; -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 21:05:07 - */ -@Service -public class ShopMerchantTypeServiceImpl extends ServiceImpl implements ShopMerchantTypeService { - - @Override - public PageResult pageRel(ShopMerchantTypeParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopMerchantTypeParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopMerchantType getByIdRel(Integer id) { - ShopMerchantTypeParam param = new ShopMerchantTypeParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderCartInfoServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderCartInfoServiceImpl.java deleted file mode 100644 index e68397d..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderCartInfoServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopOrderCartInfoMapper; -import com.gxwebsoft.shop.service.ShopOrderCartInfoService; -import com.gxwebsoft.shop.entity.ShopOrderCartInfo; -import com.gxwebsoft.shop.param.ShopOrderCartInfoParam; -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 21:05:07 - */ -@Service -public class ShopOrderCartInfoServiceImpl extends ServiceImpl implements ShopOrderCartInfoService { - - @Override - public PageResult pageRel(ShopOrderCartInfoParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopOrderCartInfoParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopOrderCartInfo getByIdRel(Long id) { - ShopOrderCartInfoParam param = new ShopOrderCartInfoParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderGoodsServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderGoodsServiceImpl.java deleted file mode 100644 index a3ef7fd..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderGoodsServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopOrderGoodsMapper; -import com.gxwebsoft.shop.service.ShopOrderGoodsService; -import com.gxwebsoft.shop.entity.ShopOrderGoods; -import com.gxwebsoft.shop.param.ShopOrderGoodsParam; -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 21:05:07 - */ -@Service -public class ShopOrderGoodsServiceImpl extends ServiceImpl implements ShopOrderGoodsService { - - @Override - public PageResult pageRel(ShopOrderGoodsParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopOrderGoodsParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopOrderGoods getByIdRel(Integer id) { - ShopOrderGoodsParam param = new ShopOrderGoodsParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoLogServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoLogServiceImpl.java deleted file mode 100644 index b7333d3..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoLogServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopOrderInfoLogMapper; -import com.gxwebsoft.shop.service.ShopOrderInfoLogService; -import com.gxwebsoft.shop.entity.ShopOrderInfoLog; -import com.gxwebsoft.shop.param.ShopOrderInfoLogParam; -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 21:05:07 - */ -@Service -public class ShopOrderInfoLogServiceImpl extends ServiceImpl implements ShopOrderInfoLogService { - - @Override - public PageResult pageRel(ShopOrderInfoLogParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopOrderInfoLogParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopOrderInfoLog getByIdRel(Integer id) { - ShopOrderInfoLogParam param = new ShopOrderInfoLogParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoServiceImpl.java deleted file mode 100644 index 39932ca..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderInfoServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopOrderInfoMapper; -import com.gxwebsoft.shop.service.ShopOrderInfoService; -import com.gxwebsoft.shop.entity.ShopOrderInfo; -import com.gxwebsoft.shop.param.ShopOrderInfoParam; -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 21:05:07 - */ -@Service -public class ShopOrderInfoServiceImpl extends ServiceImpl implements ShopOrderInfoService { - - @Override - public PageResult pageRel(ShopOrderInfoParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopOrderInfoParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopOrderInfo getByIdRel(Integer id) { - ShopOrderInfoParam param = new ShopOrderInfoParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java deleted file mode 100644 index 2384d50..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopOrderServiceImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import cn.hutool.core.date.DateUtil; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopOrderMapper; -import com.gxwebsoft.shop.service.ShopOrderService; -import com.gxwebsoft.shop.entity.ShopOrder; -import com.gxwebsoft.shop.param.ShopOrderParam; -import com.gxwebsoft.common.core.web.PageParam; -import com.gxwebsoft.common.core.web.PageResult; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.List; - -/** - * 订单Service实现 - * - * @author 科技小王子 - * @since 2024-09-10 21:05:07 - */ -@Service -public class ShopOrderServiceImpl extends ServiceImpl implements ShopOrderService { - @Resource - private ShopOrderService shopOrderService; - - @Override - public PageResult pageRel(ShopOrderParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopOrderParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopOrder getByIdRel(Integer orderId) { - ShopOrderParam param = new ShopOrderParam(); - param.setOrderId(orderId); - return param.getOne(baseMapper.selectListRel(param)); - } - - /** - * 支付成功后的事务处理 - * @param order - */ - @Override - public void onPaySuccess(ShopOrder order) { - System.out.println("支付成功后的事务处理 = " + order); - order.setPayStatus(true); - order.setPayTime(DateUtil.date()); - shopOrderService.updateById(order); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecServiceImpl.java deleted file mode 100644 index abffeea..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopSpecMapper; -import com.gxwebsoft.shop.service.ShopSpecService; -import com.gxwebsoft.shop.entity.ShopSpec; -import com.gxwebsoft.shop.param.ShopSpecParam; -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 21:05:07 - */ -@Service -public class ShopSpecServiceImpl extends ServiceImpl implements ShopSpecService { - - @Override - public PageResult pageRel(ShopSpecParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopSpecParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopSpec getByIdRel(Integer specId) { - ShopSpecParam param = new ShopSpecParam(); - param.setSpecId(specId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecValueServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecValueServiceImpl.java deleted file mode 100644 index 8e10dce..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopSpecValueServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopSpecValueMapper; -import com.gxwebsoft.shop.service.ShopSpecValueService; -import com.gxwebsoft.shop.entity.ShopSpecValue; -import com.gxwebsoft.shop.param.ShopSpecValueParam; -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 21:05:07 - */ -@Service -public class ShopSpecValueServiceImpl extends ServiceImpl implements ShopSpecValueService { - - @Override - public PageResult pageRel(ShopSpecValueParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopSpecValueParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopSpecValue getByIdRel(Integer specValueId) { - ShopSpecValueParam param = new ShopSpecValueParam(); - param.setSpecValueId(specValueId); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserAddressServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserAddressServiceImpl.java deleted file mode 100644 index 3870caf..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserAddressServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopUserAddressMapper; -import com.gxwebsoft.shop.service.ShopUserAddressService; -import com.gxwebsoft.shop.entity.ShopUserAddress; -import com.gxwebsoft.shop.param.ShopUserAddressParam; -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 21:05:07 - */ -@Service -public class ShopUserAddressServiceImpl extends ServiceImpl implements ShopUserAddressService { - - @Override - public PageResult pageRel(ShopUserAddressParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopUserAddressParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopUserAddress getByIdRel(Integer id) { - ShopUserAddressParam param = new ShopUserAddressParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserCollectionServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserCollectionServiceImpl.java deleted file mode 100644 index 6a79f51..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopUserCollectionServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopUserCollectionMapper; -import com.gxwebsoft.shop.service.ShopUserCollectionService; -import com.gxwebsoft.shop.entity.ShopUserCollection; -import com.gxwebsoft.shop.param.ShopUserCollectionParam; -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 21:05:07 - */ -@Service -public class ShopUserCollectionServiceImpl extends ServiceImpl implements ShopUserCollectionService { - - @Override - public PageResult pageRel(ShopUserCollectionParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopUserCollectionParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopUserCollection getByIdRel(Integer id) { - ShopUserCollectionParam param = new ShopUserCollectionParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/java/com/gxwebsoft/shop/service/impl/ShopWechatDepositServiceImpl.java b/src/main/java/com/gxwebsoft/shop/service/impl/ShopWechatDepositServiceImpl.java deleted file mode 100644 index bdd26ec..0000000 --- a/src/main/java/com/gxwebsoft/shop/service/impl/ShopWechatDepositServiceImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.gxwebsoft.shop.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.gxwebsoft.shop.mapper.ShopWechatDepositMapper; -import com.gxwebsoft.shop.service.ShopWechatDepositService; -import com.gxwebsoft.shop.entity.ShopWechatDeposit; -import com.gxwebsoft.shop.param.ShopWechatDepositParam; -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 21:05:07 - */ -@Service -public class ShopWechatDepositServiceImpl extends ServiceImpl implements ShopWechatDepositService { - - @Override - public PageResult pageRel(ShopWechatDepositParam param) { - PageParam page = new PageParam<>(param); - page.setDefaultOrder("create_time desc"); - List list = baseMapper.selectPageRel(page, param); - return new PageResult<>(list, page.getTotal()); - } - - @Override - public List listRel(ShopWechatDepositParam param) { - List list = baseMapper.selectListRel(param); - // 排序 - PageParam page = new PageParam<>(); - page.setDefaultOrder("create_time desc"); - return page.sortRecords(list); - } - - @Override - public ShopWechatDeposit getByIdRel(Integer id) { - ShopWechatDepositParam param = new ShopWechatDepositParam(); - param.setId(id); - return param.getOne(baseMapper.selectListRel(param)); - } - -} diff --git a/src/main/resources/application-s209.yml b/src/main/resources/application-s209.yml deleted file mode 100644 index b550f79..0000000 --- a/src/main/resources/application-s209.yml +++ /dev/null @@ -1,53 +0,0 @@ -# 生产环境配置 - -# 数据源配置 -spring: - datasource: - url: jdbc:mysql://pgsql:5432/websoft_core?useSSL=false&serverTimezone=UTC - username: websoft_core - password: 6KPnKxCiWDW2XSxE - driver-class-name: com.mysql.cj.jdbc.Driver - type: com.alibaba.druid.pool.DruidDataSource - redis: - database: 0 - host: 1Panel-redis-Q1LE - port: 6379 - password: redis_WSDb88 - -# 日志配置 -logging: - file: - name: websoft-core.log - level: - root: WARN - com.gxwebsoft: ERROR - com.baomidou.mybatisplus: ERROR - -socketio: - host: 0.0.0.0 #IP地址 - -knife4j: - # 开启knife4j增强 - enable: true - # 开启生产环境屏蔽,一定要先开启knife4j增强才会生效 - production: false - -# 框架配置 -config: - # 生产环境接口 - server-url: https://server.gxwebsoft.com/api - upload-path: /www/wwwroot/file.ws - - # 阿里云OSS云存储 - endpoint: https://oss-cn-shenzhen.aliyuncs.com - accessKeyId: LTAI4GKGZ9Z2Z8JZ77c3GNZP - accessKeySecret: BiDkpS7UXj72HWwDWaFZxiXjNFBNCM - bucketName: oss-gxwebsoft - bucketDomain: https://oss.wsdns.cn - aliyunDomain: https://oss-gxwebsoft.oss-cn-shenzhen.aliyuncs.com - -# 生产环境证书配置 -certificate: - # 生产环境使用挂载卷模式 - load-mode: VOLUME - cert-root-path: /app/certs diff --git a/src/main/resources/certs/dev/wechat/10550/apiclient_cert.p12 b/src/main/resources/certs/dev/wechat/10550/apiclient_cert.p12 deleted file mode 100644 index bde6b5e..0000000 Binary files a/src/main/resources/certs/dev/wechat/10550/apiclient_cert.p12 and /dev/null differ diff --git a/src/main/resources/certs/dev/wechat/10550/apiclient_cert.pem b/src/main/resources/certs/dev/wechat/10550/apiclient_cert.pem deleted file mode 100644 index e3b8be8..0000000 --- a/src/main/resources/certs/dev/wechat/10550/apiclient_cert.pem +++ /dev/null @@ -1,25 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIEQDCCAyigAwIBAgIUK5M/fDUBShw2NkJiPkpiNks0xOswDQYJKoZIhvcNAQEL -BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT -FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg -Q0EwHhcNMjUwNzI2MTI1MjMyWhcNMzAwNzI1MTI1MjMyWjCBmTETMBEGA1UEAwwK -MTcyMzMyMTMzODEbMBkGA1UECgwS5b6u5L+h5ZWG5oi357O757ufMUUwQwYDVQQL -DDzmnZzlsJTkvK/nibnokpnlj6Tml4/oh6rmsrvljr/ml7bph4zlhpzkuJrnp5Hm -ioDmnInpmZDlhazlj7gxCzAJBgNVBAYTAkNOMREwDwYDVQQHDAhTaGVuWmhlbjCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANO4sq8tWbg5Zg6ioIltG8ME -8D1V3w4SXcsqBm5ilyCBVflQTHLqTUIKtU9BeR7+SQpeArDDFEVaMfn4ZuHlHPkY -Eic7YvuHMxH82IBAt9Ryz1m9ULTvae9Z3JGWEhIPiG/FmXjrak4LUlPoHDi22pVy -XLallAacP/1O8UKFg3KaGNi5/ZrTgoDr/hHkdW1CR12PlqxAV3fSShqAhwEemHav -msRptybIJND7K97XA3UPBxP84f2FuHwlj0c1sCqwI/C4R4hDZI7ShG+BEnNcUuDD -plk3qjj3igHUX6KfZZ5V6/MWUw02inV+SH72dDKdhItLFdZlT8bpvxjjb9UYr4MC -AwEAAaOBuTCBtjAJBgNVHRMEAjAAMAsGA1UdDwQEAwID+DCBmwYDVR0fBIGTMIGQ -MIGNoIGKoIGHhoGEaHR0cDovL2V2Y2EuaXRydXMuY29tLmNuL3B1YmxpYy9pdHJ1 -c2NybD9DQT0xQkQ0MjIwRTUwREJDMDRCMDZBRDM5NzU0OTg0NkMwMUMzRThFQkQy -JnNnPUhBQ0M0NzFCNjU0MjJFMTJCMjdBOUQzM0E4N0FEMUNERjU5MjZFMTQwMzcx -MA0GCSqGSIb3DQEBCwUAA4IBAQAzIMqiMPT8gsJo3eEkppJPwOcA8SrPxrSJ0qV4 -/kZlu1ceClIy2aOPXDjf/LjB0I4YabU7/J8pLnXbKPKe2fSG1AycjrLEsZTOJ51M -Yahvj6sRJoC5aa+xQOj17VAVqySEg0JyK/5k6kvAulPO1dG6/YGoycAdDflJOjyd -mIHWQzlEJb5+LWQFCwskMTWy3CUF9Edw7jhgJwkl24CztocGrJ+AfJzoBTkfZmNO -TxD5gVSK00B1r7+ipS+iLXxWeHCpaRsG3PSsByWDA6pphlwr5IMghqne465gavWi -muwrpaGPdVi6+vz/QFyMelj4GT8g77VGVRCOa8DUvu0QxjTk ------END CERTIFICATE----- diff --git a/src/main/resources/certs/dev/wechat/10550/apiclient_key.pem b/src/main/resources/certs/dev/wechat/10550/apiclient_key.pem deleted file mode 100644 index d3c1495..0000000 --- a/src/main/resources/certs/dev/wechat/10550/apiclient_key.pem +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDTuLKvLVm4OWYO -oqCJbRvDBPA9Vd8OEl3LKgZuYpcggVX5UExy6k1CCrVPQXke/kkKXgKwwxRFWjH5 -+Gbh5Rz5GBInO2L7hzMR/NiAQLfUcs9ZvVC072nvWdyRlhISD4hvxZl462pOC1JT -6Bw4ttqVcly2pZQGnD/9TvFChYNymhjYuf2a04KA6/4R5HVtQkddj5asQFd30koa -gIcBHph2r5rEabcmyCTQ+yve1wN1DwcT/OH9hbh8JY9HNbAqsCPwuEeIQ2SO0oRv -gRJzXFLgw6ZZN6o494oB1F+in2WeVevzFlMNNop1fkh+9nQynYSLSxXWZU/G6b8Y -42/VGK+DAgMBAAECggEAIgBuid2RpBlrv3v0pj1kkPxRDLimut7OO1uDbuTcenbq -9MAllurz/2Ay4AiWyBh0aHrSmcqqjby/e/KdqzedYI+yEqTh75014XSm3GoIW9EY -ZcQWmwg8DhlzZ9ofCtF9yt2EGTxNdT0yOpFzPtR25DtakmajEDC1whuUeWdxxcyY -2fDnIDeyaYfWSD0MWBYCa3+8TcvM/gCYzamr/Tfj59VwsznPNr5ehkQdCCRWVMAr -gg+h6ZOta8fSPwY11T6B743f5uyUUatKH90Yvg8OgbNqoqWyuPSoXM+VF0YOQk2N -0Q0gKnQ4ReDPFPBDXLfzQ4Q7g+N+S2u12r1u6z/E6QKBgQDsAvEO4l22pV6pltX9 -DDu6qyjPrRE7wadahFDWE7Rm3ENp69Ha1DqaNMYzGzSjcVZX0eoXsBw/cfyhjlML -vxw72SRS4XdZSJ+pfrtLw8n1XcuW8xOupVD0s9oLLB2dBXcJeytCM5UITZZHbJei -Y90Rlg88Ud7evO9kaENIouYc/QKBgQDlpx1t2qmjQcaXS1Ohe09ovCzxIr3jv8LQ -TQkM3wS9RdfOqX3MynnCopBlEYgxJFORQx2pzT1TmGtg5UOGP6Reck64oI8C+Vjt -AkFlODk1JCjeSgoR1zw1+KEwOZ9x2jswC1E3oZsFU+FdbrdyBiCyHRAXfWX3QW8y -CQIu6gnmfwKBgEALLE7Vroh5p45tl/Pq9epZt+FjHWIR0tAFR8pP3oxrCQAdNf0j -yiM+XupPX6FaiAucsuFqsL+mtt9AN9jgK1EyQ2EaPcDErE7aTQjqQEuNAEod/CFQ -Sv+cLncJqZ+KdBrmiX6VcMOoCjeniB5Q6xRym//KV6gprOyaPmffjIIhAoGAc1qQ -7rgyE34bma1NkcRVq98xl+ICjd6ppWW8kQmI4OWvM/Bw7ygZJwnvC8VVqpF7pHCY -+szL7CyYazBdzZY0Ivi50AVeMHk9ELfcT1KBcc769EUub620YcvEc2vOSir7JfPZ -VN9I9dEfV4YggRbQ34a3qYTkbeEhUHmz7grC9FMCgYBOanMGgmxLyRkrJdFvSgr5 -cBFeUxyr2jqgNrNbE77d5yB1lbgtWKQuokszSaxdnxGnsANSYdeF1FVI9zhcaqJf -xB2xOMesrNksZ4C+fKkSgmeofXi+D5aWYIZVuj73KInzJsvpci7z8qLK6/RjZsyF -TomCc7Iv0ufa1OirExFaNA== ------END PRIVATE KEY-----