commit c1a80d239448b5dd61bb451c9ca26ff208fe2414 Author: old burden Date: Mon Jan 19 14:34:41 2026 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed8368a --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +###################################################################### +# Build Tools + +.gradle +/build/ +!gradle/wrapper/gradle-wrapper.jar + +target/ +!.mvn/wrapper/maven-wrapper.jar + +###################################################################### +# IDE + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### JRebel ### +rebel.xml + +### NetBeans ### +nbproject/private/ +build/* +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ + +###################################################################### +# Others +*.log +*.xml.versionsBackup +*.swp + +!*/build/*.java +!*/build/*.html +!*/build/*.xml diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8564f29 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2018 RuoYi + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..6342200 --- /dev/null +++ b/README.md @@ -0,0 +1,89 @@ +

+ logo +

+

RuoYi v3.9.0

+

基于SpringBoot+Vue前后端分离的Java快速开发框架

+

+ + + +

+ +## 平台简介 + +若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 + +* 前端采用Vue、Element UI。 +* 后端采用Spring Boot、Spring Security、Redis & Jwt。 +* 权限认证使用Jwt,支持多终端认证系统。 +* 支持加载动态权限菜单,多方式轻松权限控制。 +* 高效率开发,使用代码生成器可以一键生成前后端代码。 +* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://gitcode.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。 +* 提供了单应用版本[RuoYi-Vue-fast](https://gitcode.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://gitcode.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。 +* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) + +## 内置功能 + +1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 +2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 +3. 岗位管理:配置系统用户所属担任职务。 +4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。 +5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。 +6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。 +7. 参数管理:对系统动态配置常用参数。 +8. 通知公告:系统通知公告信息发布维护。 +9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。 +10. 登录日志:系统登录日志记录查询包含登录异常。 +11. 在线用户:当前系统中活跃用户状态监控。 +12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。 +13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。 +14. 系统接口:根据业务代码自动生成相关的api接口文档。 +15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。 +16. 缓存监控:对系统的缓存信息查询,命令统计等。 +17. 在线构建器:拖动表单元素生成相应的HTML代码。 +18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。 + +## 在线体验 + +- admin/admin123 +- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。 + +演示地址:http://vue.ruoyi.vip +文档地址:http://doc.ruoyi.vip + +## 演示图 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/nginx_config_optimized.conf b/nginx_config_optimized.conf new file mode 100644 index 0000000..c4644f3 --- /dev/null +++ b/nginx_config_optimized.conf @@ -0,0 +1,64 @@ +server { + listen 80; + listen 443 ssl; + http2 on; + + server_name undressing.top www.undressing.top; + index index.html index.htm; + ssl_certificate ssl/undressing.top.crt; + ssl_certificate_key ssl/undressing.top.key; + ssl_session_timeout 5m; + # 优化加密套件配置,移除不安全的算法 + ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!3DES; + # 移除不安全的 TLSv1.1,只保留 TLSv1.2 和 TLSv1.3 + ssl_protocols TLSv1.2 TLSv1.3; + ssl_prefer_server_ciphers on; + # 启用 SSL session 缓存,提高性能 + ssl_session_cache shared:SSL:10m; + ssl_session_tickets off; + + root /data/web/client_web; + autoindex off; # 禁用目录列表 + + # 安全头部 + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + add_header X-Frame-Options "SAMEORIGIN" always; + add_header X-Content-Type-Options "nosniff" always; + add_header X-XSS-Protection "1; mode=block" always; + + location ~ /\. { + deny all; + access_log off; + log_not_found off; + } + location ~* (\.git|\.env|composer\.json|\.log|\.sql)$ { + deny all; + } + location ^~ /api/ { + proxy_pass http://10.0.0.167:8110; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Real-Port $remote_port; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Port $server_port; + proxy_set_header REMOTE-HOST $remote_addr; + + proxy_connect_timeout 60s; + proxy_send_timeout 600s; + proxy_read_timeout 600s; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + # 缓冲配置,提高性能 + proxy_buffering on; + proxy_buffer_size 4k; + proxy_buffers 8 4k; + } + location / { + root /data/web/client_web; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..2e6fbb2 --- /dev/null +++ b/pom.xml @@ -0,0 +1,386 @@ + + + 4.0.0 + + com.ruoyi + ruoyi + 3.9.0 + + ruoyi + http://www.ruoyi.vip + 管理系统 + + + 3.9.0 + UTF-8 + UTF-8 + 1.8 + 3.1.1 + 2.5.15 + 1.2.23 + 1.21 + 3.0.0 + 2.3.3 + 1.4.7 + 2.0.57 + 6.8.2 + 2.19.0 + 4.1.2 + 2.3 + 0.9.1 + + 9.0.106 + 1.2.13 + 5.7.12 + 5.3.39 + 7.2.29 + 3.5.1 + + + + + + + + + org.springframework + spring-framework-bom + ${spring-framework.version} + pom + import + + + + + org.springframework.security + spring-security-bom + ${spring-security.version} + pom + import + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + ch.qos.logback + logback-core + ${logback.version} + + + + ch.qos.logback + logback-classic + ${logback.version} + + + + + org.apache.tomcat.embed + tomcat-embed-core + ${tomcat.version} + + + + org.apache.tomcat.embed + tomcat-embed-el + ${tomcat.version} + + + + org.apache.tomcat.embed + tomcat-embed-websocket + ${tomcat.version} + + + + + com.alibaba + druid-spring-boot-starter + ${druid.version} + + + + + eu.bitwalker + UserAgentUtils + ${bitwalker.version} + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + ${pagehelper.boot.version} + + + + + com.github.oshi + oshi-core + ${oshi.version} + + + + + io.springfox + springfox-boot-starter + ${swagger.version} + + + io.swagger + swagger-models + + + + + + + commons-io + commons-io + ${commons.io.version} + + + + + org.apache.poi + poi-ooxml + ${poi.version} + + + + + org.apache.velocity + velocity-engine-core + ${velocity.version} + + + + + com.alibaba.fastjson2 + fastjson2 + ${fastjson.version} + + + + + io.jsonwebtoken + jjwt + ${jwt.version} + + + + + pro.fessional + kaptcha + ${kaptcha.version} + + + + + com.ruoyi + ruoyi-quartz + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-generator + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-framework + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-system + ${ruoyi.version} + + + + + com.ruoyi + ruoyi-common + ${ruoyi.version} + + + + + com.qiniu + qiniu-java-sdk + ${qiniu_api.version} + + + + + com.baomidou + mybatis-plus-extension + ${mybatis-plus.version} + + + + com.baomidou + mybatis-plus-boot-starter + ${mybatis-plus.version} + + + + + + + + + + + + + + + cn.hutool + hutool-all + 5.8.37 + + + + + org.projectlombok + lombok + 1.18.38 + true + + + + + org.springframework.boot + spring-boot-starter-websocket + + + + + net.java.dev.jna + jna + 5.13.0 + + + + + com.microsoft.sqlserver + sqljdbc4 + 4.0 + + + + org.bouncycastle + bcprov-jdk15on + 1.70 + + + + + + ruoyi-admin + ruoyi-framework + ruoyi-system + ruoyi-quartz + ruoyi-generator + ruoyi-common + + pom + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${java.version} + ${java.version} + ${project.build.sourceEncoding} + + + + + + + + + + + + + + + + + + + + + + aliyun-public + aliyun nexus + https://maven.aliyun.com/repository/public + + true + + + false + + + + + central + maven2 + https://repo.maven.apache.org/maven2/ + + true + + + false + + + + + + + aliyun-public + aliyun nexus + https://maven.aliyun.com/repository/public + + true + + + false + + + + central + maven2 + https://repo.maven.apache.org/maven2/ + + true + + + false + + + + + \ No newline at end of file diff --git a/ruoyi-admin/pom.xml b/ruoyi-admin/pom.xml new file mode 100644 index 0000000..97c6d79 --- /dev/null +++ b/ruoyi-admin/pom.xml @@ -0,0 +1,105 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + jar + ruoyi-admin + + + web服务入口 + + + + + + + org.springframework.boot + spring-boot-devtools + true + + + + + io.springfox + springfox-boot-starter + + + + + io.swagger + swagger-models + 1.6.2 + + + + + mysql + mysql-connector-java + + + + + com.ruoyi + ruoyi-framework + + + + + com.ruoyi + ruoyi-quartz + + + + + com.ruoyi + ruoyi-generator + + + org.springframework.boot + spring-boot-test + test + + + junit + junit + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.5.15 + + true + + + + + repackage + + + + + + org.apache.maven.plugins + maven-war-plugin + 3.1.0 + + false + ${project.artifactId} + + + + byteai-api + + + diff --git a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java new file mode 100644 index 0000000..b515f89 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java @@ -0,0 +1,19 @@ +package com.ruoyi; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; + +/** + * 启动程序 + * + * @author ruoyi + */ +@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) +public class RuoYiApplication { + public static void main(String[] args) { + // System.setProperty("spring.devtools.restart.enabled", "false"); + SpringApplication.run(RuoYiApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ ByteAi系统启动成功 ლ(´ڡ`ლ)゙ \n"); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiServletInitializer.java b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiServletInitializer.java new file mode 100644 index 0000000..6de67dc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiServletInitializer.java @@ -0,0 +1,18 @@ +package com.ruoyi; + +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +/** + * web容器中进行部署 + * + * @author ruoyi + */ +public class RuoYiServletInitializer extends SpringBootServletInitializer +{ + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) + { + return application.sources(RuoYiApplication.class); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiBannerApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiBannerApiController.java new file mode 100644 index 0000000..4b45cb4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiBannerApiController.java @@ -0,0 +1,40 @@ +package com.ruoyi.api; + + +import com.ruoyi.ai.domain.AiBanner; +import com.ruoyi.ai.service.IAiBannerService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@Api(tags = "ai-banner信息") +@RestController +@RequestMapping("/api/banner") +public class AiBannerApiController extends BaseController { + + @Autowired + private IAiBannerService aiBannerService; + + /** + * 查询banner管理列表 + */ + @GetMapping("/getBannerList") + @ApiOperation("查询banner列表") + @Anonymous + public TableDataInfo getBannerList(AiBanner aiBanner) + { + aiBanner.setStatus(0); + List list = aiBannerService.selectAiBannerList(aiBanner); + return getDataTable(list); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiCustomerServiceApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiCustomerServiceApiController.java new file mode 100644 index 0000000..1301d32 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiCustomerServiceApiController.java @@ -0,0 +1,49 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiCustomerService; +import com.ruoyi.ai.service.IAiCustomerServiceService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.RandomStringUtil; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 客服管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/api/service") +public class AiCustomerServiceApiController extends BaseController +{ + @Autowired + private IAiCustomerServiceService aiCustomerServiceService; + + /** + * 查询客服管理列表 + */ + @GetMapping("/list") + public AjaxResult list() + { + AiCustomerService aiCustomerService = new AiCustomerService(); + aiCustomerService.setStatus(0); + List list = aiCustomerServiceService.selectAiCustomerServiceList(aiCustomerService); + if (list != null && list.size() > 0) { + AiCustomerService service = list.get(RandomStringUtil.getRandomNumberWithin(list.size())); + return AjaxResult.success().put("result", service); + } + return AjaxResult.error("No customer service available at the moment"); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiHelpApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiHelpApiController.java new file mode 100644 index 0000000..0430e94 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiHelpApiController.java @@ -0,0 +1,48 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiHelp; +import com.ruoyi.ai.service.IAiHelpService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 【帮助管理】Controller + * + * @author shi + * @date 2025-11-13 + */ +@Api(tags = "ai-帮助管理") +@RestController +@RequestMapping("/api/help") +public class AiHelpApiController extends BaseController +{ + @Autowired + private IAiHelpService aiHelpService; + + /** + * 查询【帮助管理】列表 + */ + @Anonymous + @ApiOperation("查询帮助列表") + @GetMapping("/list") + public TableDataInfo list(AiHelp aiHelp) + { + startPage(); + List list = aiHelpService.selectAiHelpList(aiHelp); + return getDataTable(list); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiManagerApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiManagerApiController.java new file mode 100644 index 0000000..f698f9f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiManagerApiController.java @@ -0,0 +1,58 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiManager; +import com.ruoyi.ai.service.IAiManagerService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * AI管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@Api(tags = "ai-AI管理列表") +@RestController +@RequestMapping("/api/manager") +public class AiManagerApiController extends BaseController { + @Autowired + private IAiManagerService aiManagerService; + + /** + * 查询AI管理列表 + */ + @ApiOperation("查询AI列表") + @GetMapping("/list") + @Anonymous + public TableDataInfo list(AiManager aiManager) { + startPage(); + List list = aiManagerService.selectAiManagerList(aiManager); + return getDataTable(list); + } + + /** + * 查询AI管理列表 + */ + @ApiOperation("查询AI功能信息") + @GetMapping("/selectInfo") + @Anonymous + public AjaxResult selectInfo(String aiType) { + AiManager aiManager = aiManagerService.selectAiManagerByType(aiType); + aiManager.setPrompt(null); + return AjaxResult.success(aiManager); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiOrderApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiOrderApiController.java new file mode 100644 index 0000000..235018e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiOrderApiController.java @@ -0,0 +1,49 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiOrder; +import com.ruoyi.ai.service.IAiOrderService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 订单管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@Api(tags = "ai-余额消耗管理") +@RestController +@RequestMapping("/api/order") +public class AiOrderApiController extends BaseController +{ + @Autowired + private IAiOrderService aiOrderService; + + /** + * 查询充值管理列表 + */ + @ApiOperation("余额消耗记录") + @GetMapping("/getAiOrderList") + public TableDataInfo getAiOrderList(AiOrder aiOrder) + { + aiOrder.setUserId(SecurityUtils.getAiUserId()); + aiOrder.setStatus(1); + startPage(); + List list = aiOrderService.selectAiOrderList(aiOrder); + return getDataTable(list); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiRebateRecordApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRebateRecordApiController.java new file mode 100644 index 0000000..3a04ae2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRebateRecordApiController.java @@ -0,0 +1,56 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiRebateRecord; +import com.ruoyi.ai.service.IAiRebateRecordService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 返佣记录Controller + * + * @author shi + * @date 2025-11-13 + */ +@Api(tags = "ai-返佣记录") +@RestController +@RequestMapping("/api/rebate-record") +public class AiRebateRecordApiController extends BaseController +{ + @Autowired + private IAiRebateRecordService aiRebateRecordService; + + /** + * 查询返佣记录列表 + */ + @ApiOperation("查询返佣记录列表") + @GetMapping("/getAiRebateRecordList") + public TableDataInfo getAiRebateRecordList(AiRebateRecord aiRebateRecord) + { + aiRebateRecord.setSuperiorId(SecurityUtils.getAiUserId()); + startPage(); + List list = aiRebateRecordService.getAiRebateRecordList(aiRebateRecord); + BigDecimal totalAmount = aiRebateRecordService.getTotalAmount(aiRebateRecord); + TableDataInfo dataTable = getDataTable(list); + Map map = new HashMap<>(); + map.put("totalAmount", totalAmount); + dataTable.setParam(map); + return dataTable; + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeApiController.java new file mode 100644 index 0000000..a65c769 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeApiController.java @@ -0,0 +1,59 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiRecharge; +import com.ruoyi.ai.service.IAiRechargeService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 充值管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@Api(tags = "ai-充值管理") +@RestController +@RequestMapping("/api/recharge") +public class AiRechargeApiController extends BaseController +{ + @Autowired + private IAiRechargeService aiRechargeService; + + + + /** + * 查询充值管理列表 + */ + @ApiOperation("充值记录") + @GetMapping("/getAiRechargeList") + public TableDataInfo getAiRechargeList(AiRecharge aiRecharge) + { + aiRecharge.setUserId(SecurityUtils.getAiUserId()); + startPage(); + List list = aiRechargeService.getAiRechargeList(aiRecharge); + BigDecimal totalAmount = aiRechargeService.getTotalAmount(aiRecharge); + TableDataInfo dataTable = getDataTable(list); + Map map = new HashMap<>(); + map.put("totalAmount", totalAmount); + dataTable.setParam(map); + return dataTable; + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeGiftApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeGiftApiController.java new file mode 100644 index 0000000..a2759c2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiRechargeGiftApiController.java @@ -0,0 +1,56 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiRechargeGift; +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import com.ruoyi.ai.service.IAiRechargeGiftGearService; +import com.ruoyi.ai.service.IAiRechargeGiftService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * 充值赠送活动Controller + * + * @author shi + * @date 2025-11-20 + */ +@RestController +@RequestMapping("/api/gift") +public class AiRechargeGiftApiController extends BaseController { + @Autowired + private IAiRechargeGiftService rechargeGiftService; + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + + /** + * 查询充值赠送活动列表 + */ + @ApiOperation("查询充值档位列表") + @GetMapping("/getGiftList") + @Anonymous + public AjaxResult getGiftList() { + AiRechargeGift aiRechargeGift = new AiRechargeGift(); + aiRechargeGift.setStatus(0); + List aiRechargeGifts = rechargeGiftService.selectAiRechargeGiftList(aiRechargeGift); + return AjaxResult.success(aiRechargeGifts); + } + + /** + * 查询充值赠送活动挡位 + */ + @ApiOperation("查询充值档位列表") + @GetMapping("/getGiftInfo") + @Anonymous + public AjaxResult getGiftInfo(Long rechargeId) { + AiRechargeGiftGear aiRechargeGiftGear = new AiRechargeGiftGear(); + aiRechargeGiftGear.setRechargeId(rechargeId); + List aiRechargeGiftGears = aiRechargeGiftGearService.selectAiRechargeGiftGearList(aiRechargeGiftGear); + return AjaxResult.success(aiRechargeGiftGears); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiTagApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiTagApiController.java new file mode 100644 index 0000000..9991382 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiTagApiController.java @@ -0,0 +1,48 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiTag; +import com.ruoyi.ai.service.IAiTagService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * ai-标签管理Controller + * + * @author shi + * @date 2025-11-24 + */ +@RestController +@RequestMapping("/api/tag") +public class AiTagApiController extends BaseController { + @Autowired + private IAiTagService aiTagService; + + /** + * 查询ai-标签管理列表 + */ + @ApiOperation("查询标签列表") + @GetMapping("/list") + @Anonymous + public AjaxResult list(Long aiId, HttpServletRequest request) { + AiTag aiTag = new AiTag(); + aiTag.setAiId(aiId); + aiTag.setStatus(0); + aiTag.setLanguage(request.getHeader("Language")); + List list = aiTagService.selectUserAiTagList(aiTag); + return success(list); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiTemplateApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiTemplateApiController.java new file mode 100644 index 0000000..70debb7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiTemplateApiController.java @@ -0,0 +1,40 @@ +package com.ruoyi.api; + + +import com.ruoyi.ai.domain.AiTemplate; +import com.ruoyi.ai.service.IAiTemplateService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.List; + +@Api(tags = "ai-template信息") +@RestController +@RequestMapping("/api/template") +public class AiTemplateApiController extends BaseController { + + @Autowired + private IAiTemplateService aiTemplateService; + + /** + * 查询Template管理列表 + */ + @GetMapping("/getTemplateList") + @ApiOperation("查询template列表") + @Anonymous + public TableDataInfo getTemplateList(AiTemplate aiTemplate) + { + aiTemplate.setStatus(1); + List list = aiTemplateService.selectAiTemplateList(aiTemplate); + return getDataTable(list); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiUserApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiUserApiController.java new file mode 100644 index 0000000..3d6cc81 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiUserApiController.java @@ -0,0 +1,240 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiSampleAmount; +import com.ruoyi.ai.domain.AiSampleAmountRecord; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.domain.enums.AiConfigEnum; +import com.ruoyi.ai.mapper.AiSampleAmountMapper; +import com.ruoyi.ai.service.EmailVerifyService; +import com.ruoyi.ai.service.IAiSampleAmountRecordService; +import com.ruoyi.ai.service.IAiStatisticsService; +import com.ruoyi.ai.service.IAiUserService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.constant.BalanceChangerConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.core.domain.model.LoginAiUserBody; +import com.ruoyi.common.core.domain.model.RegisterAiUserBody; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.IpCountryQueryByApi; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.framework.web.service.SysLoginService; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.service.ISysJobService; +import com.ruoyi.quartz.util.CronUtils; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.service.ISysConfigService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.quartz.SchedulerException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.mail.MessagingException; +import java.util.Map; + + +/** + * ai-用户信息Controller + * + * @author shi + * @date 2025-11-12 + */ +@Api(tags = "ai-用户信息") +@RestController +@RequestMapping("/api/user") +public class AiUserApiController extends BaseController { + + @Autowired + private SysLoginService loginService; + + @Autowired + private IAiUserService aiUserService; + + @Autowired + private EmailVerifyService emailVerifyService; + + @Autowired + private ISysConfigService sysConfigService; + + @Autowired + private AiSampleAmountMapper aiSampleAmountMapper; + + @Autowired + private IAiSampleAmountRecordService aiSampleAmountRecordService; + + @Autowired + private ISysJobService sysJobService; + + + @ApiOperation("用户登录") + @PostMapping("/login") + @Anonymous + public AjaxResult loginAiUser(@Validated @RequestBody LoginAiUserBody loginAiUserBody) { + AjaxResult ajax = AjaxResult.success(); + // 生成令牌 + String token = loginService.loginAiUser(loginAiUserBody); + ajax.put(Constants.TOKEN, token); + ajax.put("username", loginAiUserBody.getUsername() != null ? loginAiUserBody.getUsername() : loginAiUserBody.getEmail()); + return ajax; + } + + + @ApiOperation("获取ai-用户信息详细信息") + @GetMapping("/getUserInfo") + public AjaxResult getUserInfo() { + return success(aiUserService.getUserInfo(SecurityUtils.getAiUserId())); + } + + + @ApiOperation("用户注册") + @PostMapping("/registerAiUser") + @Anonymous + public AjaxResult registerAiUser(@Validated @RequestBody RegisterAiUserBody registerAiUserBody) { + AiUser aiUser = aiUserService.registerAiUser(registerAiUserBody); + // 查询启用状态体验金活动 + AiSampleAmount aiSampleAmount = aiSampleAmountMapper.getSampleAmount(); + if (aiSampleAmount != null) { + // 余额变更记录 + aiUserService.addUserBalance(aiUser.getId(), aiSampleAmount.getAmount(), BalanceChangerConstants.EXPERIENCE_GOLD_GIFT); + // 新增体验金记录 + AiSampleAmountRecord aiSampleAmountRecord = new AiSampleAmountRecord(); + aiSampleAmountRecord.setUserId(aiUser.getId()); + aiSampleAmountRecord.setSampleAmount(aiSampleAmount.getAmount()); + aiSampleAmountRecord.setRecycleTime(DateUtils.addHours(DateUtils.getNowDate(), aiSampleAmount.getDuration())); + aiSampleAmountRecord.setStatus(0); + aiSampleAmountRecordService.insertAiSampleAmountRecord(aiSampleAmountRecord); + + // 新增定时回收体验金任务 + SysJob sysJob = new SysJob(); + sysJob.setJobName("定时回收体验金"); + sysJob.setJobGroup("DEFAULT"); + sysJob.setInvokeTarget("ryTask.deductSampleAmount('" + aiUser.getId() + "')"); + sysJob.setCronExpression(CronUtils.generateCronExpression(aiSampleAmountRecord.getRecycleTime())); + sysJob.setMisfirePolicy(ScheduleConstants.MISFIRE_DEFAULT); + sysJob.setConcurrent("0"); + sysJob.setStatus("0"); + try { + sysJobService.insertJob(sysJob); + } catch (SchedulerException e) { + throw new RuntimeException(e); + } catch (TaskException e) { + throw new RuntimeException(e); + } + + } + return AjaxResult.success("注册成功"); + } + + @ApiOperation("发送邮箱验证码") + @GetMapping("/sendEmailCode") + @Anonymous + public AjaxResult sendEmailCode(String email) { + try { + // 判断邮箱是否重复 + if (aiUserService.getUserCountByEmail(email) > 0) { + throw new ServiceException(MessageUtils.message("user.email.registered"), HttpStatus.CONFLICT); + } + emailVerifyService.sendVerifyCode(email); + return AjaxResult.success(MessageUtils.message("email.send.success", null)); + } catch (MessagingException e) { + return AjaxResult.error(MessageUtils.message("email.send.failure", null)); + } + } + + + @ApiOperation("发送修改密码或忘记密码邮箱验证码") + @GetMapping("/sendEmailCodeV2") + @Anonymous + public AjaxResult sendUpdatePasswordEmailCode(String email) { + try { + // 判断邮箱是否重复 + if (aiUserService.getUserCountByEmail(email) == 0) { + return AjaxResult.error(-1, "The email address is not registered"); + } + emailVerifyService.sendVerifyCode(email); + return AjaxResult.success(MessageUtils.message("email.send.success", null)); + } catch (MessagingException e) { + return AjaxResult.error(MessageUtils.message("email.send.failure", null)); + } + } + + + @ApiOperation("重置密码") + @Anonymous + @PutMapping("/resetPassword") + public AjaxResult resetPassword(String email, String password, String code) { + AiUser aiUser = aiUserService.getUserByEmail(email); + if (aiUser == null) { + throw new ServiceException("email not registered", HttpStatus.BAD_REQUEST); + } + if (!emailVerifyService.verifyCode(aiUser.getEmail(), code)) { + throw new ServiceException(MessageUtils.message("email.verification.code.error"), HttpStatus.BAD_REQUEST); + } + aiUser.setPassword(SecurityUtils.encryptPassword(password)); + aiUserService.updateAiUser(aiUser); + return AjaxResult.success(); + } + + + @ApiOperation("修改密码") + @PutMapping("/updatePassword") + public AjaxResult updatePassword(String oldPassword, String newPassword) { + aiUserService.updatePassword(oldPassword, newPassword); + return AjaxResult.success(); + } + + @ApiOperation("修改邮箱") + @PutMapping("/updateEmail") + public AjaxResult updateEmail(String email, String code) { + aiUserService.updateEmail(email, code); + return AjaxResult.success(); + } + + @ApiOperation("修改头像") + @PutMapping("/updateAvatar") + public AjaxResult updateAvatar(String avatar) { + aiUserService.updateAvatar(avatar); + return AjaxResult.success(); + } + + @Anonymous + @ApiOperation("获取门户端logo") + @GetMapping("/getPortalLogo") + public AjaxResult getPortalLogo() { + SysConfig sysConfig = sysConfigService.getPortalLogo(); + return AjaxResult.success("successfully", sysConfig.getConfigValue()); + } + + + /** + * 查询返佣比例配置 + * @return + */ + @GetMapping("/getRebateConfig") + public AjaxResult getRebateConfig() { + String result = aiUserService.getRebateConfig(); + return AjaxResult.success().put("result", result); + } + + + @GetMapping("/checkIsStandard") + public AjaxResult checkIsStandard() { + Map result = aiUserService.checkIsStandard(); + AjaxResult ajaxResult = AjaxResult.success(); + ajaxResult.put("result", result.get("result")); + ajaxResult.put("totalAmount", result.get("totalAmount")); + return ajaxResult; + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/AiWorkApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/AiWorkApiController.java new file mode 100644 index 0000000..8509dfd --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/AiWorkApiController.java @@ -0,0 +1,40 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.AiOrder; +import com.ruoyi.ai.service.IAiOrderService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.page.TableDataInfo; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * ai作品Controller + * + * @author shi + * @date 2025-11-25 + */ +@RestController +@RequestMapping("/api/work") +public class AiWorkApiController extends BaseController +{ + @Autowired + private IAiOrderService orderService; + + /** + * 查询ai作品列表 + */ + @ApiOperation("查询ai作品列表") + @GetMapping("/getAiWorkList") + @Anonymous + public TableDataInfo getAiWorkList(AiOrder aiOrder) + { + startPage(); + aiOrder.setIsTop("Y"); + List list = orderService.selectAiOrderList(aiOrder); + return getDataTable(list); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/ByteApiController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/ByteApiController.java new file mode 100644 index 0000000..eb69649 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/ByteApiController.java @@ -0,0 +1,334 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.service.IAiManagerService; +import com.ruoyi.ai.service.IAiOrderService; +import com.ruoyi.ai.service.IAiTagService; +import com.ruoyi.ai.service.IByteService; +import com.ruoyi.api.request.ByteApiRequest; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.utils.AwsS3Util; +import com.ruoyi.common.utils.RandomStringUtil; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.*; + +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Pattern; + +/** + * AI-生成内容Controller + */ +@RestController +@RequestMapping("/api/ai") +@Api(tags = "生成内容") +@RequiredArgsConstructor(onConstructor_ = @Autowired) +public class ByteApiController extends BaseController { + + private final IByteService byteService; + private final AwsS3Util awsS3Util; + private final IAiOrderService aiOrderService; + private final IAiManagerService managerService; + private final IAiTagService aiTagService; + @Value("${byteapi.callBackUrl}") + private String url; + + @PostMapping("/promptToImg") + @ApiOperation("文生图") + public AjaxResult promptToImg(@RequestBody ByteApiRequest request) { + String functionType = request.getFunctionType(); + if (null == functionType) { + return AjaxResult.error("functionType is null"); + } + + AiManager aiManager = managerService.selectAiManagerByType(functionType); + String tags = request.getTags(); + String text = ""; + if (StringUtils.isNotEmpty(tags)) { + List aiTags = aiTagService.selectAiTagListByIds(request.getTags(), aiManager.getParentIdSort()); + List tagPrompts = new ArrayList<>(); + for (AiTag aiTag : aiTags) { + if (!aiTag.getAiId().equals(aiManager.getId())) { + return AjaxResult.error(-3, "Generation failed, please try again"); + } + String p = ""; + if (StringUtils.isNotEmpty(aiTag.getPrompt())) { + String[] prompts = aiTag.getPrompt().split(Pattern.quote("^")); + int randomNumberWithin = RandomStringUtil.getRandomNumberWithin(prompts.length); + p = prompts[randomNumberWithin]; + } + tagPrompts.add(p); + } + text = StringUtils.replacePlaceholders(aiManager.getPrompt(), tagPrompts); + } else { + text = aiManager.getPrompt(); + } + if (StringUtils.isEmpty(text)) { + return AjaxResult.error("text is null"); + } + + + AiOrder aiOrder = aiOrderService.getAiOrder(functionType); + try { + if (aiOrder == null) { + return AjaxResult.error(-1, "You have a low balance, please recharge"); + } + aiOrder.setText(text); + ByteBodyReq byteBodyReq = new ByteBodyReq(); + byteBodyReq.setModel("ep-20251104104536-2gpgz"); + byteBodyReq.setPrompt(text); + byteBodyReq.setSequential_image_generation("disabled"); + byteBodyReq.setResponse_format("url"); + byteBodyReq.setSize("2K"); + byteBodyReq.setStream(false); + byteBodyReq.setWatermark(false); + ByteBodyRes byteBodyRes = byteService.promptToImg(byteBodyReq); + List data = byteBodyRes.getData(); + ByteDataRes byteDataRes = data.get(0); + String url = byteDataRes.getUrl(); + url = awsS3Util.uploadFileByUrl(url); + if (url == null) { + // 判断生成失败,退回金额逻辑 + aiOrderService.orderFailure(aiOrder); + return AjaxResult.error(-2, "generation failed, balance has been refunded"); + } + aiOrder.setResult(url); + aiOrderService.orderSuccess(aiOrder); + return AjaxResult.success(url); + } catch (Exception e) { + // 判断生成失败,退回金额逻辑 + aiOrderService.orderFailure(aiOrder); +// return AjaxResult.error(-2, "generation failed, balance has been refunded"); + throw new RuntimeException(e); + } + } + + @PostMapping("/imgToImg") + @ApiOperation("图生图") + @Transactional + public AjaxResult imgToImg(@RequestBody ByteApiRequest request) throws Exception { + String functionType = request.getFunctionType(); + if (null == functionType) { + return AjaxResult.error("functionType is null"); + } + + AiManager aiManager = managerService.selectAiManagerByType(functionType); + String tags = request.getTags(); + String text = ""; + if (StringUtils.isNotEmpty(tags)) { + List aiTags = aiTagService.selectAiTagListByIds(request.getTags(), aiManager.getParentIdSort()); + List tagPrompts = new ArrayList<>(); + for (AiTag aiTag : aiTags) { + if (!aiTag.getAiId().equals(aiManager.getId())) { + return AjaxResult.error(-3, "Generation failed, please try again"); + } + String p = ""; + if (StringUtils.isNotEmpty(aiTag.getPrompt())) { + String[] prompts = aiTag.getPrompt().split(Pattern.quote("^")); + int randomNumberWithin = RandomStringUtil.getRandomNumberWithin(prompts.length); + p = prompts[randomNumberWithin]; + } + tagPrompts.add(p); + } + text = StringUtils.replacePlaceholders(aiManager.getPrompt(), tagPrompts); + } else { + text = aiManager.getPrompt(); + } + + if (StringUtils.isEmpty(text)) { + return AjaxResult.error("text is null"); + } + + Object firstUrl = request.getFirstUrl(); + if (null == firstUrl) { + return AjaxResult.error("firstUrl is null"); + } + AiOrder aiOrder = aiOrderService.getAiOrder(functionType); + try { + if (aiOrder == null) { + return AjaxResult.error(-1, "You have a low balance, please recharge"); + } + + aiOrder.setText(text); + + aiOrder.setImg1(firstUrl.toString()); + ByteBodyReq byteBodyReq = new ByteBodyReq(); + byteBodyReq.setModel("ep-20251104104536-2gpgz"); + byteBodyReq.setPrompt(text); + byteBodyReq.setImage(firstUrl); + byteBodyReq.setSequential_image_generation("disabled"); + byteBodyReq.setResponse_format("url"); + byteBodyReq.setSize("2K"); + byteBodyReq.setStream(false); + byteBodyReq.setWatermark(false); + ByteBodyRes byteBodyRes = byteService.promptToImg(byteBodyReq); + List data = byteBodyRes.getData(); + ByteDataRes byteDataRes = data.get(0); + String url = byteDataRes.getUrl(); + url = awsS3Util.uploadFileByUrl(url); + if (url == null) { + // 判断生成失败,退回金额逻辑 + aiOrderService.orderFailure(aiOrder); + return AjaxResult.error(-2, "generation failed, balance has been refunded"); + } + aiOrder.setResult(url); + aiOrderService.orderSuccess(aiOrder); + return AjaxResult.success(url); + } catch (Exception e) { + aiOrderService.orderFailure(aiOrder); + throw new RuntimeException(e); + } + } + + @PostMapping("/imgToVideo") + @ApiOperation("图生视频") + public AjaxResult imgToVideo(@RequestBody ByteApiRequest request) throws Exception { + String functionType = request.getFunctionType(); + if (null == functionType) { + return AjaxResult.error("functionType is null"); + } + + AiManager aiManager = managerService.selectAiManagerByType(functionType); + String tags = request.getTags(); + String text = ""; + if (StringUtils.isNotEmpty(tags)) { + List aiTags = aiTagService.selectAiTagListByIds(request.getTags(), aiManager.getParentIdSort()); + List tagPrompts = new ArrayList<>(); + for (AiTag aiTag : aiTags) { + if (!aiTag.getAiId().equals(aiManager.getId())) { + return AjaxResult.error(-3, "Generation failed, please try again"); + } + String p = ""; + if (StringUtils.isNotEmpty(aiTag.getPrompt())) { + String[] prompts = aiTag.getPrompt().split(Pattern.quote("^")); + int randomNumberWithin = RandomStringUtil.getRandomNumberWithin(prompts.length); + p = prompts[randomNumberWithin]; + } + tagPrompts.add(p); + } + text = StringUtils.replacePlaceholders(aiManager.getPrompt(), tagPrompts); + } else { + text = aiManager.getPrompt(); + } + + if (StringUtils.isEmpty(text)) { + return AjaxResult.error("text is null"); + } + + Object firstUrl = request.getFirstUrl(); + if (null == firstUrl) { + return AjaxResult.error("firstUrl is null"); + } + + AiOrder aiOrder = aiOrderService.getAiOrder(functionType); + if (aiOrder == null) { + return AjaxResult.error(-1, "You have a low balance, please recharge"); + } + try { +// String text = request.getText(); +// if (StringUtils.isBlank(text)) { +// return AjaxResult.error("text is null"); +// } +// String tags = request.getTags(); +// if (StringUtils.isNotBlank(tags)) { +// text = "(优先考虑以下关键词:" + tags + ")"; +// } + aiOrder.setText(text); + + aiOrder.setImg1(firstUrl.toString()); + Integer duration = request.getDuration(); + ByteBodyReq byteBodyReq = new ByteBodyReq(); + byteBodyReq.setModel("ep-20251113072240-cfxlz"); + byteBodyReq.setCallback_url(url + "/api/ai/callBack"); + List content = new ArrayList<>(); + ContentItem contentItem = new ContentItem(); + contentItem.setType("text"); + contentItem.setText(text + " --dur " + duration + " --fps 24 --rs 720p --wm false --cf false"); + content.add(contentItem); + + ContentItem contentItem1 = new ContentItem(); + contentItem1.setType("image_url"); + contentItem1.setRole("first_frame"); + ImageUrl imageUrl1 = new ImageUrl(); + imageUrl1.setUrl(firstUrl.toString()); + contentItem1.setImageUrl(imageUrl1); + content.add(contentItem1); + + String lastUrl = request.getLastUrl(); + if (StringUtils.isNotBlank(lastUrl)) { + ContentItem contentItem2 = new ContentItem(); + contentItem2.setType("image_url"); + contentItem2.setRole("last_frame"); + ImageUrl imageUrl2 = new ImageUrl(); + imageUrl2.setUrl(lastUrl); + contentItem2.setImageUrl(imageUrl2); + content.add(contentItem2); + aiOrder.setImg2(lastUrl); + } + byteBodyReq.setContent(content); + ByteBodyRes byteBodyRes = byteService.imgToVideo(byteBodyReq); + String id = byteBodyRes.getId(); + if (id == null) { + // 判断生成失败,退回金额逻辑 + aiOrderService.orderFailure(aiOrder); + return AjaxResult.error(-2, "generation failed, balance has been refunded"); + } + aiOrder.setResult(id); + aiOrderService.orderSuccess(aiOrder); + return AjaxResult.success(byteBodyRes); + } catch (Exception e) { + aiOrderService.orderFailure(aiOrder); + throw new RuntimeException(e); + } + } + + @GetMapping(value = "/{id}") + @ApiOperation("视频下载") + public AjaxResult getInfo(@PathVariable("id") String id) throws Exception { + ByteBodyRes byteBodyRes = byteService.uploadVideo(id); + if ("succeeded".equals(byteBodyRes.getStatus())) { + content content = byteBodyRes.getContent(); + String videoUrl = content.getVideo_url(); + videoUrl = awsS3Util.uploadFileByUrl(videoUrl); + content.setVideo_url(videoUrl); + AiOrder aiOrderByResult = aiOrderService.getAiOrderByResult(id); + AiOrder aiOrder = new AiOrder(); + aiOrder.setId(aiOrderByResult.getId()); + aiOrder.setResult(videoUrl); +// aiOrder.setUpdateBy(SecurityUtils.getLoginAiUser().getUsername()); + aiOrderService.updateAiOrder(aiOrder); + } + return AjaxResult.success(byteBodyRes); + } + + @GetMapping(value = "/callBack") + @ApiOperation("视频下载回调") + @Anonymous + public AjaxResult callBack(@PathVariable("id") ByteBodyRes byteBodyRes) throws Exception { + if ("succeeded".equals(byteBodyRes.getStatus())) { + String id = byteBodyRes.getId(); + content content = byteBodyRes.getContent(); + String videoUrl = content.getVideo_url(); + videoUrl = awsS3Util.uploadFileByUrl(videoUrl); + content.setVideo_url(videoUrl); + AiOrder aiOrderByResult = aiOrderService.getAiOrderByResult(id); + AiOrder aiOrder = new AiOrder(); + aiOrder.setId(aiOrderByResult.getId()); + aiOrder.setResult(videoUrl); +// aiOrder.setUpdateBy(SecurityUtils.getLoginAiUser().getUsername()); + aiOrderService.updateAiOrder(aiOrder); + } + return AjaxResult.success(byteBodyRes); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/FileController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/FileController.java new file mode 100644 index 0000000..fefd1e0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/FileController.java @@ -0,0 +1,38 @@ +package com.ruoyi.api; + +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.AwsS3Util; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; + +@RestController +@RequestMapping("/api/file") +@Api(tags = "文件上传") +@RequiredArgsConstructor(onConstructor_ = @Autowired) +public class FileController { + private final AwsS3Util awsS3Util; + + /** + * 文件上传 + */ + + @ApiOperation(value = "文件上传") + @PostMapping("/upload") + public AjaxResult upload( + @ApiParam(name = "file", value = "文件", required = true) + @RequestParam("file") MultipartFile file) throws Exception { + AjaxResult ajax = AjaxResult.success(); + String uploadUrl = awsS3Util.uploadMultipartFile(file, true); + ajax.put("url", uploadUrl); + return ajax; + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/KadaPaymentJava.java b/ruoyi-admin/src/main/java/com/ruoyi/api/KadaPaymentJava.java new file mode 100644 index 0000000..93d2ae2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/KadaPaymentJava.java @@ -0,0 +1,122 @@ +package com.ruoyi.api; + +import com.ruoyi.common.utils.sign.HmacSha256Utils; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.util.EntityUtils; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; +import java.nio.charset.StandardCharsets; +import java.text.SimpleDateFormat; +import java.util.*; + +import com.alibaba.fastjson.JSON; +import java.util.Base64; + +public class KadaPaymentJava { + + public static void main(String[] args) { + + String mid = "c70f1719017e290354017d1c101d0cc288d06ceb"; + String secret = "b0CH/+tVEsz+1j2mfBzd9Kgu6UylJxr0056TwTbkKfHWw9UW/6TaQyQHv+teBnGbqWy5ObaLUMvnrs9adpymebEqjI3ipNpJa7YPQbMYm0VGuYUEgeM+fjakhWuYx2XEVzmjdIvvfhNsfr2YHTmDUzwIKPbp/OJvfG9KhSPMzpw="; + + String url = "https://rapi.openkada.xyz/api/mcht/payment/submit"; + + try { + String body = "{\"amount\":\"600.00\",\"callbackUrl\":\"https://web.iqyjsnwv.com/api/pay/kada-callBack\",\"createTime\":1764435870000,\"currency\":\"PHP\",\"fee\":\"10.80\",\"netAmount\":\"589.20\",\"ref\":\"20251130kd941b62ef\",\"status\":\"COMPLETE\",\"txid\":\"2025113001048D4I0R59A7\",\"type\":\"PAYMENT\"}"; + String requestTime = String.valueOf(System.currentTimeMillis()); + requestTime = String.valueOf(System.currentTimeMillis()); + + // signature_str = Request-Time + "." + body + String signatureStr = "1764437188324" + "." + body; + + // HMAC-SHA256 + String signatureHex = HmacSha256Utils.hmacSha256To16Hex(signatureStr,secret); + System.out.println("sign: " + signatureHex); + + // Authorization = Basic base64(mid:signature) + String basic = mid + ":" + signatureHex; + String authHeader = "Basic " + Base64.getEncoder().encodeToString(basic.getBytes()); + + // HTTP request + sendPost(url, body, requestTime, authHeader); + + } catch (Exception e) { + e.printStackTrace(); + } + } + + // ===== 构造请求体 JSON ===== + private static String buildRequestBody() { + // 生成毫秒级时间戳 ref + SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS"); + String now = sdf.format(new Date()); + int randomSuffix = new Random().nextInt(9000) + 1000; + + Map payer = new HashMap<>(); + payer.put("email", ""); + payer.put("name", ""); + payer.put("phone", ""); + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyyMMdd").format(new Date()); + String orderNo = dateTime + "kd" + uuid; + Map map = new LinkedHashMap<>(); + map.put("amount", 600); + map.put("pm", "QRPH"); + map.put("ref", orderNo); + map.put("payer", payer); + map.put("redirect", "www.google.com/recharge"); + map.put("callbackUrl", "www.google.com/api/pay/kada-callBack"); + + return JSON.toJSONString(map); + } + + // ===== HMAC-SHA256 计算 hex ===== + private static String hmacSha256ToHex(String secret, String data) throws Exception { + Mac sha256Hmac = Mac.getInstance("HmacSHA256"); + SecretKeySpec secKey = new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"); + sha256Hmac.init(secKey); + byte[] hash = sha256Hmac.doFinal(data.getBytes(StandardCharsets.UTF_8)); + + // 转16进制 + StringBuilder sb = new StringBuilder(hash.length * 2); + for (byte b : hash) sb.append(String.format("%02x", b)); + return sb.toString(); + } + + // ===== 发起 POST 请求 ===== + private static void sendPost(String url, String body, String requestTime, String authHeader) throws Exception { + + CloseableHttpClient client = HttpClients.createDefault(); + HttpPost post = new HttpPost(url); + + post.setHeader("Content-Type", "application/json"); + post.setHeader("Authorization", authHeader); + post.setHeader("Request-Time", requestTime); + + post.setEntity(new StringEntity(body, "UTF-8")); + + System.out.println("=== Sending Request ==="); + System.out.println("URL: " + url); + System.out.println("Body: " + body); + System.out.println("Authorization: " + authHeader); + System.out.println("Request-Time: " + requestTime); + + CloseableHttpResponse response = client.execute(post); + + try { + int status = response.getStatusLine().getStatusCode(); + String respString = EntityUtils.toString(response.getEntity(), "UTF-8"); + + System.out.println("HTTP Status: " + status); + System.out.println("Response: " + respString); + } finally { + response.close(); + } + } + +} \ No newline at end of file diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/PayController.java b/ruoyi-admin/src/main/java/com/ruoyi/api/PayController.java new file mode 100644 index 0000000..871c77a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/PayController.java @@ -0,0 +1,88 @@ +package com.ruoyi.api; + +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.service.IAiRechargeService; +import com.ruoyi.ai.service.IJinShaService; +import com.ruoyi.ai.service.IKaDaService; +import com.ruoyi.ai.service.IYuZhouService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.core.domain.AjaxResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletRequest; +import java.util.Map; + +@RestController +@RequestMapping("/api/pay") +@Api(tags = "支付接口") +@RequiredArgsConstructor(onConstructor_ = @Autowired) +public class PayController { + private final IJinShaService jinShaService; + private final IKaDaService kaDaService; + private final IAiRechargeService aiRechargeService; + private final IYuZhouService yuZhouService; + + /** + * jinsha请求支付 + */ + @GetMapping("/jinsha-pay") + @ApiOperation("jinsha请求支付") + public AjaxResult jinShaPay(Long gearId) throws Exception { + PayResVO payResVO = jinShaService.jinShaPay(gearId); + return AjaxResult.success(payResVO); + } + + @PostMapping("/jinsha-callBack") + @ApiOperation("jinsha支付回调") + @Anonymous + public AjaxResult jinShaCallBack(@RequestBody JinShaBodyCall request) { + AjaxResult ajaxResult = jinShaService.jinShaCall(request); + return ajaxResult; + } + + /** + * kada请求支付 + */ + @GetMapping("/kada-pay") + @ApiOperation("kada请求支付") + public AjaxResult kaDaPay(Long gearId) throws Exception { + PayResVO pay = kaDaService.pay(gearId); + return AjaxResult.success(pay); + } + + @PostMapping("/kada-callBack") + @ApiOperation("kada支付回调") + @Anonymous + public AjaxResult kaDaCallBack(@RequestBody KaDaBodyCall req, HttpServletRequest request) throws Exception { + AjaxResult ajaxResult = kaDaService.callBack(request, req); + return ajaxResult; + } + + @GetMapping("/kada-callBack/test") + @ApiOperation("测试支付回调") + @Anonymous + public AjaxResult kaDaCallBackTest(String orderNo) { + aiRechargeService.addRecharge(orderNo); + return AjaxResult.success(); + } + + @GetMapping("/yuzhou-pay") + @ApiOperation("yuzhou请求支付") + public AjaxResult yuZhouPay(Long gearId) throws Exception { + PayResVO pay = yuZhouService.pay(gearId); + return AjaxResult.success(pay); + } + + @PostMapping("/yuzhou-callBack") + @ApiOperation("yuzhou支付回调") + @Anonymous + public String yuZhouCallBack(@RequestBody Map map) throws Exception { + String s = yuZhouService.callBack(map); + return s; + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/package-info.java b/ruoyi-admin/src/main/java/com/ruoyi/api/package-info.java new file mode 100644 index 0000000..350a21b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/package-info.java @@ -0,0 +1 @@ +package com.ruoyi.api; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/api/request/ByteApiRequest.java b/ruoyi-admin/src/main/java/com/ruoyi/api/request/ByteApiRequest.java new file mode 100644 index 0000000..9c04dab --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/api/request/ByteApiRequest.java @@ -0,0 +1,36 @@ +package com.ruoyi.api.request; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +@Data +public class ByteApiRequest { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(name = "视频下载ID") + private String id; + + @ApiModelProperty(name = "文字描述") + private String text; + + @ApiModelProperty(name = "首帧图片") + private Object firstUrl; + + @ApiModelProperty(name = "尾帧图片") + private String lastUrl; + + @ApiModelProperty(name = "视频时长默认5秒") + private Integer duration = 5; + + @ApiModelProperty(name = "功能类型") + private String functionType; + + @ApiModelProperty(name = "标签字符串") + private String tags; + + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBalanceChangeRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBalanceChangeRecordController.java new file mode 100644 index 0000000..95ca326 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBalanceChangeRecordController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiBalanceChangeRecord; +import com.ruoyi.ai.service.IAiBalanceChangeRecordService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 余额使用记录Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/balance-change-record") +public class AiBalanceChangeRecordController extends BaseController +{ + @Autowired + private IAiBalanceChangeRecordService aiBalanceChangeRecordService; + + /** + * 查询余额使用记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:list')") + @GetMapping("/list") + public TableDataInfo list(AiBalanceChangeRecord aiBalanceChangeRecord) + { + startPage(); + List list = aiBalanceChangeRecordService.selectAiBalanceChangeRecordList(aiBalanceChangeRecord); + return getDataTable(list); + } + + /** + * 导出余额使用记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:export')") + @Log(title = "余额使用记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiBalanceChangeRecord aiBalanceChangeRecord) + { + List list = aiBalanceChangeRecordService.selectAiBalanceChangeRecordList(aiBalanceChangeRecord); + ExcelUtil util = new ExcelUtil(AiBalanceChangeRecord.class); + util.exportExcel(response, list, "余额使用记录数据"); + } + + /** + * 获取余额使用记录详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiBalanceChangeRecordService.selectAiBalanceChangeRecordById(id)); + } + + /** + * 新增余额使用记录 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:add')") + @Log(title = "余额使用记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiBalanceChangeRecord aiBalanceChangeRecord) + { + return toAjax(aiBalanceChangeRecordService.insertAiBalanceChangeRecord(aiBalanceChangeRecord)); + } + + /** + * 修改余额使用记录 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:edit')") + @Log(title = "余额使用记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiBalanceChangeRecord aiBalanceChangeRecord) + { + return toAjax(aiBalanceChangeRecordService.updateAiBalanceChangeRecord(aiBalanceChangeRecord)); + } + + /** + * 删除余额使用记录 + */ + @PreAuthorize("@ss.hasPermi('ai:balanceChangeRecord:remove')") + @Log(title = "余额使用记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiBalanceChangeRecordService.deleteAiBalanceChangeRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBannerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBannerController.java new file mode 100644 index 0000000..998b2b5 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiBannerController.java @@ -0,0 +1,101 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiBanner; +import com.ruoyi.ai.service.IAiBannerService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * banner管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/banner") +public class AiBannerController extends BaseController +{ + @Autowired + private IAiBannerService aiBannerService; + + /** + * 查询banner管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:list')") + @GetMapping("/list") + public TableDataInfo list(AiBanner aiBanner) + { + startPage(); + List list = aiBannerService.selectAiBannerList(aiBanner); + return getDataTable(list); + } + + + /** + * 导出banner管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:export')") + @Log(title = "banner管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiBanner aiBanner) + { + List list = aiBannerService.selectAiBannerList(aiBanner); + ExcelUtil util = new ExcelUtil(AiBanner.class); + util.exportExcel(response, list, "banner管理数据"); + } + + /** + * 获取banner管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiBannerService.selectAiBannerById(id)); + } + + /** + * 新增banner管理 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:add')") + @Log(title = "banner管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiBanner aiBanner) + { + return toAjax(aiBannerService.insertAiBanner(aiBanner)); + } + + /** + * 修改banner管理 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:edit')") + @Log(title = "banner管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiBanner aiBanner) + { + return toAjax(aiBannerService.updateAiBanner(aiBanner)); + } + + /** + * 删除banner管理 + */ + @PreAuthorize("@ss.hasPermi('ai:banner:remove')") + @Log(title = "banner管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiBannerService.deleteAiBannerByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerController.java new file mode 100644 index 0000000..4ea5cac --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.ai; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.ai.domain.AiCustomer; +import com.ruoyi.ai.service.IAiCustomerService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * AI-客户配置Controller + * + * @author shi + * @date 2025-11-26 + */ +@RestController +@RequestMapping("/ai/customer") +public class AiCustomerController extends BaseController +{ + @Autowired + private IAiCustomerService aiCustomerService; + + /** + * 查询AI-客户配置列表 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:list')") + @GetMapping("/list") + public TableDataInfo list(AiCustomer aiCustomer) + { + startPage(); + List list = aiCustomerService.selectAiCustomerList(aiCustomer); + return getDataTable(list); + } + + /** + * 导出AI-客户配置列表 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:export')") + @Log(title = "AI-客户配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiCustomer aiCustomer) + { + List list = aiCustomerService.selectAiCustomerList(aiCustomer); + ExcelUtil util = new ExcelUtil(AiCustomer.class); + util.exportExcel(response, list, "AI-客户配置数据"); + } + + /** + * 获取AI-客户配置详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiCustomerService.selectAiCustomerById(id)); + } + + /** + * 新增AI-客户配置 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:add')") + @Log(title = "AI-客户配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiCustomer aiCustomer) + { + return toAjax(aiCustomerService.insertAiCustomer(aiCustomer)); + } + + /** + * 修改AI-客户配置 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:edit')") + @Log(title = "AI-客户配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiCustomer aiCustomer) + { + return toAjax(aiCustomerService.updateAiCustomer(aiCustomer)); + } + + /** + * 删除AI-客户配置 + */ + @PreAuthorize("@ss.hasPermi('ai:customer:remove')") + @Log(title = "AI-客户配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiCustomerService.deleteAiCustomerByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerServiceController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerServiceController.java new file mode 100644 index 0000000..11efef0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiCustomerServiceController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiCustomerService; +import com.ruoyi.ai.service.IAiCustomerServiceService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 客服管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/service") +public class AiCustomerServiceController extends BaseController +{ + @Autowired + private IAiCustomerServiceService aiCustomerServiceService; + + /** + * 查询客服管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:service:list')") + @GetMapping("/list") + public TableDataInfo list(AiCustomerService aiCustomerService) + { + startPage(); + List list = aiCustomerServiceService.selectAiCustomerServiceList(aiCustomerService); + return getDataTable(list); + } + + /** + * 导出客服管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:service:export')") + @Log(title = "客服管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiCustomerService aiCustomerService) + { + List list = aiCustomerServiceService.selectAiCustomerServiceList(aiCustomerService); + ExcelUtil util = new ExcelUtil(AiCustomerService.class); + util.exportExcel(response, list, "客服管理数据"); + } + + /** + * 获取客服管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:service:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiCustomerServiceService.selectAiCustomerServiceById(id)); + } + + /** + * 新增客服管理 + */ + @PreAuthorize("@ss.hasPermi('ai:service:add')") + @Log(title = "客服管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiCustomerService aiCustomerService) + { + return toAjax(aiCustomerServiceService.insertAiCustomerService(aiCustomerService)); + } + + /** + * 修改客服管理 + */ + @PreAuthorize("@ss.hasPermi('ai:service:edit')") + @Log(title = "客服管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiCustomerService aiCustomerService) + { + return toAjax(aiCustomerServiceService.updateAiCustomerService(aiCustomerService)); + } + + /** + * 删除客服管理 + */ + @PreAuthorize("@ss.hasPermi('ai:service:remove')") + @Log(title = "客服管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiCustomerServiceService.deleteAiCustomerServiceByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiHelpController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiHelpController.java new file mode 100644 index 0000000..cb139a3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiHelpController.java @@ -0,0 +1,99 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiHelp; +import com.ruoyi.ai.service.IAiHelpService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 【帮助管理】Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/help") +public class AiHelpController extends BaseController +{ + @Autowired + private IAiHelpService aiHelpService; + + /** + * 查询【帮助管理】列表 + */ + @PreAuthorize("@ss.hasPermi('ai:help:list')") + @GetMapping("/list") + public TableDataInfo list(AiHelp aiHelp) + { + startPage(); + List list = aiHelpService.selectAiHelpList(aiHelp); + return getDataTable(list); + } + + /** + * 导出【帮助管理】列表 + */ + @PreAuthorize("@ss.hasPermi('ai:help:export')") + @Log(title = "【帮助管理】", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiHelp aiHelp) + { + List list = aiHelpService.selectAiHelpList(aiHelp); + ExcelUtil util = new ExcelUtil(AiHelp.class); + util.exportExcel(response, list, "【帮助管理】数据"); + } + + /** + * 获取【帮助管理】详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:help:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiHelpService.selectAiHelpById(id)); + } + + /** + * 新增【帮助管理】 + */ + @PreAuthorize("@ss.hasPermi('ai:help:add')") + @Log(title = "【帮助管理】", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiHelp aiHelp) + { + return toAjax(aiHelpService.insertAiHelp(aiHelp)); + } + + /** + * 修改【帮助管理】 + */ + @PreAuthorize("@ss.hasPermi('ai:help:edit')") + @Log(title = "【帮助管理】", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiHelp aiHelp) + { + return toAjax(aiHelpService.updateAiHelp(aiHelp)); + } + + /** + * 删除【帮助管理】 + */ + @PreAuthorize("@ss.hasPermi('ai:help:remove')") + @Log(title = "【帮助管理】", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiHelpService.deleteAiHelpByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiManagerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiManagerController.java new file mode 100644 index 0000000..9e3b42d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiManagerController.java @@ -0,0 +1,125 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiManager; +import com.ruoyi.ai.domain.AiTag; +import com.ruoyi.ai.service.IAiManagerService; +import com.ruoyi.ai.service.IAiTagService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * AI管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/manager") +public class AiManagerController extends BaseController +{ + @Autowired + private IAiManagerService aiManagerService; + + @Autowired + private IAiTagService aiTagService; + + /** + * 查询AI管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:list')") + @GetMapping("/list") + public TableDataInfo list(AiManager aiManager) + { + startPage(); + List list = aiManagerService.selectAiManagerList(aiManager); + return getDataTable(list); + } + + /** + * 导出AI管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:export')") + @Log(title = "AI管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiManager aiManager) + { + List list = aiManagerService.selectAiManagerList(aiManager); + ExcelUtil util = new ExcelUtil(AiManager.class); + util.exportExcel(response, list, "AI管理数据"); + } + + /** + * 获取AI管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + AiManager data = aiManagerService.selectAiManagerById(id); + // 查询所有标签 + AiTag aiTag = new AiTag(); + aiTag.setAiId(data.getId()); + aiTag.setParentId(0l); + aiTag.setStatus(0); + List tagList = aiTagService.selectAiTagList(aiTag); + AjaxResult ajaxResult = success(); + ajaxResult.put("data",data); + ajaxResult.put("tagList",tagList); + return ajaxResult; + } + + /** + * 新增AI管理 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:add')") + @Log(title = "AI管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiManager aiManager) + { + return toAjax(aiManagerService.insertAiManager(aiManager)); + } + + /** + * 修改AI管理 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:edit')") + @Log(title = "AI管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiManager aiManager) + { + return toAjax(aiManagerService.updateAiManager(aiManager)); + } + + /** + * 状态修改 + */ + @PreAuthorize("@ss.hasPermi('system:user:edit')") + @Log(title = "修改AI状态", businessType = BusinessType.UPDATE) + @PutMapping("/changeStatus") + public AjaxResult changeStatus(@RequestBody AiManager aiManager) { + aiManager.setUpdateBy(getUsername()); + return toAjax(aiManagerService.updateAiStatus(aiManager)); + } + + /** + * 删除AI管理 + */ + @PreAuthorize("@ss.hasPermi('ai:manager:remove')") + @Log(title = "AI管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiManagerService.deleteAiManagerByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiOrderController.java new file mode 100644 index 0000000..eeea47d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiOrderController.java @@ -0,0 +1,100 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiOrder; +import com.ruoyi.ai.service.IAiOrderService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 订单管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/order") +public class AiOrderController extends BaseController +{ + @Autowired + private IAiOrderService aiOrderService; + + /** + * 查询订单管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:order:list')") + @GetMapping("/list") + public TableDataInfo list(AiOrder aiOrder) + { + startPage(); + List list = aiOrderService.selectAiOrderList(aiOrder); + return getDataTable(list); + } + + /** + * 导出订单管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:order:export')") + @Log(title = "订单管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiOrder aiOrder) + { + List list = aiOrderService.selectAiOrderList(aiOrder); + ExcelUtil util = new ExcelUtil(AiOrder.class); + util.exportExcel(response, list, "订单管理数据"); + } + + /** + * 获取订单管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:order:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiOrderService.selectAiOrderById(id)); + } + + /** + * 新增订单管理 + */ + @PreAuthorize("@ss.hasPermi('ai:order:add')") + @Log(title = "订单管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiOrder aiOrder) + { + return toAjax(aiOrderService.insertAiOrder(aiOrder)); + } + + /** + * 修改订单管理 + */ + @PreAuthorize("@ss.hasPermi('ai:order:edit')") + @Log(title = "订单管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiOrder aiOrder) + { + return toAjax(aiOrderService.updateAiOrder(aiOrder)); + } + + /** + * 删除订单管理 + */ + @PreAuthorize("@ss.hasPermi('ai:order:remove')") + @Log(title = "订单管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiOrderService.deleteAiOrderByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRebateRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRebateRecordController.java new file mode 100644 index 0000000..0c8e48f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRebateRecordController.java @@ -0,0 +1,101 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiRebateRecord; +import com.ruoyi.ai.service.IAiRebateRecordService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 返佣记录Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/rebate-record") +public class AiRebateRecordController extends BaseController +{ + @Autowired + private IAiRebateRecordService aiRebateRecordService; + + /** + * 查询返佣记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:list')") + @GetMapping("/list") + public TableDataInfo list(AiRebateRecord aiRebateRecord) + { + startPage(); + List list = aiRebateRecordService.selectAiRebateRecordList(aiRebateRecord); + return getDataTable(list); + } + + + + /** + * 导出返佣记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:export')") + @Log(title = "返佣记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiRebateRecord aiRebateRecord) + { + List list = aiRebateRecordService.selectAiRebateRecordList(aiRebateRecord); + ExcelUtil util = new ExcelUtil(AiRebateRecord.class); + util.exportExcel(response, list, "返佣记录数据"); + } + + /** + * 获取返佣记录详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiRebateRecordService.selectAiRebateRecordById(id)); + } + + /** + * 新增返佣记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:add')") + @Log(title = "返佣记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiRebateRecord aiRebateRecord) + { + return toAjax(aiRebateRecordService.insertAiRebateRecord(aiRebateRecord)); + } + + /** + * 修改返佣记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:edit')") + @Log(title = "返佣记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiRebateRecord aiRebateRecord) + { + return toAjax(aiRebateRecordService.updateAiRebateRecord(aiRebateRecord)); + } + + /** + * 删除返佣记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rebateRecord:remove')") + @Log(title = "返佣记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiRebateRecordService.deleteAiRebateRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeController.java new file mode 100644 index 0000000..179ed4d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeController.java @@ -0,0 +1,99 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiRecharge; +import com.ruoyi.ai.service.IAiRechargeService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 充值管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/recharge") +public class AiRechargeController extends BaseController +{ + @Autowired + private IAiRechargeService aiRechargeService; + + /** + * 查询充值管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:list')") + @GetMapping("/list") + public TableDataInfo list(AiRecharge aiRecharge) + { + startPage(); + List list = aiRechargeService.selectAiRechargeList(aiRecharge); + return getDataTable(list); + } + + + /** + * 导出充值管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:export')") + @Log(title = "充值管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiRecharge aiRecharge) + { + List list = aiRechargeService.selectAiRechargeList(aiRecharge); + ExcelUtil util = new ExcelUtil(AiRecharge.class); + util.exportExcel(response, list, "充值管理数据"); + } + + /** + * 获取充值管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiRechargeService.selectAiRechargeById(id)); + } + + /** + * 新增充值管理 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:add')") + @Log(title = "充值管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiRecharge aiRecharge) + { + return toAjax(aiRechargeService.insertAiRecharge(aiRecharge)); + } + + /** + * 修改充值管理 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:edit')") + @Log(title = "充值管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiRecharge aiRecharge) + { + return toAjax(aiRechargeService.updateAiRecharge(aiRecharge)); + } + + /** + * 删除充值管理 + */ + @PreAuthorize("@ss.hasPermi('ai:recharge:remove')") + @Log(title = "充值管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiRechargeService.deleteAiRechargeByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftController.java new file mode 100644 index 0000000..ba93819 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftController.java @@ -0,0 +1,118 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiRechargeGift; +import com.ruoyi.ai.service.IAiRechargeGiftService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 充值赠送活动Controller + * + * @author shi + * @date 2025-11-20 + */ +@RestController +@RequestMapping("/ai/gift") +public class AiRechargeGiftController extends BaseController +{ + @Autowired + private IAiRechargeGiftService aiRechargeGiftService; + + /** + * 查询充值赠送活动列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:list')") + @GetMapping("/list") + public TableDataInfo list(AiRechargeGift aiRechargeGift) + { + startPage(); + List list = aiRechargeGiftService.selectAiRechargeGiftList(aiRechargeGift); + return getDataTable(list); + } + + /** + * 导出充值赠送活动列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:export')") + @Log(title = "充值赠送活动", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiRechargeGift aiRechargeGift) + { + List list = aiRechargeGiftService.selectAiRechargeGiftList(aiRechargeGift); + ExcelUtil util = new ExcelUtil(AiRechargeGift.class); + util.exportExcel(response, list, "充值赠送活动数据"); + } + + /** + * 获取充值赠送活动详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + AiRechargeGift aiRechargeGift = aiRechargeGiftService.selectAiRechargeGiftById(id); + return success(aiRechargeGift); + } + + /** + * 新增充值赠送活动 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:add')") + @Log(title = "充值赠送活动", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody AiRechargeGift aiRechargeGift) + { + return toAjax(aiRechargeGiftService.insertAiRechargeGift(aiRechargeGift)); + } + + /** + * 修改充值赠送活动 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:edit')") + @Log(title = "充值赠送活动", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiRechargeGift aiRechargeGift) + { + return toAjax(aiRechargeGiftService.updateAiRechargeGift(aiRechargeGift)); + } + + /** + * 修改充值赠送活动 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:edit')") + @Log(title = "充值赠送活动", businessType = BusinessType.UPDATE) + @PutMapping("/changeUserStatus") + public AjaxResult changeUserStatus(@RequestBody AiRechargeGift aiRechargeGift) + { + return toAjax(aiRechargeGiftService.changeUserStatus(aiRechargeGift)); + } + + /** + * 删除充值赠送活动 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGift:remove')") + @Log(title = "充值赠送活动", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiRechargeGiftService.deleteAiRechargeGiftByIds(ids)); + } + + @Anonymous + @GetMapping("/getGifStatus") + public boolean getGifStatus() { + return aiRechargeGiftService.isActivityAvailable(1l); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftGearController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftGearController.java new file mode 100644 index 0000000..fb5c6fd --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftGearController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import com.ruoyi.ai.service.IAiRechargeGiftGearService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 充值赠送活动档位配置Controller + * + * @author shi + * @date 2025-11-20 + */ +@RestController +@RequestMapping("/ai/gear") +public class AiRechargeGiftGearController extends BaseController +{ + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + + /** + * 查询充值赠送活动档位配置列表 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:list')") + @GetMapping("/list") + public TableDataInfo list(AiRechargeGiftGear aiRechargeGiftGear) + { + startPage(); + List list = aiRechargeGiftGearService.selectAiRechargeGiftGearList(aiRechargeGiftGear); + return getDataTable(list); + } + + /** + * 导出充值赠送活动档位配置列表 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:export')") + @Log(title = "充值赠送活动档位配置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiRechargeGiftGear aiRechargeGiftGear) + { + List list = aiRechargeGiftGearService.selectAiRechargeGiftGearList(aiRechargeGiftGear); + ExcelUtil util = new ExcelUtil(AiRechargeGiftGear.class); + util.exportExcel(response, list, "充值赠送活动档位配置数据"); + } + + /** + * 获取充值赠送活动档位配置详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiRechargeGiftGearService.selectAiRechargeGiftGearById(id)); + } + + /** + * 新增充值赠送活动档位配置 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:add')") + @Log(title = "充值赠送活动档位配置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiRechargeGiftGear aiRechargeGiftGear) + { + return toAjax(aiRechargeGiftGearService.insertAiRechargeGiftGear(aiRechargeGiftGear)); + } + + /** + * 修改充值赠送活动档位配置 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:edit')") + @Log(title = "充值赠送活动档位配置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiRechargeGiftGear aiRechargeGiftGear) + { + return toAjax(aiRechargeGiftGearService.updateAiRechargeGiftGear(aiRechargeGiftGear)); + } + + /** + * 删除充值赠送活动档位配置 + */ + @PreAuthorize("@ss.hasPermi('ai:gear:remove')") + @Log(title = "充值赠送活动档位配置", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiRechargeGiftGearService.deleteAiRechargeGiftGearByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftRecordController.java new file mode 100644 index 0000000..e75524e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiRechargeGiftRecordController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiRechargeGiftRecord; +import com.ruoyi.ai.service.IAiRechargeGiftRecordService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 充值赠送记录Controller + * + * @author shi + * @date 2025-11-20 + */ +@RestController +@RequestMapping("/ai/recharge-gift-record") +public class AiRechargeGiftRecordController extends BaseController +{ + @Autowired + private IAiRechargeGiftRecordService aiRechargeGiftRecordService; + + /** + * 查询充值赠送记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:list')") + @GetMapping("/list") + public TableDataInfo list(AiRechargeGiftRecord aiRechargeGiftRecord) + { + startPage(); + List list = aiRechargeGiftRecordService.selectAiRechargeGiftRecordList(aiRechargeGiftRecord); + return getDataTable(list); + } + + /** + * 导出充值赠送记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:export')") + @Log(title = "充值赠送记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiRechargeGiftRecord aiRechargeGiftRecord) + { + List list = aiRechargeGiftRecordService.selectAiRechargeGiftRecordList(aiRechargeGiftRecord); + ExcelUtil util = new ExcelUtil(AiRechargeGiftRecord.class); + util.exportExcel(response, list, "充值赠送记录数据"); + } + + /** + * 获取充值赠送记录详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiRechargeGiftRecordService.selectAiRechargeGiftRecordById(id)); + } + + /** + * 新增充值赠送记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:add')") + @Log(title = "充值赠送记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiRechargeGiftRecord aiRechargeGiftRecord) + { + return toAjax(aiRechargeGiftRecordService.insertAiRechargeGiftRecord(aiRechargeGiftRecord)); + } + + /** + * 修改充值赠送记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:edit')") + @Log(title = "充值赠送记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiRechargeGiftRecord aiRechargeGiftRecord) + { + return toAjax(aiRechargeGiftRecordService.updateAiRechargeGiftRecord(aiRechargeGiftRecord)); + } + + /** + * 删除充值赠送记录 + */ + @PreAuthorize("@ss.hasPermi('ai:rechargeGiftRecord:remove')") + @Log(title = "充值赠送记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiRechargeGiftRecordService.deleteAiRechargeGiftRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountController.java new file mode 100644 index 0000000..0fbd3df --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountController.java @@ -0,0 +1,110 @@ +package com.ruoyi.web.controller.ai; + +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; +import com.ruoyi.ai.domain.AiSampleAmount; +import com.ruoyi.ai.service.IAiSampleAmountService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 体验金活动管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/amount") +public class AiSampleAmountController extends BaseController +{ + @Autowired + private IAiSampleAmountService aiSampleAmountService; + + /** + * 查询体验金活动管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:list')") + @GetMapping("/list") + public TableDataInfo list(AiSampleAmount aiSampleAmount) + { + startPage(); + List list = aiSampleAmountService.selectAiSampleAmountList(aiSampleAmount); + return getDataTable(list); + } + + /** + * 导出体验金活动管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:export')") + @Log(title = "体验金活动管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiSampleAmount aiSampleAmount) + { + List list = aiSampleAmountService.selectAiSampleAmountList(aiSampleAmount); + ExcelUtil util = new ExcelUtil(AiSampleAmount.class); + util.exportExcel(response, list, "体验金活动管理数据"); + } + + /** + * 获取体验金活动管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiSampleAmountService.selectAiSampleAmountById(id)); + } + + /** + * 新增体验金活动管理 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:add')") + @Log(title = "体验金活动管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiSampleAmount aiSampleAmount) + { + return toAjax(aiSampleAmountService.insertAiSampleAmount(aiSampleAmount)); + } + + /** + * 修改体验金活动管理 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:edit')") + @Log(title = "体验金活动管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiSampleAmount aiSampleAmount) + { + return toAjax(aiSampleAmountService.updateAiSampleAmount(aiSampleAmount)); + } + + /** + * 修改体验金活动管理 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:edit')") + @Log(title = "体验金活动管理", businessType = BusinessType.UPDATE) + @PutMapping("/changeUserStatus") + public AjaxResult changeUserStatus(@RequestBody AiSampleAmount aiSampleAmount) + { + return toAjax(aiSampleAmountService.changeUserStatus(aiSampleAmount)); + } + + /** + * 删除体验金活动管理 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmount:remove')") + @Log(title = "体验金活动管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiSampleAmountService.deleteAiSampleAmountByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountRecordController.java new file mode 100644 index 0000000..e03080c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiSampleAmountRecordController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiSampleAmountRecord; +import com.ruoyi.ai.service.IAiSampleAmountRecordService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 体验金领取记录Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/sample-amount-record") +public class AiSampleAmountRecordController extends BaseController +{ + @Autowired + private IAiSampleAmountRecordService aiSampleAmountRecordService; + + /** + * 查询体验金领取记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:list')") + @GetMapping("/list") + public TableDataInfo list(AiSampleAmountRecord aiSampleAmountRecord) + { + startPage(); + List list = aiSampleAmountRecordService.selectAiSampleAmountRecordList(aiSampleAmountRecord); + return getDataTable(list); + } + + /** + * 导出体验金领取记录列表 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:export')") + @Log(title = "体验金领取记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiSampleAmountRecord aiSampleAmountRecord) + { + List list = aiSampleAmountRecordService.selectAiSampleAmountRecordList(aiSampleAmountRecord); + ExcelUtil util = new ExcelUtil(AiSampleAmountRecord.class); + util.exportExcel(response, list, "体验金领取记录数据"); + } + + /** + * 获取体验金领取记录详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiSampleAmountRecordService.selectAiSampleAmountRecordById(id)); + } + + /** + * 新增体验金领取记录 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:add')") + @Log(title = "体验金领取记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiSampleAmountRecord aiSampleAmountRecord) + { + return toAjax(aiSampleAmountRecordService.insertAiSampleAmountRecord(aiSampleAmountRecord)); + } + + /** + * 修改体验金领取记录 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:edit')") + @Log(title = "体验金领取记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiSampleAmountRecord aiSampleAmountRecord) + { + return toAjax(aiSampleAmountRecordService.updateAiSampleAmountRecord(aiSampleAmountRecord)); + } + + /** + * 删除体验金领取记录 + */ + @PreAuthorize("@ss.hasPermi('ai:sampleAmountRecord:remove')") + @Log(title = "体验金领取记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiSampleAmountRecordService.deleteAiSampleAmountRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiStatisticsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiStatisticsController.java new file mode 100644 index 0000000..78fbad8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiStatisticsController.java @@ -0,0 +1,322 @@ +package com.ruoyi.web.controller.ai; + +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.ai.domain.MapValue; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.service.IAiStatisticsService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * ai-统计Controller + * + * @author shi + * @date 2025-11-29 + */ +@RestController +@RequestMapping("/ai/statistics") +public class AiStatisticsController extends BaseController +{ + @Autowired + private IAiStatisticsService aiStatisticsService; + + /** + * 查询ai-统计列表 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:list')") + @GetMapping("/list") + public TableDataInfo list(AiStatistics aiStatistics) + { + startPage(); + List list = aiStatisticsService.selectAiStatisticsList(aiStatistics); + return getDataTable(list); + } + + /** + * 查询首页头部统计 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:list')") + @GetMapping("/getTitleTotal") + public AjaxResult getTitleTotal() + { + AiStatistics aiStatistics = aiStatisticsService.getTitleTotal(); + return AjaxResult.success(aiStatistics); + } + + /** + * 获取今日新增用户统计 + * @return + */ + @GetMapping("/getTodayHourlyAddUserWithZero") + public AjaxResult getTodayHourlyAddUserWithZero(String source) { + List longs = aiStatisticsService.getTodayHourlyAddUserWithZero(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本周每日用户统计 + * @return + */ + @GetMapping("/getWeeklyAddUserCount") + public AjaxResult getWeeklyAddUserCount(String source) { + List longs = aiStatisticsService.getWeeklyAddUserCount(source); + return AjaxResult.success(longs); + } + + /** + * 获取本月每日用户统计 + * @return + */ + @GetMapping("/getMonthlyAddUserCount") + public AjaxResult getMonthlyAddUserCount(String source) { + List longs = aiStatisticsService.getMonthlyAddUserCount(source); + return AjaxResult.success(longs); + } + + + /** + * 获取时间范围用户统计 + * @return + */ + @GetMapping("/getMonthlyAddUserCountByRange") + public AjaxResult getMonthlyAddUserCountByRange(String source, Date startDate, Date endDate) { + List longs = aiStatisticsService.getMonthlyAddUserCountByRange(source, startDate, endDate); + return AjaxResult.success(longs); + } + + + + + + // ====================================================================================================== + + + /** + * 获取今日充值统计 + * @return + */ + @GetMapping("/getTodayHourlyRechargeWithZero") + public AjaxResult getTodayHourlyRechargeWithZero(String source) { + List longs = aiStatisticsService.getTodayHourlyRechargeWithZero(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本周每日充值统计 + * @return + */ + @GetMapping("/getWeeklyRecharge") + public AjaxResult getWeeklyRecharge(String source) { + List longs = aiStatisticsService.getWeeklyRecharge(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本月每日充值统计 + * @return + */ + @GetMapping("/getMonthlyRecharge") + public AjaxResult getMonthlyRecharge(String source) { + List longs = aiStatisticsService.getMonthlyRecharge(source); + return AjaxResult.success(longs); + } + + + /** + * 获取时间范围充值统计 + * @return + */ + @GetMapping("/getMonthlyRechargeByRange") + public AjaxResult getMonthlyRechargeByRange(String source, Date startDate, Date endDate) { + List longs = aiStatisticsService.getMonthlyRechargeByRange(source, startDate, endDate); + return AjaxResult.success(longs); + } +// ====================================================================================================== + + + /** + * 获取今日访客统计 + * @return + */ + @GetMapping("/getTodayHourlyVisitorWithZero") + public AjaxResult getTodayHourlyVisitorWithZero(String source) { + List longs = aiStatisticsService.getTodayHourlyVisitorWithZero(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本周每日访客统计 + * @return + */ + @GetMapping("/getWeeklyVisitor") + public AjaxResult getWeeklyVisitor(String source) { + List longs = aiStatisticsService.getWeeklyVisitor(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本月每日访客统计 + * @return + */ + @GetMapping("/getMonthlyVisitor") + public AjaxResult getMonthlyVisitor(String source) { + List longs = aiStatisticsService.getMonthlyVisitor(source); + return AjaxResult.success(longs); + } + + + /** + * 获取时间范围访客统计 + * @return + */ + @GetMapping("/getMonthlyVisitorByRange") + public AjaxResult getMonthlyVisitorByRange(String source, Date startDate, Date endDate) { + List longs = aiStatisticsService.getMonthlyVisitorByRange(source, startDate, endDate); + return AjaxResult.success(longs); + } + + +// ====================================================================================================== + + + /** + * 获取今日生成统计 + * @return + */ + @GetMapping("/getTodayHourlyGenerateWithZero") + public AjaxResult getTodayHourlyGenerateWithZero(String source) { + List longs = aiStatisticsService.getTodayHourlyGenerateWithZero(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本周每日生成统计 + * @return + */ + @GetMapping("/getWeeklyGenerate") + public AjaxResult getWeeklyGenerate(String source) { + List longs = aiStatisticsService.getWeeklyGenerate(source); + return AjaxResult.success(longs); + } + + + /** + * 获取本月每日生成统计 + * @return + */ + @GetMapping("/getMonthlyGenerate") + public AjaxResult getMonthlyGenerate(String source) { + List longs = aiStatisticsService.getMonthlyGenerate(source); + return AjaxResult.success(longs); + } + + + /** + * 获取时间范围生成统计 + * @return + */ + @GetMapping("/getMonthlyVisitorGenerate") + public AjaxResult getMonthlyVisitorGenerate(String source, Date startDate, Date endDate) { + List longs = aiStatisticsService.getMonthlyVisitorGenerate(source, startDate, endDate); + return AjaxResult.success(longs); + } + + + @GetMapping("/getMapStatistics") + public AjaxResult getMapStatistics() { + List map = aiStatisticsService.getMapStatistics(); + return AjaxResult.success(map); + } + + + @GetMapping("/getAllSource") + public AjaxResult getAllSource() { + List list = aiStatisticsService.getAllSource(); + return AjaxResult.success(list); + } + + /** + * 导出ai-统计列表 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:export')") + @Log(title = "ai-统计", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiStatistics aiStatistics) + { + List list = aiStatisticsService.selectAiStatisticsList(aiStatistics); + ExcelUtil util = new ExcelUtil(AiStatistics.class); + util.exportExcel(response, list, "ai-统计数据"); + } + + /** + * 获取ai-统计详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:query')") + @GetMapping(value = "/{dateKey}") + public AjaxResult getInfo(@PathVariable("dateKey") String dateKey) + { + return success(aiStatisticsService.selectAiStatisticsByDateKey(dateKey)); + } + + /** + * 新增ai-统计 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:add')") + @Log(title = "ai-统计", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiStatistics aiStatistics) + { + return toAjax(aiStatisticsService.insertAiStatistics(aiStatistics)); + } + + + /** + * 修改ai-统计 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:edit')") + @Log(title = "ai-统计", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiStatistics aiStatistics) + { + return toAjax(aiStatisticsService.updateAiStatistics(aiStatistics)); + } + + /** + * 删除ai-统计 + */ + @PreAuthorize("@ss.hasPermi('ai:statistics:remove')") + @Log(title = "ai-统计", businessType = BusinessType.DELETE) + @DeleteMapping("/{dateKeys}") + public AjaxResult remove(@PathVariable String[] dateKeys) + { + return toAjax(aiStatisticsService.deleteAiStatisticsByDateKeys(dateKeys)); + } + + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTagController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTagController.java new file mode 100644 index 0000000..9bfbe0a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTagController.java @@ -0,0 +1,120 @@ +package com.ruoyi.web.controller.ai; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import net.bytebuddy.implementation.bytecode.Throw; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.ai.domain.AiTag; +import com.ruoyi.ai.service.IAiTagService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * ai-标签管理Controller + * + * @author shi + * @date 2025-11-24 + */ +@RestController +@RequestMapping("/ai/tag") +public class AiTagController extends BaseController +{ + @Autowired + private IAiTagService aiTagService; + + /** + * 查询ai-标签管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:list')") + @GetMapping("/list") + public AjaxResult list(AiTag aiTag) + { + List list = aiTagService.selectAiTagList(aiTag); + return success(list); + } + + + /** + * 导出ai-标签管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:export')") + @Log(title = "ai-标签管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiTag aiTag) + { + List list = aiTagService.selectAiTagList(aiTag); + ExcelUtil util = new ExcelUtil(AiTag.class); + util.exportExcel(response, list, "ai-标签管理数据"); + } + + /** + * 获取ai-标签管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiTagService.selectAiTagById(id)); + } + + /** + * 新增ai-标签管理 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:add')") + @Log(title = "ai-标签管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiTag aiTag) + { + return toAjax(aiTagService.insertAiTag(aiTag)); + } + + /** + * 修改ai-标签管理 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:edit')") + @Log(title = "ai-标签管理", businessType = BusinessType.UPDATE) + @Transactional + @PutMapping + public AjaxResult edit(@RequestBody AiTag aiTag) + { + int rows = aiTagService.updateAiTag(aiTag); + if (aiTag.getStatus() == 1 && aiTag.getParentId() != 0l) { + // 查询是否父级是否开启并且还有其他子级开启数量 + boolean b = aiTagService.checkStatus(aiTag.getParentId()); + if (!b) { + throw new ServiceException("必须开启一个子级标签!"); + } + } + return toAjax(rows); + } + + /** + * 删除ai-标签管理 + */ + @PreAuthorize("@ss.hasPermi('ai:tag:remove')") + @Log(title = "ai-标签管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiTagService.deleteAiTagByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTemplateController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTemplateController.java new file mode 100644 index 0000000..c05daf8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiTemplateController.java @@ -0,0 +1,104 @@ +package com.ruoyi.ai.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.ai.domain.AiTemplate; +import com.ruoyi.ai.service.IAiTemplateService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * AI模版Controller + * + * @author shi + * @date 2026-01-15 + */ +@RestController +@RequestMapping("/ai/template") +public class AiTemplateController extends BaseController +{ + @Autowired + private IAiTemplateService aiTemplateService; + + /** + * 查询AI模版列表 + */ + @PreAuthorize("@ss.hasPermi('ai:template:list')") + @GetMapping("/list") + public TableDataInfo list(AiTemplate aiTemplate) + { + startPage(); + List list = aiTemplateService.selectAiTemplateList(aiTemplate); + return getDataTable(list); + } + + /** + * 导出AI模版列表 + */ + @PreAuthorize("@ss.hasPermi('ai:template:export')") + @Log(title = "AI模版", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiTemplate aiTemplate) + { + List list = aiTemplateService.selectAiTemplateList(aiTemplate); + ExcelUtil util = new ExcelUtil(AiTemplate.class); + util.exportExcel(response, list, "AI模版数据"); + } + + /** + * 获取AI模版详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:template:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiTemplateService.selectAiTemplateById(id)); + } + + /** + * 新增AI模版 + */ + @PreAuthorize("@ss.hasPermi('ai:template:add')") + @Log(title = "AI模版", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiTemplate aiTemplate) + { + return toAjax(aiTemplateService.insertAiTemplate(aiTemplate)); + } + + /** + * 修改AI模版 + */ + @PreAuthorize("@ss.hasPermi('ai:template:edit')") + @Log(title = "AI模版", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiTemplate aiTemplate) + { + return toAjax(aiTemplateService.updateAiTemplate(aiTemplate)); + } + + /** + * 删除AI模版 + */ + @PreAuthorize("@ss.hasPermi('ai:template:remove')") + @Log(title = "AI模版", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiTemplateService.deleteAiTemplateByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserController.java new file mode 100644 index 0000000..d0785f0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserController.java @@ -0,0 +1,162 @@ +package com.ruoyi.web.controller.ai; + +import cn.hutool.core.util.NumberUtil; +import com.ruoyi.ai.service.EmailVerifyService; +import com.ruoyi.ai.service.IAiUserService; +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.BalanceChangerConstants; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.core.domain.model.RegisterAiUserBody; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.mail.MessagingException; +import javax.servlet.http.HttpServletResponse; +import java.math.BigDecimal; +import java.util.List; + +/** + * ai-用户信息Controller + * + * @author shi + * @date 2025-11-12 + */ +@Api(tags = "ai-用户信息") +@RestController +@RequestMapping("/ai/user") +public class AiUserController extends BaseController { + @Autowired + private IAiUserService aiUserService; + + + /** + * 查询ai-用户信息列表 + */ + @ApiOperation("查询ai-用户信息列表") + @PreAuthorize("@ss.hasPermi('ai:user:list')") + @GetMapping("/list") + public TableDataInfo list(AiUser aiUser) { + startPage(); + List list = aiUserService.selectAiUserList(aiUser); + return getDataTable(list); + } + + /** + * 导出ai-用户信息列表 + */ + @PreAuthorize("@ss.hasPermi('ai:user:export')") + @Log(title = "ai-用户信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiUser aiUser) { + List list = aiUserService.selectAiUserList(aiUser); + ExcelUtil util = new ExcelUtil(AiUser.class); + util.exportExcel(response, list, "ai-用户信息数据"); + } + + /** + * 获取ai-用户信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:user:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) { + return success(aiUserService.selectAiUserById(id)); + } + + + + /** + * 新增ai-用户信息 + */ + @ApiOperation("新增ai-用户信息") + @PreAuthorize("@ss.hasPermi('ai:user:add')") + @Log(title = "ai-用户信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiUser aiUser) { + return toAjax(aiUserService.insertAiUser(aiUser)); + } + + /** + * 修改ai-用户信息 + */ + @ApiOperation("修改ai-用户信息") + @PreAuthorize("@ss.hasPermi('ai:user:edit')") + @Log(title = "ai-用户信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiUser aiUser) { + return toAjax(aiUserService.updateAiUser(aiUser)); + } + + /** + * 状态修改 + */ + @ApiOperation("修改ai-用户状态") + @PreAuthorize("@ss.hasPermi('ai:user:edit')") + @Log(title = "ai-用户信息", businessType = BusinessType.UPDATE) + @PutMapping("/changeStatus") + public AjaxResult changeStatus(@RequestBody AiUser aiUser) { + aiUser.setUpdateBy(getUsername()); + return toAjax(aiUserService.updateUserStatus(aiUser)); + } + + /** + * 状态修改 + */ + @ApiOperation("修改ai-用户状态") + @PreAuthorize("@ss.hasPermi('ai:user:edit')") + @Log(title = "ai-用户信息", businessType = BusinessType.UPDATE) + @PutMapping("/changeBalance") + public AjaxResult changeBalance(@RequestBody AiUser aiUser) { + aiUser.setUpdateBy(getUsername()); + // 获取原余额 + AiUser u = aiUserService.selectAiUserById(aiUser.getId()); + // 计算变更余额 + BigDecimal amount = NumberUtil.sub(aiUser.getBalance(), u.getBalance()); + aiUserService.addUserBalance(aiUser.getId(), amount, BalanceChangerConstants.SYSTEM_OPERATION); + return toAjax(1); + } + + /** + * 状态密码 + */ + @PreAuthorize("@ss.hasPermi('ai:user:edit')") + @Log(title = "ai-用户信息", businessType = BusinessType.UPDATE) + @PutMapping("/updatePassword") + public AjaxResult updatePassword(@RequestBody AiUser aiUser) { + return toAjax(aiUserService.updatePassword(aiUser)); + } + + /** + * 删除ai-用户信息 + */ + @ApiOperation("删除ai-用户信息") + @PreAuthorize("@ss.hasPermi('ai:user:remove')") + @Log(title = "ai-用户信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) { + return toAjax(aiUserService.deleteAiUserByIds(ids)); + } + + + + +// @GetMapping("/addUserBalance") +// public AjaxResult addUserBalance(BigDecimal amount) { +// aiUserService.addUserBalance(SecurityUtils.getAiUserId(), amount, BalanceChangerConstants.RECHARGE); +// return AjaxResult.success(); +// } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserMessageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserMessageController.java new file mode 100644 index 0000000..965cc46 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiUserMessageController.java @@ -0,0 +1,98 @@ +package com.ruoyi.web.controller.ai; + +import com.ruoyi.ai.domain.AiUserMessage; +import com.ruoyi.ai.service.IAiUserMessageService; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 站内信管理Controller + * + * @author shi + * @date 2025-11-13 + */ +@RestController +@RequestMapping("/ai/message") +public class AiUserMessageController extends BaseController +{ + @Autowired + private IAiUserMessageService aiUserMessageService; + + /** + * 查询站内信管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:message:list')") + @GetMapping("/list") + public TableDataInfo list(AiUserMessage aiUserMessage) + { + startPage(); + List list = aiUserMessageService.selectAiUserMessageList(aiUserMessage); + return getDataTable(list); + } + + /** + * 导出站内信管理列表 + */ + @PreAuthorize("@ss.hasPermi('ai:message:export')") + @Log(title = "站内信管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiUserMessage aiUserMessage) + { + List list = aiUserMessageService.selectAiUserMessageList(aiUserMessage); + ExcelUtil util = new ExcelUtil(AiUserMessage.class); + util.exportExcel(response, list, "站内信管理数据"); + } + + /** + * 获取站内信管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:message:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiUserMessageService.selectAiUserMessageById(id)); + } + + /** + * 新增站内信管理 + */ + @PreAuthorize("@ss.hasPermi('ai:message:add')") + @Log(title = "站内信管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiUserMessage aiUserMessage) + { + return toAjax(aiUserMessageService.insertAiUserMessage(aiUserMessage)); + } + + /** + * 修改站内信管理 + */ + @PreAuthorize("@ss.hasPermi('ai:message:edit')") + @Log(title = "站内信管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiUserMessage aiUserMessage) + { + return toAjax(aiUserMessageService.updateAiUserMessage(aiUserMessage)); + } + + /** + * 删除站内信管理 + */ + @PreAuthorize("@ss.hasPermi('ai:message:remove')") + @Log(title = "站内信管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiUserMessageService.deleteAiUserMessageByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiWorkController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiWorkController.java new file mode 100644 index 0000000..3f7fb6a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/AiWorkController.java @@ -0,0 +1,104 @@ +package com.ruoyi.web.controller.ai; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.ai.domain.AiWork; +import com.ruoyi.ai.service.IAiWorkService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * ai作品Controller + * + * @author shi + * @date 2025-11-25 + */ +@RestController +@RequestMapping("/ai/work") +public class AiWorkController extends BaseController +{ + @Autowired + private IAiWorkService aiWorkService; + + /** + * 查询ai作品列表 + */ + @PreAuthorize("@ss.hasPermi('ai:work:list')") + @GetMapping("/list") + public TableDataInfo list(AiWork aiWork) + { + startPage(); + List list = aiWorkService.selectAiWorkList(aiWork); + return getDataTable(list); + } + + /** + * 导出ai作品列表 + */ + @PreAuthorize("@ss.hasPermi('ai:work:export')") + @Log(title = "ai作品", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, AiWork aiWork) + { + List list = aiWorkService.selectAiWorkList(aiWork); + ExcelUtil util = new ExcelUtil(AiWork.class); + util.exportExcel(response, list, "ai作品数据"); + } + + /** + * 获取ai作品详细信息 + */ + @PreAuthorize("@ss.hasPermi('ai:work:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(aiWorkService.selectAiWorkById(id)); + } + + /** + * 新增ai作品 + */ + @PreAuthorize("@ss.hasPermi('ai:work:add')") + @Log(title = "ai作品", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody AiWork aiWork) + { + return toAjax(aiWorkService.insertAiWork(aiWork)); + } + + /** + * 修改ai作品 + */ + @PreAuthorize("@ss.hasPermi('ai:work:edit')") + @Log(title = "ai作品", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody AiWork aiWork) + { + return toAjax(aiWorkService.updateAiWork(aiWork)); + } + + /** + * 删除ai作品 + */ + @PreAuthorize("@ss.hasPermi('ai:work:remove')") + @Log(title = "ai作品", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(aiWorkService.deleteAiWorkByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/test.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/test.java new file mode 100644 index 0000000..d0340e9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ai/test.java @@ -0,0 +1,4 @@ +package com.ruoyi.web.controller.ai; + +public class test { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java new file mode 100644 index 0000000..d2d6e8c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CaptchaController.java @@ -0,0 +1,94 @@ +package com.ruoyi.web.controller.common; + +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Resource; +import javax.imageio.ImageIO; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.util.FastByteArrayOutputStream; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; +import com.google.code.kaptcha.Producer; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.utils.sign.Base64; +import com.ruoyi.common.utils.uuid.IdUtils; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 验证码操作处理 + * + * @author ruoyi + */ +@RestController +public class CaptchaController +{ + @Resource(name = "captchaProducer") + private Producer captchaProducer; + + @Resource(name = "captchaProducerMath") + private Producer captchaProducerMath; + + @Autowired + private RedisCache redisCache; + + @Autowired + private ISysConfigService configService; + /** + * 生成验证码 + */ + @GetMapping("/captchaImage") + public AjaxResult getCode(HttpServletResponse response) throws IOException + { + AjaxResult ajax = AjaxResult.success(); + boolean captchaEnabled = configService.selectCaptchaEnabled(); + ajax.put("captchaEnabled", captchaEnabled); + if (!captchaEnabled) + { + return ajax; + } + + // 保存验证码信息 + String uuid = IdUtils.simpleUUID(); + String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + uuid; + + String capStr = null, code = null; + BufferedImage image = null; + + // 生成验证码 + String captchaType = RuoYiConfig.getCaptchaType(); + if ("math".equals(captchaType)) + { + String capText = captchaProducerMath.createText(); + capStr = capText.substring(0, capText.lastIndexOf("@")); + code = capText.substring(capText.lastIndexOf("@") + 1); + image = captchaProducerMath.createImage(capStr); + } + else if ("char".equals(captchaType)) + { + capStr = code = captchaProducer.createText(); + image = captchaProducer.createImage(capStr); + } + + redisCache.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES); + // 转换流信息写出 + FastByteArrayOutputStream os = new FastByteArrayOutputStream(); + try + { + ImageIO.write(image, "jpg", os); + } + catch (IOException e) + { + return AjaxResult.error(e.getMessage()); + } + + ajax.put("uuid", uuid); + ajax.put("img", Base64.encode(os.toByteArray())); + return ajax; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java new file mode 100644 index 0000000..843c9ba --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java @@ -0,0 +1,177 @@ +package com.ruoyi.web.controller.common; + +import com.ruoyi.common.annotation.Anonymous; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.exception.base.BaseException; +import com.ruoyi.common.utils.AwsS3Util; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.TencentCosUtil; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.common.utils.file.FileUtils; +import com.ruoyi.framework.config.ServerConfig; +import io.swagger.annotations.ApiOperation; +import lombok.RequiredArgsConstructor; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.MediaType; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.ArrayList; +import java.util.List; + +/** + * 通用请求处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/common") +@RequiredArgsConstructor(onConstructor_ = @Autowired) +public class CommonController { + private static final Logger log = LoggerFactory.getLogger(CommonController.class); + private final ServerConfig serverConfig; + private final TencentCosUtil tencentCosUtil; + private final AwsS3Util awsS3Util; + + /** + * 通用下载请求 + * + * @param fileName 文件名称 + * @param delete 是否删除 + */ + @GetMapping("/download") + public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request) { + try { + if (!FileUtils.checkAllowDownload(fileName)) { + throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName)); + } + String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); + String filePath = RuoYiConfig.getDownloadPath() + fileName; + + response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); + FileUtils.setAttachmentResponseHeader(response, realFileName); + FileUtils.writeBytes(filePath, response.getOutputStream()); + if (delete) { + FileUtils.deleteFile(filePath); + } + } catch (Exception e) { + log.error("下载文件失败", e); + } + } + + /** + * 通用上传请求(单个) + */ + @PostMapping("/upload") + public AjaxResult uploadFile(MultipartFile file) { + try { + // 上传文件路径 + String filePath = RuoYiConfig.getUploadPath(); + // 上传并返回新文件名称 + String fileName = FileUploadUtils.upload(filePath, file); + String url = serverConfig.getUrl() + fileName; + AjaxResult ajax = AjaxResult.success(); + ajax.put("url", url); + ajax.put("fileName", fileName); + ajax.put("newFileName", FileUtils.getName(fileName)); + ajax.put("originalFilename", file.getOriginalFilename()); + return ajax; + } catch (Exception e) { + return AjaxResult.error(e.getMessage()); + } + } + + /** + * 通用上传请求(多个) + */ + @PostMapping("/uploads") + public AjaxResult uploadFiles(List files) throws Exception { + try { + // 上传文件路径 + String filePath = RuoYiConfig.getUploadPath(); + List urls = new ArrayList(); + List fileNames = new ArrayList(); + List newFileNames = new ArrayList(); + List originalFilenames = new ArrayList(); + for (MultipartFile file : files) { + // 上传并返回新文件名称 + String fileName = FileUploadUtils.upload(filePath, file); + String url = serverConfig.getUrl() + fileName; + urls.add(url); + fileNames.add(fileName); + newFileNames.add(FileUtils.getName(fileName)); + originalFilenames.add(file.getOriginalFilename()); + } + AjaxResult ajax = AjaxResult.success(); + String FILE_DELIMETER = ","; + ajax.put("urls", StringUtils.join(urls, FILE_DELIMETER)); + ajax.put("fileNames", StringUtils.join(fileNames, FILE_DELIMETER)); + ajax.put("newFileNames", StringUtils.join(newFileNames, FILE_DELIMETER)); + ajax.put("originalFilenames", StringUtils.join(originalFilenames, FILE_DELIMETER)); + return ajax; + } catch (Exception e) { + return AjaxResult.error(e.getMessage()); + } + } + + /** + * 本地资源通用下载 + */ + @GetMapping("/download/resource") + public void resourceDownload(String resource, HttpServletRequest request, HttpServletResponse response) + throws Exception { + try { + if (!FileUtils.checkAllowDownload(resource)) { + throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource)); + } + // 本地资源路径 + String localPath = RuoYiConfig.getProfile(); + // 数据库资源地址 + String downloadPath = localPath + FileUtils.stripPrefix(resource); + // 下载名称 + String downloadName = StringUtils.substringAfterLast(downloadPath, "/"); + response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); + FileUtils.setAttachmentResponseHeader(response, downloadName); + FileUtils.writeBytes(downloadPath, response.getOutputStream()); + } catch (Exception e) { + log.error("下载文件失败", e); + } + } + + @PostMapping("/cos/upload") + public AjaxResult uploadCover(MultipartFile file) { + AjaxResult ajax = AjaxResult.success(); + String uploadUrl; + try { + uploadUrl = tencentCosUtil.upload(file); + } catch (Exception e) { + throw new BaseException("上传失败"); + } + ajax.put("url", uploadUrl); + ajax.put("oldName", file.getOriginalFilename()); + return ajax; + } + + /** + * AWS上传请求(单个) + */ + @ApiOperation("图片上传接口") + @PostMapping("/aws/upload") + public AjaxResult uploadAws(MultipartFile file) { + AjaxResult ajax = AjaxResult.success(); + String uploadUrl; + try { + uploadUrl = awsS3Util.uploadMultipartFile(file, true); + } catch (Exception e) { + return AjaxResult.error(e.getMessage()); + } + ajax.put("url", uploadUrl); + ajax.put("oldName", file.getOriginalFilename()); + return ajax; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java new file mode 100644 index 0000000..c8c49c9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -0,0 +1,121 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; +import java.util.Set; +import java.util.TreeSet; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisCallback; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysCache; + +/** + * 缓存监控 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/cache") +public class CacheController +{ + @Autowired + private RedisTemplate redisTemplate; + + private final static List caches = new ArrayList(); + { + caches.add(new SysCache(CacheConstants.LOGIN_TOKEN_KEY, "用户信息")); + caches.add(new SysCache(CacheConstants.SYS_CONFIG_KEY, "配置信息")); + caches.add(new SysCache(CacheConstants.SYS_DICT_KEY, "数据字典")); + caches.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "验证码")); + caches.add(new SysCache(CacheConstants.REPEAT_SUBMIT_KEY, "防重提交")); + caches.add(new SysCache(CacheConstants.RATE_LIMIT_KEY, "限流处理")); + caches.add(new SysCache(CacheConstants.PWD_ERR_CNT_KEY, "密码错误次数")); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @GetMapping() + public AjaxResult getInfo() throws Exception + { + Properties info = (Properties) redisTemplate.execute((RedisCallback) connection -> connection.info()); + Properties commandStats = (Properties) redisTemplate.execute((RedisCallback) connection -> connection.info("commandstats")); + Object dbSize = redisTemplate.execute((RedisCallback) connection -> connection.dbSize()); + + Map result = new HashMap<>(3); + result.put("info", info); + result.put("dbSize", dbSize); + + List> pieList = new ArrayList<>(); + commandStats.stringPropertyNames().forEach(key -> { + Map data = new HashMap<>(2); + String property = commandStats.getProperty(key); + data.put("name", StringUtils.removeStart(key, "cmdstat_")); + data.put("value", StringUtils.substringBetween(property, "calls=", ",usec")); + pieList.add(data); + }); + result.put("commandStats", pieList); + return AjaxResult.success(result); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @GetMapping("/getNames") + public AjaxResult cache() + { + return AjaxResult.success(caches); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @GetMapping("/getKeys/{cacheName}") + public AjaxResult getCacheKeys(@PathVariable String cacheName) + { + Set cacheKeys = redisTemplate.keys(cacheName + "*"); + return AjaxResult.success(new TreeSet<>(cacheKeys)); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @GetMapping("/getValue/{cacheName}/{cacheKey}") + public AjaxResult getCacheValue(@PathVariable String cacheName, @PathVariable String cacheKey) + { + String cacheValue = redisTemplate.opsForValue().get(cacheKey); + SysCache sysCache = new SysCache(cacheName, cacheKey, cacheValue); + return AjaxResult.success(sysCache); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @DeleteMapping("/clearCacheName/{cacheName}") + public AjaxResult clearCacheName(@PathVariable String cacheName) + { + Collection cacheKeys = redisTemplate.keys(cacheName + "*"); + redisTemplate.delete(cacheKeys); + return AjaxResult.success(); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @DeleteMapping("/clearCacheKey/{cacheKey}") + public AjaxResult clearCacheKey(@PathVariable String cacheKey) + { + redisTemplate.delete(cacheKey); + return AjaxResult.success(); + } + + @PreAuthorize("@ss.hasPermi('monitor:cache:list')") + @DeleteMapping("/clearCacheAll") + public AjaxResult clearCacheAll() + { + Collection cacheKeys = redisTemplate.keys("*"); + redisTemplate.delete(cacheKeys); + return AjaxResult.success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java new file mode 100644 index 0000000..cc805ad --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/ServerController.java @@ -0,0 +1,27 @@ +package com.ruoyi.web.controller.monitor; + +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.framework.web.domain.Server; + +/** + * 服务器监控 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/server") +public class ServerController +{ + @PreAuthorize("@ss.hasPermi('monitor:server:list')") + @GetMapping() + public AjaxResult getInfo() throws Exception + { + Server server = new Server(); + server.copyTo(); + return AjaxResult.success(server); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java new file mode 100644 index 0000000..e0175f4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysLogininforController.java @@ -0,0 +1,82 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.framework.web.service.SysPasswordService; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.service.ISysLogininforService; + +/** + * 系统访问记录 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/logininfor") +public class SysLogininforController extends BaseController +{ + @Autowired + private ISysLogininforService logininforService; + + @Autowired + private SysPasswordService passwordService; + + @PreAuthorize("@ss.hasPermi('monitor:logininfor:list')") + @GetMapping("/list") + public TableDataInfo list(SysLogininfor logininfor) + { + startPage(); + List list = logininforService.selectLogininforList(logininfor); + return getDataTable(list); + } + + @Log(title = "登录日志", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysLogininfor logininfor) + { + List list = logininforService.selectLogininforList(logininfor); + ExcelUtil util = new ExcelUtil(SysLogininfor.class); + util.exportExcel(response, list, "登录日志"); + } + + @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") + @Log(title = "登录日志", businessType = BusinessType.DELETE) + @DeleteMapping("/{infoIds}") + public AjaxResult remove(@PathVariable Long[] infoIds) + { + return toAjax(logininforService.deleteLogininforByIds(infoIds)); + } + + @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')") + @Log(title = "登录日志", businessType = BusinessType.CLEAN) + @DeleteMapping("/clean") + public AjaxResult clean() + { + logininforService.cleanLogininfor(); + return success(); + } + + @PreAuthorize("@ss.hasPermi('monitor:logininfor:unlock')") + @Log(title = "账户解锁", businessType = BusinessType.OTHER) + @GetMapping("/unlock/{userName}") + public AjaxResult unlock(@PathVariable("userName") String userName) + { + passwordService.clearLoginRecordCache(userName); + return success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java new file mode 100644 index 0000000..6ca78cf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysOperlogController.java @@ -0,0 +1,69 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.service.ISysOperLogService; + +/** + * 操作日志记录 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/operlog") +public class SysOperlogController extends BaseController +{ + @Autowired + private ISysOperLogService operLogService; + + @PreAuthorize("@ss.hasPermi('monitor:operlog:list')") + @GetMapping("/list") + public TableDataInfo list(SysOperLog operLog) + { + startPage(); + List list = operLogService.selectOperLogList(operLog); + return getDataTable(list); + } + + @Log(title = "操作日志", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('monitor:operlog:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysOperLog operLog) + { + List list = operLogService.selectOperLogList(operLog); + ExcelUtil util = new ExcelUtil(SysOperLog.class); + util.exportExcel(response, list, "操作日志"); + } + + @Log(title = "操作日志", businessType = BusinessType.DELETE) + @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") + @DeleteMapping("/{operIds}") + public AjaxResult remove(@PathVariable Long[] operIds) + { + return toAjax(operLogService.deleteOperLogByIds(operIds)); + } + + @Log(title = "操作日志", businessType = BusinessType.CLEAN) + @PreAuthorize("@ss.hasPermi('monitor:operlog:remove')") + @DeleteMapping("/clean") + public AjaxResult clean() + { + operLogService.cleanOperLog(); + return success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java new file mode 100644 index 0000000..4501e1a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/SysUserOnlineController.java @@ -0,0 +1,87 @@ +package com.ruoyi.web.controller.monitor; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 在线用户监控 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/online") +public class SysUserOnlineController extends BaseController +{ + @Autowired + private ISysUserOnlineService userOnlineService; + + @Autowired + private RedisCache redisCache; + + @PreAuthorize("@ss.hasPermi('monitor:online:list')") + @GetMapping("/list") + public TableDataInfo list(String ipaddr, String userName) + { + Collection keys = redisCache.keys(CacheConstants.LOGIN_TOKEN_KEY + "*"); + List userOnlineList = new ArrayList(); + for (String key : keys) + { + try { + LoginUser user = redisCache.getCacheObject(key); + if (StringUtils.isNotEmpty(ipaddr) && StringUtils.isNotEmpty(userName)) + { + userOnlineList.add(userOnlineService.selectOnlineByInfo(ipaddr, userName, user)); + } + else if (StringUtils.isNotEmpty(ipaddr)) + { + userOnlineList.add(userOnlineService.selectOnlineByIpaddr(ipaddr, user)); + } + else if (StringUtils.isNotEmpty(userName) && StringUtils.isNotNull(user.getUser())) + { + userOnlineList.add(userOnlineService.selectOnlineByUserName(userName, user)); + } + else + { + userOnlineList.add(userOnlineService.loginUserToUserOnline(user)); + } + } catch (Exception e) { + + } + } + Collections.reverse(userOnlineList); + userOnlineList.removeAll(Collections.singleton(null)); + return getDataTable(userOnlineList); + } + + /** + * 强退用户 + */ + @PreAuthorize("@ss.hasPermi('monitor:online:forceLogout')") + @Log(title = "在线用户", businessType = BusinessType.FORCE) + @DeleteMapping("/{tokenId}") + public AjaxResult forceLogout(@PathVariable String tokenId) + { + redisCache.deleteObject(CacheConstants.LOGIN_TOKEN_KEY + tokenId); + return success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java new file mode 100644 index 0000000..befd9f1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java @@ -0,0 +1,156 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 参数配置 信息操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/config") +public class SysConfigController extends BaseController +{ + @Autowired + private ISysConfigService configService; + + /** + * 获取参数配置列表 + */ + @PreAuthorize("@ss.hasPermi('system:config:list')") + @GetMapping("/list") + public TableDataInfo list(SysConfig config) + { + startPage(); + List list = configService.selectConfigList(config); + return getDataTable(list); + } + + @Log(title = "参数管理", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:config:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysConfig config) + { + List list = configService.selectConfigList(config); + ExcelUtil util = new ExcelUtil(SysConfig.class); + util.exportExcel(response, list, "参数数据"); + } + + /** + * 根据参数编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:config:query')") + @GetMapping(value = "/{configId}") + public AjaxResult getInfo(@PathVariable Long configId) + { + return success(configService.selectConfigById(configId)); + } + + /** + * 根据参数键名查询参数值 + */ + @GetMapping(value = "/configKey/{configKey}") + public AjaxResult getConfigKey(@PathVariable String configKey) + { + return success(configService.selectConfigByKey(configKey)); + } + + /** + * 新增参数配置 + */ + @PreAuthorize("@ss.hasPermi('system:config:add')") + @Log(title = "参数管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysConfig config) + { + if (!configService.checkConfigKeyUnique(config)) + { + return error("新增参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + config.setCreateBy(getUsername()); + return toAjax(configService.insertConfig(config)); + } + + /** + * 修改参数配置 + */ + @PreAuthorize("@ss.hasPermi('system:config:edit')") + @Log(title = "参数管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysConfig config) + { + if (config.getConfigId().equals(100l)) { + if (!isStringLongInteger(config.getConfigValue())) { + return error(config.getConfigName() + "参数值只能输入整数"); + } + } + if (!configService.checkConfigKeyUnique(config)) + { + return error("修改参数'" + config.getConfigName() + "'失败,参数键名已存在"); + } + config.setUpdateBy(getUsername()); + return toAjax(configService.updateConfig(config)); + } + + /** + * 判断字符串是否为合法的Long整数 + * @param str 待判断的字符串 + * @return true=合法Long整数,false=否 + */ + public static boolean isStringLongInteger(String str) { + if (str == null || str.trim().isEmpty()) { + return false; + } + try { + // 尝试转换为Long,若抛出异常则说明不是合法整数 + Long.parseLong(str.trim()); + return true; + } catch (NumberFormatException e) { + return false; + } + } + + /** + * 删除参数配置 + */ + @PreAuthorize("@ss.hasPermi('system:config:remove')") + @Log(title = "参数管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{configIds}") + public AjaxResult remove(@PathVariable Long[] configIds) + { + configService.deleteConfigByIds(configIds); + return success(); + } + + /** + * 刷新参数缓存 + */ + @PreAuthorize("@ss.hasPermi('system:config:remove')") + @Log(title = "参数管理", businessType = BusinessType.CLEAN) + @DeleteMapping("/refreshCache") + public AjaxResult refreshCache() + { + configService.resetConfigCache(); + return success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java new file mode 100644 index 0000000..59e7588 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java @@ -0,0 +1,132 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.ISysDeptService; + +/** + * 部门信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/dept") +public class SysDeptController extends BaseController +{ + @Autowired + private ISysDeptService deptService; + + /** + * 获取部门列表 + */ + @PreAuthorize("@ss.hasPermi('system:dept:list')") + @GetMapping("/list") + public AjaxResult list(SysDept dept) + { + List depts = deptService.selectDeptList(dept); + return success(depts); + } + + /** + * 查询部门列表(排除节点) + */ + @PreAuthorize("@ss.hasPermi('system:dept:list')") + @GetMapping("/list/exclude/{deptId}") + public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId) + { + List depts = deptService.selectDeptList(new SysDept()); + depts.removeIf(d -> d.getDeptId().intValue() == deptId || ArrayUtils.contains(StringUtils.split(d.getAncestors(), ","), deptId + "")); + return success(depts); + } + + /** + * 根据部门编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:dept:query')") + @GetMapping(value = "/{deptId}") + public AjaxResult getInfo(@PathVariable Long deptId) + { + deptService.checkDeptDataScope(deptId); + return success(deptService.selectDeptById(deptId)); + } + + /** + * 新增部门 + */ + @PreAuthorize("@ss.hasPermi('system:dept:add')") + @Log(title = "部门管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysDept dept) + { + if (!deptService.checkDeptNameUnique(dept)) + { + return error("新增部门'" + dept.getDeptName() + "'失败,部门名称已存在"); + } + dept.setCreateBy(getUsername()); + return toAjax(deptService.insertDept(dept)); + } + + /** + * 修改部门 + */ + @PreAuthorize("@ss.hasPermi('system:dept:edit')") + @Log(title = "部门管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysDept dept) + { + Long deptId = dept.getDeptId(); + deptService.checkDeptDataScope(deptId); + if (!deptService.checkDeptNameUnique(dept)) + { + return error("修改部门'" + dept.getDeptName() + "'失败,部门名称已存在"); + } + else if (dept.getParentId().equals(deptId)) + { + return error("修改部门'" + dept.getDeptName() + "'失败,上级部门不能是自己"); + } + else if (StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()) && deptService.selectNormalChildrenDeptById(deptId) > 0) + { + return error("该部门包含未停用的子部门!"); + } + dept.setUpdateBy(getUsername()); + return toAjax(deptService.updateDept(dept)); + } + + /** + * 删除部门 + */ + @PreAuthorize("@ss.hasPermi('system:dept:remove')") + @Log(title = "部门管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{deptId}") + public AjaxResult remove(@PathVariable Long deptId) + { + if (deptService.hasChildByDeptId(deptId)) + { + return warn("存在下级部门,不允许删除"); + } + if (deptService.checkDeptExistUser(deptId)) + { + return warn("部门存在用户,不允许删除"); + } + deptService.checkDeptDataScope(deptId); + return toAjax(deptService.deleteDeptById(deptId)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java new file mode 100644 index 0000000..df7fa3b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java @@ -0,0 +1,137 @@ +package com.ruoyi.web.controller.system; + +import java.util.ArrayList; +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysDictDataService; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * 数据字典信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/dict/data") +public class SysDictDataController extends BaseController +{ + @Autowired + private ISysDictDataService dictDataService; + + @Autowired + private ISysDictTypeService dictTypeService; + +// @PreAuthorize("@ss.hasPermi('system:dict:list')") + @GetMapping("/list") + public TableDataInfo list(SysDictData dictData) + { + startPage(); + List list = dictDataService.selectDictDataList(dictData); + return getDataTable(list); + } + + @Log(title = "字典数据", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:dict:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysDictData dictData) + { + List list = dictDataService.selectDictDataList(dictData); + ExcelUtil util = new ExcelUtil(SysDictData.class); + util.exportExcel(response, list, "字典数据"); + } + + /** + * 查询字典数据详细 + */ + @PreAuthorize("@ss.hasPermi('system:dict:query')") + @GetMapping(value = "/{dictCode}") + public AjaxResult getInfo(@PathVariable Long dictCode) + { + return success(dictDataService.selectDictDataById(dictCode)); + } + + /** + * 根据字典类型查询字典数据信息 + */ + @GetMapping(value = "/type/{dictType}") + public AjaxResult dictType(@PathVariable String dictType) + { + List data = dictTypeService.selectDictDataByType(dictType); + if (StringUtils.isNull(data)) + { + data = new ArrayList(); + } + return success(data); + } + + /** + * 新增字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:add')") + @Log(title = "字典数据", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysDictData dict) + { + dict.setCreateBy(getUsername()); + return toAjax(dictDataService.insertDictData(dict)); + } + + /** + * 修改保存字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:edit')") + @Log(title = "字典数据", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysDictData dict) + { + dict.setUpdateBy(getUsername()); + return toAjax(dictDataService.updateDictData(dict)); + } + + /** + * 修改保存字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:edit')") + @Log(title = "字典数据", businessType = BusinessType.UPDATE) + @PutMapping("/updateDictDatas") + public AjaxResult updateDictDatas(@Validated @RequestBody List dicts) + { + for(SysDictData dict : dicts) { + dict.setUpdateBy(getUsername()); + } + + return toAjax(dictDataService.updateDictDatas(dicts)); + } + + + /** + * 删除字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:remove')") + @Log(title = "字典类型", businessType = BusinessType.DELETE) + @DeleteMapping("/{dictCodes}") + public AjaxResult remove(@PathVariable Long[] dictCodes) + { + dictDataService.deleteDictDataByIds(dictCodes); + return success(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java new file mode 100644 index 0000000..c53867c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java @@ -0,0 +1,131 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDictType; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * 数据字典信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/dict/type") +public class SysDictTypeController extends BaseController +{ + @Autowired + private ISysDictTypeService dictTypeService; + + @PreAuthorize("@ss.hasPermi('system:dict:list')") + @GetMapping("/list") + public TableDataInfo list(SysDictType dictType) + { + startPage(); + List list = dictTypeService.selectDictTypeList(dictType); + return getDataTable(list); + } + + @Log(title = "字典类型", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:dict:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysDictType dictType) + { + List list = dictTypeService.selectDictTypeList(dictType); + ExcelUtil util = new ExcelUtil(SysDictType.class); + util.exportExcel(response, list, "字典类型"); + } + + /** + * 查询字典类型详细 + */ + @PreAuthorize("@ss.hasPermi('system:dict:query')") + @GetMapping(value = "/{dictId}") + public AjaxResult getInfo(@PathVariable Long dictId) + { + return success(dictTypeService.selectDictTypeById(dictId)); + } + + /** + * 新增字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:add')") + @Log(title = "字典类型", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysDictType dict) + { + if (!dictTypeService.checkDictTypeUnique(dict)) + { + return error("新增字典'" + dict.getDictName() + "'失败,字典类型已存在"); + } + dict.setCreateBy(getUsername()); + return toAjax(dictTypeService.insertDictType(dict)); + } + + /** + * 修改字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:edit')") + @Log(title = "字典类型", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysDictType dict) + { + if (!dictTypeService.checkDictTypeUnique(dict)) + { + return error("修改字典'" + dict.getDictName() + "'失败,字典类型已存在"); + } + dict.setUpdateBy(getUsername()); + return toAjax(dictTypeService.updateDictType(dict)); + } + + /** + * 删除字典类型 + */ + @PreAuthorize("@ss.hasPermi('system:dict:remove')") + @Log(title = "字典类型", businessType = BusinessType.DELETE) + @DeleteMapping("/{dictIds}") + public AjaxResult remove(@PathVariable Long[] dictIds) + { + dictTypeService.deleteDictTypeByIds(dictIds); + return success(); + } + + /** + * 刷新字典缓存 + */ + @PreAuthorize("@ss.hasPermi('system:dict:remove')") + @Log(title = "字典类型", businessType = BusinessType.CLEAN) + @DeleteMapping("/refreshCache") + public AjaxResult refreshCache() + { + dictTypeService.resetDictCache(); + return success(); + } + + /** + * 获取字典选择框列表 + */ + @GetMapping("/optionselect") + public AjaxResult optionselect() + { + List dictTypes = dictTypeService.selectDictTypeAll(); + return success(dictTypes); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java new file mode 100644 index 0000000..13007eb --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java @@ -0,0 +1,29 @@ +package com.ruoyi.web.controller.system; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.utils.StringUtils; + +/** + * 首页 + * + * @author ruoyi + */ +@RestController +public class SysIndexController +{ + /** 系统基础配置 */ + @Autowired + private RuoYiConfig ruoyiConfig; + + /** + * 访问首页,提示语 + */ + @RequestMapping("/") + public String index() + { + return StringUtils.format("欢迎使用{}后台管理框架,当前版本:v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion()); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java new file mode 100644 index 0000000..36f4069 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -0,0 +1,123 @@ +package com.ruoyi.web.controller.system; + +import java.util.Date; +import java.util.List; +import java.util.Set; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginBody; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.web.service.SysLoginService; +import com.ruoyi.framework.web.service.SysPermissionService; +import com.ruoyi.framework.web.service.TokenService; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 登录验证 + * + * @author ruoyi + */ +@RestController +public class SysLoginController { + @Autowired + private SysLoginService loginService; + + @Autowired + private ISysMenuService menuService; + + @Autowired + private SysPermissionService permissionService; + + @Autowired + private TokenService tokenService; + + @Autowired + private ISysConfigService configService; + + /** + * 登录方法 + * + * @param loginBody 登录信息 + * @return 结果 + */ + @PostMapping("/login") + public AjaxResult login(@RequestBody LoginBody loginBody) { + AjaxResult ajax = AjaxResult.success(); + // 生成令牌 + String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), + loginBody.getUuid()); + ajax.put(Constants.TOKEN, token); + return ajax; + } + + /** + * 获取用户信息 + * + * @return 用户信息 + */ + @GetMapping("/getInfo") + public AjaxResult getInfo() { + LoginUser loginUser = SecurityUtils.getLoginUser(); + SysUser user = loginUser.getUser(); + // 角色集合 + Set roles = permissionService.getRolePermission(user); + // 权限集合 + Set permissions = permissionService.getMenuPermission(user); + if (!loginUser.getPermissions().equals(permissions)) { + loginUser.setPermissions(permissions); + tokenService.refreshToken(loginUser); + } + AjaxResult ajax = AjaxResult.success(); + ajax.put("user", user); + ajax.put("roles", roles); + ajax.put("permissions", permissions); + ajax.put("isDefaultModifyPwd", initPasswordIsModify(user.getPwdUpdateDate())); + ajax.put("isPasswordExpired", passwordIsExpiration(user.getPwdUpdateDate())); + return ajax; + } + + /** + * 获取路由信息 + * + * @return 路由信息 + */ + @GetMapping("getRouters") + public AjaxResult getRouters() { + Long userId = SecurityUtils.getUserId(); + List menus = menuService.selectMenuTreeByUserId(userId); + return AjaxResult.success(menuService.buildMenus(menus)); + } + + // 检查初始密码是否提醒修改 + public boolean initPasswordIsModify(Date pwdUpdateDate) { + Integer initPasswordModify = Convert.toInt(configService.selectConfigByKey("sys.account.initPasswordModify")); + return initPasswordModify != null && initPasswordModify == 1 && pwdUpdateDate == null; + } + + // 检查密码是否过期 + public boolean passwordIsExpiration(Date pwdUpdateDate) { + Integer passwordValidateDays = Convert.toInt(configService.selectConfigByKey("sys.account.passwordValidateDays")); + if (passwordValidateDays != null && passwordValidateDays > 0) { + if (StringUtils.isNull(pwdUpdateDate)) { + // 如果从未修改过初始密码,直接提醒过期 + return true; + } + Date nowDate = DateUtils.getNowDate(); + return DateUtils.differentDaysByMillisecond(nowDate, pwdUpdateDate) > passwordValidateDays; + } + return false; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java new file mode 100644 index 0000000..03b6b65 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java @@ -0,0 +1,142 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 菜单信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/menu") +public class SysMenuController extends BaseController +{ + @Autowired + private ISysMenuService menuService; + + /** + * 获取菜单列表 + */ + @PreAuthorize("@ss.hasPermi('system:menu:list')") + @GetMapping("/list") + public AjaxResult list(SysMenu menu) + { + List menus = menuService.selectMenuList(menu, getUserId()); + return success(menus); + } + + /** + * 根据菜单编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:menu:query')") + @GetMapping(value = "/{menuId}") + public AjaxResult getInfo(@PathVariable Long menuId) + { + return success(menuService.selectMenuById(menuId)); + } + + /** + * 获取菜单下拉树列表 + */ + @GetMapping("/treeselect") + public AjaxResult treeselect(SysMenu menu) + { + List menus = menuService.selectMenuList(menu, getUserId()); + return success(menuService.buildMenuTreeSelect(menus)); + } + + /** + * 加载对应角色菜单列表树 + */ + @GetMapping(value = "/roleMenuTreeselect/{roleId}") + public AjaxResult roleMenuTreeselect(@PathVariable("roleId") Long roleId) + { + List menus = menuService.selectMenuList(getUserId()); + AjaxResult ajax = AjaxResult.success(); + ajax.put("checkedKeys", menuService.selectMenuListByRoleId(roleId)); + ajax.put("menus", menuService.buildMenuTreeSelect(menus)); + return ajax; + } + + /** + * 新增菜单 + */ + @PreAuthorize("@ss.hasPermi('system:menu:add')") + @Log(title = "菜单管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysMenu menu) + { + if (!menuService.checkMenuNameUnique(menu)) + { + return error("新增菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); + } + else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) + { + return error("新增菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); + } + menu.setCreateBy(getUsername()); + return toAjax(menuService.insertMenu(menu)); + } + + /** + * 修改菜单 + */ + @PreAuthorize("@ss.hasPermi('system:menu:edit')") + @Log(title = "菜单管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysMenu menu) + { + if (!menuService.checkMenuNameUnique(menu)) + { + return error("修改菜单'" + menu.getMenuName() + "'失败,菜单名称已存在"); + } + else if (UserConstants.YES_FRAME.equals(menu.getIsFrame()) && !StringUtils.ishttp(menu.getPath())) + { + return error("修改菜单'" + menu.getMenuName() + "'失败,地址必须以http(s)://开头"); + } + else if (menu.getMenuId().equals(menu.getParentId())) + { + return error("修改菜单'" + menu.getMenuName() + "'失败,上级菜单不能选择自己"); + } + menu.setUpdateBy(getUsername()); + return toAjax(menuService.updateMenu(menu)); + } + + /** + * 删除菜单 + */ + @PreAuthorize("@ss.hasPermi('system:menu:remove')") + @Log(title = "菜单管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{menuId}") + public AjaxResult remove(@PathVariable("menuId") Long menuId) + { + if (menuService.hasChildByMenuId(menuId)) + { + return warn("存在子菜单,不允许删除"); + } + if (menuService.checkMenuExistRole(menuId)) + { + return warn("菜单已分配,不允许删除"); + } + return toAjax(menuService.deleteMenuById(menuId)); + } +} \ No newline at end of file diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java new file mode 100644 index 0000000..8622828 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java @@ -0,0 +1,91 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.SysNotice; +import com.ruoyi.system.service.ISysNoticeService; + +/** + * 公告 信息操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/notice") +public class SysNoticeController extends BaseController +{ + @Autowired + private ISysNoticeService noticeService; + + /** + * 获取通知公告列表 + */ + @PreAuthorize("@ss.hasPermi('system:notice:list')") + @GetMapping("/list") + public TableDataInfo list(SysNotice notice) + { + startPage(); + List list = noticeService.selectNoticeList(notice); + return getDataTable(list); + } + + /** + * 根据通知公告编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:notice:query')") + @GetMapping(value = "/{noticeId}") + public AjaxResult getInfo(@PathVariable Long noticeId) + { + return success(noticeService.selectNoticeById(noticeId)); + } + + /** + * 新增通知公告 + */ + @PreAuthorize("@ss.hasPermi('system:notice:add')") + @Log(title = "通知公告", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysNotice notice) + { + notice.setCreateBy(getUsername()); + return toAjax(noticeService.insertNotice(notice)); + } + + /** + * 修改通知公告 + */ + @PreAuthorize("@ss.hasPermi('system:notice:edit')") + @Log(title = "通知公告", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysNotice notice) + { + notice.setUpdateBy(getUsername()); + return toAjax(noticeService.updateNotice(notice)); + } + + /** + * 删除通知公告 + */ + @PreAuthorize("@ss.hasPermi('system:notice:remove')") + @Log(title = "通知公告", businessType = BusinessType.DELETE) + @DeleteMapping("/{noticeIds}") + public AjaxResult remove(@PathVariable Long[] noticeIds) + { + return toAjax(noticeService.deleteNoticeByIds(noticeIds)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java new file mode 100644 index 0000000..c37a543 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java @@ -0,0 +1,129 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.service.ISysPostService; + +/** + * 岗位信息操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/post") +public class SysPostController extends BaseController +{ + @Autowired + private ISysPostService postService; + + /** + * 获取岗位列表 + */ + @PreAuthorize("@ss.hasPermi('system:post:list')") + @GetMapping("/list") + public TableDataInfo list(SysPost post) + { + startPage(); + List list = postService.selectPostList(post); + return getDataTable(list); + } + + @Log(title = "岗位管理", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:post:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysPost post) + { + List list = postService.selectPostList(post); + ExcelUtil util = new ExcelUtil(SysPost.class); + util.exportExcel(response, list, "岗位数据"); + } + + /** + * 根据岗位编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:post:query')") + @GetMapping(value = "/{postId}") + public AjaxResult getInfo(@PathVariable Long postId) + { + return success(postService.selectPostById(postId)); + } + + /** + * 新增岗位 + */ + @PreAuthorize("@ss.hasPermi('system:post:add')") + @Log(title = "岗位管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysPost post) + { + if (!postService.checkPostNameUnique(post)) + { + return error("新增岗位'" + post.getPostName() + "'失败,岗位名称已存在"); + } + else if (!postService.checkPostCodeUnique(post)) + { + return error("新增岗位'" + post.getPostName() + "'失败,岗位编码已存在"); + } + post.setCreateBy(getUsername()); + return toAjax(postService.insertPost(post)); + } + + /** + * 修改岗位 + */ + @PreAuthorize("@ss.hasPermi('system:post:edit')") + @Log(title = "岗位管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysPost post) + { + if (!postService.checkPostNameUnique(post)) + { + return error("修改岗位'" + post.getPostName() + "'失败,岗位名称已存在"); + } + else if (!postService.checkPostCodeUnique(post)) + { + return error("修改岗位'" + post.getPostName() + "'失败,岗位编码已存在"); + } + post.setUpdateBy(getUsername()); + return toAjax(postService.updatePost(post)); + } + + /** + * 删除岗位 + */ + @PreAuthorize("@ss.hasPermi('system:post:remove')") + @Log(title = "岗位管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{postIds}") + public AjaxResult remove(@PathVariable Long[] postIds) + { + return toAjax(postService.deletePostByIds(postIds)); + } + + /** + * 获取岗位选择框列表 + */ + @GetMapping("/optionselect") + public AjaxResult optionselect() + { + List posts = postService.selectPostAll(); + return success(posts); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java new file mode 100644 index 0000000..4c3e10d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysProfileController.java @@ -0,0 +1,148 @@ +package com.ruoyi.web.controller.system; + +import java.util.Map; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.ruoyi.common.utils.file.FileUtils; +import com.ruoyi.common.utils.file.MimeTypeUtils; +import com.ruoyi.framework.web.service.TokenService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 个人信息 业务处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/user/profile") +public class SysProfileController extends BaseController +{ + @Autowired + private ISysUserService userService; + + @Autowired + private TokenService tokenService; + + /** + * 个人信息 + */ + @GetMapping + public AjaxResult profile() + { + LoginUser loginUser = getLoginUser(); + SysUser user = loginUser.getUser(); + AjaxResult ajax = AjaxResult.success(user); + ajax.put("roleGroup", userService.selectUserRoleGroup(loginUser.getUsername())); + ajax.put("postGroup", userService.selectUserPostGroup(loginUser.getUsername())); + return ajax; + } + + /** + * 修改用户 + */ + @Log(title = "个人信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult updateProfile(@RequestBody SysUser user) + { + LoginUser loginUser = getLoginUser(); + SysUser currentUser = loginUser.getUser(); + currentUser.setNickName(user.getNickName()); + currentUser.setEmail(user.getEmail()); + currentUser.setPhonenumber(user.getPhonenumber()); + currentUser.setSex(user.getSex()); + if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(currentUser)) + { + return error("修改用户'" + loginUser.getUsername() + "'失败,手机号码已存在"); + } + if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(currentUser)) + { + return error("修改用户'" + loginUser.getUsername() + "'失败,邮箱账号已存在"); + } + if (userService.updateUserProfile(currentUser) > 0) + { + // 更新缓存用户信息 + tokenService.setLoginUser(loginUser); + return success(); + } + return error("修改个人信息异常,请联系管理员"); + } + + /** + * 重置密码 + */ + @Log(title = "个人信息", businessType = BusinessType.UPDATE) + @PutMapping("/updatePwd") + public AjaxResult updatePwd(@RequestBody Map params) + { + String oldPassword = params.get("oldPassword"); + String newPassword = params.get("newPassword"); + LoginUser loginUser = getLoginUser(); + Long userId = loginUser.getUserId(); + String password = loginUser.getPassword(); + if (!SecurityUtils.matchesPassword(oldPassword, password)) + { + return error("修改密码失败,旧密码错误"); + } + if (SecurityUtils.matchesPassword(newPassword, password)) + { + return error("新密码不能与旧密码相同"); + } + newPassword = SecurityUtils.encryptPassword(newPassword); + if (userService.resetUserPwd(userId, newPassword) > 0) + { + // 更新缓存用户密码&密码最后更新时间 + loginUser.getUser().setPwdUpdateDate(DateUtils.getNowDate()); + loginUser.getUser().setPassword(newPassword); + tokenService.setLoginUser(loginUser); + return success(); + } + return error("修改密码异常,请联系管理员"); + } + + /** + * 头像上传 + */ + @Log(title = "用户头像", businessType = BusinessType.UPDATE) + @PostMapping("/avatar") + public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws Exception + { + if (!file.isEmpty()) + { + LoginUser loginUser = getLoginUser(); + String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION, true); + if (userService.updateUserAvatar(loginUser.getUserId(), avatar)) + { + String oldAvatar = loginUser.getUser().getAvatar(); + if (StringUtils.isNotEmpty(oldAvatar)) + { + FileUtils.deleteFile(RuoYiConfig.getProfile() + FileUtils.stripPrefix(oldAvatar)); + } + AjaxResult ajax = AjaxResult.success(); + ajax.put("imgUrl", avatar); + // 更新缓存用户头像 + loginUser.getUser().setAvatar(avatar); + tokenService.setLoginUser(loginUser); + return ajax; + } + } + return error("上传图片异常,请联系管理员"); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java new file mode 100644 index 0000000..fe19249 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRegisterController.java @@ -0,0 +1,38 @@ +package com.ruoyi.web.controller.system; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.model.RegisterBody; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.web.service.SysRegisterService; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 注册验证 + * + * @author ruoyi + */ +@RestController +public class SysRegisterController extends BaseController +{ + @Autowired + private SysRegisterService registerService; + + @Autowired + private ISysConfigService configService; + + @PostMapping("/register") + public AjaxResult register(@RequestBody RegisterBody user) + { + if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser")))) + { + return error("当前系统没有开启注册功能!"); + } + String msg = registerService.register(user); + return StringUtils.isEmpty(msg) ? success() : error(msg); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java new file mode 100644 index 0000000..42d9e8f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java @@ -0,0 +1,262 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.framework.web.service.SysPermissionService; +import com.ruoyi.framework.web.service.TokenService; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.service.ISysDeptService; +import com.ruoyi.system.service.ISysRoleService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 角色信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/role") +public class SysRoleController extends BaseController +{ + @Autowired + private ISysRoleService roleService; + + @Autowired + private TokenService tokenService; + + @Autowired + private SysPermissionService permissionService; + + @Autowired + private ISysUserService userService; + + @Autowired + private ISysDeptService deptService; + + @PreAuthorize("@ss.hasPermi('system:role:list')") + @GetMapping("/list") + public TableDataInfo list(SysRole role) + { + startPage(); + List list = roleService.selectRoleList(role); + return getDataTable(list); + } + + @Log(title = "角色管理", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:role:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysRole role) + { + List list = roleService.selectRoleList(role); + ExcelUtil util = new ExcelUtil(SysRole.class); + util.exportExcel(response, list, "角色数据"); + } + + /** + * 根据角色编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:role:query')") + @GetMapping(value = "/{roleId}") + public AjaxResult getInfo(@PathVariable Long roleId) + { + roleService.checkRoleDataScope(roleId); + return success(roleService.selectRoleById(roleId)); + } + + /** + * 新增角色 + */ + @PreAuthorize("@ss.hasPermi('system:role:add')") + @Log(title = "角色管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysRole role) + { + if (!roleService.checkRoleNameUnique(role)) + { + return error("新增角色'" + role.getRoleName() + "'失败,角色名称已存在"); + } + else if (!roleService.checkRoleKeyUnique(role)) + { + return error("新增角色'" + role.getRoleName() + "'失败,角色权限已存在"); + } + role.setCreateBy(getUsername()); + return toAjax(roleService.insertRole(role)); + + } + + /** + * 修改保存角色 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + if (!roleService.checkRoleNameUnique(role)) + { + return error("修改角色'" + role.getRoleName() + "'失败,角色名称已存在"); + } + else if (!roleService.checkRoleKeyUnique(role)) + { + return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); + } + role.setUpdateBy(getUsername()); + + if (roleService.updateRole(role) > 0) + { + // 更新缓存用户权限 + LoginUser loginUser = getLoginUser(); + if (StringUtils.isNotNull(loginUser.getUser()) && !loginUser.getUser().isAdmin()) + { + loginUser.setUser(userService.selectUserByUserName(loginUser.getUser().getUserName())); + loginUser.setPermissions(permissionService.getMenuPermission(loginUser.getUser())); + tokenService.setLoginUser(loginUser); + } + return success(); + } + return error("修改角色'" + role.getRoleName() + "'失败,请联系管理员"); + } + + /** + * 修改保存数据权限 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @PutMapping("/dataScope") + public AjaxResult dataScope(@RequestBody SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + return toAjax(roleService.authDataScope(role)); + } + + /** + * 状态修改 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.UPDATE) + @PutMapping("/changeStatus") + public AjaxResult changeStatus(@RequestBody SysRole role) + { + roleService.checkRoleAllowed(role); + roleService.checkRoleDataScope(role.getRoleId()); + role.setUpdateBy(getUsername()); + return toAjax(roleService.updateRoleStatus(role)); + } + + /** + * 删除角色 + */ + @PreAuthorize("@ss.hasPermi('system:role:remove')") + @Log(title = "角色管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{roleIds}") + public AjaxResult remove(@PathVariable Long[] roleIds) + { + return toAjax(roleService.deleteRoleByIds(roleIds)); + } + + /** + * 获取角色选择框列表 + */ + @PreAuthorize("@ss.hasPermi('system:role:query')") + @GetMapping("/optionselect") + public AjaxResult optionselect() + { + return success(roleService.selectRoleAll()); + } + + /** + * 查询已分配用户角色列表 + */ + @PreAuthorize("@ss.hasPermi('system:role:list')") + @GetMapping("/authUser/allocatedList") + public TableDataInfo allocatedList(SysUser user) + { + startPage(); + List list = userService.selectAllocatedList(user); + return getDataTable(list); + } + + /** + * 查询未分配用户角色列表 + */ + @PreAuthorize("@ss.hasPermi('system:role:list')") + @GetMapping("/authUser/unallocatedList") + public TableDataInfo unallocatedList(SysUser user) + { + startPage(); + List list = userService.selectUnallocatedList(user); + return getDataTable(list); + } + + /** + * 取消授权用户 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PutMapping("/authUser/cancel") + public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole) + { + return toAjax(roleService.deleteAuthUser(userRole)); + } + + /** + * 批量取消授权用户 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PutMapping("/authUser/cancelAll") + public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds) + { + return toAjax(roleService.deleteAuthUsers(roleId, userIds)); + } + + /** + * 批量选择用户授权 + */ + @PreAuthorize("@ss.hasPermi('system:role:edit')") + @Log(title = "角色管理", businessType = BusinessType.GRANT) + @PutMapping("/authUser/selectAll") + public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds) + { + roleService.checkRoleDataScope(roleId); + return toAjax(roleService.insertAuthUsers(roleId, userIds)); + } + + /** + * 获取对应角色部门树列表 + */ + @PreAuthorize("@ss.hasPermi('system:role:query')") + @GetMapping(value = "/deptTree/{roleId}") + public AjaxResult deptTree(@PathVariable("roleId") Long roleId) + { + AjaxResult ajax = AjaxResult.success(); + ajax.put("checkedKeys", deptService.selectDeptListByRoleId(roleId)); + ajax.put("depts", deptService.selectDeptTreeList(new SysDept())); + return ajax; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java new file mode 100644 index 0000000..8187fd1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java @@ -0,0 +1,231 @@ +package com.ruoyi.web.controller.system; + +import java.util.List; +import java.util.stream.Collectors; +import javax.servlet.http.HttpServletResponse; + +import org.apache.commons.lang3.ArrayUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.system.service.ISysDeptService; +import com.ruoyi.system.service.ISysPostService; +import com.ruoyi.system.service.ISysRoleService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 用户信息 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/system/user") +public class SysUserController extends BaseController { + @Autowired + private ISysUserService userService; + + @Autowired + private ISysRoleService roleService; + + @Autowired + private ISysDeptService deptService; + + @Autowired + private ISysPostService postService; + + /** + * 获取用户列表 + */ + @PreAuthorize("@ss.hasPermi('system:user:list')") + @GetMapping("/list") + public TableDataInfo list(SysUser user) { + startPage(); + List list = userService.selectUserList(user); + return getDataTable(list); + } + + @Log(title = "用户管理", businessType = BusinessType.EXPORT) + @PreAuthorize("@ss.hasPermi('system:user:export')") + @PostMapping("/export") + public void export(HttpServletResponse response, SysUser user) { + List list = userService.selectUserList(user); + ExcelUtil util = new ExcelUtil(SysUser.class); + util.exportExcel(response, list, "用户数据"); + } + + @Log(title = "用户管理", businessType = BusinessType.IMPORT) + @PreAuthorize("@ss.hasPermi('system:user:import')") + @PostMapping("/importData") + public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception { + ExcelUtil util = new ExcelUtil(SysUser.class); + List userList = util.importExcel(file.getInputStream()); + String operName = getUsername(); + String message = userService.importUser(userList, updateSupport, operName); + return success(message); + } + + @PostMapping("/importTemplate") + public void importTemplate(HttpServletResponse response) { + ExcelUtil util = new ExcelUtil(SysUser.class); + util.importTemplateExcel(response, "用户数据"); + } + + /** + * 根据用户编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:user:query')") + @GetMapping(value = {"/", "/{userId}"}) + public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) { + AjaxResult ajax = AjaxResult.success(); + if (StringUtils.isNotNull(userId)) { + userService.checkUserDataScope(userId); + SysUser sysUser = userService.selectUserById(userId); + ajax.put(AjaxResult.DATA_TAG, sysUser); + ajax.put("postIds", postService.selectPostListByUserId(userId)); + ajax.put("roleIds", sysUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList())); + } + List roles = roleService.selectRoleAll(); + ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + ajax.put("posts", postService.selectPostAll()); + return ajax; + } + + /** + * 新增用户 + */ + @PreAuthorize("@ss.hasPermi('system:user:add')") + @Log(title = "用户管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@Validated @RequestBody SysUser user) { + deptService.checkDeptDataScope(user.getDeptId()); + roleService.checkRoleDataScope(user.getRoleIds()); + if (!userService.checkUserNameUnique(user)) { + return error("新增用户'" + user.getUserName() + "'失败,登录账号已存在"); + } else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) { + return error("新增用户'" + user.getUserName() + "'失败,手机号码已存在"); + } else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) { + return error("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在"); + } + user.setCreateBy(getUsername()); + user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); + return toAjax(userService.insertUser(user)); + } + + /** + * 修改用户 + */ + @PreAuthorize("@ss.hasPermi('system:user:edit')") + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@Validated @RequestBody SysUser user) { + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + deptService.checkDeptDataScope(user.getDeptId()); + roleService.checkRoleDataScope(user.getRoleIds()); + if (!userService.checkUserNameUnique(user)) { + return error("修改用户'" + user.getUserName() + "'失败,登录账号已存在"); + } else if (StringUtils.isNotEmpty(user.getPhonenumber()) && !userService.checkPhoneUnique(user)) { + return error("修改用户'" + user.getUserName() + "'失败,手机号码已存在"); + } else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) { + return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在"); + } + user.setUpdateBy(getUsername()); + return toAjax(userService.updateUser(user)); + } + + /** + * 删除用户 + */ + @PreAuthorize("@ss.hasPermi('system:user:remove')") + @Log(title = "用户管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{userIds}") + public AjaxResult remove(@PathVariable Long[] userIds) { + if (ArrayUtils.contains(userIds, getUserId())) { + return error("当前用户不能删除"); + } + return toAjax(userService.deleteUserByIds(userIds)); + } + + /** + * 重置密码 + */ + @PreAuthorize("@ss.hasPermi('system:user:resetPwd')") + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @PutMapping("/resetPwd") + public AjaxResult resetPwd(@RequestBody SysUser user) { + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); + user.setUpdateBy(getUsername()); + return toAjax(userService.resetPwd(user)); + } + + /** + * 状态修改 + */ + @PreAuthorize("@ss.hasPermi('system:user:edit')") + @Log(title = "用户管理", businessType = BusinessType.UPDATE) + @PutMapping("/changeStatus") + public AjaxResult changeStatus(@RequestBody SysUser user) { + userService.checkUserAllowed(user); + userService.checkUserDataScope(user.getUserId()); + user.setUpdateBy(getUsername()); + return toAjax(userService.updateUserStatus(user)); + } + + /** + * 根据用户编号获取授权角色 + */ + @PreAuthorize("@ss.hasPermi('system:user:query')") + @GetMapping("/authRole/{userId}") + public AjaxResult authRole(@PathVariable("userId") Long userId) { + AjaxResult ajax = AjaxResult.success(); + SysUser user = userService.selectUserById(userId); + List roles = roleService.selectRolesByUserId(userId); + ajax.put("user", user); + ajax.put("roles", SysUser.isAdmin(userId) ? roles : roles.stream().filter(r -> !r.isAdmin()).collect(Collectors.toList())); + return ajax; + } + + /** + * 用户授权角色 + */ + @PreAuthorize("@ss.hasPermi('system:user:edit')") + @Log(title = "用户管理", businessType = BusinessType.GRANT) + @PutMapping("/authRole") + public AjaxResult insertAuthRole(Long userId, Long[] roleIds) { + userService.checkUserDataScope(userId); + roleService.checkRoleDataScope(roleIds); + userService.insertUserAuth(userId, roleIds); + return success(); + } + + /** + * 获取部门树列表 + */ + @PreAuthorize("@ss.hasPermi('system:user:list')") + @GetMapping("/deptTree") + public AjaxResult deptTree(SysDept dept) { + return success(deptService.selectDeptTreeList(dept)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java new file mode 100644 index 0000000..4375925 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/tool/TestController.java @@ -0,0 +1,184 @@ +package com.ruoyi.web.controller.tool; + +import java.util.ArrayList; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.R; +import com.ruoyi.common.utils.StringUtils; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParam; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import io.swagger.annotations.ApiOperation; +import springfox.documentation.annotations.ApiIgnore; + +/** + * swagger 用户测试方法 + * + * @author ruoyi + */ +@ApiIgnore +@RestController +@RequestMapping("/test/user") +public class TestController extends BaseController +{ + private final static Map users = new LinkedHashMap(); + { + users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); + users.put(2, new UserEntity(2, "ry", "admin123", "15666666666")); + } + + @ApiOperation("获取用户列表") + @GetMapping("/list") + public R> userList() + { + List userList = new ArrayList(users.values()); + return R.ok(userList); + } + + @ApiOperation("获取用户详细") + @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) + @GetMapping("/{userId}") + public R getUser(@PathVariable Integer userId) + { + if (!users.isEmpty() && users.containsKey(userId)) + { + return R.ok(users.get(userId)); + } + else + { + return R.fail("用户不存在"); + } + } + + @ApiOperation("新增用户") + @ApiImplicitParams({ + @ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", dataTypeClass = Integer.class), + @ApiImplicitParam(name = "username", value = "用户名称", dataType = "String", dataTypeClass = String.class), + @ApiImplicitParam(name = "password", value = "用户密码", dataType = "String", dataTypeClass = String.class), + @ApiImplicitParam(name = "mobile", value = "用户手机", dataType = "String", dataTypeClass = String.class) + }) + @PostMapping("/save") + public R save(UserEntity user) + { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) + { + return R.fail("用户ID不能为空"); + } + users.put(user.getUserId(), user); + return R.ok(); + } + + @ApiOperation("更新用户") + @PutMapping("/update") + public R update(@RequestBody UserEntity user) + { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUserId())) + { + return R.fail("用户ID不能为空"); + } + if (users.isEmpty() || !users.containsKey(user.getUserId())) + { + return R.fail("用户不存在"); + } + users.remove(user.getUserId()); + users.put(user.getUserId(), user); + return R.ok(); + } + + @ApiOperation("删除用户信息") + @ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class) + @DeleteMapping("/{userId}") + public R delete(@PathVariable Integer userId) + { + if (!users.isEmpty() && users.containsKey(userId)) + { + users.remove(userId); + return R.ok(); + } + else + { + return R.fail("用户不存在"); + } + } +} + +@ApiModel(value = "UserEntity", description = "用户实体") +class UserEntity +{ + @ApiModelProperty("用户ID") + private Integer userId; + + @ApiModelProperty("用户名称") + private String username; + + @ApiModelProperty("用户密码") + private String password; + + @ApiModelProperty("用户手机") + private String mobile; + + public UserEntity() + { + + } + + public UserEntity(Integer userId, String username, String password, String mobile) + { + this.userId = userId; + this.username = username; + this.password = password; + this.mobile = mobile; + } + + public Integer getUserId() + { + return userId; + } + + public void setUserId(Integer userId) + { + this.userId = userId; + } + + public String getUsername() + { + return username; + } + + public void setUsername(String username) + { + this.username = username; + } + + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } + + public String getMobile() + { + return mobile; + } + + public void setMobile(String mobile) + { + this.mobile = mobile; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java new file mode 100644 index 0000000..5042c89 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/core/config/SwaggerConfig.java @@ -0,0 +1,128 @@ +package com.ruoyi.web.core.config; + +import java.util.ArrayList; +import java.util.List; + +import com.ruoyi.common.core.domain.AjaxResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.ruoyi.common.config.RuoYiConfig; +import io.swagger.annotations.ApiOperation; +import io.swagger.models.auth.In; +import springfox.documentation.builders.ApiInfoBuilder; +import springfox.documentation.builders.PathSelectors; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.service.ApiKey; +import springfox.documentation.service.AuthorizationScope; +import springfox.documentation.service.Contact; +import springfox.documentation.service.SecurityReference; +import springfox.documentation.service.SecurityScheme; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spi.service.contexts.SecurityContext; +import springfox.documentation.spring.web.plugins.Docket; + +/** + * Swagger2的接口配置 + * + * @author ruoyi + */ +@Configuration +public class SwaggerConfig { + /** + * 系统基础配置 + */ + @Autowired + private RuoYiConfig ruoyiConfig; + + /** + * 是否开启swagger + */ + @Value("${swagger.enabled}") + private boolean enabled; + + /** + * 设置请求的统一前缀 + */ + @Value("${swagger.pathMapping}") + private String pathMapping; + + /** + * 创建API + */ + @Bean + public Docket createRestApi() { + return new Docket(DocumentationType.OAS_30) + // 是否启用Swagger + .enable(enabled) + .genericModelSubstitutes(AjaxResult.class) // 关键配置 + // 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息) + .apiInfo(apiInfo()) + // 设置哪些接口暴露给Swagger展示 + .select() + // 扫描所有有注解的api,用这种方式更灵活 + .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) + // 扫描指定包中的swagger注解 + // .apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.tool.swagger")) + // 扫描所有 .apis(RequestHandlerSelectors.any()) + .paths(PathSelectors.any()) + .build() + /* 设置安全模式,swagger可以设置访问token */ + .securitySchemes(securitySchemes()) + .securityContexts(securityContexts()) + .pathMapping(pathMapping); + } + + /** + * 安全模式,这里指定token通过Authorization头请求头传递 + */ + private List securitySchemes() { + List apiKeyList = new ArrayList(); + apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue())); + return apiKeyList; + } + + /** + * 安全上下文 + */ + private List securityContexts() { + List securityContexts = new ArrayList<>(); + securityContexts.add( + SecurityContext.builder() + .securityReferences(defaultAuth()) + .operationSelector(o -> o.requestMappingPattern().matches("/.*")) + .build()); + return securityContexts; + } + + /** + * 默认的安全上引用 + */ + private List defaultAuth() { + AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything"); + AuthorizationScope[] authorizationScopes = new AuthorizationScope[1]; + authorizationScopes[0] = authorizationScope; + List securityReferences = new ArrayList<>(); + securityReferences.add(new SecurityReference("Authorization", authorizationScopes)); + return securityReferences; + } + + /** + * 添加摘要信息 + */ + private ApiInfo apiInfo() { + // 用ApiInfoBuilder进行定制 + return new ApiInfoBuilder() + // 设置标题 + .title("管理系统-接口文档") + // 描述 +// .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") + // 作者信息 + .contact(new Contact(ruoyiConfig.getName(), null, null)) + // 版本 + .version("版本号:" + ruoyiConfig.getVersion()) + .build(); + } +} diff --git a/ruoyi-admin/src/main/resources/META-INF/spring-devtools.properties b/ruoyi-admin/src/main/resources/META-INF/spring-devtools.properties new file mode 100644 index 0000000..37e7b58 --- /dev/null +++ b/ruoyi-admin/src/main/resources/META-INF/spring-devtools.properties @@ -0,0 +1 @@ +restart.include.json=/com.alibaba.fastjson2.*.jar \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml new file mode 100644 index 0000000..52bbeab --- /dev/null +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -0,0 +1,56 @@ +# 数据源配置 +spring: + datasource: + type: com.alibaba.druid.pool.DruidDataSource + druid: + # 主库数据源 + master: + url: jdbc:mysql://xxxxx:xxxxx/byteai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: xxxxxx + driverClassName: com.mysql.cj.jdbc.Driver + + # 初始连接数 + initialSize: 5 + # 最小连接池数量 + minIdle: 10 + # 最大连接池数量 + maxActive: 20 + # 配置获取连接等待超时的时间 + maxWait: 60000 + # 配置连接超时时间 + connectTimeout: 30000 + # 配置网络超时时间 + socketTimeout: 60000 + # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 + timeBetweenEvictionRunsMillis: 60000 + # 配置一个连接在池中最小生存的时间,单位是毫秒 + minEvictableIdleTimeMillis: 300000 + # 配置一个连接在池中最大生存的时间,单位是毫秒 + maxEvictableIdleTimeMillis: 900000 + # 配置检测连接是否有效 + validationQuery: SELECT 1 + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + webStatFilter: + enabled: true + statViewServlet: + enabled: true + # 设置白名单,不填则允许所有访问 + allow: + url-pattern: /druid/* + # 控制台管理用户名和密码 + login-username: + login-password: + filter: + stat: + enabled: true + # 慢SQL记录 + log-slow-sql: true + slow-sql-millis: 1000 + merge-sql: true + wall: + config: + multi-statement-allow: true + diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml new file mode 100644 index 0000000..70e9966 --- /dev/null +++ b/ruoyi-admin/src/main/resources/application.yml @@ -0,0 +1,245 @@ +# 项目相关配置 +ruoyi: + # 名称 + name: RuoYi + # 版本 + version: 3.9.0 + # 版权年份 + copyrightYear: 2025 + # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) + profile: D:/ruoyi/uploadPath + # 获取ip地址开关 + addressEnabled: true + # 验证码类型 math 数字计算 char 字符验证 + captchaType: math + +# 开发环境配置 +server: + # 服务器的HTTP端口,默认为8080 + port: 8110 + servlet: + # 应用的访问路径 + context-path: / + tomcat: + # tomcat的URI编码 + uri-encoding: UTF-8 + # 连接数满后的排队数,默认为100 + accept-count: 1000 + threads: + # tomcat最大线程数,默认为200 + max: 800 + # Tomcat启动初始化的线程数,默认值10 + min-spare: 100 + +# 日志配置 +logging: + level: + com.ruoyi: debug + org.springframework: warn + +# 用户配置 +user: + password: + # 密码最大错误次数 + maxRetryCount: 5 + # 密码锁定时间(默认10分钟) + lockTime: 10 + +# Spring配置 +spring: + # 邮件发送配置 + mail: + host: smtp.qq.com # QQ邮箱SMTP服务器(163邮箱:smtp.163.com;Gmail:smtp.gmail.com) + port: 465 # SMTP端口(SSL加密端口:465,非加密:587,优先用587) + username: # 你的邮箱地址 + password: # 邮箱授权码(不是登录密码!) + default-encoding: UTF-8 # 编码格式 + protocol: smtp + # SSL/TLS配置(可选,根据邮箱要求) + properties: + mail: + smtp: + auth: true + starttls: + enable: true + required: true + ssl: + enable: true + socketFactory: + port: 465 + class: javax.net.ssl.SSLSocketFactory + # 资源信息 + messages: + # 国际化资源文件路径 + basename: i18n/messages + profiles: + active: druid + # 文件上传 + servlet: + multipart: + # 单个文件大小 + max-file-size: 100MB + # 设置总上传的文件大小 + max-request-size: 512MB + # 服务模块 + devtools: + restart: + # 热部署开关 + enabled: true + # redis 配置 + redis: + # 地址 + host: localhost + # 端口,默认为6379 + port: 6379 + # 数据库索引 + database: 2 + # 密码 + password: + # 连接超时时间 + timeout: 10s + lettuce: + pool: + # 连接池中的最小空闲连接 + min-idle: 0 + # 连接池中的最大空闲连接 + max-idle: 8 + # 连接池的最大数据库连接数 + max-active: 8 + # #连接池最大阻塞等待时间(使用负值表示没有限制) + max-wait: -1ms + + # 自定义验证码配置 +verify: + code: + length: 6 # 验证码长度(默认6位) + expire: 300 # 验证码有效期(秒,默认5分钟) + prefix: "verify_code_" # Redis存储验证码的key前缀(若用Redis) + send-interval: 60 # 重复发送间隔(秒,默认1分钟,防止频繁发送) + +# token配置 +token: + # 令牌自定义标识 + header: Authorization + # 令牌密钥 + secret: abcdefghijklmnopqrstuvwxyz + # 令牌有效期(默认30分钟) + expireTime: 10080 + + +# token配置 +ai-token: + # 令牌自定义标识 + header: Authorization + # 令牌密钥 + secret: asd1!@#!$a#assadj1kuasdlk1&jdaskdh + # 令牌有效期(默认30分钟) + expireTime: 10080 + +# MyBatis配置 +#mybatis: +# # 搜索指定包别名 +# typeAliasesPackage: com.ruoyi.**.domain +# # 配置mapper的扫描,找到所有的mapper.xml映射文件 +# mapperLocations: classpath*:mapper/**/*Mapper.xml +# # 加载全局的配置文件 +# configLocation: classpath:mybatis/mybatis-config.xml + +# MyBatis-Plus配置 +mybatis-plus: + # 搜索指定包别名 + typeAliasesPackage: com.ruoyi.**.domain + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath*:mapper/**/*Mapper.xml + # 全局配置 + global-config: + # 数据库相关配置 + db-config: + # ID自增 + id-type: auto + # 原生配置 + configuration: + map-underscore-to-camel-case: true + cache-enabled: true + # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用 + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + +# PageHelper分页插件 +pagehelper: + helperDialect: mysql + supportMethodsArguments: true + params: count=countSql + autoRuntimeDialect: true + +# Swagger配置 +swagger: + # 是否开启swagger + enabled: true + # 请求前缀 + pathMapping: / + +# 防止XSS攻击 +xss: + # 过滤开关 + enabled: true + # 排除链接(多个用逗号分隔) + excludes: /system/notice + # 匹配链接 + urlPatterns: /system/*,/monitor/*,/tool/* + +qiniu: + oss: + accessKey: + secretKey: + bucket: + url: + +wxxcx: + appid: + secret: + url: +google: + client-id: + client-secret: + redirect-uri: + +tencentCos: + accessKey: + secretKey: + endpoint: + bucketName: + domain: + +aws: + accessKey: AKIAYVMHEVDDZQGE3HVX + secretKey: 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 + endpoint: ap-southeast-1 + bucketName: di-image + domain: https://images.iqyjsnwv.com/ + +byteapi: + url: https://ark.ap-southeast.bytepluses.com/api/v3 + apiKey: 327d2815-2516-44c2-9e32-2dc50bf7afd7 + callBackUrl: www.google.com + +jinsha: + url: https://api.jinshapay.xyz + appId: 1763617360 + secret: a201e7969af5045dcd62d203b26121ae + notifyUrl: www.google.com + returnUrl: www.google.com + +kada: + url: https://rapi.openkada.xyz + appId: c70f1719017e290354017d1c101d0cc288d06ceb + secret: ME2VRe6tWH6weK/NAUJA5lhmewHkB23rA6CdWlrHrAs+/E/E3j3eG3io/GCHbQKqMMurfTNrBj/R4Yy84UziM5YJheiKFKbsWQc5xRoE46E3/0EYy4ZjbK9jhwGyHS+C + notifyUrl: www.google.com + returnUrl: www.google.com + +yuzhou: + url: https://pay.joinus6688.cc + appId: PM20251211091945 + publicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCiTl8fg6eM6uUJqxAjGtzskt+ESIgferomy6uUtjRx4yhu6I4cVBgaw9ErJq9KMNQpMVl44GEese6PRDmNPdvXBktI/skpCfyNvT+1LqYm69Hh+rFre2Ve+0XIVoln0H3EGNUHL/KPOCm2tYXLXlZ3r02z+AQeS3rxNhE4jr32oQIDAQAB + secretKey: MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAL7U/f7yb9Z9j56dauCUb0B/I0ONAcZDK+TtOnAgLEjV4qrirYHYuCumxYbPFvt6qYggjbBpphFhihbWzf8IPS7iD6VXoSX1T1iAlWFL1ZaBscqQSvPxFGtgpTBiRFS3KkZV70WswcCL770OCkY8+DJpdyk9OkD6vBa0TYU1wxJFAgMBAAECgYBpF+t5iBJHUYbSl2bQn25VWq8U+IbNpRh7TposPculoQTfj052f9+NSp7liw7hF8Bdk2/0g3pNgCYIRevUU7k9MEIKqHCiOWkyavtsfqGYI37PZ4/0uMzB5eibTqKTEkcyskSJ9GxrL4uGKgTGNc213i3VOcZZ4xEfvuDQCHF8gQJBAPATuhQeFNNAIE9TkGiESHFGChSZZgzp1xfGrAt8BwidBSe+r9duAcGJSeNJatxneeu0w6NuwQ6iq9ztnqtoG90CQQDLfSHrOTloHSa+DdBc2SFQWa/P4K2Tznb8Y5ng8L/t+a9sYvGjWOln0R3Bq9TrImm0AjWnq/saaMg2nYD1wr2JAkA36XA5xTO2a0XbE6wbG0u/zb8FQyCIO2GTsPpahl0g/Wi48+kB9CXGjBHANFYF1LeJVIUHqACgRvRdtJ1ycAGlAkEAqASVWiTw2p+fWrQLRG7gS/kR6uIIUI/cvT78UrhWsYdFqof0Hz0N0/PdzwkzkEbk4oYkiWK+viqgjj/0uHfoiQJAQhPYVVLHD7xiJApc/Aga6g0OFF5O7zy8KTsq+KTXqRlJREBH5nirSponHwYalEbUvtQrVs+Z4BCBEGCU8m2GEw== + redirectUrl: www.google.com + callbackUrl: www.google.com diff --git a/ruoyi-admin/src/main/resources/banner.txt b/ruoyi-admin/src/main/resources/banner.txt new file mode 100644 index 0000000..0931cb8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/banner.txt @@ -0,0 +1,24 @@ +Application Version: ${ruoyi.version} +Spring Boot Version: ${spring-boot.version} +//////////////////////////////////////////////////////////////////// +// _ooOoo_ // +// o8888888o // +// 88" . "88 // +// (| ^_^ |) // +// O\ = /O // +// ____/`---'\____ // +// .' \\| |// `. // +// / \\||| : |||// \ // +// / _||||| -:- |||||- \ // +// | | \\\ - /// | | // +// | \_| ''\---/'' | | // +// \ .-\__ `-` ___/-. / // +// ___`. .' /--.--\ `. . ___ // +// ."" '< `.___\_<|>_/___.' >'"". // +// | | : `- \`.;`\ _ /`;.`/ - ` : | | // +// \ \ `-. \_ __\ /__ _/ .-` / / // +// ========`-.____`-.___\_____/___.-`____.-'======== // +// `=---=' // +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // +// 佛祖保佑 永不宕机 永无BUG // +//////////////////////////////////////////////////////////////////// \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/i18n/messages.properties b/ruoyi-admin/src/main/resources/i18n/messages.properties new file mode 100644 index 0000000..93de005 --- /dev/null +++ b/ruoyi-admin/src/main/resources/i18n/messages.properties @@ -0,0 +1,38 @@ +#错误消息 +not.null=* 必须填写 +user.jcaptcha.error=验证码错误 +user.jcaptcha.expire=验证码已失效 +user.not.exists=用户不存在/密码错误 +user.password.not.match=用户不存在/密码错误 +user.password.retry.limit.count=密码输入错误{0}次 +user.password.retry.limit.exceed=密码输入错误{0}次,帐户锁定{1}分钟 +user.password.delete=对不起,您的账号已被删除 +user.blocked=用户已封禁,请联系管理员 +role.blocked=角色已封禁,请联系管理员 +login.blocked=很遗憾,访问IP已被列入系统黑名单 +user.logout.success=退出成功 + +length.not.valid=长度必须在{min}到{max}个字符之间 + +user.username.not.valid=* 2到20个汉字、字母、数字或下划线组成,且必须以非数字开头 +user.password.not.valid=* 5-50个字符 + +user.email.not.valid=邮箱格式错误 +user.mobile.phone.number.not.valid=手机号格式错误 +user.login.success=登录成功 +user.register.success=注册成功 +user.notfound=请重新登录 +user.forcelogout=管理员强制退出,请重新登录 +user.unknown.error=未知错误,请重新登录 + +##文件上传消息 +upload.exceed.maxSize=上传的文件大小超出限制的文件大小!
允许的文件最大大小是:{0}MB! +upload.filename.exceed.length=上传的文件名最长{0}个字符 + +##权限 +no.permission=您没有数据的权限,请联系管理员添加权限 [{0}] +no.create.permission=您没有创建数据的权限,请联系管理员添加权限 [{0}] +no.update.permission=您没有修改数据的权限,请联系管理员添加权限 [{0}] +no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}] +no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}] +no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}] diff --git a/ruoyi-admin/src/main/resources/i18n/messages_en_US.properties b/ruoyi-admin/src/main/resources/i18n/messages_en_US.properties new file mode 100644 index 0000000..b6cc20e --- /dev/null +++ b/ruoyi-admin/src/main/resources/i18n/messages_en_US.properties @@ -0,0 +1,33 @@ +user.username.exists=The username {0} is already registered. +user.email.registered=This email is already registered. + +# 用户昵称不能为空 +NotBlank.user.nickname=User nickname cannot be blank. +NotBlank.user.username=User username cannot be blank. + +# 密码不能为空 +NotBlank.user.password=Password cannot be blank. + +# 邮箱不能为空 +NotBlank.user.email=Email cannot be blank. + +# 邮箱验证码不能为空 +NotBlank.user.emailCode=Email verification code cannot be blank. + +# Email sent successfully +email.send.success=Email sent successfully, please check your inbox. + +# Email sent failed +email.send.failure=Failed to send email, please try again later. + +# 无效的邮箱格式 +Email.user.email=Invalid email format. +# 验证码已发送,请 X 秒后再试 +email.code.sent=Verification code has been sent, please try again in {0} seconds. +# Email content: Your email verification code is: %s, valid for %d minutes, please complete verification as soon as possible. +email.verification.code.content=Your email verification code is: {0}, valid for {1} minutes. Please complete the verification as soon as possible. +email.verification.code.error=Verification code is incorrect, please try again. +# User not found +user.not.found=User not found. +user.password.incorrect=Password is incorrect, please try again. +order.number.generation.failed=Order number {0} generation failed, please try again later. \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/i18n/messages_zh_HK.properties b/ruoyi-admin/src/main/resources/i18n/messages_zh_HK.properties new file mode 100644 index 0000000..f44388a --- /dev/null +++ b/ruoyi-admin/src/main/resources/i18n/messages_zh_HK.properties @@ -0,0 +1,32 @@ +user.username.exists=用戶名 {0} 已被註冊。 +user.email.registered=此電子郵件已被註冊。 +# 用户昵称不能为空 +NotBlank.user.nickname=使用者暱稱不能為空。 +NotBlank.user.username=使用者用戶名不能為空。 + +# 密码不能为空 +NotBlank.user.password=密碼不能為空。 + +# 邮箱不能为空 +NotBlank.user.email=電子郵件不能為空。 + +# 邮箱验证码不能为空 +NotBlank.user.emailCode=電子郵件驗證碼不能為空。 + +# 邮件发送成功 +email.send.success=郵件已成功發送,敬請查收。 +# 邮件发送失败 +email.send.failure=郵件發送失敗,請稍後重試。 + +# 无效的邮箱格式 +Email.user.email=無效的電子郵件格式。 +# 验证码已发送,请 X 秒后再试 +email.code.sent=驗證碼已發送,請 {0} 秒後再試。 +# 邮件正文内容:你的邮箱验证码为:%s,有效期%d分钟,请尽快完成验证。 +email.verification.code.content=你的電子郵件驗證碼為:{0},有效期{1}分鐘,請盡快完成驗證。 + +email.verification.code.error=驗證碼錯誤,請重新輸入。 +user.not.found=用戶不存在。 +user.password.incorrect=密碼錯誤,請重新輸入。 + +order.number.generation.failed=訂單號 {0} 生成失敗,請稍後重試。 \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/logback.xml b/ruoyi-admin/src/main/resources/logback.xml new file mode 100644 index 0000000..7a2ad52 --- /dev/null +++ b/ruoyi-admin/src/main/resources/logback.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + ${log.pattern} + + + + + + ${log.path}/sys-info.log + + + + ${log.path}/sys-info.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + INFO + + ACCEPT + + DENY + + + + + ${log.path}/sys-error.log + + + + ${log.path}/sys-error.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + ERROR + + ACCEPT + + DENY + + + + + + ${log.path}/sys-user.log + + + ${log.path}/sys-user.%d{yyyy-MM-dd}.log + + 60 + + + ${log.pattern} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-admin/src/main/resources/mybatis/mybatis-config.xml b/ruoyi-admin/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 0000000..ac47c03 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-admin/src/test/java/com/ruoyi/GoogleAuthTest.java b/ruoyi-admin/src/test/java/com/ruoyi/GoogleAuthTest.java new file mode 100644 index 0000000..7b5b1f1 --- /dev/null +++ b/ruoyi-admin/src/test/java/com/ruoyi/GoogleAuthTest.java @@ -0,0 +1,30 @@ +package com.ruoyi; + +import com.xkcoding.http.config.HttpConfig; +import me.zhyd.oauth.config.AuthConfig; +import me.zhyd.oauth.request.AuthGoogleRequest; +import me.zhyd.oauth.request.AuthRequest; +import org.junit.Test; + +import java.net.InetSocketAddress; +import java.net.Proxy; + +public class GoogleAuthTest { + + + @Test + public void authTestUrl() { + AuthRequest authRequest = new AuthGoogleRequest(AuthConfig.builder() + .clientId("53136391241-3dfivrv7tgsig1l73bisgr8p8t3i453p.apps.googleusercontent.com") + .clientSecret("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") + .redirectUri("http://localhost:8080") + // 针对国外平台配置代理 + .httpConfig(HttpConfig.builder() + .timeout(15000) + // host 和 port 请修改为开发环境的参数 + .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", 10080))) + .build()) + .build()); + System.out.println(authRequest); + } +} diff --git a/ruoyi-admin/src/test/java/com/ruoyi/TencentCosUtilTest.java b/ruoyi-admin/src/test/java/com/ruoyi/TencentCosUtilTest.java new file mode 100644 index 0000000..28459e1 --- /dev/null +++ b/ruoyi-admin/src/test/java/com/ruoyi/TencentCosUtilTest.java @@ -0,0 +1,94 @@ +package com.ruoyi; + +import com.qcloud.cos.COSClient; +import com.qcloud.cos.ClientConfig; +import com.qcloud.cos.auth.BasicCOSCredentials; +import com.qcloud.cos.http.HttpProtocol; +import com.qcloud.cos.model.ObjectMetadata; +import com.qcloud.cos.model.PutObjectRequest; +import com.qcloud.cos.model.PutObjectResult; +import com.qcloud.cos.region.Region; +import org.joda.time.DateTime; +import org.junit.Test; +import org.springframework.stereotype.Component; + +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStream; +import java.util.UUID; + +@Component +public class TencentCosUtilTest { + // accessKey: d8dd89e4275bbe242824511aba875d11b491b1c30811e7cd6010dca97ac2a69f1ab5a5305e4c3dfb5c561d95c7e3b2c2 +// secretKey: 2284e285ac55f67cc9774c27de0bfed0dbca5930c02af8e5473b66c21e5770a38e64ce873f174dbb2423fcd814580e15 +// endpoint: cos.na-ashburn.myqcloud.com +// bucketName: gamerwa-1331490964 +// domain: https://gamerwa-1331490964.cos.accelerate.myqcloud.com + // 设置好账号的ACCESS_KEY和SECRET_KEY + private String SECRET_ID = "AKIDHWbUDk5ELJ4e1EG6jBRaVCi9PTN4Ypup"; + private String SECRET_KEY = "obBammdIm5FFJFzazAAxWGtNhqnY8Vil"; + // 要上传的空间(创建空间的名称) + private String bucketName = "gamerwa-1331490964"; + private String endpoint = "cos.na-ashburn.myqcloud.com"; + // 使用的是测试域名 + private String domain = "https://gamerwa-1331490964.cos.accelerate.myqcloud.com"; + // 地域标识 + private String regionId = "na-ashburn"; + + public static void main(String[] args) { + // 手动实例化当前类 + TencentCosUtilTest cosUtil = new TencentCosUtilTest(); + // 调用上传方法 + cosUtil.upload(); + } + + @Test + public void upload() { + + // 3 生成 cos 客户端。 + String url = "C:\\Users\\Administrator\\Desktop\\darkiris\\任务栏icon.png"; + File file = new File(url); + // 存储桶的命名格式为 BucketName-APPID,此处填写的存储桶名称必须为此格式 + // 对象键(Key)是对象在存储桶中的唯一标识。 998u-09iu-09i-333 + //在文件名称前面添加uuid值 + String key = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8) + "_" + + file.getName(); + //对上传文件分组,根据当前日期 /2022/11/11 + String dateTime = new DateTime().toString("yyyy/MM/dd"); + key = dateTime + "/" + key; + COSClient cosClient = createCosClient(); + try { + //获取上传文件输入流 + InputStream inputStream = new FileInputStream(file); + ObjectMetadata objectMetadata = new ObjectMetadata(); + PutObjectRequest putObjectRequest = new PutObjectRequest( + bucketName, + key, + inputStream, + objectMetadata); + // 高级接口会返回一个异步结果Upload + PutObjectResult putObjectResult = cosClient.putObject(putObjectRequest); + + //返回上传文件路径 + //https://ggkt-atguigu-1310644373.cos.ap-beijing.myqcloud.com/01.jpg + System.out.println(domain + "/" + key); + } catch (Exception e) { + e.printStackTrace(); + } + } + + + private COSClient createCosClient() { + //1.1 初始化用户身份信息 + BasicCOSCredentials credentials = new BasicCOSCredentials(SECRET_ID, SECRET_KEY); + //1.2 设置bucket的地域 + Region region = new Region(regionId); + ClientConfig clientConfig = new ClientConfig(region); + // 这里建议设置使用 https 协议 + clientConfig.setHttpProtocol(HttpProtocol.https); + clientConfig.setConnectionTimeout(30 * 1000); // 连接超时30秒 + clientConfig.setSocketTimeout(60 * 1000); // 读取超时60秒 + //1.3 生成cos客户端 + return new COSClient(credentials, clientConfig); + } +} diff --git a/ruoyi-common/pom.xml b/ruoyi-common/pom.xml new file mode 100644 index 0000000..b369ff8 --- /dev/null +++ b/ruoyi-common/pom.xml @@ -0,0 +1,180 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + + ruoyi-common + + + common通用工具 + + + + + + + org.springframework + spring-context-support + + + + + org.springframework + spring-web + + + + + org.springframework.boot + spring-boot-starter-security + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + + + + + org.springframework.boot + spring-boot-starter-validation + + + + + org.apache.commons + commons-lang3 + + + + + com.fasterxml.jackson.core + jackson-databind + + + + + com.alibaba.fastjson2 + fastjson2 + + + + + commons-io + commons-io + + + + + org.apache.poi + poi-ooxml + + + + + org.yaml + snakeyaml + + + + + io.jsonwebtoken + jjwt + + + + + javax.xml.bind + jaxb-api + + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + + org.apache.commons + commons-pool2 + + + + + eu.bitwalker + UserAgentUtils + + + + + javax.servlet + javax.servlet-api + + + + + com.qiniu + qiniu-java-sdk + + + + + com.baomidou + mybatis-plus-extension + + + + + com.baomidou + mybatis-plus-boot-starter + + + io.swagger + swagger-annotations + 1.6.2 + compile + + + org.springframework.boot + spring-boot-starter-mail + + + com.qcloud + cos_api + 5.6.227 + + + + me.zhyd.oauth + JustAuth + 1.16.7 + + + + software.amazon.awssdk + s3 + 2.25.0 + + + + + org.springframework.boot + spring-boot-starter-mail + + + + com.squareup.okhttp3 + okhttp + 3.14.9 + + + + diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Anonymous.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Anonymous.java new file mode 100644 index 0000000..1d6d4f4 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Anonymous.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 匿名访问不鉴权注解 + * + * @author ruoyi + */ +@Target({ ElementType.METHOD, ElementType.TYPE }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface Anonymous +{ +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataScope.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataScope.java new file mode 100644 index 0000000..be49c80 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataScope.java @@ -0,0 +1,33 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 数据权限过滤注解 + * + * @author ruoyi + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface DataScope +{ + /** + * 部门表的别名 + */ + public String deptAlias() default ""; + + /** + * 用户表的别名 + */ + public String userAlias() default ""; + + /** + * 权限字符(用于多个角色匹配符合要求的权限)默认根据权限注解@ss获取,多个权限用逗号分隔开来 + */ + public String permission() default ""; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataSource.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataSource.java new file mode 100644 index 0000000..48f6ffd --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataSource.java @@ -0,0 +1,28 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +import com.ruoyi.common.enums.DataSourceType; + +/** + * 自定义多数据源切换注解 + *

+ * 优先级:先方法,后类,如果方法覆盖了类上的数据源类型,以方法的为准,否则以类上的为准 + * + * @author ruoyi + */ +@Target({ElementType.METHOD, ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +@Documented +@Inherited +public @interface DataSource { + /** + * 切换数据源名称 + */ + public DataSourceType value() default DataSourceType.MASTER; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java new file mode 100644 index 0000000..765d8e3 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java @@ -0,0 +1,197 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import java.math.BigDecimal; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.IndexedColors; +import com.ruoyi.common.utils.poi.ExcelHandlerAdapter; + +/** + * 自定义导出Excel数据注解 + * + * @author ruoyi + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +public @interface Excel +{ + /** + * 导出时在excel中排序 + */ + public int sort() default Integer.MAX_VALUE; + + /** + * 导出到Excel中的名字. + */ + public String name() default ""; + + /** + * 日期格式, 如: yyyy-MM-dd + */ + public String dateFormat() default ""; + + /** + * 如果是字典类型,请设置字典的type值 (如: sys_user_sex) + */ + public String dictType() default ""; + + /** + * 读取内容转表达式 (如: 0=男,1=女,2=未知) + */ + public String readConverterExp() default ""; + + /** + * 分隔符,读取字符串组内容 + */ + public String separator() default ","; + + /** + * BigDecimal 精度 默认:-1(默认不开启BigDecimal格式化) + */ + public int scale() default -1; + + /** + * BigDecimal 舍入规则 默认:BigDecimal.ROUND_HALF_EVEN + */ + public int roundingMode() default BigDecimal.ROUND_HALF_EVEN; + + /** + * 导出时在excel中每个列的高度 + */ + public double height() default 14; + + /** + * 导出时在excel中每个列的宽度 + */ + public double width() default 16; + + /** + * 文字后缀,如% 90 变成90% + */ + public String suffix() default ""; + + /** + * 当值为空时,字段的默认值 + */ + public String defaultValue() default ""; + + /** + * 提示信息 + */ + public String prompt() default ""; + + /** + * 是否允许内容换行 + */ + public boolean wrapText() default false; + + /** + * 设置只能选择不能输入的列内容. + */ + public String[] combo() default {}; + + /** + * 是否从字典读数据到combo,默认不读取,如读取需要设置dictType注解. + */ + public boolean comboReadDict() default false; + + /** + * 是否需要纵向合并单元格,应对需求:含有list集合单元格) + */ + public boolean needMerge() default false; + + /** + * 是否导出数据,应对需求:有时我们需要导出一份模板,这是标题需要但内容需要用户手工填写. + */ + public boolean isExport() default true; + + /** + * 另一个类中的属性名称,支持多级获取,以小数点隔开 + */ + public String targetAttr() default ""; + + /** + * 是否自动统计数据,在最后追加一行统计数据总和 + */ + public boolean isStatistics() default false; + + /** + * 导出类型(0数字 1字符串 2图片) + */ + public ColumnType cellType() default ColumnType.STRING; + + /** + * 导出列头背景颜色 + */ + public IndexedColors headerBackgroundColor() default IndexedColors.GREY_50_PERCENT; + + /** + * 导出列头字体颜色 + */ + public IndexedColors headerColor() default IndexedColors.WHITE; + + /** + * 导出单元格背景颜色 + */ + public IndexedColors backgroundColor() default IndexedColors.WHITE; + + /** + * 导出单元格字体颜色 + */ + public IndexedColors color() default IndexedColors.BLACK; + + /** + * 导出字段对齐方式 + */ + public HorizontalAlignment align() default HorizontalAlignment.CENTER; + + /** + * 自定义数据处理器 + */ + public Class handler() default ExcelHandlerAdapter.class; + + /** + * 自定义数据处理器参数 + */ + public String[] args() default {}; + + /** + * 字段类型(0:导出导入;1:仅导出;2:仅导入) + */ + Type type() default Type.ALL; + + public enum Type + { + ALL(0), EXPORT(1), IMPORT(2); + private final int value; + + Type(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } + + public enum ColumnType + { + NUMERIC(0), STRING(1), IMAGE(2), TEXT(3); + private final int value; + + ColumnType(int value) + { + this.value = value; + } + + public int value() + { + return this.value; + } + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excels.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excels.java new file mode 100644 index 0000000..1f1cc81 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excels.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Excel注解集 + * + * @author ruoyi + */ +@Target(ElementType.FIELD) +@Retention(RetentionPolicy.RUNTIME) +public @interface Excels +{ + public Excel[] value(); +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Log.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Log.java new file mode 100644 index 0000000..1eb8e49 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Log.java @@ -0,0 +1,51 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.enums.OperatorType; + +/** + * 自定义操作日志记录注解 + * + * @author ruoyi + * + */ +@Target({ ElementType.PARAMETER, ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface Log +{ + /** + * 模块 + */ + public String title() default ""; + + /** + * 功能 + */ + public BusinessType businessType() default BusinessType.OTHER; + + /** + * 操作人类别 + */ + public OperatorType operatorType() default OperatorType.MANAGE; + + /** + * 是否保存请求的参数 + */ + public boolean isSaveRequestData() default true; + + /** + * 是否保存响应的参数 + */ + public boolean isSaveResponseData() default true; + + /** + * 排除指定的请求参数 + */ + public String[] excludeParamNames() default {}; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RateLimiter.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RateLimiter.java new file mode 100644 index 0000000..0f024c7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RateLimiter.java @@ -0,0 +1,40 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.enums.LimitType; + +/** + * 限流注解 + * + * @author ruoyi + */ +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface RateLimiter +{ + /** + * 限流key + */ + public String key() default CacheConstants.RATE_LIMIT_KEY; + + /** + * 限流时间,单位秒 + */ + public int time() default 60; + + /** + * 限流次数 + */ + public int count() default 100; + + /** + * 限流类型 + */ + public LimitType limitType() default LimitType.DEFAULT; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java new file mode 100644 index 0000000..b769748 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/RepeatSubmit.java @@ -0,0 +1,31 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Inherited; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 自定义注解防止表单重复提交 + * + * @author ruoyi + * + */ +@Inherited +@Target(ElementType.METHOD) +@Retention(RetentionPolicy.RUNTIME) +@Documented +public @interface RepeatSubmit +{ + /** + * 间隔时间(ms),小于此时间视为重复提交 + */ + public int interval() default 5000; + + /** + * 提示消息 + */ + public String message() default "不允许重复提交,请稍候再试"; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Sensitive.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Sensitive.java new file mode 100644 index 0000000..c0621e9 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Sensitive.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; +import com.fasterxml.jackson.annotation.JacksonAnnotationsInside; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.ruoyi.common.config.serializer.SensitiveJsonSerializer; +import com.ruoyi.common.enums.DesensitizedType; + +/** + * 数据脱敏注解 + * + * @author ruoyi + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.FIELD) +@JacksonAnnotationsInside +@JsonSerialize(using = SensitiveJsonSerializer.class) +public @interface Sensitive +{ + DesensitizedType desensitizedType(); +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/config/GoogleConfig.java b/ruoyi-common/src/main/java/com/ruoyi/common/config/GoogleConfig.java new file mode 100644 index 0000000..b518ccf --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/config/GoogleConfig.java @@ -0,0 +1,14 @@ +package com.ruoyi.common.config; + +import lombok.Data; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.Configuration; + +@Configuration +@ConfigurationProperties(prefix = "google") +@Data +public class GoogleConfig { + private String clientId; + private String clientSecret; + private String redirectUri; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java new file mode 100644 index 0000000..29281cf --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/config/RuoYiConfig.java @@ -0,0 +1,122 @@ +package com.ruoyi.common.config; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.stereotype.Component; + +/** + * 读取项目相关配置 + * + * @author ruoyi + */ +@Component +@ConfigurationProperties(prefix = "ruoyi") +public class RuoYiConfig +{ + /** 项目名称 */ + private String name; + + /** 版本 */ + private String version; + + /** 版权年份 */ + private String copyrightYear; + + /** 上传路径 */ + private static String profile; + + /** 获取地址开关 */ + private static boolean addressEnabled; + + /** 验证码类型 */ + private static String captchaType; + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public String getVersion() + { + return version; + } + + public void setVersion(String version) + { + this.version = version; + } + + public String getCopyrightYear() + { + return copyrightYear; + } + + public void setCopyrightYear(String copyrightYear) + { + this.copyrightYear = copyrightYear; + } + + public static String getProfile() + { + return profile; + } + + public void setProfile(String profile) + { + RuoYiConfig.profile = profile; + } + + public static boolean isAddressEnabled() + { + return addressEnabled; + } + + public void setAddressEnabled(boolean addressEnabled) + { + RuoYiConfig.addressEnabled = addressEnabled; + } + + public static String getCaptchaType() { + return captchaType; + } + + public void setCaptchaType(String captchaType) { + RuoYiConfig.captchaType = captchaType; + } + + /** + * 获取导入上传路径 + */ + public static String getImportPath() + { + return getProfile() + "/import"; + } + + /** + * 获取头像上传路径 + */ + public static String getAvatarPath() + { + return getProfile() + "/avatar"; + } + + /** + * 获取下载路径 + */ + public static String getDownloadPath() + { + return getProfile() + "/download/"; + } + + /** + * 获取上传路径 + */ + public static String getUploadPath() + { + return getProfile() + "/upload"; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/config/serializer/SensitiveJsonSerializer.java b/ruoyi-common/src/main/java/com/ruoyi/common/config/serializer/SensitiveJsonSerializer.java new file mode 100644 index 0000000..e819a1d --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/config/serializer/SensitiveJsonSerializer.java @@ -0,0 +1,67 @@ +package com.ruoyi.common.config.serializer; + +import java.io.IOException; +import java.util.Objects; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.databind.BeanProperty; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonSerializer; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.ser.ContextualSerializer; +import com.ruoyi.common.annotation.Sensitive; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.enums.DesensitizedType; +import com.ruoyi.common.utils.SecurityUtils; + +/** + * 数据脱敏序列化过滤 + * + * @author ruoyi + */ +public class SensitiveJsonSerializer extends JsonSerializer implements ContextualSerializer +{ + private DesensitizedType desensitizedType; + + @Override + public void serialize(String value, JsonGenerator gen, SerializerProvider serializers) throws IOException + { + if (desensitization()) + { + gen.writeString(desensitizedType.desensitizer().apply(value)); + } + else + { + gen.writeString(value); + } + } + + @Override + public JsonSerializer createContextual(SerializerProvider prov, BeanProperty property) + throws JsonMappingException + { + Sensitive annotation = property.getAnnotation(Sensitive.class); + if (Objects.nonNull(annotation) && Objects.equals(String.class, property.getType().getRawClass())) + { + this.desensitizedType = annotation.desensitizedType(); + return this; + } + return prov.findValueSerializer(property.getType(), property); + } + + /** + * 是否需要脱敏处理 + */ + private boolean desensitization() + { + try + { + LoginUser securityUser = SecurityUtils.getLoginUser(); + // 管理员不脱敏 + return !securityUser.getUser().isAdmin(); + } + catch (Exception e) + { + return true; + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/BalanceChangerConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/BalanceChangerConstants.java new file mode 100644 index 0000000..d77345b --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/BalanceChangerConstants.java @@ -0,0 +1,76 @@ +package com.ruoyi.common.constant; + + +/** + * 余额变更类型常量 + */ +public class BalanceChangerConstants { + + + /** + * 充值操作 + */ + public static final int RECHARGE = 0; + + /** + * 返佣 + */ + public static final int REBATE = 1; + + /** + * 充值赠送 + */ + public static final int RECHARGE_BONUS = 2; + + // ==================== 体验金相关 ==================== + + /** + * 体验金赠送 + */ + public static final int EXPERIENCE_GOLD_GIFT = 3; + + /** + * 体验金回收 + */ + public static final int EXPERIENCE_GOLD_RECYCLE = 4; + + // ==================== 图像处理(AI生成)相关 ==================== + + /** + * 图生图1 + */ + public static final int IMAGE_TO_IMAGE_1 = 5; + + /** + * 图生图2 + */ + public static final int IMAGE_TO_IMAGE_2 = 6; + + /** + * 一键换脸 + */ + public static final int ONE_CLICK_FACE_SWAP = 7; + + /** + * 快捷生图 + */ + public static final int QUICK_IMAGE_GENERATION = 8; + + /** + * 快捷生视频 + */ + public static final int QUICK_VIDEO_GENERATION = 9; + + // ==================== 其他操作 ==================== + + /** + * 退款 + */ + public static final int REFUND = 10; + + /** + * 系统操作 + */ + public static final int SYSTEM_OPERATION = 11; + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java new file mode 100644 index 0000000..0080343 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/CacheConstants.java @@ -0,0 +1,44 @@ +package com.ruoyi.common.constant; + +/** + * 缓存的key 常量 + * + * @author ruoyi + */ +public class CacheConstants +{ + /** + * 登录用户 redis key + */ + public static final String LOGIN_TOKEN_KEY = "login_tokens:"; + + /** + * 验证码 redis key + */ + public static final String CAPTCHA_CODE_KEY = "captcha_codes:"; + + /** + * 参数管理 cache key + */ + public static final String SYS_CONFIG_KEY = "sys_config:"; + + /** + * 字典管理 cache key + */ + public static final String SYS_DICT_KEY = "sys_dict:"; + + /** + * 防重提交 redis key + */ + public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; + + /** + * 限流 redis key + */ + public static final String RATE_LIMIT_KEY = "rate_limit:"; + + /** + * 登录账户密码错误次数 redis key + */ + public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:"; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java new file mode 100644 index 0000000..0c384c6 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/Constants.java @@ -0,0 +1,173 @@ +package com.ruoyi.common.constant; + +import java.util.Locale; +import io.jsonwebtoken.Claims; + +/** + * 通用常量信息 + * + * @author ruoyi + */ +public class Constants +{ + /** + * UTF-8 字符集 + */ + public static final String UTF8 = "UTF-8"; + + /** + * GBK 字符集 + */ + public static final String GBK = "GBK"; + + /** + * 系统语言 + */ + public static final Locale DEFAULT_LOCALE = Locale.SIMPLIFIED_CHINESE; + + /** + * www主域 + */ + public static final String WWW = "www."; + + /** + * http请求 + */ + public static final String HTTP = "http://"; + + /** + * https请求 + */ + public static final String HTTPS = "https://"; + + /** + * 通用成功标识 + */ + public static final String SUCCESS = "0"; + + /** + * 通用失败标识 + */ + public static final String FAIL = "1"; + + /** + * 登录成功 + */ + public static final String LOGIN_SUCCESS = "Success"; + + /** + * 注销 + */ + public static final String LOGOUT = "Logout"; + + /** + * 注册 + */ + public static final String REGISTER = "Register"; + + /** + * 登录失败 + */ + public static final String LOGIN_FAIL = "Error"; + + /** + * 所有权限标识 + */ + public static final String ALL_PERMISSION = "*:*:*"; + + /** + * 管理员角色权限标识 + */ + public static final String SUPER_ADMIN = "admin"; + + /** + * 角色权限分隔符 + */ + public static final String ROLE_DELIMETER = ","; + + /** + * 权限标识分隔符 + */ + public static final String PERMISSION_DELIMETER = ","; + + /** + * 验证码有效期(分钟) + */ + public static final Integer CAPTCHA_EXPIRATION = 2; + + /** + * 令牌 + */ + public static final String TOKEN = "token"; + + /** + * 令牌前缀 + */ + public static final String TOKEN_PREFIX = "Bearer "; + + /** + * 令牌前缀 + */ + public static final String LOGIN_USER_KEY = "login_user_key"; + + /** + * 用户ID + */ + public static final String JWT_USERID = "userid"; + + /** + * 用户名称 + */ + public static final String JWT_USERNAME = Claims.SUBJECT; + + /** + * 用户头像 + */ + public static final String JWT_AVATAR = "avatar"; + + /** + * 创建时间 + */ + public static final String JWT_CREATED = "created"; + + /** + * 用户权限 + */ + public static final String JWT_AUTHORITIES = "authorities"; + + /** + * 资源映射路径 前缀 + */ + public static final String RESOURCE_PREFIX = "/profile"; + + /** + * RMI 远程方法调用 + */ + public static final String LOOKUP_RMI = "rmi:"; + + /** + * LDAP 远程方法调用 + */ + public static final String LOOKUP_LDAP = "ldap:"; + + /** + * LDAPS 远程方法调用 + */ + public static final String LOOKUP_LDAPS = "ldaps:"; + + /** + * 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全) + */ + public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" }; + + /** + * 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加) + */ + public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.quartz.task" }; + + /** + * 定时任务违规的字符 + */ + public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", + "org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.common.config", "com.ruoyi.generator" }; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java new file mode 100644 index 0000000..7d899d4 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/GenConstants.java @@ -0,0 +1,117 @@ +package com.ruoyi.common.constant; + +/** + * 代码生成通用常量 + * + * @author ruoyi + */ +public class GenConstants +{ + /** 单表(增删改查) */ + public static final String TPL_CRUD = "crud"; + + /** 树表(增删改查) */ + public static final String TPL_TREE = "tree"; + + /** 主子表(增删改查) */ + public static final String TPL_SUB = "sub"; + + /** 树编码字段 */ + public static final String TREE_CODE = "treeCode"; + + /** 树父编码字段 */ + public static final String TREE_PARENT_CODE = "treeParentCode"; + + /** 树名称字段 */ + public static final String TREE_NAME = "treeName"; + + /** 上级菜单ID字段 */ + public static final String PARENT_MENU_ID = "parentMenuId"; + + /** 上级菜单名称字段 */ + public static final String PARENT_MENU_NAME = "parentMenuName"; + + /** 数据库字符串类型 */ + public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2" }; + + /** 数据库文本类型 */ + public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" }; + + /** 数据库时间类型 */ + public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" }; + + /** 数据库数字类型 */ + public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer", + "bit", "bigint", "float", "double", "decimal" }; + + /** 页面不需要编辑字段 */ + public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" }; + + /** 页面不需要显示的列表字段 */ + public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time" }; + + /** 页面不需要查询字段 */ + public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by", + "update_time", "remark" }; + + /** Entity基类字段 */ + public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" }; + + /** Tree基类字段 */ + public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" }; + + /** 文本框 */ + public static final String HTML_INPUT = "input"; + + /** 文本域 */ + public static final String HTML_TEXTAREA = "textarea"; + + /** 下拉框 */ + public static final String HTML_SELECT = "select"; + + /** 单选框 */ + public static final String HTML_RADIO = "radio"; + + /** 复选框 */ + public static final String HTML_CHECKBOX = "checkbox"; + + /** 日期控件 */ + public static final String HTML_DATETIME = "datetime"; + + /** 图片上传控件 */ + public static final String HTML_IMAGE_UPLOAD = "imageUpload"; + + /** 文件上传控件 */ + public static final String HTML_FILE_UPLOAD = "fileUpload"; + + /** 富文本控件 */ + public static final String HTML_EDITOR = "editor"; + + /** 字符串类型 */ + public static final String TYPE_STRING = "String"; + + /** 整型 */ + public static final String TYPE_INTEGER = "Integer"; + + /** 长整型 */ + public static final String TYPE_LONG = "Long"; + + /** 浮点型 */ + public static final String TYPE_DOUBLE = "Double"; + + /** 高精度计算类型 */ + public static final String TYPE_BIGDECIMAL = "BigDecimal"; + + /** 时间类型 */ + public static final String TYPE_DATE = "Date"; + + /** 模糊查询 */ + public static final String QUERY_LIKE = "LIKE"; + + /** 相等查询 */ + public static final String QUERY_EQ = "EQ"; + + /** 需要 */ + public static final String REQUIRE = "1"; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java new file mode 100644 index 0000000..a983c77 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/HttpStatus.java @@ -0,0 +1,94 @@ +package com.ruoyi.common.constant; + +/** + * 返回状态码 + * + * @author ruoyi + */ +public class HttpStatus +{ + /** + * 操作成功 + */ + public static final int SUCCESS = 200; + + /** + * 对象创建成功 + */ + public static final int CREATED = 201; + + /** + * 请求已经被接受 + */ + public static final int ACCEPTED = 202; + + /** + * 操作已经执行成功,但是没有返回数据 + */ + public static final int NO_CONTENT = 204; + + /** + * 资源已被移除 + */ + public static final int MOVED_PERM = 301; + + /** + * 重定向 + */ + public static final int SEE_OTHER = 303; + + /** + * 资源没有被修改 + */ + public static final int NOT_MODIFIED = 304; + + /** + * 参数列表错误(缺少,格式不匹配) + */ + public static final int BAD_REQUEST = 400; + + /** + * 未授权 + */ + public static final int UNAUTHORIZED = 401; + + /** + * 访问受限,授权过期 + */ + public static final int FORBIDDEN = 403; + + /** + * 资源,服务未找到 + */ + public static final int NOT_FOUND = 404; + + /** + * 不允许的http方法 + */ + public static final int BAD_METHOD = 405; + + /** + * 资源冲突,或者资源被锁 + */ + public static final int CONFLICT = 409; + + /** + * 不支持的数据,媒体类型 + */ + public static final int UNSUPPORTED_TYPE = 415; + + /** + * 系统内部错误 + */ + public static final int ERROR = 500; + + /** + * 接口未实现 + */ + public static final int NOT_IMPLEMENTED = 501; + + /** + * 系统警告消息 + */ + public static final int WARN = 601; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java new file mode 100644 index 0000000..62ad815 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/ScheduleConstants.java @@ -0,0 +1,50 @@ +package com.ruoyi.common.constant; + +/** + * 任务调度通用常量 + * + * @author ruoyi + */ +public class ScheduleConstants +{ + public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME"; + + /** 执行目标key */ + public static final String TASK_PROPERTIES = "TASK_PROPERTIES"; + + /** 默认 */ + public static final String MISFIRE_DEFAULT = "0"; + + /** 立即触发执行 */ + public static final String MISFIRE_IGNORE_MISFIRES = "1"; + + /** 触发一次执行 */ + public static final String MISFIRE_FIRE_AND_PROCEED = "2"; + + /** 不触发立即执行 */ + public static final String MISFIRE_DO_NOTHING = "3"; + + public enum Status + { + /** + * 正常 + */ + NORMAL("0"), + /** + * 暂停 + */ + PAUSE("1"); + + private String value; + + private Status(String value) + { + this.value = value; + } + + public String getValue() + { + return value; + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java new file mode 100644 index 0000000..8dc7faa --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/constant/UserConstants.java @@ -0,0 +1,81 @@ +package com.ruoyi.common.constant; + +/** + * 用户常量信息 + * + * @author ruoyi + */ +public class UserConstants +{ + /** + * 平台内系统用户的唯一标志 + */ + public static final String SYS_USER = "SYS_USER"; + + /** 正常状态 */ + public static final String NORMAL = "0"; + + /** 异常状态 */ + public static final String EXCEPTION = "1"; + + /** 用户封禁状态 */ + public static final String USER_DISABLE = "1"; + + /** 角色正常状态 */ + public static final String ROLE_NORMAL = "0"; + + /** 角色封禁状态 */ + public static final String ROLE_DISABLE = "1"; + + /** 部门正常状态 */ + public static final String DEPT_NORMAL = "0"; + + /** 部门停用状态 */ + public static final String DEPT_DISABLE = "1"; + + /** 字典正常状态 */ + public static final String DICT_NORMAL = "0"; + + /** 是否为系统默认(是) */ + public static final String YES = "Y"; + + /** 是否菜单外链(是) */ + public static final String YES_FRAME = "0"; + + /** 是否菜单外链(否) */ + public static final String NO_FRAME = "1"; + + /** 菜单类型(目录) */ + public static final String TYPE_DIR = "M"; + + /** 菜单类型(菜单) */ + public static final String TYPE_MENU = "C"; + + /** 菜单类型(按钮) */ + public static final String TYPE_BUTTON = "F"; + + /** Layout组件标识 */ + public final static String LAYOUT = "Layout"; + + /** ParentView组件标识 */ + public final static String PARENT_VIEW = "ParentView"; + + /** InnerLink组件标识 */ + public final static String INNER_LINK = "InnerLink"; + + /** 校验是否唯一的返回标识 */ + public final static boolean UNIQUE = true; + public final static boolean NOT_UNIQUE = false; + + /** + * 用户名长度限制 + */ + public static final int USERNAME_MIN_LENGTH = 2; + public static final int USERNAME_MAX_LENGTH = 20; + + /** + * 密码长度限制 + */ + public static final int PASSWORD_MIN_LENGTH = 5; + public static final int PASSWORD_MAX_LENGTH = 20; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java new file mode 100644 index 0000000..e2f4681 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java @@ -0,0 +1,194 @@ +package com.ruoyi.common.core.controller; + +import java.beans.PropertyEditorSupport; +import java.util.Date; +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.web.bind.WebDataBinder; +import org.springframework.web.bind.annotation.InitBinder; +import com.github.pagehelper.PageHelper; +import com.github.pagehelper.PageInfo; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.PageUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.sql.SqlUtil; + +/** + * web层通用数据处理 + * + * @author ruoyi + */ +public class BaseController { + protected final Logger logger = LoggerFactory.getLogger(this.getClass()); + + /** + * 将前台传递过来的日期格式的字符串,自动转化为Date类型 + */ + @InitBinder + public void initBinder(WebDataBinder binder) { + // Date 类型转换 + binder.registerCustomEditor(Date.class, new PropertyEditorSupport() { + @Override + public void setAsText(String text) { + setValue(DateUtils.parseDate(text)); + } + }); + } + + /** + * 设置请求分页数据 + */ + protected void startPage() { + PageUtils.startPage(); + } + + /** + * 设置请求排序数据 + */ + protected void startOrderBy() { + PageDomain pageDomain = TableSupport.buildPageRequest(); + if (StringUtils.isNotEmpty(pageDomain.getOrderBy())) { + String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); + PageHelper.orderBy(orderBy); + } + } + + /** + * 清理分页的线程变量 + */ + protected void clearPage() { + PageUtils.clearPage(); + } + + /** + * 响应请求分页数据 + */ + @SuppressWarnings({"rawtypes", "unchecked"}) + protected TableDataInfo getDataTable(List list) { + TableDataInfo rspData = new TableDataInfo(); + rspData.setCode(HttpStatus.SUCCESS); + rspData.setMsg("查询成功"); + rspData.setRows(list); + rspData.setTotal(new PageInfo(list).getTotal()); + return rspData; + } + + /** + * 响应请求分页数据 + */ + protected TableDataInfo getDataTable(IPage page) { + TableDataInfo rspData = new TableDataInfo(); + rspData.setCode(HttpStatus.SUCCESS); + rspData.setMsg("查询成功"); + rspData.setRows(page.getRecords()); + rspData.setTotal(page.getTotal()); + return rspData; + } + + /** + * 返回成功 + */ + public AjaxResult success() { + return AjaxResult.success(); + } + + /** + * 返回失败消息 + */ + public AjaxResult error() { + return AjaxResult.error(); + } + + /** + * 返回成功消息 + */ + public AjaxResult success(String message) { + return AjaxResult.success(message); + } + + /** + * 返回成功消息 + */ + public AjaxResult success(Object data) { + return AjaxResult.success(data); + } + + /** + * 返回失败消息 + */ + public AjaxResult error(String message) { + return AjaxResult.error(message); + } + + /** + * 返回警告消息 + */ + public AjaxResult warn(String message) { + return AjaxResult.warn(message); + } + + /** + * 响应返回结果 + * + * @param rows 影响行数 + * @return 操作结果 + */ + protected AjaxResult toAjax(int rows) { + return rows > 0 ? AjaxResult.success() : AjaxResult.error(); + } + + /** + * 响应返回结果 + * + * @param result 结果 + * @return 操作结果 + */ + protected AjaxResult toAjax(boolean result) { + return result ? success() : error(); + } + + /** + * 页面跳转 + */ + public String redirect(String url) { + return StringUtils.format("redirect:{}", url); + } + + /** + * 获取用户缓存信息 + */ + public LoginUser getLoginUser() { + return SecurityUtils.getLoginUser(); + } + + /** + * 获取登录用户id + */ + public Long getUserId() { + return getLoginUser().getUserId(); + } + + /** + * 获取登录部门id + */ + public Long getDeptId() { + return getLoginUser().getDeptId(); + } + + /** + * 获取登录用户名 + */ + public String getUsername() { + return getLoginUser().getUsername(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java new file mode 100644 index 0000000..f54f7ab --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/AjaxResult.java @@ -0,0 +1,208 @@ +package com.ruoyi.common.core.domain; + +import java.util.HashMap; +import java.util.Objects; + +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.utils.StringUtils; +import io.swagger.annotations.ApiModelProperty; + +/** + * 操作消息提醒 + * + * @author ruoyi + */ +public class AjaxResult extends HashMap { + private static final long serialVersionUID = 1L; + + /** + * 状态码 + */ + @ApiModelProperty(value = "状态码", example = "200") + public static final String CODE_TAG = "code"; + + /** + * 返回内容 + */ + @ApiModelProperty(value = "返回消息", example = "操作成功") + public static final String MSG_TAG = "msg"; + + /** + * 数据对象 + */ + @ApiModelProperty(value = "数据对象") + public static final String DATA_TAG = "data"; + + /** + * 初始化一个新创建的 AjaxResult 对象,使其表示一个空消息。 + */ + public AjaxResult() { + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param code 状态码 + * @param msg 返回内容 + */ + public AjaxResult(int code, String msg) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + } + + /** + * 初始化一个新创建的 AjaxResult 对象 + * + * @param code 状态码 + * @param msg 返回内容 + * @param data 数据对象 + */ + public AjaxResult(int code, String msg, Object data) { + super.put(CODE_TAG, code); + super.put(MSG_TAG, msg); + if (StringUtils.isNotNull(data)) { + super.put(DATA_TAG, data); + } + } + + /** + * 返回成功消息 + * + * @return 成功消息 + */ + public static AjaxResult success() { + return AjaxResult.success("操作成功"); + } + + /** + * 返回成功数据 + * + * @return 成功消息 + */ + public static AjaxResult success(Object data) { + return AjaxResult.success("操作成功", data); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @return 成功消息 + */ + public static AjaxResult success(String msg) { + return AjaxResult.success(msg, null); + } + + /** + * 返回成功消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 成功消息 + */ + public static AjaxResult success(String msg, Object data) { + return new AjaxResult(HttpStatus.SUCCESS, msg, data); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @return 警告消息 + */ + public static AjaxResult warn(String msg) { + return AjaxResult.warn(msg, null); + } + + /** + * 返回警告消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 警告消息 + */ + public static AjaxResult warn(String msg, Object data) { + return new AjaxResult(HttpStatus.WARN, msg, data); + } + + /** + * 返回错误消息 + * + * @return 错误消息 + */ + public static AjaxResult error() { + return AjaxResult.error("操作失败"); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @return 错误消息 + */ + public static AjaxResult error(String msg) { + return AjaxResult.error(msg, null); + } + + /** + * 返回错误消息 + * + * @param msg 返回内容 + * @param data 数据对象 + * @return 错误消息 + */ + public static AjaxResult error(String msg, Object data) { + return new AjaxResult(HttpStatus.ERROR, msg, data); + } + + /** + * 返回错误消息 + * + * @param code 状态码 + * @param msg 返回内容 + * @return 错误消息 + */ + public static AjaxResult error(int code, String msg) { + return new AjaxResult(code, msg, null); + } + + /** + * 是否为成功消息 + * + * @return 结果 + */ + public boolean isSuccess() { + return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG)); + } + + /** + * 是否为警告消息 + * + * @return 结果 + */ + public boolean isWarn() { + return Objects.equals(HttpStatus.WARN, this.get(CODE_TAG)); + } + + /** + * 是否为错误消息 + * + * @return 结果 + */ + public boolean isError() { + return Objects.equals(HttpStatus.ERROR, this.get(CODE_TAG)); + } + + /** + * 方便链式调用 + * + * @param key 键 + * @param value 值 + * @return 数据对象 + */ + @Override + public AjaxResult put(String key, Object value) { + super.put(key, value); + return this; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java new file mode 100644 index 0000000..fb8ad23 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java @@ -0,0 +1,120 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude; + +/** + * Entity基类 + * + * @author ruoyi + */ +public class BaseEntity implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 搜索值 + */ + @JsonIgnore + @TableField(exist = false) + private String searchValue; + + /** + * 创建者 + */ + private String createBy; + + /** + * 创建时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + /** + * 更新者 + */ + private String updateBy; + + /** + * 更新时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date updateTime; + + /** + * 备注 + */ + private String remark; + + /** + * 请求参数 + */ + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @TableField(exist = false) + private Map params; + + public String getSearchValue() { + return searchValue; + } + + public void setSearchValue(String searchValue) { + this.searchValue = searchValue; + } + + public String getCreateBy() { + return createBy; + } + + public void setCreateBy(String createBy) { + this.createBy = createBy; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getUpdateBy() { + return updateBy; + } + + public void setUpdateBy(String updateBy) { + this.updateBy = updateBy; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + + public Map getParams() { + if (params == null) { + params = new HashMap<>(); + } + return params; + } + + public void setParams(Map params) { + this.params = params; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java new file mode 100644 index 0000000..ef15802 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java @@ -0,0 +1,115 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; +import com.ruoyi.common.constant.HttpStatus; + +/** + * 响应信息主体 + * + * @author ruoyi + */ +public class R implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 成功 */ + public static final int SUCCESS = HttpStatus.SUCCESS; + + /** 失败 */ + public static final int FAIL = HttpStatus.ERROR; + + private int code; + + private String msg; + + private T data; + + public static R ok() + { + return restResult(null, SUCCESS, "操作成功"); + } + + public static R ok(T data) + { + return restResult(data, SUCCESS, "操作成功"); + } + + public static R ok(T data, String msg) + { + return restResult(data, SUCCESS, msg); + } + + public static R fail() + { + return restResult(null, FAIL, "操作失败"); + } + + public static R fail(String msg) + { + return restResult(null, FAIL, msg); + } + + public static R fail(T data) + { + return restResult(data, FAIL, "操作失败"); + } + + public static R fail(T data, String msg) + { + return restResult(data, FAIL, msg); + } + + public static R fail(int code, String msg) + { + return restResult(null, code, msg); + } + + private static R restResult(T data, int code, String msg) + { + R apiResult = new R<>(); + apiResult.setCode(code); + apiResult.setData(data); + apiResult.setMsg(msg); + return apiResult; + } + + public int getCode() + { + return code; + } + + public void setCode(int code) + { + this.code = code; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public T getData() + { + return data; + } + + public void setData(T data) + { + this.data = data; + } + + public static Boolean isError(R ret) + { + return !isSuccess(ret); + } + + public static Boolean isSuccess(R ret) + { + return R.SUCCESS == ret.getCode(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java new file mode 100644 index 0000000..a180a18 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeEntity.java @@ -0,0 +1,79 @@ +package com.ruoyi.common.core.domain; + +import java.util.ArrayList; +import java.util.List; + +/** + * Tree基类 + * + * @author ruoyi + */ +public class TreeEntity extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 父菜单名称 */ + private String parentName; + + /** 父菜单ID */ + private Long parentId; + + /** 显示顺序 */ + private Integer orderNum; + + /** 祖级列表 */ + private String ancestors; + + /** 子部门 */ + private List children = new ArrayList<>(); + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public Integer getOrderNum() + { + return orderNum; + } + + public void setOrderNum(Integer orderNum) + { + this.orderNum = orderNum; + } + + public String getAncestors() + { + return ancestors; + } + + public void setAncestors(String ancestors) + { + this.ancestors = ancestors; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java new file mode 100644 index 0000000..ae25df2 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/TreeSelect.java @@ -0,0 +1,93 @@ +package com.ruoyi.common.core.domain; + +import java.io.Serializable; +import java.util.List; +import java.util.stream.Collectors; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.utils.StringUtils; + +/** + * Treeselect树结构实体类 + * + * @author ruoyi + */ +public class TreeSelect implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 节点ID */ + private Long id; + + /** 节点名称 */ + private String label; + + /** 节点禁用 */ + private boolean disabled = false; + + /** 子节点 */ + @JsonInclude(JsonInclude.Include.NON_EMPTY) + private List children; + + public TreeSelect() + { + + } + + public TreeSelect(SysDept dept) + { + this.id = dept.getDeptId(); + this.label = dept.getDeptName(); + this.disabled = StringUtils.equals(UserConstants.DEPT_DISABLE, dept.getStatus()); + this.children = dept.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); + } + + public TreeSelect(SysMenu menu) + { + this.id = menu.getMenuId(); + this.label = menu.getMenuName(); + this.children = menu.getChildren().stream().map(TreeSelect::new).collect(Collectors.toList()); + } + + public Long getId() + { + return id; + } + + public void setId(Long id) + { + this.id = id; + } + + public String getLabel() + { + return label; + } + + public void setLabel(String label) + { + this.label = label; + } + + public boolean isDisabled() + { + return disabled; + } + + public void setDisabled(boolean disabled) + { + this.disabled = disabled; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/AiUser.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/AiUser.java new file mode 100644 index 0000000..559d070 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/AiUser.java @@ -0,0 +1,140 @@ +package com.ruoyi.common.core.domain.entity; + +import java.math.BigDecimal; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonIgnore; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * ai-用户信息对象 ai_user + * + * @author shi + * @date 2025-11-12 + */ +@Data +@TableName("ai_user") +public class AiUser extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 用户账号 */ + @Excel(name = "用户账号") + private String username; + + /** 用户昵称 */ + @Excel(name = "用户昵称") + private String nickname; + + /** 性别:1-男,2-女 */ + @Excel(name = "性别:1-男,2-女") + private Integer gender; + + /** 头像地址 */ + @Excel(name = "头像地址") + private String avatar; + + /** 手机号码 */ + @Excel(name = "手机号码") + private String phone; + + /** 密码 */ + @JsonIgnore + @Excel(name = "密码") + private String password; + + /** 用户唯一标识 */ + @Excel(name = "用户唯一标识") + private String openid; + + /** 账号状态(0正常 1停用) */ + @Excel(name = "账号状态(0正常 1停用)") + private Integer status; + + /** 邮箱 */ + @Excel(name = "邮箱") + private String email; + + /** 生日 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd") + private Date birthday; + + /** 邀请码 */ + @Excel(name = "邀请码") + private String invitationCode; + + /** 充值地址 */ + @Excel(name = "充值地址") + private String paymentUrl; + + /** 登录时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date loginTime; + + /** 余额 */ + @Excel(name = "余额") + private BigDecimal balance; + + /** 上级ID */ + @Excel(name = "上级ID") + private Long superiorId; + + /** + * 用户ID + */ + private String userId; + + /** + * 来源 + */ + private String source; + + /** + * 用户IP + */ + private String ip; + + /** + * 隶属国家 + */ + private String country; + + /** + * 上级用户昵称 + */ + @TableField(exist = false) + private String superiorName; + + /** + * 上级用户ID + */ + @TableField(exist = false) + private String superiorUuid; + + /** + * 上级用户昵称 + */ + @TableField(exist = false) + private String newPassword; + + + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java new file mode 100644 index 0000000..fb18c5c --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java @@ -0,0 +1,203 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.Email; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 部门表 sys_dept + * + * @author ruoyi + */ +public class SysDept extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 部门ID */ + private Long deptId; + + /** 父部门ID */ + private Long parentId; + + /** 祖级列表 */ + private String ancestors; + + /** 部门名称 */ + private String deptName; + + /** 显示顺序 */ + private Integer orderNum; + + /** 负责人 */ + private String leader; + + /** 联系电话 */ + private String phone; + + /** 邮箱 */ + private String email; + + /** 部门状态:0正常,1停用 */ + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 父部门名称 */ + private String parentName; + + /** 子部门 */ + private List children = new ArrayList(); + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + public String getAncestors() + { + return ancestors; + } + + public void setAncestors(String ancestors) + { + this.ancestors = ancestors; + } + + @NotBlank(message = "部门名称不能为空") + @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符") + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + @NotNull(message = "显示顺序不能为空") + public Integer getOrderNum() + { + return orderNum; + } + + public void setOrderNum(Integer orderNum) + { + this.orderNum = orderNum; + } + + public String getLeader() + { + return leader; + } + + public void setLeader(String leader) + { + this.leader = leader; + } + + @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符") + public String getPhone() + { + return phone; + } + + public void setPhone(String phone) + { + this.phone = phone; + } + + @Email(message = "邮箱格式不正确") + @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") + public String getEmail() + { + return email; + } + + public void setEmail(String email) + { + this.email = email; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("deptId", getDeptId()) + .append("parentId", getParentId()) + .append("ancestors", getAncestors()) + .append("deptName", getDeptName()) + .append("orderNum", getOrderNum()) + .append("leader", getLeader()) + .append("phone", getPhone()) + .append("email", getEmail()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java new file mode 100644 index 0000000..75c0514 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictData.java @@ -0,0 +1,116 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; + +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 字典数据表 sys_dict_data + * + * @author ruoyi + */ +@Data +public class SysDictData extends BaseEntity { + private static final long serialVersionUID = 1L; + + /** + * 字典编码 + */ + @Excel(name = "字典编码", cellType = ColumnType.NUMERIC) + private Long dictCode; + + /** + * 字典排序 + */ + @Excel(name = "字典排序", cellType = ColumnType.NUMERIC) + private Long dictSort; + + /** + * 字典标签 + */ + @Excel(name = "字典标签") + private String dictLabel; + + /** + * 字典键值 + */ + @Excel(name = "字典键值") + private String dictValue; + + /** + * 字典类型 + */ + @Excel(name = "字典类型") + private String dictType; + + /** + * 样式属性(其他样式扩展) + */ + private String cssClass; + + /** + * 表格字典样式 + */ + private String listClass; + + /** + * 是否默认(Y是 N否) + */ + @Excel(name = "是否默认", readConverterExp = "Y=是,N=否") + private String isDefault; + + /** + * 状态(0正常 1停用) + */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** + * 路由地址 + */ + private String path; + + /** + * 权限字符串 + */ + private String perms; + + /** + * 组件路径 + */ + private String component; + + @NotBlank(message = "字典标签不能为空") + @Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符") + public String getDictLabel() { + return dictLabel; + } + + @NotBlank(message = "字典键值不能为空") + @Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符") + public String getDictValue() { + return dictValue; + } + + @NotBlank(message = "字典类型不能为空") + @Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符") + public String getDictType() { + return dictType; + } + + @Size(min = 0, max = 100, message = "样式属性长度不能超过100个字符") + public String getCssClass() { + return cssClass; + } + + public boolean getDefault() { + return UserConstants.YES.equals(this.isDefault); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java new file mode 100644 index 0000000..e324fcf --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java @@ -0,0 +1,96 @@ +package com.ruoyi.common.core.domain.entity; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 字典类型表 sys_dict_type + * + * @author ruoyi + */ +public class SysDictType extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 字典主键 */ + @Excel(name = "字典主键", cellType = ColumnType.NUMERIC) + private Long dictId; + + /** 字典名称 */ + @Excel(name = "字典名称") + private String dictName; + + /** 字典类型 */ + @Excel(name = "字典类型") + private String dictType; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + public Long getDictId() + { + return dictId; + } + + public void setDictId(Long dictId) + { + this.dictId = dictId; + } + + @NotBlank(message = "字典名称不能为空") + @Size(min = 0, max = 100, message = "字典类型名称长度不能超过100个字符") + public String getDictName() + { + return dictName; + } + + public void setDictName(String dictName) + { + this.dictName = dictName; + } + + @NotBlank(message = "字典类型不能为空") + @Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符") + @Pattern(regexp = "^[a-z][a-z0-9_]*$", message = "字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)") + public String getDictType() + { + return dictType; + } + + public void setDictType(String dictType) + { + this.dictType = dictType; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("dictId", getDictId()) + .append("dictName", getDictName()) + .append("dictType", getDictType()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java new file mode 100644 index 0000000..ad73692 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java @@ -0,0 +1,274 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 菜单权限表 sys_menu + * + * @author ruoyi + */ +public class SysMenu extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 菜单ID */ + private Long menuId; + + /** 菜单名称 */ + private String menuName; + + /** 父菜单名称 */ + private String parentName; + + /** 父菜单ID */ + private Long parentId; + + /** 显示顺序 */ + private Integer orderNum; + + /** 路由地址 */ + private String path; + + /** 组件路径 */ + private String component; + + /** 路由参数 */ + private String query; + + /** 路由名称,默认和路由地址相同的驼峰格式(注意:因为vue3版本的router会删除名称相同路由,为避免名字的冲突,特殊情况可以自定义) */ + private String routeName; + + /** 是否为外链(0是 1否) */ + private String isFrame; + + /** 是否缓存(0缓存 1不缓存) */ + private String isCache; + + /** 类型(M目录 C菜单 F按钮) */ + private String menuType; + + /** 显示状态(0显示 1隐藏) */ + private String visible; + + /** 菜单状态(0正常 1停用) */ + private String status; + + /** 权限字符串 */ + private String perms; + + /** 菜单图标 */ + private String icon; + + /** 子菜单 */ + private List children = new ArrayList(); + + public Long getMenuId() + { + return menuId; + } + + public void setMenuId(Long menuId) + { + this.menuId = menuId; + } + + @NotBlank(message = "菜单名称不能为空") + @Size(min = 0, max = 50, message = "菜单名称长度不能超过50个字符") + public String getMenuName() + { + return menuName; + } + + public void setMenuName(String menuName) + { + this.menuName = menuName; + } + + public String getParentName() + { + return parentName; + } + + public void setParentName(String parentName) + { + this.parentName = parentName; + } + + public Long getParentId() + { + return parentId; + } + + public void setParentId(Long parentId) + { + this.parentId = parentId; + } + + @NotNull(message = "显示顺序不能为空") + public Integer getOrderNum() + { + return orderNum; + } + + public void setOrderNum(Integer orderNum) + { + this.orderNum = orderNum; + } + + @Size(min = 0, max = 200, message = "路由地址不能超过200个字符") + public String getPath() + { + return path; + } + + public void setPath(String path) + { + this.path = path; + } + + @Size(min = 0, max = 200, message = "组件路径不能超过255个字符") + public String getComponent() + { + return component; + } + + public void setComponent(String component) + { + this.component = component; + } + + public String getQuery() + { + return query; + } + + public void setQuery(String query) + { + this.query = query; + } + + public String getRouteName() + { + return routeName; + } + + public void setRouteName(String routeName) + { + this.routeName = routeName; + } + + public String getIsFrame() + { + return isFrame; + } + + public void setIsFrame(String isFrame) + { + this.isFrame = isFrame; + } + + public String getIsCache() + { + return isCache; + } + + public void setIsCache(String isCache) + { + this.isCache = isCache; + } + + @NotBlank(message = "菜单类型不能为空") + public String getMenuType() + { + return menuType; + } + + public void setMenuType(String menuType) + { + this.menuType = menuType; + } + + public String getVisible() + { + return visible; + } + + public void setVisible(String visible) + { + this.visible = visible; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符") + public String getPerms() + { + return perms; + } + + public void setPerms(String perms) + { + this.perms = perms; + } + + public String getIcon() + { + return icon; + } + + public void setIcon(String icon) + { + this.icon = icon; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("menuId", getMenuId()) + .append("menuName", getMenuName()) + .append("parentId", getParentId()) + .append("orderNum", getOrderNum()) + .append("path", getPath()) + .append("component", getComponent()) + .append("query", getQuery()) + .append("routeName", getRouteName()) + .append("isFrame", getIsFrame()) + .append("IsCache", getIsCache()) + .append("menuType", getMenuType()) + .append("visible", getVisible()) + .append("status ", getStatus()) + .append("perms", getPerms()) + .append("icon", getIcon()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java new file mode 100644 index 0000000..488d49c --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java @@ -0,0 +1,241 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.Set; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 角色表 sys_role + * + * @author ruoyi + */ +public class SysRole extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 角色ID */ + @Excel(name = "角色序号", cellType = ColumnType.NUMERIC) + private Long roleId; + + /** 角色名称 */ + @Excel(name = "角色名称") + private String roleName; + + /** 角色权限 */ + @Excel(name = "角色权限") + private String roleKey; + + /** 角色排序 */ + @Excel(name = "角色排序") + private Integer roleSort; + + /** 数据范围(1:所有数据权限;2:自定义数据权限;3:本部门数据权限;4:本部门及以下数据权限;5:仅本人数据权限) */ + @Excel(name = "数据范围", readConverterExp = "1=所有数据权限,2=自定义数据权限,3=本部门数据权限,4=本部门及以下数据权限,5=仅本人数据权限") + private String dataScope; + + /** 菜单树选择项是否关联显示( 0:父子不互相关联显示 1:父子互相关联显示) */ + private boolean menuCheckStrictly; + + /** 部门树选择项是否关联显示(0:父子不互相关联显示 1:父子互相关联显示 ) */ + private boolean deptCheckStrictly; + + /** 角色状态(0正常 1停用) */ + @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 用户是否存在此角色标识 默认不存在 */ + private boolean flag = false; + + /** 菜单组 */ + private Long[] menuIds; + + /** 部门组(数据权限) */ + private Long[] deptIds; + + /** 角色菜单权限 */ + private Set permissions; + + public SysRole() + { + + } + + public SysRole(Long roleId) + { + this.roleId = roleId; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public boolean isAdmin() + { + return isAdmin(this.roleId); + } + + public static boolean isAdmin(Long roleId) + { + return roleId != null && 1L == roleId; + } + + @NotBlank(message = "角色名称不能为空") + @Size(min = 0, max = 30, message = "角色名称长度不能超过30个字符") + public String getRoleName() + { + return roleName; + } + + public void setRoleName(String roleName) + { + this.roleName = roleName; + } + + @NotBlank(message = "权限字符不能为空") + @Size(min = 0, max = 100, message = "权限字符长度不能超过100个字符") + public String getRoleKey() + { + return roleKey; + } + + public void setRoleKey(String roleKey) + { + this.roleKey = roleKey; + } + + @NotNull(message = "显示顺序不能为空") + public Integer getRoleSort() + { + return roleSort; + } + + public void setRoleSort(Integer roleSort) + { + this.roleSort = roleSort; + } + + public String getDataScope() + { + return dataScope; + } + + public void setDataScope(String dataScope) + { + this.dataScope = dataScope; + } + + public boolean isMenuCheckStrictly() + { + return menuCheckStrictly; + } + + public void setMenuCheckStrictly(boolean menuCheckStrictly) + { + this.menuCheckStrictly = menuCheckStrictly; + } + + public boolean isDeptCheckStrictly() + { + return deptCheckStrictly; + } + + public void setDeptCheckStrictly(boolean deptCheckStrictly) + { + this.deptCheckStrictly = deptCheckStrictly; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public boolean isFlag() + { + return flag; + } + + public void setFlag(boolean flag) + { + this.flag = flag; + } + + public Long[] getMenuIds() + { + return menuIds; + } + + public void setMenuIds(Long[] menuIds) + { + this.menuIds = menuIds; + } + + public Long[] getDeptIds() + { + return deptIds; + } + + public void setDeptIds(Long[] deptIds) + { + this.deptIds = deptIds; + } + + public Set getPermissions() + { + return permissions; + } + + public void setPermissions(Set permissions) + { + this.permissions = permissions; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("roleName", getRoleName()) + .append("roleKey", getRoleKey()) + .append("roleSort", getRoleSort()) + .append("dataScope", getDataScope()) + .append("menuCheckStrictly", isMenuCheckStrictly()) + .append("deptCheckStrictly", isDeptCheckStrictly()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java new file mode 100644 index 0000000..d133ee8 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java @@ -0,0 +1,338 @@ +package com.ruoyi.common.core.domain.entity; + +import java.util.Date; +import java.util.List; +import javax.validation.constraints.*; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.annotation.Excel.Type; +import com.ruoyi.common.annotation.Excels; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.xss.Xss; + +/** + * 用户对象 sys_user + * + * @author ruoyi + */ +public class SysUser extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 用户ID */ + @Excel(name = "用户序号", type = Type.EXPORT, cellType = ColumnType.NUMERIC, prompt = "用户编号") + private Long userId; + + /** 部门ID */ + @Excel(name = "部门编号", type = Type.IMPORT) + private Long deptId; + + /** 用户账号 */ + @Excel(name = "登录名称") + private String userName; + + /** 用户昵称 */ + @Excel(name = "用户名称") + private String nickName; + + /** 用户邮箱 */ + @Excel(name = "用户邮箱") + private String email; + + /** 手机号码 */ + @Excel(name = "手机号码", cellType = ColumnType.TEXT) + private String phonenumber; + + /** 用户性别 */ + @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") + private String sex; + + /** 用户头像 */ + private String avatar; + + /** 密码 */ + private String password; + + /** 账号状态(0正常 1停用) */ + @Excel(name = "账号状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 最后登录IP */ + @Excel(name = "最后登录IP", type = Type.EXPORT) + private String loginIp; + + /** 最后登录时间 */ + @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT) + private Date loginDate; + + /** 密码最后更新时间 */ + private Date pwdUpdateDate; + + /** 部门对象 */ + @Excels({ + @Excel(name = "部门名称", targetAttr = "deptName", type = Type.EXPORT), + @Excel(name = "部门负责人", targetAttr = "leader", type = Type.EXPORT) + }) + private SysDept dept; + + /** 角色对象 */ + private List roles; + + /** 角色组 */ + private Long[] roleIds; + + /** 岗位组 */ + private Long[] postIds; + + /** 角色ID */ + private Long roleId; + + public SysUser() + { + + } + + public SysUser(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public boolean isAdmin() + { + return isAdmin(this.userId); + } + + public static boolean isAdmin(Long userId) + { + return userId != null && 1L == userId; + } + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + @Xss(message = "用户昵称不能包含脚本字符") + @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") + public String getNickName() + { + return nickName; + } + + public void setNickName(String nickName) + { + this.nickName = nickName; + } + + @Xss(message = "用户账号不能包含脚本字符") + @NotBlank(message = "用户账号不能为空") + @Size(min = 0, max = 30, message = "用户账号长度不能超过30个字符") + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + @Email(message = "邮箱格式不正确") + @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") + public String getEmail() + { + return email; + } + + public void setEmail(String email) + { + this.email = email; + } + + @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符") + public String getPhonenumber() + { + return phonenumber; + } + + public void setPhonenumber(String phonenumber) + { + this.phonenumber = phonenumber; + } + + public String getSex() + { + return sex; + } + + public void setSex(String sex) + { + this.sex = sex; + } + + public String getAvatar() + { + return avatar; + } + + public void setAvatar(String avatar) + { + this.avatar = avatar; + } + + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getDelFlag() + { + return delFlag; + } + + public void setDelFlag(String delFlag) + { + this.delFlag = delFlag; + } + + public String getLoginIp() + { + return loginIp; + } + + public void setLoginIp(String loginIp) + { + this.loginIp = loginIp; + } + + public Date getLoginDate() + { + return loginDate; + } + + public void setLoginDate(Date loginDate) + { + this.loginDate = loginDate; + } + + public Date getPwdUpdateDate() + { + return pwdUpdateDate; + } + + public void setPwdUpdateDate(Date pwdUpdateDate) + { + this.pwdUpdateDate = pwdUpdateDate; + } + + public SysDept getDept() + { + return dept; + } + + public void setDept(SysDept dept) + { + this.dept = dept; + } + + public List getRoles() + { + return roles; + } + + public void setRoles(List roles) + { + this.roles = roles; + } + + public Long[] getRoleIds() + { + return roleIds; + } + + public void setRoleIds(Long[] roleIds) + { + this.roleIds = roleIds; + } + + public Long[] getPostIds() + { + return postIds; + } + + public void setPostIds(Long[] postIds) + { + this.postIds = postIds; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("deptId", getDeptId()) + .append("userName", getUserName()) + .append("nickName", getNickName()) + .append("email", getEmail()) + .append("phonenumber", getPhonenumber()) + .append("sex", getSex()) + .append("avatar", getAvatar()) + .append("password", getPassword()) + .append("status", getStatus()) + .append("delFlag", getDelFlag()) + .append("loginIp", getLoginIp()) + .append("loginDate", getLoginDate()) + .append("pwdUpdateDate", getPwdUpdateDate()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("dept", getDept()) + .toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUser.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUser.java new file mode 100644 index 0000000..9d76ce0 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUser.java @@ -0,0 +1,169 @@ +package com.ruoyi.common.core.domain.model; + +import com.alibaba.fastjson2.annotation.JSONField; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.core.domain.entity.AiUser; +import lombok.Data; +import org.springframework.security.core.GrantedAuthority; +import org.springframework.security.core.userdetails.UserDetails; + +import java.util.Collection; +import java.util.Set; + +/** + * 登录用户身份权限 + * + * @author ruoyi + */ +@Data +public class LoginAiUser implements UserDetails +{ + private static final long serialVersionUID = 1L; + + /** + * 用户ID + */ + private Long userId; + + + /** + * 用户唯一标识 + */ + private String token; + + /** + * 登录时间 + */ + private Long loginTime; + + /** + * 过期时间 + */ + private Long expireTime; + + /** + * 登录IP地址 + */ + private String ipaddr; + + /** + * 登录地点 + */ + private String loginLocation; + + /** + * 浏览器类型 + */ + private String browser; + + /** + * 操作系统 + */ + private String os; + + + + /** + * 用户信息 + */ + private AiUser user; + + public LoginAiUser() + { + } + + + public LoginAiUser(Long userId, AiUser user) + { + this.userId = userId; + this.user = user; + } + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + + @JSONField(serialize = false) + @Override + public String getPassword() + { + return user.getPassword(); + } + + @Override + public String getUsername() { + return user.getUsername(); + } + + + /** + * 账户是否未过期,过期无法验证 + */ + @JSONField(serialize = false) + @Override + public boolean isAccountNonExpired() + { + return true; + } + + /** + * 指定用户是否解锁,锁定的用户无法进行身份验证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isAccountNonLocked() + { + return true; + } + + /** + * 指示是否已过期的用户的凭据(密码),过期的凭据防止认证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isCredentialsNonExpired() + { + return true; + } + + /** + * 是否可用 ,禁用的用户不能身份验证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isEnabled() + { + return true; + } + + + + public AiUser getUser() + { + return user; + } + + public void setUser(AiUser user) + { + this.user = user; + } + + @Override + public Collection getAuthorities() + { + return null; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUserBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUserBody.java new file mode 100644 index 0000000..01b232d --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginAiUserBody.java @@ -0,0 +1,33 @@ +package com.ruoyi.common.core.domain.model; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +/** + * 用户登录对象 + * + * @author ruoyi + */ +@Data +public class LoginAiUserBody { + /** + * 用户名 + */ + @ApiModelProperty(name = "用户名") + private String username; + + @ApiModelProperty(name = "邮箱") + private String email; + + /** + * 用户密码 + */ + private String password; + + + + + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java new file mode 100644 index 0000000..9d9daea --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginBody.java @@ -0,0 +1,60 @@ +package com.ruoyi.common.core.domain.model; + +/** + * 用户登录对象 + * + * @author ruoyi + */ +public class LoginBody { + /** + * 用户名 + */ + private String username; + + /** + * 用户密码 + */ + private String password; + + /** + * 验证码 + */ + private String code; + + /** + * 唯一标识 + */ + private String uuid; + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginUser.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginUser.java new file mode 100644 index 0000000..670e6b3 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/LoginUser.java @@ -0,0 +1,266 @@ +package com.ruoyi.common.core.domain.model; + +import com.alibaba.fastjson2.annotation.JSONField; +import com.ruoyi.common.core.domain.entity.SysUser; +import org.springframework.security.core.GrantedAuthority; +import org.springframework.security.core.userdetails.UserDetails; +import java.util.Collection; +import java.util.Set; + +/** + * 登录用户身份权限 + * + * @author ruoyi + */ +public class LoginUser implements UserDetails +{ + private static final long serialVersionUID = 1L; + + /** + * 用户ID + */ + private Long userId; + + /** + * 部门ID + */ + private Long deptId; + + /** + * 用户唯一标识 + */ + private String token; + + /** + * 登录时间 + */ + private Long loginTime; + + /** + * 过期时间 + */ + private Long expireTime; + + /** + * 登录IP地址 + */ + private String ipaddr; + + /** + * 登录地点 + */ + private String loginLocation; + + /** + * 浏览器类型 + */ + private String browser; + + /** + * 操作系统 + */ + private String os; + + /** + * 权限列表 + */ + private Set permissions; + + /** + * 用户信息 + */ + private SysUser user; + + public LoginUser() + { + } + + public LoginUser(SysUser user, Set permissions) + { + this.user = user; + this.permissions = permissions; + } + + public LoginUser(Long userId, Long deptId, SysUser user, Set permissions) + { + this.userId = userId; + this.deptId = deptId; + this.user = user; + this.permissions = permissions; + } + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public String getToken() + { + return token; + } + + public void setToken(String token) + { + this.token = token; + } + + @JSONField(serialize = false) + @Override + public String getPassword() + { + return user.getPassword(); + } + + @Override + public String getUsername() + { + return user.getUserName(); + } + + /** + * 账户是否未过期,过期无法验证 + */ + @JSONField(serialize = false) + @Override + public boolean isAccountNonExpired() + { + return true; + } + + /** + * 指定用户是否解锁,锁定的用户无法进行身份验证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isAccountNonLocked() + { + return true; + } + + /** + * 指示是否已过期的用户的凭据(密码),过期的凭据防止认证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isCredentialsNonExpired() + { + return true; + } + + /** + * 是否可用 ,禁用的用户不能身份验证 + * + * @return + */ + @JSONField(serialize = false) + @Override + public boolean isEnabled() + { + return true; + } + + public Long getLoginTime() + { + return loginTime; + } + + public void setLoginTime(Long loginTime) + { + this.loginTime = loginTime; + } + + public String getIpaddr() + { + return ipaddr; + } + + public void setIpaddr(String ipaddr) + { + this.ipaddr = ipaddr; + } + + public String getLoginLocation() + { + return loginLocation; + } + + public void setLoginLocation(String loginLocation) + { + this.loginLocation = loginLocation; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public Long getExpireTime() + { + return expireTime; + } + + public void setExpireTime(Long expireTime) + { + this.expireTime = expireTime; + } + + public Set getPermissions() + { + return permissions; + } + + public void setPermissions(Set permissions) + { + this.permissions = permissions; + } + + public SysUser getUser() + { + return user; + } + + public void setUser(SysUser user) + { + this.user = user; + } + + @Override + public Collection getAuthorities() + { + return null; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterAiUserBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterAiUserBody.java new file mode 100644 index 0000000..baa1767 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterAiUserBody.java @@ -0,0 +1,61 @@ +package com.ruoyi.common.core.domain.model; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.util.Date; + +/** + * 用户注册对象 + * + * @author ruoyi + */ +@Data +@ApiModel(description = "注册信息") +public class RegisterAiUserBody extends LoginAiUserBody { + + + /** + * 用户名 + */ + @ApiModelProperty(name = "用户名") + @NotBlank(message = "NotBlank.user.username") + private String username; + + @NotBlank(message = "NotBlank.user.email") + @ApiModelProperty(name = "邮箱") + private String email; + + + @ApiModelProperty(name = "用户昵称") + private String nickname; + + @ApiModelProperty(name = "性别:1-男,2-女") + private Integer gender; + + @ApiModelProperty(name = "头像") + private String avatar; + + @ApiModelProperty(name = "电话号码") + private String phone; + + @NotBlank(message = "NotBlank.user.password") + @ApiModelProperty(name = "密码") + private String password; + + @ApiModelProperty(name = "生日") + private Date birthday; + + @ApiModelProperty(name = "上级邀请码") + private String invitationCode; + + @NotBlank(message = "NotBlank.user.emailCode") + @ApiModelProperty(name = "邮箱验证码") + private String code; + + @ApiModelProperty(name = "数据来源") + private String source; + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterBody.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterBody.java new file mode 100644 index 0000000..868a1fc --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/model/RegisterBody.java @@ -0,0 +1,11 @@ +package com.ruoyi.common.core.domain.model; + +/** + * 用户注册对象 + * + * @author ruoyi + */ +public class RegisterBody extends LoginBody +{ + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java new file mode 100644 index 0000000..8966cb4 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/PageDomain.java @@ -0,0 +1,101 @@ +package com.ruoyi.common.core.page; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 分页数据 + * + * @author ruoyi + */ +public class PageDomain +{ + /** 当前记录起始索引 */ + private Integer pageNum; + + /** 每页显示记录数 */ + private Integer pageSize; + + /** 排序列 */ + private String orderByColumn; + + /** 排序的方向desc或者asc */ + private String isAsc = "asc"; + + /** 分页参数合理化 */ + private Boolean reasonable = true; + + public String getOrderBy() + { + if (StringUtils.isEmpty(orderByColumn)) + { + return ""; + } + return StringUtils.toUnderScoreCase(orderByColumn) + " " + isAsc; + } + + public Integer getPageNum() + { + return pageNum; + } + + public void setPageNum(Integer pageNum) + { + this.pageNum = pageNum; + } + + public Integer getPageSize() + { + return pageSize; + } + + public void setPageSize(Integer pageSize) + { + this.pageSize = pageSize; + } + + public String getOrderByColumn() + { + return orderByColumn; + } + + public void setOrderByColumn(String orderByColumn) + { + this.orderByColumn = orderByColumn; + } + + public String getIsAsc() + { + return isAsc; + } + + public void setIsAsc(String isAsc) + { + if (StringUtils.isNotEmpty(isAsc)) + { + // 兼容前端排序类型 + if ("ascending".equals(isAsc)) + { + isAsc = "asc"; + } + else if ("descending".equals(isAsc)) + { + isAsc = "desc"; + } + this.isAsc = isAsc; + } + } + + public Boolean getReasonable() + { + if (StringUtils.isNull(reasonable)) + { + return Boolean.TRUE; + } + return reasonable; + } + + public void setReasonable(Boolean reasonable) + { + this.reasonable = reasonable; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java new file mode 100644 index 0000000..10c6107 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableDataInfo.java @@ -0,0 +1,98 @@ +package com.ruoyi.common.core.page; + +import java.io.Serializable; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * 表格分页数据对象 + * + * @author ruoyi + */ +public class TableDataInfo implements Serializable +{ + private static final long serialVersionUID = 1L; + + /** 总记录数 */ + private long total; + + /** 列表数据 */ + private List rows; + + /** 消息状态码 */ + private int code; + + /** 消息内容 */ + private String msg; + + /** 额外参数 **/ + private Map param; + + /** + * 表格数据对象 + */ + public TableDataInfo() + { + } + + /** + * 分页 + * + * @param list 列表数据 + * @param total 总记录数 + */ + public TableDataInfo(List list, long total) + { + this.rows = list; + this.total = total; + } + + public long getTotal() + { + return total; + } + + public void setTotal(long total) + { + this.total = total; + } + + public List getRows() + { + return rows; + } + + public void setRows(List rows) + { + this.rows = rows; + } + + public int getCode() + { + return code; + } + + public void setCode(int code) + { + this.code = code; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public Map getParam() { + return param; + } + + public void setParam(Map param) { + this.param = param; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java new file mode 100644 index 0000000..a120c30 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/page/TableSupport.java @@ -0,0 +1,56 @@ +package com.ruoyi.common.core.page; + +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.ServletUtils; + +/** + * 表格数据处理 + * + * @author ruoyi + */ +public class TableSupport +{ + /** + * 当前记录起始索引 + */ + public static final String PAGE_NUM = "pageNum"; + + /** + * 每页显示记录数 + */ + public static final String PAGE_SIZE = "pageSize"; + + /** + * 排序列 + */ + public static final String ORDER_BY_COLUMN = "orderByColumn"; + + /** + * 排序的方向 "desc" 或者 "asc". + */ + public static final String IS_ASC = "isAsc"; + + /** + * 分页参数合理化 + */ + public static final String REASONABLE = "reasonable"; + + /** + * 封装分页对象 + */ + public static PageDomain getPageDomain() + { + PageDomain pageDomain = new PageDomain(); + pageDomain.setPageNum(Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1)); + pageDomain.setPageSize(Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10)); + pageDomain.setOrderByColumn(ServletUtils.getParameter(ORDER_BY_COLUMN)); + pageDomain.setIsAsc(ServletUtils.getParameter(IS_ASC)); + pageDomain.setReasonable(ServletUtils.getParameterToBool(REASONABLE)); + return pageDomain; + } + + public static PageDomain buildPageRequest() + { + return getPageDomain(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java new file mode 100644 index 0000000..44e80d8 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java @@ -0,0 +1,268 @@ +package com.ruoyi.common.core.redis; + +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.concurrent.TimeUnit; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.BoundSetOperations; +import org.springframework.data.redis.core.HashOperations; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.core.ValueOperations; +import org.springframework.stereotype.Component; + +/** + * spring redis 工具类 + * + * @author ruoyi + **/ +@SuppressWarnings(value = { "unchecked", "rawtypes" }) +@Component +public class RedisCache +{ + @Autowired + public RedisTemplate redisTemplate; + + /** + * 缓存基本的对象,Integer、String、实体类等 + * + * @param key 缓存的键值 + * @param value 缓存的值 + */ + public void setCacheObject(final String key, final T value) + { + redisTemplate.opsForValue().set(key, value); + } + + /** + * 缓存基本的对象,Integer、String、实体类等 + * + * @param key 缓存的键值 + * @param value 缓存的值 + * @param timeout 时间 + * @param timeUnit 时间颗粒度 + */ + public void setCacheObject(final String key, final T value, final Integer timeout, final TimeUnit timeUnit) + { + redisTemplate.opsForValue().set(key, value, timeout, timeUnit); + } + + /** + * 设置有效时间 + * + * @param key Redis键 + * @param timeout 超时时间 + * @return true=设置成功;false=设置失败 + */ + public boolean expire(final String key, final long timeout) + { + return expire(key, timeout, TimeUnit.SECONDS); + } + + /** + * 设置有效时间 + * + * @param key Redis键 + * @param timeout 超时时间 + * @param unit 时间单位 + * @return true=设置成功;false=设置失败 + */ + public boolean expire(final String key, final long timeout, final TimeUnit unit) + { + return redisTemplate.expire(key, timeout, unit); + } + + /** + * 获取有效时间 + * + * @param key Redis键 + * @return 有效时间 + */ + public long getExpire(final String key) + { + return redisTemplate.getExpire(key); + } + + /** + * 判断 key是否存在 + * + * @param key 键 + * @return true 存在 false不存在 + */ + public Boolean hasKey(String key) + { + return redisTemplate.hasKey(key); + } + + /** + * 获得缓存的基本对象。 + * + * @param key 缓存键值 + * @return 缓存键值对应的数据 + */ + public T getCacheObject(final String key) + { + ValueOperations operation = redisTemplate.opsForValue(); + return operation.get(key); + } + + /** + * 删除单个对象 + * + * @param key + */ + public boolean deleteObject(final String key) + { + return redisTemplate.delete(key); + } + + /** + * 删除集合对象 + * + * @param collection 多个对象 + * @return + */ + public boolean deleteObject(final Collection collection) + { + return redisTemplate.delete(collection) > 0; + } + + /** + * 缓存List数据 + * + * @param key 缓存的键值 + * @param dataList 待缓存的List数据 + * @return 缓存的对象 + */ + public long setCacheList(final String key, final List dataList) + { + Long count = redisTemplate.opsForList().rightPushAll(key, dataList); + return count == null ? 0 : count; + } + + /** + * 获得缓存的list对象 + * + * @param key 缓存的键值 + * @return 缓存键值对应的数据 + */ + public List getCacheList(final String key) + { + return redisTemplate.opsForList().range(key, 0, -1); + } + + /** + * 缓存Set + * + * @param key 缓存键值 + * @param dataSet 缓存的数据 + * @return 缓存数据的对象 + */ + public BoundSetOperations setCacheSet(final String key, final Set dataSet) + { + BoundSetOperations setOperation = redisTemplate.boundSetOps(key); + Iterator it = dataSet.iterator(); + while (it.hasNext()) + { + setOperation.add(it.next()); + } + return setOperation; + } + + /** + * 获得缓存的set + * + * @param key + * @return + */ + public Set getCacheSet(final String key) + { + return redisTemplate.opsForSet().members(key); + } + + /** + * 缓存Map + * + * @param key + * @param dataMap + */ + public void setCacheMap(final String key, final Map dataMap) + { + if (dataMap != null) { + redisTemplate.opsForHash().putAll(key, dataMap); + } + } + + /** + * 获得缓存的Map + * + * @param key + * @return + */ + public Map getCacheMap(final String key) + { + return redisTemplate.opsForHash().entries(key); + } + + /** + * 往Hash中存入数据 + * + * @param key Redis键 + * @param hKey Hash键 + * @param value 值 + */ + public void setCacheMapValue(final String key, final String hKey, final T value) + { + redisTemplate.opsForHash().put(key, hKey, value); + } + + /** + * 获取Hash中的数据 + * + * @param key Redis键 + * @param hKey Hash键 + * @return Hash中的对象 + */ + public T getCacheMapValue(final String key, final String hKey) + { + HashOperations opsForHash = redisTemplate.opsForHash(); + return opsForHash.get(key, hKey); + } + + /** + * 获取多个Hash中的数据 + * + * @param key Redis键 + * @param hKeys Hash键集合 + * @return Hash对象集合 + */ + public List getMultiCacheMapValue(final String key, final Collection hKeys) + { + return redisTemplate.opsForHash().multiGet(key, hKeys); + } + + /** + * 删除Hash中的某条数据 + * + * @param key Redis键 + * @param hKey Hash键 + * @return 是否成功 + */ + public boolean deleteCacheMapValue(final String key, final String hKey) + { + return redisTemplate.opsForHash().delete(key, hKey) > 0; + } + + /** + * 获得缓存的基本对象列表 + * + * @param pattern 字符串前缀 + * @return 对象列表 + */ + public Collection keys(final String pattern) + { + return redisTemplate.keys(pattern); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java new file mode 100644 index 0000000..84124aa --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/CharsetKit.java @@ -0,0 +1,86 @@ +package com.ruoyi.common.core.text; + +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import com.ruoyi.common.utils.StringUtils; + +/** + * 字符集工具类 + * + * @author ruoyi + */ +public class CharsetKit +{ + /** ISO-8859-1 */ + public static final String ISO_8859_1 = "ISO-8859-1"; + /** UTF-8 */ + public static final String UTF_8 = "UTF-8"; + /** GBK */ + public static final String GBK = "GBK"; + + /** ISO-8859-1 */ + public static final Charset CHARSET_ISO_8859_1 = Charset.forName(ISO_8859_1); + /** UTF-8 */ + public static final Charset CHARSET_UTF_8 = Charset.forName(UTF_8); + /** GBK */ + public static final Charset CHARSET_GBK = Charset.forName(GBK); + + /** + * 转换为Charset对象 + * + * @param charset 字符集,为空则返回默认字符集 + * @return Charset + */ + public static Charset charset(String charset) + { + return StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset); + } + + /** + * 转换字符串的字符集编码 + * + * @param source 字符串 + * @param srcCharset 源字符集,默认ISO-8859-1 + * @param destCharset 目标字符集,默认UTF-8 + * @return 转换后的字符集 + */ + public static String convert(String source, String srcCharset, String destCharset) + { + return convert(source, Charset.forName(srcCharset), Charset.forName(destCharset)); + } + + /** + * 转换字符串的字符集编码 + * + * @param source 字符串 + * @param srcCharset 源字符集,默认ISO-8859-1 + * @param destCharset 目标字符集,默认UTF-8 + * @return 转换后的字符集 + */ + public static String convert(String source, Charset srcCharset, Charset destCharset) + { + if (null == srcCharset) + { + srcCharset = StandardCharsets.ISO_8859_1; + } + + if (null == destCharset) + { + destCharset = StandardCharsets.UTF_8; + } + + if (StringUtils.isEmpty(source) || srcCharset.equals(destCharset)) + { + return source; + } + return new String(source.getBytes(srcCharset), destCharset); + } + + /** + * @return 系统字符集编码 + */ + public static String systemCharset() + { + return Charset.defaultCharset().name(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/text/Convert.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/Convert.java new file mode 100644 index 0000000..a87828a --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/Convert.java @@ -0,0 +1,1018 @@ +package com.ruoyi.common.core.text; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.math.RoundingMode; +import java.nio.ByteBuffer; +import java.nio.charset.Charset; +import java.text.NumberFormat; +import java.util.Set; +import com.ruoyi.common.utils.StringUtils; + +/** + * 类型转换器 + * + * @author ruoyi + */ +public class Convert +{ + /** + * 转换为字符串
+ * 如果给定的值为null,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static String toStr(Object value, String defaultValue) + { + if (null == value) + { + return defaultValue; + } + if (value instanceof String) + { + return (String) value; + } + return value.toString(); + } + + /** + * 转换为字符串
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static String toStr(Object value) + { + return toStr(value, null); + } + + /** + * 转换为字符
+ * 如果给定的值为null,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Character toChar(Object value, Character defaultValue) + { + if (null == value) + { + return defaultValue; + } + if (value instanceof Character) + { + return (Character) value; + } + + final String valueStr = toStr(value, null); + return StringUtils.isEmpty(valueStr) ? defaultValue : valueStr.charAt(0); + } + + /** + * 转换为字符
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Character toChar(Object value) + { + return toChar(value, null); + } + + /** + * 转换为byte
+ * 如果给定的值为null,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Byte toByte(Object value, Byte defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Byte) + { + return (Byte) value; + } + if (value instanceof Number) + { + return ((Number) value).byteValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Byte.parseByte(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为byte
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Byte toByte(Object value) + { + return toByte(value, null); + } + + /** + * 转换为Short
+ * 如果给定的值为null,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Short toShort(Object value, Short defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Short) + { + return (Short) value; + } + if (value instanceof Number) + { + return ((Number) value).shortValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Short.parseShort(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Short
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Short toShort(Object value) + { + return toShort(value, null); + } + + /** + * 转换为Number
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Number toNumber(Object value, Number defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Number) + { + return (Number) value; + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return NumberFormat.getInstance().parse(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Number
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Number toNumber(Object value) + { + return toNumber(value, null); + } + + /** + * 转换为int
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Integer toInt(Object value, Integer defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Integer) + { + return (Integer) value; + } + if (value instanceof Number) + { + return ((Number) value).intValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Integer.parseInt(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为int
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Integer toInt(Object value) + { + return toInt(value, null); + } + + /** + * 转换为Integer数组
+ * + * @param str 被转换的值 + * @return 结果 + */ + public static Integer[] toIntArray(String str) + { + return toIntArray(",", str); + } + + /** + * 转换为Long数组
+ * + * @param str 被转换的值 + * @return 结果 + */ + public static Long[] toLongArray(String str) + { + return toLongArray(",", str); + } + + /** + * 转换为Integer数组
+ * + * @param split 分隔符 + * @param split 被转换的值 + * @return 结果 + */ + public static Integer[] toIntArray(String split, String str) + { + if (StringUtils.isEmpty(str)) + { + return new Integer[] {}; + } + String[] arr = str.split(split); + final Integer[] ints = new Integer[arr.length]; + for (int i = 0; i < arr.length; i++) + { + final Integer v = toInt(arr[i], 0); + ints[i] = v; + } + return ints; + } + + /** + * 转换为Long数组
+ * + * @param split 分隔符 + * @param str 被转换的值 + * @return 结果 + */ + public static Long[] toLongArray(String split, String str) + { + if (StringUtils.isEmpty(str)) + { + return new Long[] {}; + } + String[] arr = str.split(split); + final Long[] longs = new Long[arr.length]; + for (int i = 0; i < arr.length; i++) + { + final Long v = toLong(arr[i], null); + longs[i] = v; + } + return longs; + } + + /** + * 转换为String数组
+ * + * @param str 被转换的值 + * @return 结果 + */ + public static String[] toStrArray(String str) + { + if (StringUtils.isEmpty(str)) + { + return new String[] {}; + } + return toStrArray(",", str); + } + + /** + * 转换为String数组
+ * + * @param split 分隔符 + * @param split 被转换的值 + * @return 结果 + */ + public static String[] toStrArray(String split, String str) + { + return str.split(split); + } + + /** + * 转换为long
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Long toLong(Object value, Long defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Long) + { + return (Long) value; + } + if (value instanceof Number) + { + return ((Number) value).longValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + // 支持科学计数法 + return new BigDecimal(valueStr.trim()).longValue(); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为long
+ * 如果给定的值为null,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Long toLong(Object value) + { + return toLong(value, null); + } + + /** + * 转换为double
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Double toDouble(Object value, Double defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Double) + { + return (Double) value; + } + if (value instanceof Number) + { + return ((Number) value).doubleValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + // 支持科学计数法 + return new BigDecimal(valueStr.trim()).doubleValue(); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为double
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Double toDouble(Object value) + { + return toDouble(value, null); + } + + /** + * 转换为Float
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Float toFloat(Object value, Float defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Float) + { + return (Float) value; + } + if (value instanceof Number) + { + return ((Number) value).floatValue(); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Float.parseFloat(valueStr.trim()); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Float
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Float toFloat(Object value) + { + return toFloat(value, null); + } + + /** + * 转换为boolean
+ * String支持的值为:true、false、yes、ok、no、1、0、是、否, 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static Boolean toBool(Object value, Boolean defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof Boolean) + { + return (Boolean) value; + } + String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + valueStr = valueStr.trim().toLowerCase(); + switch (valueStr) + { + case "true": + case "yes": + case "ok": + case "1": + case "是": + return true; + case "false": + case "no": + case "0": + case "否": + return false; + default: + return defaultValue; + } + } + + /** + * 转换为boolean
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static Boolean toBool(Object value) + { + return toBool(value, null); + } + + /** + * 转换为Enum对象
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * + * @param clazz Enum的Class + * @param value 值 + * @param defaultValue 默认值 + * @return Enum + */ + public static > E toEnum(Class clazz, Object value, E defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (clazz.isAssignableFrom(value.getClass())) + { + @SuppressWarnings("unchecked") + E myE = (E) value; + return myE; + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return Enum.valueOf(clazz, valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为Enum对象
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * + * @param clazz Enum的Class + * @param value 值 + * @return Enum + */ + public static > E toEnum(Class clazz, Object value) + { + return toEnum(clazz, value, null); + } + + /** + * 转换为BigInteger
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static BigInteger toBigInteger(Object value, BigInteger defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigInteger) + { + return (BigInteger) value; + } + if (value instanceof Long) + { + return BigInteger.valueOf((Long) value); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return new BigInteger(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为BigInteger
+ * 如果给定的值为空,或者转换失败,返回默认值null
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static BigInteger toBigInteger(Object value) + { + return toBigInteger(value, null); + } + + /** + * 转换为BigDecimal
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @param defaultValue 转换错误时的默认值 + * @return 结果 + */ + public static BigDecimal toBigDecimal(Object value, BigDecimal defaultValue) + { + if (value == null) + { + return defaultValue; + } + if (value instanceof BigDecimal) + { + return (BigDecimal) value; + } + if (value instanceof Long) + { + return new BigDecimal((Long) value); + } + if (value instanceof Double) + { + return BigDecimal.valueOf((Double) value); + } + if (value instanceof Integer) + { + return new BigDecimal((Integer) value); + } + final String valueStr = toStr(value, null); + if (StringUtils.isEmpty(valueStr)) + { + return defaultValue; + } + try + { + return new BigDecimal(valueStr); + } + catch (Exception e) + { + return defaultValue; + } + } + + /** + * 转换为BigDecimal
+ * 如果给定的值为空,或者转换失败,返回默认值
+ * 转换失败不会报错 + * + * @param value 被转换的值 + * @return 结果 + */ + public static BigDecimal toBigDecimal(Object value) + { + return toBigDecimal(value, null); + } + + /** + * 将对象转为字符串
+ * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @return 字符串 + */ + public static String utf8Str(Object obj) + { + return str(obj, CharsetKit.CHARSET_UTF_8); + } + + /** + * 将对象转为字符串
+ * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @param charsetName 字符集 + * @return 字符串 + */ + public static String str(Object obj, String charsetName) + { + return str(obj, Charset.forName(charsetName)); + } + + /** + * 将对象转为字符串
+ * 1、Byte数组和ByteBuffer会被转换为对应字符串的数组 2、对象数组会调用Arrays.toString方法 + * + * @param obj 对象 + * @param charset 字符集 + * @return 字符串 + */ + public static String str(Object obj, Charset charset) + { + if (null == obj) + { + return null; + } + + if (obj instanceof String) + { + return (String) obj; + } + else if (obj instanceof byte[] || obj instanceof Byte[]) + { + if (obj instanceof byte[]) + { + return str((byte[]) obj, charset); + } + else + { + Byte[] bytes = (Byte[]) obj; + int length = bytes.length; + byte[] dest = new byte[length]; + for (int i = 0; i < length; i++) + { + dest[i] = bytes[i]; + } + return str(dest, charset); + } + } + else if (obj instanceof ByteBuffer) + { + return str((ByteBuffer) obj, charset); + } + return obj.toString(); + } + + /** + * 将byte数组转为字符串 + * + * @param bytes byte数组 + * @param charset 字符集 + * @return 字符串 + */ + public static String str(byte[] bytes, String charset) + { + return str(bytes, StringUtils.isEmpty(charset) ? Charset.defaultCharset() : Charset.forName(charset)); + } + + /** + * 解码字节码 + * + * @param data 字符串 + * @param charset 字符集,如果此字段为空,则解码的结果取决于平台 + * @return 解码后的字符串 + */ + public static String str(byte[] data, Charset charset) + { + if (data == null) + { + return null; + } + + if (null == charset) + { + return new String(data); + } + return new String(data, charset); + } + + /** + * 将编码的byteBuffer数据转换为字符串 + * + * @param data 数据 + * @param charset 字符集,如果为空使用当前系统字符集 + * @return 字符串 + */ + public static String str(ByteBuffer data, String charset) + { + if (data == null) + { + return null; + } + + return str(data, Charset.forName(charset)); + } + + /** + * 将编码的byteBuffer数据转换为字符串 + * + * @param data 数据 + * @param charset 字符集,如果为空使用当前系统字符集 + * @return 字符串 + */ + public static String str(ByteBuffer data, Charset charset) + { + if (null == charset) + { + charset = Charset.defaultCharset(); + } + return charset.decode(data).toString(); + } + + // ----------------------------------------------------------------------- 全角半角转换 + /** + * 半角转全角 + * + * @param input String. + * @return 全角字符串. + */ + public static String toSBC(String input) + { + return toSBC(input, null); + } + + /** + * 半角转全角 + * + * @param input String + * @param notConvertSet 不替换的字符集合 + * @return 全角字符串. + */ + public static String toSBC(String input, Set notConvertSet) + { + char[] c = input.toCharArray(); + for (int i = 0; i < c.length; i++) + { + if (null != notConvertSet && notConvertSet.contains(c[i])) + { + // 跳过不替换的字符 + continue; + } + + if (c[i] == ' ') + { + c[i] = '\u3000'; + } + else if (c[i] < '\177') + { + c[i] = (char) (c[i] + 65248); + + } + } + return new String(c); + } + + /** + * 全角转半角 + * + * @param input String. + * @return 半角字符串 + */ + public static String toDBC(String input) + { + return toDBC(input, null); + } + + /** + * 替换全角为半角 + * + * @param text 文本 + * @param notConvertSet 不替换的字符集合 + * @return 替换后的字符 + */ + public static String toDBC(String text, Set notConvertSet) + { + char[] c = text.toCharArray(); + for (int i = 0; i < c.length; i++) + { + if (null != notConvertSet && notConvertSet.contains(c[i])) + { + // 跳过不替换的字符 + continue; + } + + if (c[i] == '\u3000') + { + c[i] = ' '; + } + else if (c[i] > '\uFF00' && c[i] < '\uFF5F') + { + c[i] = (char) (c[i] - 65248); + } + } + return new String(c); + } + + /** + * 数字金额大写转换 先写个完整的然后将如零拾替换成零 + * + * @param n 数字 + * @return 中文大写数字 + */ + public static String digitUppercase(double n) + { + String[] fraction = { "角", "分" }; + String[] digit = { "零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖" }; + String[][] unit = { { "元", "万", "亿" }, { "", "拾", "佰", "仟" } }; + + String head = n < 0 ? "负" : ""; + n = Math.abs(n); + + String s = ""; + for (int i = 0; i < fraction.length; i++) + { + // 优化double计算精度丢失问题 + BigDecimal nNum = new BigDecimal(n); + BigDecimal decimal = new BigDecimal(10); + BigDecimal scale = nNum.multiply(decimal).setScale(2, RoundingMode.HALF_EVEN); + double d = scale.doubleValue(); + s += (digit[(int) (Math.floor(d * Math.pow(10, i)) % 10)] + fraction[i]).replaceAll("(零.)+", ""); + } + if (s.length() < 1) + { + s = "整"; + } + int integerPart = (int) Math.floor(n); + + for (int i = 0; i < unit[0].length && integerPart > 0; i++) + { + String p = ""; + for (int j = 0; j < unit[1].length && n > 0; j++) + { + p = digit[integerPart % 10] + unit[1][j] + p; + integerPart = integerPart / 10; + } + s = p.replaceAll("(零.)*零$", "").replaceAll("^$", "零") + unit[0][i] + s; + } + return head + s.replaceAll("(零.)*零元", "元").replaceFirst("(零.)+", "").replaceAll("(零.)+", "零").replaceAll("^整$", "零元整"); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java new file mode 100644 index 0000000..c78ac77 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/text/StrFormatter.java @@ -0,0 +1,92 @@ +package com.ruoyi.common.core.text; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 字符串格式化 + * + * @author ruoyi + */ +public class StrFormatter +{ + public static final String EMPTY_JSON = "{}"; + public static final char C_BACKSLASH = '\\'; + public static final char C_DELIM_START = '{'; + public static final char C_DELIM_END = '}'; + + /** + * 格式化字符串
+ * 此方法只是简单将占位符 {} 按照顺序替换为参数
+ * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
+ * 例:
+ * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b
+ * 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a
+ * 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b
+ * + * @param strPattern 字符串模板 + * @param argArray 参数列表 + * @return 结果 + */ + public static String format(final String strPattern, final Object... argArray) + { + if (StringUtils.isEmpty(strPattern) || StringUtils.isEmpty(argArray)) + { + return strPattern; + } + final int strPatternLength = strPattern.length(); + + // 初始化定义好的长度以获得更好的性能 + StringBuilder sbuf = new StringBuilder(strPatternLength + 50); + + int handledPosition = 0; + int delimIndex;// 占位符所在位置 + for (int argIndex = 0; argIndex < argArray.length; argIndex++) + { + delimIndex = strPattern.indexOf(EMPTY_JSON, handledPosition); + if (delimIndex == -1) + { + if (handledPosition == 0) + { + return strPattern; + } + else + { // 字符串模板剩余部分不再包含占位符,加入剩余部分后返回结果 + sbuf.append(strPattern, handledPosition, strPatternLength); + return sbuf.toString(); + } + } + else + { + if (delimIndex > 0 && strPattern.charAt(delimIndex - 1) == C_BACKSLASH) + { + if (delimIndex > 1 && strPattern.charAt(delimIndex - 2) == C_BACKSLASH) + { + // 转义符之前还有一个转义符,占位符依旧有效 + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + } + else + { + // 占位符被转义 + argIndex--; + sbuf.append(strPattern, handledPosition, delimIndex - 1); + sbuf.append(C_DELIM_START); + handledPosition = delimIndex + 1; + } + } + else + { + // 正常占位符 + sbuf.append(strPattern, handledPosition, delimIndex); + sbuf.append(Convert.utf8Str(argArray[argIndex])); + handledPosition = delimIndex + 2; + } + } + } + // 加入最后一个占位符后所有的字符 + sbuf.append(strPattern, handledPosition, strPattern.length()); + + return sbuf.toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/email/MailService.java b/ruoyi-common/src/main/java/com/ruoyi/common/email/MailService.java new file mode 100644 index 0000000..221dde0 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/email/MailService.java @@ -0,0 +1,21 @@ +package com.ruoyi.common.email; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.mail.SimpleMailMessage; +import org.springframework.mail.javamail.JavaMailSender; +import org.springframework.stereotype.Component; + +@Component +public class MailService { + + @Autowired + private JavaMailSender javaMailSender; + + public void sendEmailVerifyCode(String to, String body) { + SimpleMailMessage message = new SimpleMailMessage(); + message.setTo(to); + message.setSubject("验证码"); + message.setText(body); + javaMailSender.send(message); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java new file mode 100644 index 0000000..10b7306 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessStatus.java @@ -0,0 +1,20 @@ +package com.ruoyi.common.enums; + +/** + * 操作状态 + * + * @author ruoyi + * + */ +public enum BusinessStatus +{ + /** + * 成功 + */ + SUCCESS, + + /** + * 失败 + */ + FAIL, +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java new file mode 100644 index 0000000..2e17c4a --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/BusinessType.java @@ -0,0 +1,59 @@ +package com.ruoyi.common.enums; + +/** + * 业务操作类型 + * + * @author ruoyi + */ +public enum BusinessType +{ + /** + * 其它 + */ + OTHER, + + /** + * 新增 + */ + INSERT, + + /** + * 修改 + */ + UPDATE, + + /** + * 删除 + */ + DELETE, + + /** + * 授权 + */ + GRANT, + + /** + * 导出 + */ + EXPORT, + + /** + * 导入 + */ + IMPORT, + + /** + * 强退 + */ + FORCE, + + /** + * 生成代码 + */ + GENCODE, + + /** + * 清空数据 + */ + CLEAN, +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java new file mode 100644 index 0000000..0d945be --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/DataSourceType.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.enums; + +/** + * 数据源 + * + * @author ruoyi + */ +public enum DataSourceType +{ + /** + * 主库 + */ + MASTER, + + /** + * 从库 + */ + SLAVE +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/DesensitizedType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/DesensitizedType.java new file mode 100644 index 0000000..07f02ee --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/DesensitizedType.java @@ -0,0 +1,59 @@ +package com.ruoyi.common.enums; + +import java.util.function.Function; +import com.ruoyi.common.utils.DesensitizedUtil; + +/** + * 脱敏类型 + * + * @author ruoyi + */ +public enum DesensitizedType +{ + /** + * 姓名,第2位星号替换 + */ + USERNAME(s -> s.replaceAll("(\\S)\\S(\\S*)", "$1*$2")), + + /** + * 密码,全部字符都用*代替 + */ + PASSWORD(DesensitizedUtil::password), + + /** + * 身份证,中间10位星号替换 + */ + ID_CARD(s -> s.replaceAll("(\\d{4})\\d{10}(\\d{3}[Xx]|\\d{4})", "$1** **** ****$2")), + + /** + * 手机号,中间4位星号替换 + */ + PHONE(s -> s.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2")), + + /** + * 电子邮箱,仅显示第一个字母和@后面的地址显示,其他星号替换 + */ + EMAIL(s -> s.replaceAll("(^.)[^@]*(@.*$)", "$1****$2")), + + /** + * 银行卡号,保留最后4位,其他星号替换 + */ + BANK_CARD(s -> s.replaceAll("\\d{15}(\\d{3})", "**** **** **** **** $1")), + + /** + * 车牌号码,包含普通车辆、新能源车辆 + */ + CAR_LICENSE(DesensitizedUtil::carLicense); + + private final Function desensitizer; + + DesensitizedType(Function desensitizer) + { + this.desensitizer = desensitizer; + } + + public Function desensitizer() + { + return desensitizer; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/HttpMethod.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/HttpMethod.java new file mode 100644 index 0000000..be6f739 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/HttpMethod.java @@ -0,0 +1,36 @@ +package com.ruoyi.common.enums; + +import java.util.HashMap; +import java.util.Map; +import org.springframework.lang.Nullable; + +/** + * 请求方式 + * + * @author ruoyi + */ +public enum HttpMethod +{ + GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE; + + private static final Map mappings = new HashMap<>(16); + + static + { + for (HttpMethod httpMethod : values()) + { + mappings.put(httpMethod.name(), httpMethod); + } + } + + @Nullable + public static HttpMethod resolve(@Nullable String method) + { + return (method != null ? mappings.get(method) : null); + } + + public boolean matches(String method) + { + return (this == resolve(method)); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/LimitType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/LimitType.java new file mode 100644 index 0000000..c609fd8 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/LimitType.java @@ -0,0 +1,20 @@ +package com.ruoyi.common.enums; + +/** + * 限流类型 + * + * @author ruoyi + */ + +public enum LimitType +{ + /** + * 默认策略全局限流 + */ + DEFAULT, + + /** + * 根据请求者IP进行限流 + */ + IP +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/OperatorType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/OperatorType.java new file mode 100644 index 0000000..bdd143c --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/OperatorType.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.enums; + +/** + * 操作人类别 + * + * @author ruoyi + */ +public enum OperatorType +{ + /** + * 其它 + */ + OTHER, + + /** + * 后台用户 + */ + MANAGE, + + /** + * 手机端用户 + */ + MOBILE +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/RegisterType.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/RegisterType.java new file mode 100644 index 0000000..518e668 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/RegisterType.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.enums; + +/** + * 验证码类型 + * + * @author ruoyi + */ +public enum RegisterType { + /** + * 注册 + */ + REGISTER, + + /** + * 登录 + */ + LOGIN, +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/enums/UserStatus.java b/ruoyi-common/src/main/java/com/ruoyi/common/enums/UserStatus.java new file mode 100644 index 0000000..d7ff44a --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/enums/UserStatus.java @@ -0,0 +1,30 @@ +package com.ruoyi.common.enums; + +/** + * 用户状态 + * + * @author ruoyi + */ +public enum UserStatus +{ + OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除"); + + private final String code; + private final String info; + + UserStatus(String code, String info) + { + this.code = code; + this.info = info; + } + + public String getCode() + { + return code; + } + + public String getInfo() + { + return info; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java new file mode 100644 index 0000000..f6ad2ab --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/DemoModeException.java @@ -0,0 +1,15 @@ +package com.ruoyi.common.exception; + +/** + * 演示模式异常 + * + * @author ruoyi + */ +public class DemoModeException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + public DemoModeException() + { + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/GlobalException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/GlobalException.java new file mode 100644 index 0000000..81a71b5 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/GlobalException.java @@ -0,0 +1,58 @@ +package com.ruoyi.common.exception; + +/** + * 全局异常 + * + * @author ruoyi + */ +public class GlobalException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + /** + * 错误提示 + */ + private String message; + + /** + * 错误明细,内部调试错误 + * + * 和 {@link CommonResult#getDetailMessage()} 一致的设计 + */ + private String detailMessage; + + /** + * 空构造方法,避免反序列化问题 + */ + public GlobalException() + { + } + + public GlobalException(String message) + { + this.message = message; + } + + public String getDetailMessage() + { + return detailMessage; + } + + public GlobalException setDetailMessage(String detailMessage) + { + this.detailMessage = detailMessage; + return this; + } + + @Override + public String getMessage() + { + return message; + } + + public GlobalException setMessage(String message) + { + this.message = message; + return this; + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/ServiceException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/ServiceException.java new file mode 100644 index 0000000..fcc7ab6 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/ServiceException.java @@ -0,0 +1,74 @@ +package com.ruoyi.common.exception; + +/** + * 业务异常 + * + * @author ruoyi + */ +public final class ServiceException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + /** + * 错误码 + */ + private Integer code; + + /** + * 错误提示 + */ + private String message; + + /** + * 错误明细,内部调试错误 + * + * 和 {@link CommonResult#getDetailMessage()} 一致的设计 + */ + private String detailMessage; + + /** + * 空构造方法,避免反序列化问题 + */ + public ServiceException() + { + } + + public ServiceException(String message) + { + this.message = message; + } + + public ServiceException(String message, Integer code) + { + this.message = message; + this.code = code; + } + + public String getDetailMessage() + { + return detailMessage; + } + + @Override + public String getMessage() + { + return message; + } + + public Integer getCode() + { + return code; + } + + public ServiceException setMessage(String message) + { + this.message = message; + return this; + } + + public ServiceException setDetailMessage(String detailMessage) + { + this.detailMessage = detailMessage; + return this; + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/UtilException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/UtilException.java new file mode 100644 index 0000000..980fa46 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/UtilException.java @@ -0,0 +1,26 @@ +package com.ruoyi.common.exception; + +/** + * 工具类异常 + * + * @author ruoyi + */ +public class UtilException extends RuntimeException +{ + private static final long serialVersionUID = 8247610319171014183L; + + public UtilException(Throwable e) + { + super(e.getMessage(), e); + } + + public UtilException(String message) + { + super(message); + } + + public UtilException(String message, Throwable throwable) + { + super(message, throwable); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java new file mode 100644 index 0000000..b55d72e --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/base/BaseException.java @@ -0,0 +1,97 @@ +package com.ruoyi.common.exception.base; + +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 基础异常 + * + * @author ruoyi + */ +public class BaseException extends RuntimeException +{ + private static final long serialVersionUID = 1L; + + /** + * 所属模块 + */ + private String module; + + /** + * 错误码 + */ + private String code; + + /** + * 错误码对应的参数 + */ + private Object[] args; + + /** + * 错误消息 + */ + private String defaultMessage; + + public BaseException(String module, String code, Object[] args, String defaultMessage) + { + this.module = module; + this.code = code; + this.args = args; + this.defaultMessage = defaultMessage; + } + + public BaseException(String module, String code, Object[] args) + { + this(module, code, args, null); + } + + public BaseException(String module, String defaultMessage) + { + this(module, null, null, defaultMessage); + } + + public BaseException(String code, Object[] args) + { + this(null, code, args, null); + } + + public BaseException(String defaultMessage) + { + this(null, null, null, defaultMessage); + } + + @Override + public String getMessage() + { + String message = null; + if (!StringUtils.isEmpty(code)) + { + message = MessageUtils.message(code, args); + } + if (message == null) + { + message = defaultMessage; + } + return message; + } + + public String getModule() + { + return module; + } + + public String getCode() + { + return code; + } + + public Object[] getArgs() + { + return args; + } + + public String getDefaultMessage() + { + return defaultMessage; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileException.java new file mode 100644 index 0000000..871f09b --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileException.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.exception.file; + +import com.ruoyi.common.exception.base.BaseException; + +/** + * 文件信息异常类 + * + * @author ruoyi + */ +public class FileException extends BaseException +{ + private static final long serialVersionUID = 1L; + + public FileException(String code, Object[] args) + { + super("file", code, args, null); + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java new file mode 100644 index 0000000..70e0ec9 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileNameLengthLimitExceededException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.file; + +/** + * 文件名称超长限制异常类 + * + * @author ruoyi + */ +public class FileNameLengthLimitExceededException extends FileException +{ + private static final long serialVersionUID = 1L; + + public FileNameLengthLimitExceededException(int defaultFileNameLength) + { + super("upload.filename.exceed.length", new Object[] { defaultFileNameLength }); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java new file mode 100644 index 0000000..ec6ab05 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileSizeLimitExceededException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.file; + +/** + * 文件名大小限制异常类 + * + * @author ruoyi + */ +public class FileSizeLimitExceededException extends FileException +{ + private static final long serialVersionUID = 1L; + + public FileSizeLimitExceededException(long defaultMaxSize) + { + super("upload.exceed.maxSize", new Object[] { defaultMaxSize }); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileUploadException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileUploadException.java new file mode 100644 index 0000000..f45e7ef --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/FileUploadException.java @@ -0,0 +1,61 @@ +package com.ruoyi.common.exception.file; + +import java.io.PrintStream; +import java.io.PrintWriter; + +/** + * 文件上传异常类 + * + * @author ruoyi + */ +public class FileUploadException extends Exception +{ + + private static final long serialVersionUID = 1L; + + private final Throwable cause; + + public FileUploadException() + { + this(null, null); + } + + public FileUploadException(final String msg) + { + this(msg, null); + } + + public FileUploadException(String msg, Throwable cause) + { + super(msg); + this.cause = cause; + } + + @Override + public void printStackTrace(PrintStream stream) + { + super.printStackTrace(stream); + if (cause != null) + { + stream.println("Caused by:"); + cause.printStackTrace(stream); + } + } + + @Override + public void printStackTrace(PrintWriter writer) + { + super.printStackTrace(writer); + if (cause != null) + { + writer.println("Caused by:"); + cause.printStackTrace(writer); + } + } + + @Override + public Throwable getCause() + { + return cause; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java new file mode 100644 index 0000000..011f308 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/file/InvalidExtensionException.java @@ -0,0 +1,80 @@ +package com.ruoyi.common.exception.file; + +import java.util.Arrays; + +/** + * 文件上传 误异常类 + * + * @author ruoyi + */ +public class InvalidExtensionException extends FileUploadException +{ + private static final long serialVersionUID = 1L; + + private String[] allowedExtension; + private String extension; + private String filename; + + public InvalidExtensionException(String[] allowedExtension, String extension, String filename) + { + super("文件[" + filename + "]后缀[" + extension + "]不正确,请上传" + Arrays.toString(allowedExtension) + "格式"); + this.allowedExtension = allowedExtension; + this.extension = extension; + this.filename = filename; + } + + public String[] getAllowedExtension() + { + return allowedExtension; + } + + public String getExtension() + { + return extension; + } + + public String getFilename() + { + return filename; + } + + public static class InvalidImageExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidImageExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidFlashExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidFlashExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidMediaExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidMediaExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } + + public static class InvalidVideoExtensionException extends InvalidExtensionException + { + private static final long serialVersionUID = 1L; + + public InvalidVideoExtensionException(String[] allowedExtension, String extension, String filename) + { + super(allowedExtension, extension, filename); + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java new file mode 100644 index 0000000..a567b40 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/job/TaskException.java @@ -0,0 +1,34 @@ +package com.ruoyi.common.exception.job; + +/** + * 计划策略异常 + * + * @author ruoyi + */ +public class TaskException extends Exception +{ + private static final long serialVersionUID = 1L; + + private Code code; + + public TaskException(String msg, Code code) + { + this(msg, code, null); + } + + public TaskException(String msg, Code code, Exception nestedEx) + { + super(msg, nestedEx); + this.code = code; + } + + public Code getCode() + { + return code; + } + + public enum Code + { + TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/BlackListException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/BlackListException.java new file mode 100644 index 0000000..2bf5038 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/BlackListException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 黑名单IP异常类 + * + * @author ruoyi + */ +public class BlackListException extends UserException +{ + private static final long serialVersionUID = 1L; + + public BlackListException() + { + super("login.blocked", null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java new file mode 100644 index 0000000..389dbc7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 验证码错误异常类 + * + * @author ruoyi + */ +public class CaptchaException extends UserException +{ + private static final long serialVersionUID = 1L; + + public CaptchaException() + { + super("user.jcaptcha.error", null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaExpireException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaExpireException.java new file mode 100644 index 0000000..85f9486 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/CaptchaExpireException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 验证码失效异常类 + * + * @author ruoyi + */ +public class CaptchaExpireException extends UserException +{ + private static final long serialVersionUID = 1L; + + public CaptchaExpireException() + { + super("user.jcaptcha.expire", null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserException.java new file mode 100644 index 0000000..c292d70 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserException.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.exception.user; + +import com.ruoyi.common.exception.base.BaseException; + +/** + * 用户信息异常类 + * + * @author ruoyi + */ +public class UserException extends BaseException +{ + private static final long serialVersionUID = 1L; + + public UserException(String code, Object[] args) + { + super("user", code, args, null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java new file mode 100644 index 0000000..eff8181 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserNotExistsException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户不存在异常类 + * + * @author ruoyi + */ +public class UserNotExistsException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserNotExistsException() + { + super("user.not.exists", null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java new file mode 100644 index 0000000..a7f3e5f --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordNotMatchException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户密码不正确或不符合规范异常类 + * + * @author ruoyi + */ +public class UserPasswordNotMatchException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserPasswordNotMatchException() + { + super("user.password.not.match", null); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java new file mode 100644 index 0000000..c887cf1 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/user/UserPasswordRetryLimitExceedException.java @@ -0,0 +1,16 @@ +package com.ruoyi.common.exception.user; + +/** + * 用户错误最大次数异常类 + * + * @author ruoyi + */ +public class UserPasswordRetryLimitExceedException extends UserException +{ + private static final long serialVersionUID = 1L; + + public UserPasswordRetryLimitExceedException(int retryLimitCount, int lockTime) + { + super("user.password.retry.limit.exceed", new Object[] { retryLimitCount, lockTime }); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/PropertyPreExcludeFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/PropertyPreExcludeFilter.java new file mode 100644 index 0000000..e1e431b --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/PropertyPreExcludeFilter.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.filter; + +import com.alibaba.fastjson2.filter.SimplePropertyPreFilter; + +/** + * 排除JSON敏感属性 + * + * @author ruoyi + */ +public class PropertyPreExcludeFilter extends SimplePropertyPreFilter +{ + public PropertyPreExcludeFilter() + { + } + + public PropertyPreExcludeFilter addExcludes(String... filters) + { + for (int i = 0; i < filters.length; i++) + { + this.getExcludes().add(filters[i]); + } + return this; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java new file mode 100644 index 0000000..a1bcfe2 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatableFilter.java @@ -0,0 +1,52 @@ +package com.ruoyi.common.filter; + +import java.io.IOException; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import org.springframework.http.MediaType; +import com.ruoyi.common.utils.StringUtils; + +/** + * Repeatable 过滤器 + * + * @author ruoyi + */ +public class RepeatableFilter implements Filter +{ + @Override + public void init(FilterConfig filterConfig) throws ServletException + { + + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException + { + ServletRequest requestWrapper = null; + if (request instanceof HttpServletRequest + && StringUtils.startsWithIgnoreCase(request.getContentType(), MediaType.APPLICATION_JSON_VALUE)) + { + requestWrapper = new RepeatedlyRequestWrapper((HttpServletRequest) request, response); + } + if (null == requestWrapper) + { + chain.doFilter(request, response); + } + else + { + chain.doFilter(requestWrapper, response); + } + } + + @Override + public void destroy() + { + + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java new file mode 100644 index 0000000..407d1ba --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/RepeatedlyRequestWrapper.java @@ -0,0 +1,76 @@ +package com.ruoyi.common.filter; + +import java.io.BufferedReader; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import javax.servlet.ReadListener; +import javax.servlet.ServletInputStream; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequestWrapper; +import com.ruoyi.common.utils.http.HttpHelper; +import com.ruoyi.common.constant.Constants; + +/** + * 构建可重复读取inputStream的request + * + * @author ruoyi + */ +public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper +{ + private final byte[] body; + + public RepeatedlyRequestWrapper(HttpServletRequest request, ServletResponse response) throws IOException + { + super(request); + request.setCharacterEncoding(Constants.UTF8); + response.setCharacterEncoding(Constants.UTF8); + + body = HttpHelper.getBodyString(request).getBytes(Constants.UTF8); + } + + @Override + public BufferedReader getReader() throws IOException + { + return new BufferedReader(new InputStreamReader(getInputStream())); + } + + @Override + public ServletInputStream getInputStream() throws IOException + { + final ByteArrayInputStream bais = new ByteArrayInputStream(body); + return new ServletInputStream() + { + @Override + public int read() throws IOException + { + return bais.read(); + } + + @Override + public int available() throws IOException + { + return body.length; + } + + @Override + public boolean isFinished() + { + return false; + } + + @Override + public boolean isReady() + { + return false; + } + + @Override + public void setReadListener(ReadListener readListener) + { + + } + }; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java new file mode 100644 index 0000000..5c4cbe4 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java @@ -0,0 +1,75 @@ +package com.ruoyi.common.filter; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.FilterConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.enums.HttpMethod; + +/** + * 防止XSS攻击的过滤器 + * + * @author ruoyi + */ +public class XssFilter implements Filter +{ + /** + * 排除链接 + */ + public List excludes = new ArrayList<>(); + + @Override + public void init(FilterConfig filterConfig) throws ServletException + { + String tempExcludes = filterConfig.getInitParameter("excludes"); + if (StringUtils.isNotEmpty(tempExcludes)) + { + String[] urls = tempExcludes.split(","); + for (String url : urls) + { + excludes.add(url); + } + } + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException + { + HttpServletRequest req = (HttpServletRequest) request; + HttpServletResponse resp = (HttpServletResponse) response; + if (handleExcludeURL(req, resp)) + { + chain.doFilter(request, response); + return; + } + XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper((HttpServletRequest) request); + chain.doFilter(xssRequest, response); + } + + private boolean handleExcludeURL(HttpServletRequest request, HttpServletResponse response) + { + String url = request.getServletPath(); + String method = request.getMethod(); + // GET DELETE 不过滤 + if (method == null || HttpMethod.GET.matches(method) || HttpMethod.DELETE.matches(method)) + { + return true; + } + return StringUtils.matches(url, excludes); + } + + @Override + public void destroy() + { + + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java new file mode 100644 index 0000000..05149f0 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssHttpServletRequestWrapper.java @@ -0,0 +1,111 @@ +package com.ruoyi.common.filter; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import javax.servlet.ReadListener; +import javax.servlet.ServletInputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletRequestWrapper; +import org.apache.commons.io.IOUtils; +import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.html.EscapeUtil; + +/** + * XSS过滤处理 + * + * @author ruoyi + */ +public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper +{ + /** + * @param request + */ + public XssHttpServletRequestWrapper(HttpServletRequest request) + { + super(request); + } + + @Override + public String[] getParameterValues(String name) + { + String[] values = super.getParameterValues(name); + if (values != null) + { + int length = values.length; + String[] escapesValues = new String[length]; + for (int i = 0; i < length; i++) + { + // 防xss攻击和过滤前后空格 + escapesValues[i] = EscapeUtil.clean(values[i]).trim(); + } + return escapesValues; + } + return super.getParameterValues(name); + } + + @Override + public ServletInputStream getInputStream() throws IOException + { + // 非json类型,直接返回 + if (!isJsonRequest()) + { + return super.getInputStream(); + } + + // 为空,直接返回 + String json = IOUtils.toString(super.getInputStream(), "utf-8"); + if (StringUtils.isEmpty(json)) + { + return super.getInputStream(); + } + + // xss过滤 + json = EscapeUtil.clean(json).trim(); + byte[] jsonBytes = json.getBytes("utf-8"); + final ByteArrayInputStream bis = new ByteArrayInputStream(jsonBytes); + return new ServletInputStream() + { + @Override + public boolean isFinished() + { + return true; + } + + @Override + public boolean isReady() + { + return true; + } + + @Override + public int available() throws IOException + { + return jsonBytes.length; + } + + @Override + public void setReadListener(ReadListener readListener) + { + } + + @Override + public int read() throws IOException + { + return bis.read(); + } + }; + } + + /** + * 是否是Json请求 + * + * @param request + */ + public boolean isJsonRequest() + { + String header = super.getHeader(HttpHeaders.CONTENT_TYPE); + return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE); + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java new file mode 100644 index 0000000..9f95c0f --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/Arith.java @@ -0,0 +1,113 @@ +package com.ruoyi.common.utils; + +import java.math.BigDecimal; +import java.math.RoundingMode; + +/** + * 精确的浮点数运算 + * + * @author ruoyi + */ +public class Arith +{ + + /** 默认除法运算精度 */ + private static final int DEF_DIV_SCALE = 10; + + /** 这个类不能实例化 */ + private Arith() + { + } + + /** + * 提供精确的加法运算。 + * @param v1 被加数 + * @param v2 加数 + * @return 两个参数的和 + */ + public static double add(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.add(b2).doubleValue(); + } + + /** + * 提供精确的减法运算。 + * @param v1 被减数 + * @param v2 减数 + * @return 两个参数的差 + */ + public static double sub(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.subtract(b2).doubleValue(); + } + + /** + * 提供精确的乘法运算。 + * @param v1 被乘数 + * @param v2 乘数 + * @return 两个参数的积 + */ + public static double mul(double v1, double v2) + { + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + return b1.multiply(b2).doubleValue(); + } + + /** + * 提供(相对)精确的除法运算,当发生除不尽的情况时,精确到 + * 小数点以后10位,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @return 两个参数的商 + */ + public static double div(double v1, double v2) + { + return div(v1, v2, DEF_DIV_SCALE); + } + + /** + * 提供(相对)精确的除法运算。当发生除不尽的情况时,由scale参数指 + * 定精度,以后的数字四舍五入。 + * @param v1 被除数 + * @param v2 除数 + * @param scale 表示表示需要精确到小数点以后几位。 + * @return 两个参数的商 + */ + public static double div(double v1, double v2, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b1 = new BigDecimal(Double.toString(v1)); + BigDecimal b2 = new BigDecimal(Double.toString(v2)); + if (b1.compareTo(BigDecimal.ZERO) == 0) + { + return BigDecimal.ZERO.doubleValue(); + } + return b1.divide(b2, scale, RoundingMode.HALF_UP).doubleValue(); + } + + /** + * 提供精确的小数位四舍五入处理。 + * @param v 需要四舍五入的数字 + * @param scale 小数点后保留几位 + * @return 四舍五入后的结果 + */ + public static double round(double v, int scale) + { + if (scale < 0) + { + throw new IllegalArgumentException( + "The scale must be a positive integer or zero"); + } + BigDecimal b = new BigDecimal(Double.toString(v)); + return b.divide(BigDecimal.ONE, scale, RoundingMode.HALF_UP).doubleValue(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/AwsS3Util.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/AwsS3Util.java new file mode 100644 index 0000000..a2b719a --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/AwsS3Util.java @@ -0,0 +1,251 @@ +package com.ruoyi.common.utils; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.springframework.web.multipart.MultipartFile; +import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; +import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.s3.S3Client; +import software.amazon.awssdk.services.s3.model.*; + +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.nio.file.Files; +import java.nio.file.Path; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.UUID; + +/** + * AWS S3 文件上传工具类 + */ +@Component +public class AwsS3Util { + + // -------------------------- 配置参数(需根据实际环境修改)-------------------------- + @Value("${aws.accessKey}") + private String AWS_ACCESS_KEY; // IAM用户AccessKey + @Value("${aws.secretKey}") + private String AWS_SECRET_KEY; // IAM用户SecretKey + @Value("${aws.endpoint}") + private String S3_REGION; // S3区域(如东京:ap-northeast-1,新加坡:ap-southeast-1) + @Value("${aws.bucketName}") + private String S3_BUCKET_NAME; // S3桶名称 + @Value("${aws.domain}") + private String domain; + // -------------------------------------------------------------------------------- + + /** + * 获取S3客户端(单例模式,避免重复创建连接) + */ + private S3Client getS3Client() { + // 配置AWS凭证(生产环境建议使用环境变量/IAM角色,而非硬编码) + AwsBasicCredentials credentials = AwsBasicCredentials.create( + AWS_ACCESS_KEY, + AWS_SECRET_KEY + ); + + return S3Client.builder() + .region(Region.of(S3_REGION)) + .credentialsProvider(StaticCredentialsProvider.create(credentials)) + .build(); + } + + /** + * 上传MultipartFile到S3,返回文件访问地址 + * + * @param file 前端上传的MultipartFile + * @param isPublic 是否公开访问(true:返回公开URL;false:返回预签名URL) + * @return 文件访问地址(URL字符串) + * @throws IOException 流操作异常 + * @throws S3Exception S3服务异常 + */ + public String uploadMultipartFile(MultipartFile file, boolean isPublic) throws Exception { + // 1. 校验文件合法性 + if (file.isEmpty()) { + throw new IllegalArgumentException("上传文件不能为空"); + } + + // 1. MultipartFile 转换为临时 Path(沿用之前的方案1) + Path tempPath = convertToTempPath(file); + + try { + // 2. 生成 S3 中的唯一文件键(避免重名) + String s3Key = generateS3Key(file.getOriginalFilename()); + + // 3. 构建 S3 上传请求(无 ACL 配置) + PutObjectRequest putObjectRequest = PutObjectRequest.builder() + .bucket(S3_BUCKET_NAME) + .key(s3Key) + .build(); + + S3Client s3Client = getS3Client(); + // 4. 上传文件到 S3 + PutObjectResponse putObjectResponse = s3Client.putObject(putObjectRequest, tempPath); + + // 返回 S3 文件的访问地址(根据 Bucket Policy 决定是否可公开访问) + return domain + s3Key; + } finally { + // 5. 清理临时文件 + Files.deleteIfExists(tempPath); + } + } + + /** + * 将 MultipartFile 转换为临时文件的 Path(自动清理) + */ + public Path convertToTempPath(MultipartFile file) throws IOException { + // 1. 校验文件是否为空 + if (file.isEmpty()) { + throw new IllegalArgumentException("上传文件不能为空"); + } + + // 2. 获取文件原始后缀(如 .txt、.jpg,避免临时文件无后缀) + String originalFilename = file.getOriginalFilename(); + String suffix = originalFilename != null ? + originalFilename.substring(originalFilename.lastIndexOf(".")) : ".tmp"; + + // 3. 创建临时文件(默认存储在系统临时目录,如 /tmp 或 C:\Users\XXX\AppData\Local\Temp) + // 参数说明:前缀(temp_)、后缀(.txt)、文件属性(默认 null 即可) + Path tempFile = Files.createTempFile("temp_", suffix); + + // 4. 将 MultipartFile 的字节内容写入临时文件 + Files.write(tempFile, file.getBytes()); + + // 5. (可选)设置临时文件JVM退出时自动删除(增强清理机制) + tempFile.toFile().deleteOnExit(); + + return tempFile; + } + + /** + * 获取公开文件URL(适用于PUBLIC_READ权限的文件) + * 格式:https://桶名.s3.区域.amazonaws.com/文件Key + */ + private String getPublicFileUrl(String s3FileKey) { + return String.format("https://%s.s3.%s.amazonaws.com/%s", + S3_BUCKET_NAME, + S3_REGION, + s3FileKey); + } + + public String uploadFileByUrl(String fileUrl) throws Exception { + return uploadFileByUrl(fileUrl, true); + } + + // 通过下载链接上传文件到S3 + public String uploadFileByUrl(String fileUrl, boolean isPublic) throws Exception { + if (fileUrl == null || fileUrl.trim().isEmpty()) { + throw new IllegalArgumentException("文件下载链接不能为空"); + } + + // 下载文件到临时路径 + Path tempPath = downloadFileToTemp(fileUrl); + + try { + String originalFileName = extractFileNameFromUrl(fileUrl); + String s3Key = generateS3Key(originalFileName); + + PutObjectRequest putObjectRequest = PutObjectRequest.builder() + .bucket(S3_BUCKET_NAME) + .key(s3Key) + .build(); + + S3Client s3Client = getS3Client(); + PutObjectResponse response = s3Client.putObject(putObjectRequest, tempPath); + + return domain + s3Key; + } finally { + Files.deleteIfExists(tempPath); + } + } + + // 辅助方法:生成S3文件键(复用逻辑,提取为独立方法) + private String generateS3Key(String originalFileName) { + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyy/MM/dd").format(new Date()); // Java 1.8用SimpleDateFormat + return dateTime + "/" + uuid + "_" + originalFileName; + } + + + // 辅助方法:通过链接下载文件到临时路径(Java 1.8用HttpURLConnection) + private Path downloadFileToTemp(String fileUrl) throws Exception { + // 提取文件后缀,用于临时文件 + String suffix = getFileSuffixFromUrl(fileUrl); + Path tempPath = Files.createTempFile("url-upload-", suffix); + + HttpURLConnection connection = null; + InputStream in = null; + OutputStream out = null; + + try { + URL url = new URL(fileUrl); + connection = (HttpURLConnection) url.openConnection(); + connection.setRequestMethod("GET"); + connection.setConnectTimeout(5000); // 连接超时5秒 + connection.setReadTimeout(10000); // 读取超时10秒 + + int responseCode = connection.getResponseCode(); + if (responseCode < 200 || responseCode >= 300) { + throw new RuntimeException("文件下载失败,状态码:" + responseCode); + } + + // 读取输入流并写入临时文件 + in = connection.getInputStream(); + out = Files.newOutputStream(tempPath); + + byte[] buffer = new byte[4096]; + int bytesRead; + while ((bytesRead = in.read(buffer)) != -1) { + out.write(buffer, 0, bytesRead); + } + + } finally { + // 关闭资源(Java 1.8需手动关闭,无try-with-resources也可,但建议显式关闭) + if (out != null) { + try { + out.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (in != null) { + try { + in.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + if (connection != null) { + connection.disconnect(); + } + } + + return tempPath; + } + + // 辅助方法:从URL提取文件名 + private String extractFileNameFromUrl(String fileUrl) { + String fileName = fileUrl.substring(fileUrl.lastIndexOf("/") + 1); + // 处理URL中的参数(如 ?xx=xx) + if (fileName.contains("?")) { + fileName = fileName.split("\\?")[0]; + } + return fileName.isEmpty() ? "default_file" : fileName; + } + + // 辅助方法:从URL提取文件后缀 + private String getFileSuffixFromUrl(String fileUrl) { + String fileName = extractFileNameFromUrl(fileUrl); + if (fileName.contains(".")) { + return fileName.substring(fileName.lastIndexOf(".")); + } + return ".tmp"; // 无后缀时默认临时文件后缀 + } + + +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java new file mode 100644 index 0000000..2994189 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java @@ -0,0 +1,198 @@ +package com.ruoyi.common.utils; + +import java.lang.management.ManagementFactory; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.LocalTime; +import java.time.ZoneId; +import java.time.ZonedDateTime; +import java.util.Date; +import org.apache.commons.lang3.time.DateFormatUtils; + +/** + * 时间工具类 + * + * @author ruoyi + */ +public class DateUtils extends org.apache.commons.lang3.time.DateUtils +{ + public static String YYYY = "yyyy"; + + public static String YYYY_MM = "yyyy-MM"; + + public static String YYYY_MM_DD = "yyyy-MM-dd"; + + public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss"; + + public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss"; + + private static String[] parsePatterns = { + "yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM", + "yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM", + "yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"}; + + /** + * 获取当前Date型日期 + * + * @return Date() 当前日期 + */ + public static Date getNowDate() + { + return new Date(); + } + + /** + * 获取当前日期, 默认格式为yyyy-MM-dd + * + * @return String + */ + public static String getDate() + { + return dateTimeNow(YYYY_MM_DD); + } + + public static final String getTime() + { + return dateTimeNow(YYYY_MM_DD_HH_MM_SS); + } + + public static final String dateTimeNow() + { + return dateTimeNow(YYYYMMDDHHMMSS); + } + + public static final String dateTimeNow(final String format) + { + return parseDateToStr(format, new Date()); + } + + public static final String dateTime(final Date date) + { + return parseDateToStr(YYYY_MM_DD, date); + } + + public static final String parseDateToStr(final String format, final Date date) + { + return new SimpleDateFormat(format).format(date); + } + + public static final Date dateTime(final String format, final String ts) + { + try + { + return new SimpleDateFormat(format).parse(ts); + } + catch (ParseException e) + { + throw new RuntimeException(e); + } + } + + /** + * 日期路径 即年/月/日 如2018/08/08 + */ + public static final String datePath() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyy/MM/dd"); + } + + /** + * 日期路径 即年/月/日 如20180808 + */ + public static final String dateTime() + { + Date now = new Date(); + return DateFormatUtils.format(now, "yyyyMMdd"); + } + + /** + * 日期型字符串转化为日期 格式 + */ + public static Date parseDate(Object str) + { + if (str == null) + { + return null; + } + try + { + return parseDate(str.toString(), parsePatterns); + } + catch (ParseException e) + { + return null; + } + } + + /** + * 获取服务器启动时间 + */ + public static Date getServerStartDate() + { + long time = ManagementFactory.getRuntimeMXBean().getStartTime(); + return new Date(time); + } + + /** + * 计算相差天数 + */ + public static int differentDaysByMillisecond(Date date1, Date date2) + { + return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24))); + } + + /** + * 计算时间差 + * + * @param endDate 最后时间 + * @param startTime 开始时间 + * @return 时间差(天/小时/分钟) + */ + public static String timeDistance(Date endDate, Date startTime) + { + long nd = 1000 * 24 * 60 * 60; + long nh = 1000 * 60 * 60; + long nm = 1000 * 60; + // long ns = 1000; + // 获得两个时间的毫秒时间差异 + long diff = endDate.getTime() - startTime.getTime(); + // 计算差多少天 + long day = diff / nd; + // 计算差多少小时 + long hour = diff % nd / nh; + // 计算差多少分钟 + long min = diff % nd % nh / nm; + // 计算差多少秒//输出结果 + // long sec = diff % nd % nh % nm / ns; + return day + "天" + hour + "小时" + min + "分钟"; + } + + /** + * 增加 LocalDateTime ==> Date + */ + public static Date toDate(LocalDateTime temporalAccessor) + { + ZonedDateTime zdt = temporalAccessor.atZone(ZoneId.systemDefault()); + return Date.from(zdt.toInstant()); + } + + /** + * 增加 LocalDate ==> Date + */ + public static Date toDate(LocalDate temporalAccessor) + { + LocalDateTime localDateTime = LocalDateTime.of(temporalAccessor, LocalTime.of(0, 0, 0)); + ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault()); + return Date.from(zdt.toInstant()); + } + + // 获取当前时间对应的 yyyy-MM-dd HH:00:00 Date 对象 + public static Date getCurrentHourStart() { + LocalDateTime now = LocalDateTime.now(); + LocalDateTime hourStart = now.withMinute(0).withSecond(0).withNano(0); + return Date.from(hourStart.atZone(ZoneId.systemDefault()).toInstant()); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DesensitizedUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DesensitizedUtil.java new file mode 100644 index 0000000..f8a4c02 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DesensitizedUtil.java @@ -0,0 +1,49 @@ +package com.ruoyi.common.utils; + +/** + * 脱敏工具类 + * + * @author ruoyi + */ +public class DesensitizedUtil +{ + /** + * 密码的全部字符都用*代替,比如:****** + * + * @param password 密码 + * @return 脱敏后的密码 + */ + public static String password(String password) + { + if (StringUtils.isBlank(password)) + { + return StringUtils.EMPTY; + } + return StringUtils.repeat('*', password.length()); + } + + /** + * 车牌中间用*代替,如果是错误的车牌,不处理 + * + * @param carLicense 完整的车牌号 + * @return 脱敏后的车牌 + */ + public static String carLicense(String carLicense) + { + if (StringUtils.isBlank(carLicense)) + { + return StringUtils.EMPTY; + } + // 普通车牌 + if (carLicense.length() == 7) + { + carLicense = StringUtils.hide(carLicense, 3, 6); + } + else if (carLicense.length() == 8) + { + // 新能源车牌 + carLicense = StringUtils.hide(carLicense, 3, 7); + } + return carLicense; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java new file mode 100644 index 0000000..c28cd22 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DictUtils.java @@ -0,0 +1,203 @@ +package com.ruoyi.common.utils; + +import java.util.Collection; +import java.util.List; + +import com.alibaba.fastjson2.JSONArray; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * 字典工具类 + * + * @author ruoyi + */ +public class DictUtils { + /** + * 分隔符 + */ + public static final String SEPARATOR = ","; + + /** + * 设置字典缓存 + * + * @param key 参数键 + * @param dictDatas 字典数据列表 + */ + public static void setDictCache(String key, List dictDatas) { + SpringUtils.getBean(RedisCache.class).setCacheObject(getCacheKey(key), dictDatas); + } + + /** + * 获取字典缓存 + * + * @param key 参数键 + * @return dictDatas 字典数据列表 + */ + public static List getDictCache(String key) { + List dictList = SpringUtils.getBean(RedisCache.class).getCacheObject(getCacheKey(key)); + if (StringUtils.isNotNull(dictList)) { + return dictList; + } + return null; + } + + /** + * 根据字典类型和字典值获取字典标签 + * + * @param dictType 字典类型 + * @param dictValue 字典值 + * @return 字典标签 + */ + public static String getDictLabel(String dictType, String dictValue) { + if (StringUtils.isEmpty(dictValue)) { + return StringUtils.EMPTY; + } + return getDictLabel(dictType, dictValue, SEPARATOR); + } + + /** + * 根据字典类型和字典标签获取字典值 + * + * @param dictType 字典类型 + * @param dictLabel 字典标签 + * @return 字典值 + */ + public static String getDictValue(String dictType, String dictLabel) { + if (StringUtils.isEmpty(dictLabel)) { + return StringUtils.EMPTY; + } + return getDictValue(dictType, dictLabel, SEPARATOR); + } + + /** + * 根据字典类型和字典值获取字典标签 + * + * @param dictType 字典类型 + * @param dictValue 字典值 + * @param separator 分隔符 + * @return 字典标签 + */ + public static String getDictLabel(String dictType, String dictValue, String separator) { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + if (StringUtils.isNull(datas)) { + return StringUtils.EMPTY; + } + if (StringUtils.containsAny(separator, dictValue)) { + for (SysDictData dict : datas) { + for (String value : dictValue.split(separator)) { + if (value.equals(dict.getDictValue())) { + propertyString.append(dict.getDictLabel()).append(separator); + break; + } + } + } + } else { + for (SysDictData dict : datas) { + if (dictValue.equals(dict.getDictValue())) { + return dict.getDictLabel(); + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 根据字典类型和字典标签获取字典值 + * + * @param dictType 字典类型 + * @param dictLabel 字典标签 + * @param separator 分隔符 + * @return 字典值 + */ + public static String getDictValue(String dictType, String dictLabel, String separator) { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + if (StringUtils.isNull(datas)) { + return StringUtils.EMPTY; + } + if (StringUtils.containsAny(separator, dictLabel)) { + for (SysDictData dict : datas) { + for (String label : dictLabel.split(separator)) { + if (label.equals(dict.getDictLabel())) { + propertyString.append(dict.getDictValue()).append(separator); + break; + } + } + } + } else { + for (SysDictData dict : datas) { + if (dictLabel.equals(dict.getDictLabel())) { + return dict.getDictValue(); + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 根据字典类型获取字典所有值 + * + * @param dictType 字典类型 + * @return 字典值 + */ + public static String getDictValues(String dictType) { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + if (StringUtils.isNull(datas)) { + return StringUtils.EMPTY; + } + for (SysDictData dict : datas) { + propertyString.append(dict.getDictValue()).append(SEPARATOR); + } + return StringUtils.stripEnd(propertyString.toString(), SEPARATOR); + } + + /** + * 根据字典类型获取字典所有标签 + * + * @param dictType 字典类型 + * @return 字典值 + */ + public static String getDictLabels(String dictType) { + StringBuilder propertyString = new StringBuilder(); + List datas = getDictCache(dictType); + if (StringUtils.isNull(datas)) { + return StringUtils.EMPTY; + } + for (SysDictData dict : datas) { + propertyString.append(dict.getDictLabel()).append(SEPARATOR); + } + return StringUtils.stripEnd(propertyString.toString(), SEPARATOR); + } + + /** + * 删除指定字典缓存 + * + * @param key 字典键 + */ + public static void removeDictCache(String key) { + SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key)); + } + + /** + * 清空字典缓存 + */ + public static void clearDictCache() { + Collection keys = SpringUtils.getBean(RedisCache.class).keys(CacheConstants.SYS_DICT_KEY + "*"); + SpringUtils.getBean(RedisCache.class).deleteObject(keys); + } + + /** + * 设置cache key + * + * @param configKey 参数键 + * @return 缓存键key + */ + public static String getCacheKey(String configKey) { + return CacheConstants.SYS_DICT_KEY + configKey; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailUtils.java new file mode 100644 index 0000000..dfbe299 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/EmailUtils.java @@ -0,0 +1,58 @@ +package com.ruoyi.common.utils; + +import lombok.RequiredArgsConstructor; +import org.springframework.mail.javamail.JavaMailSender; +import org.springframework.mail.javamail.MimeMessageHelper; +import org.springframework.stereotype.Component; +import org.springframework.beans.factory.annotation.Value; + +import javax.mail.MessagingException; +import javax.mail.internet.MimeMessage; + +/** + * 邮箱发送工具类 + */ +@Component +@RequiredArgsConstructor // Lombok自动注入依赖 +public class EmailUtils { + + private final JavaMailSender javaMailSender; // Spring Boot自动配置的邮件发送器 + + @Value("${spring.mail.username}") + private String username; + + + /** + * 发送纯文本邮件 + * @param to 收件人邮箱 + * @param subject 邮件主题 + * @param content 邮件内容 + * @throws MessagingException 邮件发送异常 + */ + public void sendTextEmail(String to, String subject, String content) throws MessagingException { + MimeMessage message = javaMailSender.createMimeMessage(); + MimeMessageHelper helper = new MimeMessageHelper(message, true, "UTF-8"); + helper.setFrom(username); // 发件人邮箱(需与配置文件中username一致) + helper.setTo(to); // 收件人邮箱 + helper.setSubject(subject); // 邮件主题 + helper.setText(content, false); // 第二个参数:false=纯文本,true=HTML + javaMailSender.send(message); + } + + /** + * 发送HTML格式邮件(可选,支持富文本) + * @param to 收件人邮箱 + * @param subject 邮件主题 + * @param htmlContent HTML内容 + * @throws MessagingException 邮件发送异常 + */ + public void sendHtmlEmail(String to, String subject, String htmlContent) throws MessagingException { + MimeMessage message = javaMailSender.createMimeMessage(); + MimeMessageHelper helper = new MimeMessageHelper(message, true, "UTF-8"); + helper.setFrom("your_qq_email@qq.com"); + helper.setTo(to); + helper.setSubject(subject); + helper.setText(htmlContent, true); // 第二个参数:true=HTML格式 + javaMailSender.send(message); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java new file mode 100644 index 0000000..214e4a0 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ExceptionUtil.java @@ -0,0 +1,39 @@ +package com.ruoyi.common.utils; + +import java.io.PrintWriter; +import java.io.StringWriter; +import org.apache.commons.lang3.exception.ExceptionUtils; + +/** + * 错误信息处理类。 + * + * @author ruoyi + */ +public class ExceptionUtil +{ + /** + * 获取exception的详细错误信息。 + */ + public static String getExceptionMessage(Throwable e) + { + StringWriter sw = new StringWriter(); + e.printStackTrace(new PrintWriter(sw, true)); + return sw.toString(); + } + + public static String getRootErrorMessage(Exception e) + { + Throwable root = ExceptionUtils.getRootCause(e); + root = (root == null ? e : root); + if (root == null) + { + return ""; + } + String msg = root.getMessage(); + if (msg == null) + { + return "null"; + } + return StringUtils.defaultString(msg); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/IpCountryQueryByApi.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/IpCountryQueryByApi.java new file mode 100644 index 0000000..f0ae4b7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/IpCountryQueryByApi.java @@ -0,0 +1,88 @@ +package com.ruoyi.common.utils; + +import com.google.gson.Gson; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import java.io.IOException; +import java.util.concurrent.TimeUnit; + +// IP 归属地响应实体(与 API 返回字段对应) +class IpApiResponse { + private String status; // 响应状态:success/fail + private String country; // 国家(英文,如 China) + private String countryCode; // 国家代码(如 CN) + private String message; // 错误信息(失败时返回) + + // getter 方法(Gson 反射解析需要) + public String getStatus() { return status; } + public String getCountry() { return country; } + public String getCountryCode() { return countryCode; } + public String getMessage() { return message; } +} + +public class IpCountryQueryByApi { + // 在线 API 地址(支持 IPv4/IPv6,lang=zh-CN 可返回中文国家名) + private static final String IP_API_URL = "http://ip-api.com/json/%s?lang=zh-CN"; + private static final OkHttpClient HTTP_CLIENT = new OkHttpClient.Builder() + .connectTimeout(5, TimeUnit.SECONDS) // 连接超时 + .readTimeout(5, TimeUnit.SECONDS) // 读取超时 + .build(); + private static final Gson GSON = new Gson(); + + /** + * 查询 IP 归属国家 + * @param ip 目标 IP 地址(如 "113.110.241.1") + * @return 国家名称(如 "中国"),失败返回 "未知" + */ + public static String getIpCountry(String ip) { + // 校验 IP 格式(简单校验,可根据需求完善) + if (ip == null || ip.trim().isEmpty() || isPrivateIp(ip)) { + return "未知"; + } + + String url = String.format(IP_API_URL, ip.trim()); + Request request = new Request.Builder().url(url).build(); + + try (Response response = HTTP_CLIENT.newCall(request).execute()) { + if (!response.isSuccessful() || response.body() == null) { + return "未知"; + } + // 解析 JSON 响应 + IpApiResponse apiResponse = GSON.fromJson(response.body().string(), IpApiResponse.class); + if ("success".equals(apiResponse.getStatus())) { + return apiResponse.getCountry(); // 返回中文国家名(如 "中国") + } else { + System.err.println("IP 查询失败:" + apiResponse.getMessage()); + return "未知"; + } + } catch (IOException e) { + System.err.println("IP 查询网络异常:" + e.getMessage()); + return "未知"; + } + } + + /** + * 判断是否为内网 IP(IPv4) + */ + private static boolean isPrivateIp(String ip) { + String[] parts = ip.split("\\."); + if (parts.length != 4) { + return false; // 非 IPv4 暂不判断 + } + int first = Integer.parseInt(parts[0]); + int second = Integer.parseInt(parts[1]); + // 内网 IP 段:10.0.0.0/8、172.16.0.0/12、192.168.0.0/16 + return (first == 10) + || (first == 172 && second >= 16 && second <= 31) + || (first == 192 && second == 168); + } + + // 测试 +// public static void main(String[] args) { +// System.out.println(getIpCountry("113.110.241.1")); // 输出:中国 +// System.out.println(getIpCountry("8.8.8.8")); // 输出:美国 +// System.out.println(getIpCountry("192.168.1.1")); // 输出:未知(内网 IP) +// System.out.println(getIpCountry("2001:4860:4860::8888")); // 输出:美国(IPv6) +// } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/JsonUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/JsonUtils.java new file mode 100644 index 0000000..ef7c535 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/JsonUtils.java @@ -0,0 +1,36 @@ +package com.ruoyi.common.utils; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; + +public class JsonUtils { + private static final ObjectMapper objectMapper = new ObjectMapper(); + + // 将对象转换为 JSON 字符串 + public static String toJson(Object obj) { + try { + return objectMapper.writeValueAsString(obj); + } catch (JsonProcessingException e) { + throw new RuntimeException("JSON serialization error", e); + } + } + + // 将 JSON 字符串转换为对象 + public static T fromJson(String json, Class valueType) { + try { + return objectMapper.readValue(json, valueType); + } catch (JsonProcessingException e) { + throw new RuntimeException("JSON deserialization error", e); + } + } + + // 将 JSON 字符串转换为复杂类型(如 Map、List 等) + public static T fromJson(String json, TypeReference valueTypeRef) { + try { + return objectMapper.readValue(json, valueTypeRef); + } catch (JsonProcessingException e) { + throw new RuntimeException("JSON deserialization error", e); + } + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ListUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ListUtils.java new file mode 100644 index 0000000..49c14dd --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ListUtils.java @@ -0,0 +1,19 @@ +package com.ruoyi.common.utils; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; + +public class ListUtils { + + public static List arrayToList(Long[] array) { + if (array == null) { + return new ArrayList<>(); + } + + return Arrays.stream(array) + .collect(Collectors.toList()); + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/LogUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/LogUtils.java new file mode 100644 index 0000000..0de30c6 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/LogUtils.java @@ -0,0 +1,18 @@ +package com.ruoyi.common.utils; + +/** + * 处理并记录日志文件 + * + * @author ruoyi + */ +public class LogUtils +{ + public static String getBlock(Object msg) + { + if (msg == null) + { + msg = ""; + } + return "[" + msg.toString() + "]"; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java new file mode 100644 index 0000000..b5be577 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/MessageUtils.java @@ -0,0 +1,33 @@ +package com.ruoyi.common.utils; + +import org.springframework.context.MessageSource; +import org.springframework.context.i18n.LocaleContextHolder; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * 获取i18n资源文件 + * + * @author ruoyi + */ +public class MessageUtils +{ + /** + * 根据消息键和参数 获取消息 委托给spring messageSource + * + * @param code 消息键 + * @param args 参数 + * @return 获取国际化翻译值 + */ + public static String message(String code, Object... args) + { + MessageSource messageSource = SpringUtils.getBean(MessageSource.class); + return messageSource.getMessage(code, args, code, LocaleContextHolder.getLocale()); + } + + public static String message(String code) + { + MessageSource messageSource = SpringUtils.getBean(MessageSource.class); + return messageSource.getMessage(code, null, code, LocaleContextHolder.getLocale()); + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/PageUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/PageUtils.java new file mode 100644 index 0000000..70e9b08 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/PageUtils.java @@ -0,0 +1,35 @@ +package com.ruoyi.common.utils; + +import com.github.pagehelper.PageHelper; +import com.ruoyi.common.core.page.PageDomain; +import com.ruoyi.common.core.page.TableSupport; +import com.ruoyi.common.utils.sql.SqlUtil; + +/** + * 分页工具类 + * + * @author ruoyi + */ +public class PageUtils extends PageHelper +{ + /** + * 设置请求分页数据 + */ + public static void startPage() + { + PageDomain pageDomain = TableSupport.buildPageRequest(); + Integer pageNum = pageDomain.getPageNum(); + Integer pageSize = pageDomain.getPageSize(); + String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy()); + Boolean reasonable = pageDomain.getReasonable(); + PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable); + } + + /** + * 清理分页的线程变量 + */ + public static void clearPage() + { + PageHelper.clearPage(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiniuUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiniuUtils.java new file mode 100644 index 0000000..89191dc --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/QiniuUtils.java @@ -0,0 +1,134 @@ +package com.ruoyi.common.utils; + +import com.alibaba.fastjson2.JSONObject; +import com.ruoyi.common.utils.file.FileUploadUtils; +import com.qiniu.common.QiniuException; +import com.qiniu.common.Zone; +import com.qiniu.http.Response; +import com.qiniu.storage.BucketManager; +import com.qiniu.storage.Configuration; +import com.qiniu.storage.UploadManager; +import com.qiniu.util.Auth; +import com.ruoyi.common.utils.uuid.UUID; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.springframework.web.multipart.MultipartFile; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +@Component +public class QiniuUtils { + + // 设置好账号的ACCESS_KEY和SECRET_KEY + @Value("${qiniu.oss.accessKey}") + private String ACCESS_KEY; + @Value("${qiniu.oss.secretKey}") + private String SECRET_KEY; + // 要上传的空间(创建空间的名称) + @Value("${qiniu.oss.bucket}") + private String bucketname; + // 使用的是测试域名 + @Value("${qiniu.oss.url}") + private String QINIU_IMAGE_DOMAIN; + + // 简单上传,使用默认策略,只需要设置上传的空间名就可以了 + private String getUpToken() { + // 密钥配置 + Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); + return auth.uploadToken(bucketname); + } + + public String upload(MultipartFile file) throws IOException { + try { + int dotPos = file.getOriginalFilename().lastIndexOf("."); + if (dotPos < 0) { + return null; + } + String fileExt = file.getOriginalFilename().substring(dotPos + 1).toLowerCase(); + + String fileName = UUID.randomUUID().toString().replaceAll("-", "") + "." + fileExt; + // 构造一个带指定Zone对象的配置类,不同的七云牛存储区域调用不同的zone + Configuration cfg = new Configuration(Zone.zone2()); + // ...其他参数参考类注释 + UploadManager uploadManager = new UploadManager(cfg); + // 调用put方法上传 + Response res = uploadManager.put(file.getBytes(), fileName, this.getUpToken()); + // 打印返回的信息 + if (res.isOK() && res.isJson()) { + // 返回这张存储照片的地址 + return QINIU_IMAGE_DOMAIN + JSONObject.parseObject(res.bodyString()).get("key"); + } else { + return null; + } + } catch (QiniuException e) { + // 请求失败时打印的异常的信息 + return null; + } + } + + public Map uploadFile(MultipartFile file, String path) throws IOException { + try { + int dotPos = file.getOriginalFilename().lastIndexOf("."); + if (dotPos < 0) { + return new HashMap<>(); + } + //上传文件的文件名 + String oldName = file.getOriginalFilename(); + + //获取文件名后缀 + String fileExt = FileUploadUtils.getExtension(file).toLowerCase(); + + String fileName = UUID.randomUUID().toString().replaceAll("-", "") + "." + fileExt; + // 构造一个带指定Zone对象的配置类,不同的七云牛存储区域调用不同的zone + Configuration cfg = new Configuration(Zone.autoZone()); + // ...其他参数参考类注释 + UploadManager uploadManager = new UploadManager(cfg); + // 调用put方法上传 + Response res = uploadManager.put(file.getBytes(), (path.startsWith("/") ? path.substring(1) : path) + "/" + fileName, getUpToken()); + // 打印返回的信息 + if (res.isOK() && res.isJson()) { + // 返回文件的存储信息 + String url = "" + JSONObject.parseObject(res.bodyString()).get("key"); + Map map = new HashMap<>(); + map.put("oldName", oldName); + map.put("url", QINIU_IMAGE_DOMAIN + url); + map.put("fileName", fileName); + return map; + } else { + return new HashMap<>(); + } + } catch (QiniuException e) { + e.printStackTrace(); + // 请求失败时打印的异常的信息 + return new HashMap<>(); + } + } + + public boolean delete(String url) { + try { + // 构造一个带指定Zone对象的配置类,不同的七云牛存储区域调用不同的zone + Configuration cfg = new Configuration(Zone.zone2()); + Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); + BucketManager bucketManager = new BucketManager(auth, cfg); + + // 获取七牛云中存储空间的名称 + int slashIndex = url.indexOf("/", 1); + String bucket = url.substring(1, slashIndex); + + // 获取文件的key(路径) + String key = url.substring(slashIndex + 1); + + // 删除文件 + bucketManager.delete(bucket, key); + + return true; + } catch (QiniuException e) { + e.printStackTrace(); + return false; + } + } + +} + diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/RandomStringUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/RandomStringUtil.java new file mode 100644 index 0000000..507f3ef --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/RandomStringUtil.java @@ -0,0 +1,91 @@ +package com.ruoyi.common.utils; + +import java.util.Random; +import java.util.concurrent.ThreadLocalRandom; + +/** + * 随机字符串生成工具类 + * 生成指定长度的字母和数字组合(排除 I、O、1、0) + */ +public class RandomStringUtil { + + // 定义可用字符集:字母(排除 I、O)+ 数字(排除 1、0) + private static final String VALID_CHARACTERS = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjklmnpqrstuvwxyz23456789"; + + // 随机数实例(使用线程安全的方式,避免多线程下重复) + private static final Random RANDOM = new Random(); + + // 定义字符池:大写字母 + 数字(共 36 个字符) + private static final String CHARACTER_POOL = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + // 目标字符串长度 + private static final int LENGTH = 8; + + /** + * 生成 8 位随机组合字符串 + * @return 8位随机字符串(含大小写字母、数字,排除 I、O、1、0) + */ + public static String generateRandomString() { + return generateRandomString(8); + } + + /** + * 生成指定长度的随机组合字符串 + * @param length 目标字符串长度(需大于0) + * @return 指定长度的随机字符串 + * @throws IllegalArgumentException 若长度小于等于0,抛出非法参数异常 + */ + public static String generateRandomString(int length) { + if (length <= 0) { + throw new IllegalArgumentException("字符串长度必须大于0"); + } + + StringBuilder sb = new StringBuilder(length); + int validLength = VALID_CHARACTERS.length(); + + for (int i = 0; i < length; i++) { + // 随机获取字符集中的索引,拼接字符 + int randomIndex = RANDOM.nextInt(validLength); + sb.append(VALID_CHARACTERS.charAt(randomIndex)); + } + + return sb.toString(); + } + + /** + * 生成 8 位随机大写字母 + 数字的字符串 + * @return 随机字符串(如:K3P7A9Z2) + */ + public static String generateRandomUUIDString() { + // 获取 ThreadLocalRandom 实例(线程安全) + ThreadLocalRandom random = ThreadLocalRandom.current(); + // 用 StringBuilder 拼接字符(高效) + StringBuilder sb = new StringBuilder(LENGTH); + + for (int i = 0; i < LENGTH; i++) { + // 随机生成 0-35 的索引(对应字符池的长度) + int index = random.nextInt(CHARACTER_POOL.length()); + // 根据索引获取字符并追加 + sb.append(CHARACTER_POOL.charAt(index)); + } + + return sb.toString(); + } + + /** + * 获取 0(包含)到 指定数字n(不包含)之间的随机整数 + * @param n 上限数字(不包含),要求 n > 0 + * @return 随机整数 + * @throws IllegalArgumentException 当n≤0时抛出异常 + */ + public static int getRandomNumberWithin(int n) { + // 校验参数合法性 + if (n <= 0) { + throw new IllegalArgumentException("指定数字必须大于0"); + } + // 创建Random实例(若频繁调用,建议将Random声明为类成员变量,避免频繁创建) + Random random = new Random(); + // nextInt(n) 会返回 0 ≤ 随机数 < n 的整数 + return random.nextInt(n); + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java new file mode 100644 index 0000000..3749b6e --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java @@ -0,0 +1,225 @@ +package com.ruoyi.common.utils; + +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; + +import com.ruoyi.common.core.domain.model.LoginAiUser; +import org.springframework.security.core.Authentication; +import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; +import org.springframework.util.PatternMatchUtils; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.exception.ServiceException; + +/** + * 安全服务工具类 + * + * @author ruoyi + */ +public class SecurityUtils +{ + + /** + * 用户ID + **/ + public static Long getUserId() + { + try + { + return getLoginUser().getUserId(); + } + catch (Exception e) + { + throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 用户ID + **/ + public static Long getAiUserId() + { + try + { + return getLoginAiUser().getUserId(); + } + catch (Exception e) + { + throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取部门ID + **/ + public static Long getDeptId() + { + try + { + return getLoginUser().getDeptId(); + } + catch (Exception e) + { + throw new ServiceException("获取部门ID异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取用户账户 + **/ + public static String getUsername() + { + try + { + return getLoginUser().getUsername(); + } + catch (Exception e) + { + throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取用户账户 + **/ + public static String getAiUsername() + { + try + { + return getLoginAiUser().getUsername(); + } + catch (Exception e) + { + throw new ServiceException("获取用户账户异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取用户 + **/ + public static LoginUser getLoginUser() + { + try + { + return (LoginUser) getAuthentication().getPrincipal(); + } + catch (Exception e) + { + throw new ServiceException("获取用户信息异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取Ai用户 + **/ + public static LoginAiUser getLoginAiUser() + { + try + { + return (LoginAiUser) getAuthentication().getPrincipal(); + } + catch (Exception e) + { + throw new ServiceException("获取用户信息异常", HttpStatus.UNAUTHORIZED); + } + } + + /** + * 获取Authentication + */ + public static Authentication getAuthentication() + { + return SecurityContextHolder.getContext().getAuthentication(); + } + + /** + * 生成BCryptPasswordEncoder密码 + * + * @param password 密码 + * @return 加密字符串 + */ + public static String encryptPassword(String password) + { + BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); + return passwordEncoder.encode(password); + } + + /** + * 判断密码是否相同 + * + * @param rawPassword 真实密码 + * @param encodedPassword 加密后字符 + * @return 结果 + */ + public static boolean matchesPassword(String rawPassword, String encodedPassword) + { + BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); + return passwordEncoder.matches(rawPassword, encodedPassword); + } + + /** + * 是否为管理员 + * + * @param userId 用户ID + * @return 结果 + */ + public static boolean isAdmin(Long userId) + { + return userId != null && 1L == userId; + } + + /** + * 验证用户是否具备某权限 + * + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + public static boolean hasPermi(String permission) + { + return hasPermi(getLoginUser().getPermissions(), permission); + } + + /** + * 判断是否包含权限 + * + * @param authorities 权限列表 + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + public static boolean hasPermi(Collection authorities, String permission) + { + return authorities.stream().filter(StringUtils::hasText) + .anyMatch(x -> Constants.ALL_PERMISSION.equals(x) || PatternMatchUtils.simpleMatch(x, permission)); + } + + /** + * 验证用户是否拥有某个角色 + * + * @param role 角色标识 + * @return 用户是否具备某角色 + */ + public static boolean hasRole(String role) + { + List roleList = getLoginUser().getUser().getRoles(); + Collection roles = roleList.stream().map(SysRole::getRoleKey).collect(Collectors.toSet()); + return hasRole(roles, role); + } + + /** + * 判断是否包含角色 + * + * @param roles 角色列表 + * @param role 角色 + * @return 用户是否具备某角色权限 + */ + public static boolean hasRole(Collection roles, String role) + { + return roles.stream().filter(StringUtils::hasText) + .anyMatch(x -> Constants.SUPER_ADMIN.equals(x) || PatternMatchUtils.simpleMatch(x, role)); + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java new file mode 100644 index 0000000..febb603 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java @@ -0,0 +1,218 @@ +package com.ruoyi.common.utils; + +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import java.net.URLEncoder; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import javax.servlet.ServletRequest; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import org.springframework.web.context.request.RequestAttributes; +import org.springframework.web.context.request.RequestContextHolder; +import org.springframework.web.context.request.ServletRequestAttributes; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.text.Convert; + +/** + * 客户端工具类 + * + * @author ruoyi + */ +public class ServletUtils +{ + /** + * 获取String参数 + */ + public static String getParameter(String name) + { + return getRequest().getParameter(name); + } + + /** + * 获取String参数 + */ + public static String getParameter(String name, String defaultValue) + { + return Convert.toStr(getRequest().getParameter(name), defaultValue); + } + + /** + * 获取Integer参数 + */ + public static Integer getParameterToInt(String name) + { + return Convert.toInt(getRequest().getParameter(name)); + } + + /** + * 获取Integer参数 + */ + public static Integer getParameterToInt(String name, Integer defaultValue) + { + return Convert.toInt(getRequest().getParameter(name), defaultValue); + } + + /** + * 获取Boolean参数 + */ + public static Boolean getParameterToBool(String name) + { + return Convert.toBool(getRequest().getParameter(name)); + } + + /** + * 获取Boolean参数 + */ + public static Boolean getParameterToBool(String name, Boolean defaultValue) + { + return Convert.toBool(getRequest().getParameter(name), defaultValue); + } + + /** + * 获得所有请求参数 + * + * @param request 请求对象{@link ServletRequest} + * @return Map + */ + public static Map getParams(ServletRequest request) + { + final Map map = request.getParameterMap(); + return Collections.unmodifiableMap(map); + } + + /** + * 获得所有请求参数 + * + * @param request 请求对象{@link ServletRequest} + * @return Map + */ + public static Map getParamMap(ServletRequest request) + { + Map params = new HashMap<>(); + for (Map.Entry entry : getParams(request).entrySet()) + { + params.put(entry.getKey(), StringUtils.join(entry.getValue(), ",")); + } + return params; + } + + /** + * 获取request + */ + public static HttpServletRequest getRequest() + { + return getRequestAttributes().getRequest(); + } + + /** + * 获取response + */ + public static HttpServletResponse getResponse() + { + return getRequestAttributes().getResponse(); + } + + /** + * 获取session + */ + public static HttpSession getSession() + { + return getRequest().getSession(); + } + + public static ServletRequestAttributes getRequestAttributes() + { + RequestAttributes attributes = RequestContextHolder.getRequestAttributes(); + return (ServletRequestAttributes) attributes; + } + + /** + * 将字符串渲染到客户端 + * + * @param response 渲染对象 + * @param string 待渲染的字符串 + */ + public static void renderString(HttpServletResponse response, String string) + { + try + { + response.setStatus(200); + response.setContentType("application/json"); + response.setCharacterEncoding("utf-8"); + response.getWriter().print(string); + } + catch (IOException e) + { + e.printStackTrace(); + } + } + + /** + * 是否是Ajax异步请求 + * + * @param request + */ + public static boolean isAjaxRequest(HttpServletRequest request) + { + String accept = request.getHeader("accept"); + if (accept != null && accept.contains("application/json")) + { + return true; + } + + String xRequestedWith = request.getHeader("X-Requested-With"); + if (xRequestedWith != null && xRequestedWith.contains("XMLHttpRequest")) + { + return true; + } + + String uri = request.getRequestURI(); + if (StringUtils.inStringIgnoreCase(uri, ".json", ".xml")) + { + return true; + } + + String ajax = request.getParameter("__ajax"); + return StringUtils.inStringIgnoreCase(ajax, "json", "xml"); + } + + /** + * 内容编码 + * + * @param str 内容 + * @return 编码后的内容 + */ + public static String urlEncode(String str) + { + try + { + return URLEncoder.encode(str, Constants.UTF8); + } + catch (UnsupportedEncodingException e) + { + return StringUtils.EMPTY; + } + } + + /** + * 内容解码 + * + * @param str 内容 + * @return 解码后的内容 + */ + public static String urlDecode(String str) + { + try + { + return URLDecoder.decode(str, Constants.UTF8); + } + catch (UnsupportedEncodingException e) + { + return StringUtils.EMPTY; + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java new file mode 100644 index 0000000..54731c7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java @@ -0,0 +1,757 @@ +package com.ruoyi.common.utils; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import org.springframework.util.AntPathMatcher; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.text.StrFormatter; + +/** + * 字符串工具类 + * + * @author ruoyi + */ +public class StringUtils extends org.apache.commons.lang3.StringUtils +{ + /** 空字符串 */ + private static final String NULLSTR = ""; + + /** 下划线 */ + private static final char SEPARATOR = '_'; + + /** 星号 */ + private static final char ASTERISK = '*'; + + /** + * 获取参数不为空值 + * + * @param value defaultValue 要判断的value + * @return value 返回值 + */ + public static T nvl(T value, T defaultValue) + { + return value != null ? value : defaultValue; + } + + /** + * * 判断一个Collection是否为空, 包含List,Set,Queue + * + * @param coll 要判断的Collection + * @return true:为空 false:非空 + */ + public static boolean isEmpty(Collection coll) + { + return isNull(coll) || coll.isEmpty(); + } + + /** + * * 判断一个Collection是否非空,包含List,Set,Queue + * + * @param coll 要判断的Collection + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Collection coll) + { + return !isEmpty(coll); + } + + /** + * * 判断一个对象数组是否为空 + * + * @param objects 要判断的对象数组 + ** @return true:为空 false:非空 + */ + public static boolean isEmpty(Object[] objects) + { + return isNull(objects) || (objects.length == 0); + } + + /** + * * 判断一个对象数组是否非空 + * + * @param objects 要判断的对象数组 + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Object[] objects) + { + return !isEmpty(objects); + } + + /** + * * 判断一个Map是否为空 + * + * @param map 要判断的Map + * @return true:为空 false:非空 + */ + public static boolean isEmpty(Map map) + { + return isNull(map) || map.isEmpty(); + } + + /** + * * 判断一个Map是否为空 + * + * @param map 要判断的Map + * @return true:非空 false:空 + */ + public static boolean isNotEmpty(Map map) + { + return !isEmpty(map); + } + + /** + * * 判断一个字符串是否为空串 + * + * @param str String + * @return true:为空 false:非空 + */ + public static boolean isEmpty(String str) + { + return isNull(str) || NULLSTR.equals(str.trim()); + } + + /** + * * 判断一个字符串是否为非空串 + * + * @param str String + * @return true:非空串 false:空串 + */ + public static boolean isNotEmpty(String str) + { + return !isEmpty(str); + } + + /** + * * 判断一个对象是否为空 + * + * @param object Object + * @return true:为空 false:非空 + */ + public static boolean isNull(Object object) + { + return object == null; + } + + /** + * * 判断一个对象是否非空 + * + * @param object Object + * @return true:非空 false:空 + */ + public static boolean isNotNull(Object object) + { + return !isNull(object); + } + + /** + * * 判断一个对象是否是数组类型(Java基本型别的数组) + * + * @param object 对象 + * @return true:是数组 false:不是数组 + */ + public static boolean isArray(Object object) + { + return isNotNull(object) && object.getClass().isArray(); + } + + /** + * 去空格 + */ + public static String trim(String str) + { + return (str == null ? "" : str.trim()); + } + + /** + * 替换指定字符串的指定区间内字符为"*" + * + * @param str 字符串 + * @param startInclude 开始位置(包含) + * @param endExclude 结束位置(不包含) + * @return 替换后的字符串 + */ + public static String hide(CharSequence str, int startInclude, int endExclude) + { + if (isEmpty(str)) + { + return NULLSTR; + } + final int strLength = str.length(); + if (startInclude > strLength) + { + return NULLSTR; + } + if (endExclude > strLength) + { + endExclude = strLength; + } + if (startInclude > endExclude) + { + // 如果起始位置大于结束位置,不替换 + return NULLSTR; + } + final char[] chars = new char[strLength]; + for (int i = 0; i < strLength; i++) + { + if (i >= startInclude && i < endExclude) + { + chars[i] = ASTERISK; + } + else + { + chars[i] = str.charAt(i); + } + } + return new String(chars); + } + + /** + * 截取字符串 + * + * @param str 字符串 + * @param start 开始 + * @return 结果 + */ + public static String substring(final String str, int start) + { + if (str == null) + { + return NULLSTR; + } + + if (start < 0) + { + start = str.length() + start; + } + + if (start < 0) + { + start = 0; + } + if (start > str.length()) + { + return NULLSTR; + } + + return str.substring(start); + } + + /** + * 截取字符串 + * + * @param str 字符串 + * @param start 开始 + * @param end 结束 + * @return 结果 + */ + public static String substring(final String str, int start, int end) + { + if (str == null) + { + return NULLSTR; + } + + if (end < 0) + { + end = str.length() + end; + } + if (start < 0) + { + start = str.length() + start; + } + + if (end > str.length()) + { + end = str.length(); + } + + if (start > end) + { + return NULLSTR; + } + + if (start < 0) + { + start = 0; + } + if (end < 0) + { + end = 0; + } + + return str.substring(start, end); + } + + /** + * 在字符串中查找第一个出现的 `open` 和最后一个出现的 `close` 之间的子字符串 + * + * @param str 要截取的字符串 + * @param open 起始字符串 + * @param close 结束字符串 + * @return 截取结果 + */ + public static String substringBetweenLast(final String str, final String open, final String close) + { + if (isEmpty(str) || isEmpty(open) || isEmpty(close)) + { + return NULLSTR; + } + final int start = str.indexOf(open); + if (start != INDEX_NOT_FOUND) + { + final int end = str.lastIndexOf(close); + if (end != INDEX_NOT_FOUND) + { + return str.substring(start + open.length(), end); + } + } + return NULLSTR; + } + + /** + * 判断是否为空,并且不是空白字符 + * + * @param str 要判断的value + * @return 结果 + */ + public static boolean hasText(String str) + { + return (str != null && !str.isEmpty() && containsText(str)); + } + + private static boolean containsText(CharSequence str) + { + int strLen = str.length(); + for (int i = 0; i < strLen; i++) + { + if (!Character.isWhitespace(str.charAt(i))) + { + return true; + } + } + return false; + } + + /** + * 格式化文本, {} 表示占位符
+ * 此方法只是简单将占位符 {} 按照顺序替换为参数
+ * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可
+ * 例:
+ * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b
+ * 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a
+ * 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b
+ * + * @param template 文本模板,被替换的部分用 {} 表示 + * @param params 参数值 + * @return 格式化后的文本 + */ + public static String format(String template, Object... params) + { + if (isEmpty(params) || isEmpty(template)) + { + return template; + } + return StrFormatter.format(template, params); + } + + /** + * 是否为http(s)://开头 + * + * @param link 链接 + * @return 结果 + */ + public static boolean ishttp(String link) + { + return StringUtils.startsWithAny(link, Constants.HTTP, Constants.HTTPS); + } + + /** + * 字符串转set + * + * @param str 字符串 + * @param sep 分隔符 + * @return set集合 + */ + public static final Set str2Set(String str, String sep) + { + return new HashSet(str2List(str, sep, true, false)); + } + + /** + * 字符串转list + * + * @param str 字符串 + * @param sep 分隔符 + * @return list集合 + */ + public static final List str2List(String str, String sep) + { + return str2List(str, sep, true, false); + } + + /** + * 字符串转list + * + * @param str 字符串 + * @param sep 分隔符 + * @param filterBlank 过滤纯空白 + * @param trim 去掉首尾空白 + * @return list集合 + */ + public static final List str2List(String str, String sep, boolean filterBlank, boolean trim) + { + List list = new ArrayList(); + if (StringUtils.isEmpty(str)) + { + return list; + } + + // 过滤空白字符串 + if (filterBlank && StringUtils.isBlank(str)) + { + return list; + } + String[] split = str.split(sep); + for (String string : split) + { + if (filterBlank && StringUtils.isBlank(string)) + { + continue; + } + if (trim) + { + string = string.trim(); + } + list.add(string); + } + + return list; + } + + /** + * 判断给定的collection列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value + * + * @param collection 给定的集合 + * @param array 给定的数组 + * @return boolean 结果 + */ + public static boolean containsAny(Collection collection, String... array) + { + if (isEmpty(collection) || isEmpty(array)) + { + return false; + } + else + { + for (String str : array) + { + if (collection.contains(str)) + { + return true; + } + } + return false; + } + } + + /** + * 查找指定字符串是否包含指定字符串列表中的任意一个字符串同时串忽略大小写 + * + * @param cs 指定字符串 + * @param searchCharSequences 需要检查的字符串数组 + * @return 是否包含任意一个字符串 + */ + public static boolean containsAnyIgnoreCase(CharSequence cs, CharSequence... searchCharSequences) + { + if (isEmpty(cs) || isEmpty(searchCharSequences)) + { + return false; + } + for (CharSequence testStr : searchCharSequences) + { + if (containsIgnoreCase(cs, testStr)) + { + return true; + } + } + return false; + } + + /** + * 驼峰转下划线命名 + */ + public static String toUnderScoreCase(String str) + { + if (str == null) + { + return null; + } + StringBuilder sb = new StringBuilder(); + // 前置字符是否大写 + boolean preCharIsUpperCase = true; + // 当前字符是否大写 + boolean curreCharIsUpperCase = true; + // 下一字符是否大写 + boolean nexteCharIsUpperCase = true; + for (int i = 0; i < str.length(); i++) + { + char c = str.charAt(i); + if (i > 0) + { + preCharIsUpperCase = Character.isUpperCase(str.charAt(i - 1)); + } + else + { + preCharIsUpperCase = false; + } + + curreCharIsUpperCase = Character.isUpperCase(c); + + if (i < (str.length() - 1)) + { + nexteCharIsUpperCase = Character.isUpperCase(str.charAt(i + 1)); + } + + if (preCharIsUpperCase && curreCharIsUpperCase && !nexteCharIsUpperCase) + { + sb.append(SEPARATOR); + } + else if ((i != 0 && !preCharIsUpperCase) && curreCharIsUpperCase) + { + sb.append(SEPARATOR); + } + sb.append(Character.toLowerCase(c)); + } + + return sb.toString(); + } + + /** + * 是否包含字符串 + * + * @param str 验证字符串 + * @param strs 字符串组 + * @return 包含返回true + */ + public static boolean inStringIgnoreCase(String str, String... strs) + { + if (str != null && strs != null) + { + for (String s : strs) + { + if (str.equalsIgnoreCase(trim(s))) + { + return true; + } + } + } + return false; + } + + /** + * 将下划线大写方式命名的字符串转换为驼峰式。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->HelloWorld + * + * @param name 转换前的下划线大写方式命名的字符串 + * @return 转换后的驼峰式命名的字符串 + */ + public static String convertToCamelCase(String name) + { + StringBuilder result = new StringBuilder(); + // 快速检查 + if (name == null || name.isEmpty()) + { + // 没必要转换 + return ""; + } + else if (!name.contains("_")) + { + // 不含下划线,仅将首字母大写 + return name.substring(0, 1).toUpperCase() + name.substring(1); + } + // 用下划线将原始字符串分割 + String[] camels = name.split("_"); + for (String camel : camels) + { + // 跳过原始字符串中开头、结尾的下换线或双重下划线 + if (camel.isEmpty()) + { + continue; + } + // 首字母大写 + result.append(camel.substring(0, 1).toUpperCase()); + result.append(camel.substring(1).toLowerCase()); + } + return result.toString(); + } + + /** + * 驼峰式命名法 + * 例如:user_name->userName + */ + public static String toCamelCase(String s) + { + if (s == null) + { + return null; + } + if (s.indexOf(SEPARATOR) == -1) + { + return s; + } + s = s.toLowerCase(); + StringBuilder sb = new StringBuilder(s.length()); + boolean upperCase = false; + for (int i = 0; i < s.length(); i++) + { + char c = s.charAt(i); + + if (c == SEPARATOR) + { + upperCase = true; + } + else if (upperCase) + { + sb.append(Character.toUpperCase(c)); + upperCase = false; + } + else + { + sb.append(c); + } + } + return sb.toString(); + } + + /** + * 查找指定字符串是否匹配指定字符串列表中的任意一个字符串 + * + * @param str 指定字符串 + * @param strs 需要检查的字符串数组 + * @return 是否匹配 + */ + public static boolean matches(String str, List strs) + { + if (isEmpty(str) || isEmpty(strs)) + { + return false; + } + for (String pattern : strs) + { + if (isMatch(pattern, str)) + { + return true; + } + } + return false; + } + + /** + * 判断url是否与规则配置: + * ? 表示单个字符; + * * 表示一层路径内的任意字符串,不可跨层级; + * ** 表示任意层路径; + * + * @param pattern 匹配规则 + * @param url 需要匹配的url + * @return + */ + public static boolean isMatch(String pattern, String url) + { + AntPathMatcher matcher = new AntPathMatcher(); + return matcher.match(pattern, url); + } + + @SuppressWarnings("unchecked") + public static T cast(Object obj) + { + return (T) obj; + } + + /** + * 数字左边补齐0,使之达到指定长度。注意,如果数字转换为字符串后,长度大于size,则只保留 最后size个字符。 + * + * @param num 数字对象 + * @param size 字符串指定长度 + * @return 返回数字的字符串格式,该字符串为指定长度。 + */ + public static final String padl(final Number num, final int size) + { + return padl(num.toString(), size, '0'); + } + + /** + * 字符串左补齐。如果原始字符串s长度大于size,则只保留最后size个字符。 + * + * @param s 原始字符串 + * @param size 字符串指定长度 + * @param c 用于补齐的字符 + * @return 返回指定长度的字符串,由原字符串左补齐或截取得到。 + */ + public static final String padl(final String s, final int size, final char c) + { + final StringBuilder sb = new StringBuilder(size); + if (s != null) + { + final int len = s.length(); + if (s.length() <= size) + { + for (int i = size - len; i > 0; i--) + { + sb.append(c); + } + sb.append(s); + } + else + { + return s.substring(len - size, len); + } + } + else + { + for (int i = size; i > 0; i--) + { + sb.append(c); + } + } + return sb.toString(); + } + + /** + * 替换模板中的大括号占位符 + * @param template 原始模板字符串(包含{xxx}占位符) + * @param replaceData 替换数据数组(顺序需与占位符一致) + * @return 替换后的完整字符串 + */ + public static String replacePlaceholders(String template, List replaceData) { + if (template == null || replaceData == null) { + return template; + } + + String temp = template; + int dataIndex = 0; + + // 循环替换所有大括号占位符 + while (temp.contains("{") && temp.contains("}") && dataIndex < replaceData.size()) { + // 找到第一个左括号和右括号的位置 + int leftBrace = temp.indexOf("{"); + int rightBrace = temp.indexOf("}", leftBrace); + + if (leftBrace == -1 || rightBrace == -1) { + break; + } + + // 替换当前占位符为对应的数据 + temp = temp.substring(0, leftBrace) + + replaceData.get(dataIndex) + + temp.substring(rightBrace + 1); + + dataIndex++; + } + + return temp; + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/TencentCosUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/TencentCosUtil.java new file mode 100644 index 0000000..dde4e7d --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/TencentCosUtil.java @@ -0,0 +1,84 @@ +package com.ruoyi.common.utils; + +import com.qcloud.cos.COSClient; +import com.qcloud.cos.ClientConfig; +import com.qcloud.cos.auth.BasicCOSCredentials; +import com.qcloud.cos.http.HttpProtocol; +import com.qcloud.cos.model.ObjectMetadata; +import com.qcloud.cos.model.PutObjectRequest; +import com.qcloud.cos.model.PutObjectResult; +import com.qcloud.cos.region.Region; +import org.joda.time.DateTime; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.springframework.web.multipart.MultipartFile; + +import java.io.InputStream; +import java.util.UUID; + +@Component +public class TencentCosUtil { + // 设置好账号的ACCESS_KEY和SECRET_KEY + @Value("${tencentCos.accessKey}") + private String ACCESS_KEY; + @Value("${tencentCos.secretKey}") + private String SECRET_KEY; + // 要上传的空间(创建空间的名称) + @Value("${tencentCos.bucketName}") + private String bucketName; + @Value("${tencentCos.endpoint}") + private String endpoint; + // 使用的是测试域名 + @Value("${tencentCos.domain}") + private String domain; + + + //文件上传 + public String upload(MultipartFile file) { + + // 3 生成 cos 客户端。 + COSClient cosClient = createCosClient(); + + // 存储桶的命名格式为 BucketName-APPID,此处填写的存储桶名称必须为此格式 + // 对象键(Key)是对象在存储桶中的唯一标识。 998u-09iu-09i-333 + //在文件名称前面添加uuid值 + String key = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8) + "_" + + file.getOriginalFilename(); + //对上传文件分组,根据当前日期 /2022/11/11 + String dateTime = new DateTime().toString("yyyy/MM/dd"); + key = dateTime + "/" + key; + try { + //获取上传文件输入流 + InputStream inputStream = file.getInputStream(); + ObjectMetadata objectMetadata = new ObjectMetadata(); + PutObjectRequest putObjectRequest = new PutObjectRequest( + bucketName, + key, + inputStream, + objectMetadata); + // 高级接口会返回一个异步结果Upload + PutObjectResult putObjectResult = cosClient.putObject(putObjectRequest); + + //返回上传文件路径 + //https://ggkt-atguigu-1310644373.cos.ap-beijing.myqcloud.com/01.jpg + String url = domain + "/" + key; + return url; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + + private COSClient createCosClient() { + //1.1 初始化用户身份信息 + BasicCOSCredentials credentials = new BasicCOSCredentials(ACCESS_KEY, SECRET_KEY); + //1.2 设置bucket的地域 + Region region = new Region(endpoint); + ClientConfig clientConfig = new ClientConfig(region); + // 这里建议设置使用 https 协议 + clientConfig.setHttpProtocol(HttpProtocol.https); + //1.3 生成cos客户端 + return new COSClient(credentials, clientConfig); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/Threads.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/Threads.java new file mode 100644 index 0000000..71fe6d5 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/Threads.java @@ -0,0 +1,99 @@ +package com.ruoyi.common.utils; + +import java.util.concurrent.CancellationException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * 线程相关工具类. + * + * @author ruoyi + */ +public class Threads +{ + private static final Logger logger = LoggerFactory.getLogger(Threads.class); + + /** + * sleep等待,单位为毫秒 + */ + public static void sleep(long milliseconds) + { + try + { + Thread.sleep(milliseconds); + } + catch (InterruptedException e) + { + return; + } + } + + /** + * 停止线程池 + * 先使用shutdown, 停止接收新任务并尝试完成所有已存在任务. + * 如果超时, 则调用shutdownNow, 取消在workQueue中Pending的任务,并中断所有阻塞函数. + * 如果仍然超時,則強制退出. + * 另对在shutdown时线程本身被调用中断做了处理. + */ + public static void shutdownAndAwaitTermination(ExecutorService pool) + { + if (pool != null && !pool.isShutdown()) + { + pool.shutdown(); + try + { + if (!pool.awaitTermination(120, TimeUnit.SECONDS)) + { + pool.shutdownNow(); + if (!pool.awaitTermination(120, TimeUnit.SECONDS)) + { + logger.info("Pool did not terminate"); + } + } + } + catch (InterruptedException ie) + { + pool.shutdownNow(); + Thread.currentThread().interrupt(); + } + } + } + + /** + * 打印线程异常信息 + */ + public static void printException(Runnable r, Throwable t) + { + if (t == null && r instanceof Future) + { + try + { + Future future = (Future) r; + if (future.isDone()) + { + future.get(); + } + } + catch (CancellationException ce) + { + t = ce; + } + catch (ExecutionException ee) + { + t = ee.getCause(); + } + catch (InterruptedException ie) + { + Thread.currentThread().interrupt(); + } + } + if (t != null) + { + logger.error(t.getMessage(), t); + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/VerifyCodeUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/VerifyCodeUtils.java new file mode 100644 index 0000000..9710e92 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/VerifyCodeUtils.java @@ -0,0 +1,50 @@ +package com.ruoyi.common.utils; + +import java.util.Random; + +/** + * 验证码生成工具类 + */ +public class VerifyCodeUtils { + + private static final String NUMBERS = "0123456789"; // 数字验证码字符集 + private static final String LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; // 字母验证码字符集 + private static final String MIXED = NUMBERS + LETTERS; // 混合字符集 + + /** + * 生成纯数字验证码 + * @param length 验证码长度 + * @return 数字验证码 + */ + public static String generateNumberCode(int length) { + return generateCode(NUMBERS, length); + } + + /** + * 生成字母+数字混合验证码 + * @param length 验证码长度 + * @return 混合验证码 + */ + public static String generateMixedCode(int length) { + return generateCode(MIXED, length); + } + + /** + * 生成自定义字符集的验证码 + * @param charSet 字符集 + * @param length 长度 + * @return 验证码 + */ + private static String generateCode(String charSet, int length) { + if (length <= 0) { + throw new IllegalArgumentException("验证码长度必须大于0"); + } + Random random = new Random(); + StringBuilder sb = new StringBuilder(length); + for (int i = 0; i < length; i++) { + int index = random.nextInt(charSet.length()); + sb.append(charSet.charAt(index)); + } + return sb.toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java new file mode 100644 index 0000000..4463662 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanUtils.java @@ -0,0 +1,110 @@ +package com.ruoyi.common.utils.bean; + +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Bean 工具类 + * + * @author ruoyi + */ +public class BeanUtils extends org.springframework.beans.BeanUtils +{ + /** Bean方法名中属性名开始的下标 */ + private static final int BEAN_METHOD_PROP_INDEX = 3; + + /** * 匹配getter方法的正则表达式 */ + private static final Pattern GET_PATTERN = Pattern.compile("get(\\p{javaUpperCase}\\w*)"); + + /** * 匹配setter方法的正则表达式 */ + private static final Pattern SET_PATTERN = Pattern.compile("set(\\p{javaUpperCase}\\w*)"); + + /** + * Bean属性复制工具方法。 + * + * @param dest 目标对象 + * @param src 源对象 + */ + public static void copyBeanProp(Object dest, Object src) + { + try + { + copyProperties(src, dest); + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + /** + * 获取对象的setter方法。 + * + * @param obj 对象 + * @return 对象的setter方法列表 + */ + public static List getSetterMethods(Object obj) + { + // setter方法列表 + List setterMethods = new ArrayList(); + + // 获取所有方法 + Method[] methods = obj.getClass().getMethods(); + + // 查找setter方法 + + for (Method method : methods) + { + Matcher m = SET_PATTERN.matcher(method.getName()); + if (m.matches() && (method.getParameterTypes().length == 1)) + { + setterMethods.add(method); + } + } + // 返回setter方法列表 + return setterMethods; + } + + /** + * 获取对象的getter方法。 + * + * @param obj 对象 + * @return 对象的getter方法列表 + */ + + public static List getGetterMethods(Object obj) + { + // getter方法列表 + List getterMethods = new ArrayList(); + // 获取所有方法 + Method[] methods = obj.getClass().getMethods(); + // 查找getter方法 + for (Method method : methods) + { + Matcher m = GET_PATTERN.matcher(method.getName()); + if (m.matches() && (method.getParameterTypes().length == 0)) + { + getterMethods.add(method); + } + } + // 返回getter方法列表 + return getterMethods; + } + + /** + * 检查Bean方法名中的属性名是否相等。
+ * 如getName()和setName()属性名一样,getName()和setAge()属性名不一样。 + * + * @param m1 方法名1 + * @param m2 方法名2 + * @return 属性名一样返回true,否则返回false + */ + + public static boolean isMethodPropEquals(String m1, String m2) + { + return m1.substring(BEAN_METHOD_PROP_INDEX).equals(m2.substring(BEAN_METHOD_PROP_INDEX)); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java new file mode 100644 index 0000000..80bfed7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/bean/BeanValidators.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.utils.bean; + +import java.util.Set; +import javax.validation.ConstraintViolation; +import javax.validation.ConstraintViolationException; +import javax.validation.Validator; + +/** + * bean对象属性验证 + * + * @author ruoyi + */ +public class BeanValidators +{ + public static void validateWithException(Validator validator, Object object, Class... groups) + throws ConstraintViolationException + { + Set> constraintViolations = validator.validate(object, groups); + if (!constraintViolations.isEmpty()) + { + throw new ConstraintViolationException(constraintViolations); + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java new file mode 100644 index 0000000..68130b9 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileTypeUtils.java @@ -0,0 +1,76 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import org.apache.commons.lang3.StringUtils; + +/** + * 文件类型工具类 + * + * @author ruoyi + */ +public class FileTypeUtils +{ + /** + * 获取文件类型 + *

+ * 例如: ruoyi.txt, 返回: txt + * + * @param file 文件名 + * @return 后缀(不含".") + */ + public static String getFileType(File file) + { + if (null == file) + { + return StringUtils.EMPTY; + } + return getFileType(file.getName()); + } + + /** + * 获取文件类型 + *

+ * 例如: ruoyi.txt, 返回: txt + * + * @param fileName 文件名 + * @return 后缀(不含".") + */ + public static String getFileType(String fileName) + { + int separatorIndex = fileName.lastIndexOf("."); + if (separatorIndex < 0) + { + return ""; + } + return fileName.substring(separatorIndex + 1).toLowerCase(); + } + + /** + * 获取文件类型 + * + * @param photoByte 文件字节码 + * @return 后缀(不含".") + */ + public static String getFileExtendName(byte[] photoByte) + { + String strFileExtendName = "JPG"; + if ((photoByte[0] == 71) && (photoByte[1] == 73) && (photoByte[2] == 70) && (photoByte[3] == 56) + && ((photoByte[4] == 55) || (photoByte[4] == 57)) && (photoByte[5] == 97)) + { + strFileExtendName = "GIF"; + } + else if ((photoByte[6] == 74) && (photoByte[7] == 70) && (photoByte[8] == 73) && (photoByte[9] == 70)) + { + strFileExtendName = "JPG"; + } + else if ((photoByte[0] == 66) && (photoByte[1] == 77)) + { + strFileExtendName = "BMP"; + } + else if ((photoByte[1] == 80) && (photoByte[2] == 78) && (photoByte[3] == 71)) + { + strFileExtendName = "PNG"; + } + return strFileExtendName; + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java new file mode 100644 index 0000000..cc1b6f4 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUploadUtils.java @@ -0,0 +1,260 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Paths; +import java.util.Objects; +import org.apache.commons.io.FilenameUtils; +import org.springframework.web.multipart.MultipartFile; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.exception.file.FileNameLengthLimitExceededException; +import com.ruoyi.common.exception.file.FileSizeLimitExceededException; +import com.ruoyi.common.exception.file.InvalidExtensionException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.uuid.IdUtils; +import com.ruoyi.common.utils.uuid.Seq; + +/** + * 文件上传工具类 + * + * @author ruoyi + */ +public class FileUploadUtils +{ + /** + * 默认大小 50M + */ + public static final long DEFAULT_MAX_SIZE = 50 * 1024 * 1024L; + + /** + * 默认的文件名最大长度 100 + */ + public static final int DEFAULT_FILE_NAME_LENGTH = 100; + + /** + * 默认上传的地址 + */ + private static String defaultBaseDir = RuoYiConfig.getProfile(); + + public static void setDefaultBaseDir(String defaultBaseDir) + { + FileUploadUtils.defaultBaseDir = defaultBaseDir; + } + + public static String getDefaultBaseDir() + { + return defaultBaseDir; + } + + /** + * 以默认配置进行文件上传 + * + * @param file 上传的文件 + * @return 文件名称 + * @throws Exception + */ + public static final String upload(MultipartFile file) throws IOException + { + try + { + return upload(getDefaultBaseDir(), file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); + } + catch (Exception e) + { + throw new IOException(e.getMessage(), e); + } + } + + /** + * 根据文件路径上传 + * + * @param baseDir 相对应用的基目录 + * @param file 上传的文件 + * @return 文件名称 + * @throws IOException + */ + public static final String upload(String baseDir, MultipartFile file) throws IOException + { + try + { + return upload(baseDir, file, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION); + } + catch (Exception e) + { + throw new IOException(e.getMessage(), e); + } + } + + /** + * 文件上传 + * + * @param baseDir 相对应用的基目录 + * @param file 上传的文件 + * @param allowedExtension 上传文件类型 + * @return 返回上传成功的文件名 + * @throws FileSizeLimitExceededException 如果超出最大大小 + * @throws FileNameLengthLimitExceededException 文件名太长 + * @throws IOException 比如读写文件出错时 + * @throws InvalidExtensionException 文件校验异常 + */ + public static final String upload(String baseDir, MultipartFile file, String[] allowedExtension) + throws FileSizeLimitExceededException, IOException, FileNameLengthLimitExceededException, + InvalidExtensionException + { + return upload(baseDir, file, allowedExtension, false); + } + + /** + * 文件上传 + * + * @param baseDir 相对应用的基目录 + * @param file 上传的文件 + * @param useCustomNaming 系统自定义文件名 + * @param allowedExtension 上传文件类型 + * @return 返回上传成功的文件名 + * @throws FileSizeLimitExceededException 如果超出最大大小 + * @throws FileNameLengthLimitExceededException 文件名太长 + * @throws IOException 比如读写文件出错时 + * @throws InvalidExtensionException 文件校验异常 + */ + public static final String upload(String baseDir, MultipartFile file, String[] allowedExtension, boolean useCustomNaming) + throws FileSizeLimitExceededException, IOException, FileNameLengthLimitExceededException, + InvalidExtensionException + { + int fileNameLength = Objects.requireNonNull(file.getOriginalFilename()).length(); + if (fileNameLength > FileUploadUtils.DEFAULT_FILE_NAME_LENGTH) + { + throw new FileNameLengthLimitExceededException(FileUploadUtils.DEFAULT_FILE_NAME_LENGTH); + } + + assertAllowed(file, allowedExtension); + + String fileName = useCustomNaming ? uuidFilename(file) : extractFilename(file); + + String absPath = getAbsoluteFile(baseDir, fileName).getAbsolutePath(); + file.transferTo(Paths.get(absPath)); + return getPathFileName(baseDir, fileName); + } + + /** + * 编码文件名(日期格式目录 + 原文件名 + 序列值 + 后缀) + */ + public static final String extractFilename(MultipartFile file) + { + return StringUtils.format("{}/{}_{}.{}", DateUtils.datePath(), FilenameUtils.getBaseName(file.getOriginalFilename()), Seq.getId(Seq.uploadSeqType), getExtension(file)); + } + + /** + * 编编码文件名(日期格式目录 + UUID + 后缀) + */ + public static final String uuidFilename(MultipartFile file) + { + return StringUtils.format("{}/{}.{}", DateUtils.datePath(), IdUtils.fastSimpleUUID(), getExtension(file)); + } + + public static final File getAbsoluteFile(String uploadDir, String fileName) throws IOException + { + File desc = new File(uploadDir + File.separator + fileName); + + if (!desc.exists()) + { + if (!desc.getParentFile().exists()) + { + desc.getParentFile().mkdirs(); + } + } + return desc; + } + + public static final String getPathFileName(String uploadDir, String fileName) throws IOException + { + int dirLastIndex = RuoYiConfig.getProfile().length() + 1; + String currentDir = StringUtils.substring(uploadDir, dirLastIndex); + return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName; + } + + /** + * 文件大小校验 + * + * @param file 上传的文件 + * @return + * @throws FileSizeLimitExceededException 如果超出最大大小 + * @throws InvalidExtensionException + */ + public static final void assertAllowed(MultipartFile file, String[] allowedExtension) + throws FileSizeLimitExceededException, InvalidExtensionException + { + long size = file.getSize(); + if (size > DEFAULT_MAX_SIZE) + { + throw new FileSizeLimitExceededException(DEFAULT_MAX_SIZE / 1024 / 1024); + } + + String fileName = file.getOriginalFilename(); + String extension = getExtension(file); + if (allowedExtension != null && !isAllowedExtension(extension, allowedExtension)) + { + if (allowedExtension == MimeTypeUtils.IMAGE_EXTENSION) + { + throw new InvalidExtensionException.InvalidImageExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.FLASH_EXTENSION) + { + throw new InvalidExtensionException.InvalidFlashExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.MEDIA_EXTENSION) + { + throw new InvalidExtensionException.InvalidMediaExtensionException(allowedExtension, extension, + fileName); + } + else if (allowedExtension == MimeTypeUtils.VIDEO_EXTENSION) + { + throw new InvalidExtensionException.InvalidVideoExtensionException(allowedExtension, extension, + fileName); + } + else + { + throw new InvalidExtensionException(allowedExtension, extension, fileName); + } + } + } + + /** + * 判断MIME类型是否是允许的MIME类型 + * + * @param extension + * @param allowedExtension + * @return + */ + public static final boolean isAllowedExtension(String extension, String[] allowedExtension) + { + for (String str : allowedExtension) + { + if (str.equalsIgnoreCase(extension)) + { + return true; + } + } + return false; + } + + /** + * 获取文件名的后缀 + * + * @param file 表单文件 + * @return 后缀名 + */ + public static final String getExtension(MultipartFile file) + { + String extension = FilenameUtils.getExtension(file.getOriginalFilename()); + if (StringUtils.isEmpty(extension)) + { + extension = MimeTypeUtils.getExtension(Objects.requireNonNull(file.getContentType())); + } + return extension; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java new file mode 100644 index 0000000..1f27265 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/FileUtils.java @@ -0,0 +1,303 @@ +package com.ruoyi.common.utils.file; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang3.ArrayUtils; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.uuid.IdUtils; + +/** + * 文件处理工具类 + * + * @author ruoyi + */ +public class FileUtils +{ + public static String FILENAME_PATTERN = "[a-zA-Z0-9_\\-\\|\\.\\u4e00-\\u9fa5]+"; + + /** + * 输出指定文件的byte数组 + * + * @param filePath 文件路径 + * @param os 输出流 + * @return + */ + public static void writeBytes(String filePath, OutputStream os) throws IOException + { + FileInputStream fis = null; + try + { + File file = new File(filePath); + if (!file.exists()) + { + throw new FileNotFoundException(filePath); + } + fis = new FileInputStream(file); + byte[] b = new byte[1024]; + int length; + while ((length = fis.read(b)) > 0) + { + os.write(b, 0, length); + } + } + catch (IOException e) + { + throw e; + } + finally + { + IOUtils.close(os); + IOUtils.close(fis); + } + } + + /** + * 写数据到文件中 + * + * @param data 数据 + * @return 目标文件 + * @throws IOException IO异常 + */ + public static String writeImportBytes(byte[] data) throws IOException + { + return writeBytes(data, RuoYiConfig.getImportPath()); + } + + /** + * 写数据到文件中 + * + * @param data 数据 + * @param uploadDir 目标文件 + * @return 目标文件 + * @throws IOException IO异常 + */ + public static String writeBytes(byte[] data, String uploadDir) throws IOException + { + FileOutputStream fos = null; + String pathName = ""; + try + { + String extension = getFileExtendName(data); + pathName = DateUtils.datePath() + "/" + IdUtils.fastUUID() + "." + extension; + File file = FileUploadUtils.getAbsoluteFile(uploadDir, pathName); + fos = new FileOutputStream(file); + fos.write(data); + } + finally + { + IOUtils.close(fos); + } + return FileUploadUtils.getPathFileName(uploadDir, pathName); + } + + /** + * 移除路径中的请求前缀片段 + * + * @param filePath 文件路径 + * @return 移除后的文件路径 + */ + public static String stripPrefix(String filePath) + { + return StringUtils.substringAfter(filePath, Constants.RESOURCE_PREFIX); + } + + /** + * 删除文件 + * + * @param filePath 文件 + * @return + */ + public static boolean deleteFile(String filePath) + { + boolean flag = false; + File file = new File(filePath); + // 路径为文件且不为空则进行删除 + if (file.isFile() && file.exists()) + { + flag = file.delete(); + } + return flag; + } + + /** + * 文件名称验证 + * + * @param filename 文件名称 + * @return true 正常 false 非法 + */ + public static boolean isValidFilename(String filename) + { + return filename.matches(FILENAME_PATTERN); + } + + /** + * 检查文件是否可下载 + * + * @param resource 需要下载的文件 + * @return true 正常 false 非法 + */ + public static boolean checkAllowDownload(String resource) + { + // 禁止目录上跳级别 + if (StringUtils.contains(resource, "..")) + { + return false; + } + + // 检查允许下载的文件规则 + if (ArrayUtils.contains(MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION, FileTypeUtils.getFileType(resource))) + { + return true; + } + + // 不在允许下载的文件规则 + return false; + } + + /** + * 下载文件名重新编码 + * + * @param request 请求对象 + * @param fileName 文件名 + * @return 编码后的文件名 + */ + public static String setFileDownloadHeader(HttpServletRequest request, String fileName) throws UnsupportedEncodingException + { + final String agent = request.getHeader("USER-AGENT"); + String filename = fileName; + if (agent.contains("MSIE")) + { + // IE浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + filename = filename.replace("+", " "); + } + else if (agent.contains("Firefox")) + { + // 火狐浏览器 + filename = new String(fileName.getBytes(), "ISO8859-1"); + } + else if (agent.contains("Chrome")) + { + // google浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + } + else + { + // 其它浏览器 + filename = URLEncoder.encode(filename, "utf-8"); + } + return filename; + } + + /** + * 下载文件名重新编码 + * + * @param response 响应对象 + * @param realFileName 真实文件名 + */ + public static void setAttachmentResponseHeader(HttpServletResponse response, String realFileName) throws UnsupportedEncodingException + { + String percentEncodedFileName = percentEncode(realFileName); + + StringBuilder contentDispositionValue = new StringBuilder(); + contentDispositionValue.append("attachment; filename=") + .append(percentEncodedFileName) + .append(";") + .append("filename*=") + .append("utf-8''") + .append(percentEncodedFileName); + + response.addHeader("Access-Control-Expose-Headers", "Content-Disposition,download-filename"); + response.setHeader("Content-disposition", contentDispositionValue.toString()); + response.setHeader("download-filename", percentEncodedFileName); + } + + /** + * 百分号编码工具方法 + * + * @param s 需要百分号编码的字符串 + * @return 百分号编码后的字符串 + */ + public static String percentEncode(String s) throws UnsupportedEncodingException + { + String encode = URLEncoder.encode(s, StandardCharsets.UTF_8.toString()); + return encode.replaceAll("\\+", "%20"); + } + + /** + * 获取图像后缀 + * + * @param photoByte 图像数据 + * @return 后缀名 + */ + public static String getFileExtendName(byte[] photoByte) + { + String strFileExtendName = "jpg"; + if ((photoByte[0] == 71) && (photoByte[1] == 73) && (photoByte[2] == 70) && (photoByte[3] == 56) + && ((photoByte[4] == 55) || (photoByte[4] == 57)) && (photoByte[5] == 97)) + { + strFileExtendName = "gif"; + } + else if ((photoByte[6] == 74) && (photoByte[7] == 70) && (photoByte[8] == 73) && (photoByte[9] == 70)) + { + strFileExtendName = "jpg"; + } + else if ((photoByte[0] == 66) && (photoByte[1] == 77)) + { + strFileExtendName = "bmp"; + } + else if ((photoByte[1] == 80) && (photoByte[2] == 78) && (photoByte[3] == 71)) + { + strFileExtendName = "png"; + } + return strFileExtendName; + } + + /** + * 获取文件名称 /profile/upload/2022/04/16/ruoyi.png -- ruoyi.png + * + * @param fileName 路径名称 + * @return 没有文件路径的名称 + */ + public static String getName(String fileName) + { + if (fileName == null) + { + return null; + } + int lastUnixPos = fileName.lastIndexOf('/'); + int lastWindowsPos = fileName.lastIndexOf('\\'); + int index = Math.max(lastUnixPos, lastWindowsPos); + return fileName.substring(index + 1); + } + + /** + * 获取不带后缀文件名称 /profile/upload/2022/04/16/ruoyi.png -- ruoyi + * + * @param fileName 路径名称 + * @return 没有文件路径和后缀的名称 + */ + public static String getNameNotSuffix(String fileName) + { + if (fileName == null) + { + return null; + } + String baseName = FilenameUtils.getBaseName(fileName); + return baseName; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java new file mode 100644 index 0000000..432dfda --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/ImageUtils.java @@ -0,0 +1,98 @@ +package com.ruoyi.common.utils.file; + +import java.io.ByteArrayInputStream; +import java.io.FileInputStream; +import java.io.InputStream; +import java.net.URL; +import java.net.URLConnection; +import java.util.Arrays; +import org.apache.poi.util.IOUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; + +/** + * 图片处理工具类 + * + * @author ruoyi + */ +public class ImageUtils +{ + private static final Logger log = LoggerFactory.getLogger(ImageUtils.class); + + public static byte[] getImage(String imagePath) + { + InputStream is = getFile(imagePath); + try + { + return IOUtils.toByteArray(is); + } + catch (Exception e) + { + log.error("图片加载异常 {}", e); + return null; + } + finally + { + IOUtils.closeQuietly(is); + } + } + + public static InputStream getFile(String imagePath) + { + try + { + byte[] result = readFile(imagePath); + result = Arrays.copyOf(result, result.length); + return new ByteArrayInputStream(result); + } + catch (Exception e) + { + log.error("获取图片异常 {}", e); + } + return null; + } + + /** + * 读取文件为字节数据 + * + * @param url 地址 + * @return 字节数据 + */ + public static byte[] readFile(String url) + { + InputStream in = null; + try + { + if (url.startsWith("http")) + { + // 网络地址 + URL urlObj = new URL(url); + URLConnection urlConnection = urlObj.openConnection(); + urlConnection.setConnectTimeout(30 * 1000); + urlConnection.setReadTimeout(60 * 1000); + urlConnection.setDoInput(true); + in = urlConnection.getInputStream(); + } + else + { + // 本机地址 + String localPath = RuoYiConfig.getProfile(); + String downloadPath = localPath + StringUtils.substringAfter(url, Constants.RESOURCE_PREFIX); + in = new FileInputStream(downloadPath); + } + return IOUtils.toByteArray(in); + } + catch (Exception e) + { + log.error("获取文件路径异常 {}", e); + return null; + } + finally + { + IOUtils.closeQuietly(in); + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java new file mode 100644 index 0000000..f968f1a --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/file/MimeTypeUtils.java @@ -0,0 +1,59 @@ +package com.ruoyi.common.utils.file; + +/** + * 媒体类型工具类 + * + * @author ruoyi + */ +public class MimeTypeUtils +{ + public static final String IMAGE_PNG = "image/png"; + + public static final String IMAGE_JPG = "image/jpg"; + + public static final String IMAGE_JPEG = "image/jpeg"; + + public static final String IMAGE_BMP = "image/bmp"; + + public static final String IMAGE_GIF = "image/gif"; + + public static final String[] IMAGE_EXTENSION = { "bmp", "gif", "jpg", "jpeg", "png" }; + + public static final String[] FLASH_EXTENSION = { "swf", "flv" }; + + public static final String[] MEDIA_EXTENSION = { "swf", "flv", "mp3", "wav", "wma", "wmv", "mid", "avi", "mpg", + "asf", "rm", "rmvb" }; + + public static final String[] VIDEO_EXTENSION = { "mp4", "avi", "rmvb" }; + + public static final String[] DEFAULT_ALLOWED_EXTENSION = { + // 图片 + "bmp", "gif", "jpg", "jpeg", "png", + // word excel powerpoint + "doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt", + // 压缩文件 + "rar", "zip", "gz", "bz2", + // 视频格式 + "mp4", "avi", "rmvb", + // pdf + "pdf" }; + + public static String getExtension(String prefix) + { + switch (prefix) + { + case IMAGE_PNG: + return "png"; + case IMAGE_JPG: + return "jpg"; + case IMAGE_JPEG: + return "jpeg"; + case IMAGE_BMP: + return "bmp"; + case IMAGE_GIF: + return "gif"; + default: + return ""; + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java new file mode 100644 index 0000000..f52e83e --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/EscapeUtil.java @@ -0,0 +1,167 @@ +package com.ruoyi.common.utils.html; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 转义和反转义工具类 + * + * @author ruoyi + */ +public class EscapeUtil +{ + public static final String RE_HTML_MARK = "(<[^<]*?>)|(<[\\s]*?/[^<]*?>)|(<[^<]*?/[\\s]*?>)"; + + private static final char[][] TEXT = new char[64][]; + + static + { + for (int i = 0; i < 64; i++) + { + TEXT[i] = new char[] { (char) i }; + } + + // special HTML characters + TEXT['\''] = "'".toCharArray(); // 单引号 + TEXT['"'] = """.toCharArray(); // 双引号 + TEXT['&'] = "&".toCharArray(); // &符 + TEXT['<'] = "<".toCharArray(); // 小于号 + TEXT['>'] = ">".toCharArray(); // 大于号 + } + + /** + * 转义文本中的HTML字符为安全的字符 + * + * @param text 被转义的文本 + * @return 转义后的文本 + */ + public static String escape(String text) + { + return encode(text); + } + + /** + * 还原被转义的HTML特殊字符 + * + * @param content 包含转义符的HTML内容 + * @return 转换后的字符串 + */ + public static String unescape(String content) + { + return decode(content); + } + + /** + * 清除所有HTML标签,但是不删除标签内的内容 + * + * @param content 文本 + * @return 清除标签后的文本 + */ + public static String clean(String content) + { + return new HTMLFilter().filter(content); + } + + /** + * Escape编码 + * + * @param text 被编码的文本 + * @return 编码后的字符 + */ + private static String encode(String text) + { + if (StringUtils.isEmpty(text)) + { + return StringUtils.EMPTY; + } + + final StringBuilder tmp = new StringBuilder(text.length() * 6); + char c; + for (int i = 0; i < text.length(); i++) + { + c = text.charAt(i); + if (c < 256) + { + tmp.append("%"); + if (c < 16) + { + tmp.append("0"); + } + tmp.append(Integer.toString(c, 16)); + } + else + { + tmp.append("%u"); + if (c <= 0xfff) + { + // issue#I49JU8@Gitee + tmp.append("0"); + } + tmp.append(Integer.toString(c, 16)); + } + } + return tmp.toString(); + } + + /** + * Escape解码 + * + * @param content 被转义的内容 + * @return 解码后的字符串 + */ + public static String decode(String content) + { + if (StringUtils.isEmpty(content)) + { + return content; + } + + StringBuilder tmp = new StringBuilder(content.length()); + int lastPos = 0, pos = 0; + char ch; + while (lastPos < content.length()) + { + pos = content.indexOf("%", lastPos); + if (pos == lastPos) + { + if (content.charAt(pos + 1) == 'u') + { + ch = (char) Integer.parseInt(content.substring(pos + 2, pos + 6), 16); + tmp.append(ch); + lastPos = pos + 6; + } + else + { + ch = (char) Integer.parseInt(content.substring(pos + 1, pos + 3), 16); + tmp.append(ch); + lastPos = pos + 3; + } + } + else + { + if (pos == -1) + { + tmp.append(content.substring(lastPos)); + lastPos = content.length(); + } + else + { + tmp.append(content.substring(lastPos, pos)); + lastPos = pos; + } + } + } + return tmp.toString(); + } + + public static void main(String[] args) + { + String html = ""; + String escape = EscapeUtil.escape(html); + // String html = "ipt>alert(\"XSS\")ipt>"; + // String html = "<123"; + // String html = "123>"; + System.out.println("clean: " + EscapeUtil.clean(html)); + System.out.println("escape: " + escape); + System.out.println("unescape: " + EscapeUtil.unescape(escape)); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java new file mode 100644 index 0000000..ebff3fd --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java @@ -0,0 +1,570 @@ +package com.ruoyi.common.utils.html; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * HTML过滤器,用于去除XSS漏洞隐患。 + * + * @author ruoyi + */ +public final class HTMLFilter +{ + /** + * regex flag union representing /si modifiers in php + **/ + private static final int REGEX_FLAGS_SI = Pattern.CASE_INSENSITIVE | Pattern.DOTALL; + private static final Pattern P_COMMENTS = Pattern.compile("", Pattern.DOTALL); + private static final Pattern P_COMMENT = Pattern.compile("^!--(.*)--$", REGEX_FLAGS_SI); + private static final Pattern P_TAGS = Pattern.compile("<(.*?)>", Pattern.DOTALL); + private static final Pattern P_END_TAG = Pattern.compile("^/([a-z0-9]+)", REGEX_FLAGS_SI); + private static final Pattern P_START_TAG = Pattern.compile("^([a-z0-9]+)(.*?)(/?)$", REGEX_FLAGS_SI); + private static final Pattern P_QUOTED_ATTRIBUTES = Pattern.compile("([a-z0-9]+)=([\"'])(.*?)\\2", REGEX_FLAGS_SI); + private static final Pattern P_UNQUOTED_ATTRIBUTES = Pattern.compile("([a-z0-9]+)(=)([^\"\\s']+)", REGEX_FLAGS_SI); + private static final Pattern P_PROTOCOL = Pattern.compile("^([^:]+):", REGEX_FLAGS_SI); + private static final Pattern P_ENTITY = Pattern.compile("&#(\\d+);?"); + private static final Pattern P_ENTITY_UNICODE = Pattern.compile("&#x([0-9a-f]+);?"); + private static final Pattern P_ENCODE = Pattern.compile("%([0-9a-f]{2});?"); + private static final Pattern P_VALID_ENTITIES = Pattern.compile("&([^&;]*)(?=(;|&|$))"); + private static final Pattern P_VALID_QUOTES = Pattern.compile("(>|^)([^<]+?)(<|$)", Pattern.DOTALL); + private static final Pattern P_END_ARROW = Pattern.compile("^>"); + private static final Pattern P_BODY_TO_END = Pattern.compile("<([^>]*?)(?=<|$)"); + private static final Pattern P_XML_CONTENT = Pattern.compile("(^|>)([^<]*?)(?=>)"); + private static final Pattern P_STRAY_LEFT_ARROW = Pattern.compile("<([^>]*?)(?=<|$)"); + private static final Pattern P_STRAY_RIGHT_ARROW = Pattern.compile("(^|>)([^<]*?)(?=>)"); + private static final Pattern P_AMP = Pattern.compile("&"); + private static final Pattern P_QUOTE = Pattern.compile("\""); + private static final Pattern P_LEFT_ARROW = Pattern.compile("<"); + private static final Pattern P_RIGHT_ARROW = Pattern.compile(">"); + private static final Pattern P_BOTH_ARROWS = Pattern.compile("<>"); + + // @xxx could grow large... maybe use sesat's ReferenceMap + private static final ConcurrentMap P_REMOVE_PAIR_BLANKS = new ConcurrentHashMap<>(); + private static final ConcurrentMap P_REMOVE_SELF_BLANKS = new ConcurrentHashMap<>(); + + /** + * set of allowed html elements, along with allowed attributes for each element + **/ + private final Map> vAllowed; + /** + * counts of open tags for each (allowable) html element + **/ + private final Map vTagCounts = new HashMap<>(); + + /** + * html elements which must always be self-closing (e.g. "") + **/ + private final String[] vSelfClosingTags; + /** + * html elements which must always have separate opening and closing tags (e.g. "") + **/ + private final String[] vNeedClosingTags; + /** + * set of disallowed html elements + **/ + private final String[] vDisallowed; + /** + * attributes which should be checked for valid protocols + **/ + private final String[] vProtocolAtts; + /** + * allowed protocols + **/ + private final String[] vAllowedProtocols; + /** + * tags which should be removed if they contain no content (e.g. "" or "") + **/ + private final String[] vRemoveBlanks; + /** + * entities allowed within html markup + **/ + private final String[] vAllowedEntities; + /** + * flag determining whether comments are allowed in input String. + */ + private final boolean stripComment; + private final boolean encodeQuotes; + /** + * flag determining whether to try to make tags when presented with "unbalanced" angle brackets (e.g. "" + * becomes " text "). If set to false, unbalanced angle brackets will be html escaped. + */ + private final boolean alwaysMakeTags; + + /** + * Default constructor. + */ + public HTMLFilter() + { + vAllowed = new HashMap<>(); + + final ArrayList a_atts = new ArrayList<>(); + a_atts.add("href"); + a_atts.add("target"); + vAllowed.put("a", a_atts); + + final ArrayList img_atts = new ArrayList<>(); + img_atts.add("src"); + img_atts.add("width"); + img_atts.add("height"); + img_atts.add("alt"); + vAllowed.put("img", img_atts); + + final ArrayList no_atts = new ArrayList<>(); + vAllowed.put("b", no_atts); + vAllowed.put("strong", no_atts); + vAllowed.put("i", no_atts); + vAllowed.put("em", no_atts); + + vSelfClosingTags = new String[] { "img" }; + vNeedClosingTags = new String[] { "a", "b", "strong", "i", "em" }; + vDisallowed = new String[] {}; + vAllowedProtocols = new String[] { "http", "mailto", "https" }; // no ftp. + vProtocolAtts = new String[] { "src", "href" }; + vRemoveBlanks = new String[] { "a", "b", "strong", "i", "em" }; + vAllowedEntities = new String[] { "amp", "gt", "lt", "quot" }; + stripComment = true; + encodeQuotes = true; + alwaysMakeTags = false; + } + + /** + * Map-parameter configurable constructor. + * + * @param conf map containing configuration. keys match field names. + */ + @SuppressWarnings("unchecked") + public HTMLFilter(final Map conf) + { + + assert conf.containsKey("vAllowed") : "configuration requires vAllowed"; + assert conf.containsKey("vSelfClosingTags") : "configuration requires vSelfClosingTags"; + assert conf.containsKey("vNeedClosingTags") : "configuration requires vNeedClosingTags"; + assert conf.containsKey("vDisallowed") : "configuration requires vDisallowed"; + assert conf.containsKey("vAllowedProtocols") : "configuration requires vAllowedProtocols"; + assert conf.containsKey("vProtocolAtts") : "configuration requires vProtocolAtts"; + assert conf.containsKey("vRemoveBlanks") : "configuration requires vRemoveBlanks"; + assert conf.containsKey("vAllowedEntities") : "configuration requires vAllowedEntities"; + + vAllowed = Collections.unmodifiableMap((HashMap>) conf.get("vAllowed")); + vSelfClosingTags = (String[]) conf.get("vSelfClosingTags"); + vNeedClosingTags = (String[]) conf.get("vNeedClosingTags"); + vDisallowed = (String[]) conf.get("vDisallowed"); + vAllowedProtocols = (String[]) conf.get("vAllowedProtocols"); + vProtocolAtts = (String[]) conf.get("vProtocolAtts"); + vRemoveBlanks = (String[]) conf.get("vRemoveBlanks"); + vAllowedEntities = (String[]) conf.get("vAllowedEntities"); + stripComment = conf.containsKey("stripComment") ? (Boolean) conf.get("stripComment") : true; + encodeQuotes = conf.containsKey("encodeQuotes") ? (Boolean) conf.get("encodeQuotes") : true; + alwaysMakeTags = conf.containsKey("alwaysMakeTags") ? (Boolean) conf.get("alwaysMakeTags") : true; + } + + private void reset() + { + vTagCounts.clear(); + } + + // --------------------------------------------------------------- + // my versions of some PHP library functions + public static String chr(final int decimal) + { + return String.valueOf((char) decimal); + } + + public static String htmlSpecialChars(final String s) + { + String result = s; + result = regexReplace(P_AMP, "&", result); + result = regexReplace(P_QUOTE, """, result); + result = regexReplace(P_LEFT_ARROW, "<", result); + result = regexReplace(P_RIGHT_ARROW, ">", result); + return result; + } + + // --------------------------------------------------------------- + + /** + * given a user submitted input String, filter out any invalid or restricted html. + * + * @param input text (i.e. submitted by a user) than may contain html + * @return "clean" version of input, with only valid, whitelisted html elements allowed + */ + public String filter(final String input) + { + reset(); + String s = input; + + s = escapeComments(s); + + s = balanceHTML(s); + + s = checkTags(s); + + s = processRemoveBlanks(s); + + // s = validateEntities(s); + + return s; + } + + public boolean isAlwaysMakeTags() + { + return alwaysMakeTags; + } + + public boolean isStripComments() + { + return stripComment; + } + + private String escapeComments(final String s) + { + final Matcher m = P_COMMENTS.matcher(s); + final StringBuffer buf = new StringBuffer(); + if (m.find()) + { + final String match = m.group(1); // (.*?) + m.appendReplacement(buf, Matcher.quoteReplacement("")); + } + m.appendTail(buf); + + return buf.toString(); + } + + private String balanceHTML(String s) + { + if (alwaysMakeTags) + { + // + // try and form html + // + s = regexReplace(P_END_ARROW, "", s); + // 不追加结束标签 + s = regexReplace(P_BODY_TO_END, "<$1>", s); + s = regexReplace(P_XML_CONTENT, "$1<$2", s); + + } + else + { + // + // escape stray brackets + // + s = regexReplace(P_STRAY_LEFT_ARROW, "<$1", s); + s = regexReplace(P_STRAY_RIGHT_ARROW, "$1$2><", s); + + // + // the last regexp causes '<>' entities to appear + // (we need to do a lookahead assertion so that the last bracket can + // be used in the next pass of the regexp) + // + s = regexReplace(P_BOTH_ARROWS, "", s); + } + + return s; + } + + private String checkTags(String s) + { + Matcher m = P_TAGS.matcher(s); + + final StringBuffer buf = new StringBuffer(); + while (m.find()) + { + String replaceStr = m.group(1); + replaceStr = processTag(replaceStr); + m.appendReplacement(buf, Matcher.quoteReplacement(replaceStr)); + } + m.appendTail(buf); + + // these get tallied in processTag + // (remember to reset before subsequent calls to filter method) + final StringBuilder sBuilder = new StringBuilder(buf.toString()); + for (String key : vTagCounts.keySet()) + { + for (int ii = 0; ii < vTagCounts.get(key); ii++) + { + sBuilder.append(""); + } + } + s = sBuilder.toString(); + + return s; + } + + private String processRemoveBlanks(final String s) + { + String result = s; + for (String tag : vRemoveBlanks) + { + if (!P_REMOVE_PAIR_BLANKS.containsKey(tag)) + { + P_REMOVE_PAIR_BLANKS.putIfAbsent(tag, Pattern.compile("<" + tag + "(\\s[^>]*)?>")); + } + result = regexReplace(P_REMOVE_PAIR_BLANKS.get(tag), "", result); + if (!P_REMOVE_SELF_BLANKS.containsKey(tag)) + { + P_REMOVE_SELF_BLANKS.putIfAbsent(tag, Pattern.compile("<" + tag + "(\\s[^>]*)?/>")); + } + result = regexReplace(P_REMOVE_SELF_BLANKS.get(tag), "", result); + } + + return result; + } + + private static String regexReplace(final Pattern regex_pattern, final String replacement, final String s) + { + Matcher m = regex_pattern.matcher(s); + return m.replaceAll(replacement); + } + + private String processTag(final String s) + { + // ending tags + Matcher m = P_END_TAG.matcher(s); + if (m.find()) + { + final String name = m.group(1).toLowerCase(); + if (allowed(name)) + { + if (!inArray(name, vSelfClosingTags)) + { + if (vTagCounts.containsKey(name)) + { + vTagCounts.put(name, vTagCounts.get(name) - 1); + return ""; + } + } + } + } + + // starting tags + m = P_START_TAG.matcher(s); + if (m.find()) + { + final String name = m.group(1).toLowerCase(); + final String body = m.group(2); + String ending = m.group(3); + + // debug( "in a starting tag, name='" + name + "'; body='" + body + "'; ending='" + ending + "'" ); + if (allowed(name)) + { + final StringBuilder params = new StringBuilder(); + + final Matcher m2 = P_QUOTED_ATTRIBUTES.matcher(body); + final Matcher m3 = P_UNQUOTED_ATTRIBUTES.matcher(body); + final List paramNames = new ArrayList<>(); + final List paramValues = new ArrayList<>(); + while (m2.find()) + { + paramNames.add(m2.group(1)); // ([a-z0-9]+) + paramValues.add(m2.group(3)); // (.*?) + } + while (m3.find()) + { + paramNames.add(m3.group(1)); // ([a-z0-9]+) + paramValues.add(m3.group(3)); // ([^\"\\s']+) + } + + String paramName, paramValue; + for (int ii = 0; ii < paramNames.size(); ii++) + { + paramName = paramNames.get(ii).toLowerCase(); + paramValue = paramValues.get(ii); + + // debug( "paramName='" + paramName + "'" ); + // debug( "paramValue='" + paramValue + "'" ); + // debug( "allowed? " + vAllowed.get( name ).contains( paramName ) ); + + if (allowedAttribute(name, paramName)) + { + if (inArray(paramName, vProtocolAtts)) + { + paramValue = processParamProtocol(paramValue); + } + params.append(' ').append(paramName).append("=\\\"").append(paramValue).append("\\\""); + } + } + + if (inArray(name, vSelfClosingTags)) + { + ending = " /"; + } + + if (inArray(name, vNeedClosingTags)) + { + ending = ""; + } + + if (ending == null || ending.length() < 1) + { + if (vTagCounts.containsKey(name)) + { + vTagCounts.put(name, vTagCounts.get(name) + 1); + } + else + { + vTagCounts.put(name, 1); + } + } + else + { + ending = " /"; + } + return "<" + name + params + ending + ">"; + } + else + { + return ""; + } + } + + // comments + m = P_COMMENT.matcher(s); + if (!stripComment && m.find()) + { + return "<" + m.group() + ">"; + } + + return ""; + } + + private String processParamProtocol(String s) + { + s = decodeEntities(s); + final Matcher m = P_PROTOCOL.matcher(s); + if (m.find()) + { + final String protocol = m.group(1); + if (!inArray(protocol, vAllowedProtocols)) + { + // bad protocol, turn into local anchor link instead + s = "#" + s.substring(protocol.length() + 1); + if (s.startsWith("#//")) + { + s = "#" + s.substring(3); + } + } + } + + return s; + } + + private String decodeEntities(String s) + { + StringBuffer buf = new StringBuffer(); + + Matcher m = P_ENTITY.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.decode(match).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + buf = new StringBuffer(); + m = P_ENTITY_UNICODE.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.valueOf(match, 16).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + buf = new StringBuffer(); + m = P_ENCODE.matcher(s); + while (m.find()) + { + final String match = m.group(1); + final int decimal = Integer.valueOf(match, 16).intValue(); + m.appendReplacement(buf, Matcher.quoteReplacement(chr(decimal))); + } + m.appendTail(buf); + s = buf.toString(); + + s = validateEntities(s); + return s; + } + + private String validateEntities(final String s) + { + StringBuffer buf = new StringBuffer(); + + // validate entities throughout the string + Matcher m = P_VALID_ENTITIES.matcher(s); + while (m.find()) + { + final String one = m.group(1); // ([^&;]*) + final String two = m.group(2); // (?=(;|&|$)) + m.appendReplacement(buf, Matcher.quoteReplacement(checkEntity(one, two))); + } + m.appendTail(buf); + + return encodeQuotes(buf.toString()); + } + + private String encodeQuotes(final String s) + { + if (encodeQuotes) + { + StringBuffer buf = new StringBuffer(); + Matcher m = P_VALID_QUOTES.matcher(s); + while (m.find()) + { + final String one = m.group(1); // (>|^) + final String two = m.group(2); // ([^<]+?) + final String three = m.group(3); // (<|$) + // 不替换双引号为",防止json格式无效 regexReplace(P_QUOTE, """, two) + m.appendReplacement(buf, Matcher.quoteReplacement(one + two + three)); + } + m.appendTail(buf); + return buf.toString(); + } + else + { + return s; + } + } + + private String checkEntity(final String preamble, final String term) + { + + return ";".equals(term) && isValidEntity(preamble) ? '&' + preamble : "&" + preamble; + } + + private boolean isValidEntity(final String entity) + { + return inArray(entity, vAllowedEntities); + } + + private static boolean inArray(final String s, final String[] array) + { + for (String item : array) + { + if (item != null && item.equals(s)) + { + return true; + } + } + return false; + } + + private boolean allowed(final String name) + { + return (vAllowed.isEmpty() || vAllowed.containsKey(name)) && !inArray(name, vDisallowed); + } + + private boolean allowedAttribute(final String name, final String paramName) + { + return allowed(name) && (vAllowed.isEmpty() || vAllowed.get(name).contains(paramName)); + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpHelper.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpHelper.java new file mode 100644 index 0000000..589d123 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpHelper.java @@ -0,0 +1,55 @@ +package com.ruoyi.common.utils.http; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.nio.charset.StandardCharsets; +import javax.servlet.ServletRequest; +import org.apache.commons.lang3.exception.ExceptionUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * 通用http工具封装 + * + * @author ruoyi + */ +public class HttpHelper +{ + private static final Logger LOGGER = LoggerFactory.getLogger(HttpHelper.class); + + public static String getBodyString(ServletRequest request) + { + StringBuilder sb = new StringBuilder(); + BufferedReader reader = null; + try (InputStream inputStream = request.getInputStream()) + { + reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8)); + String line = ""; + while ((line = reader.readLine()) != null) + { + sb.append(line); + } + } + catch (IOException e) + { + LOGGER.warn("getBodyString出现问题!"); + } + finally + { + if (reader != null) + { + try + { + reader.close(); + } + catch (IOException e) + { + LOGGER.error(ExceptionUtils.getMessage(e)); + } + } + } + return sb.toString(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java new file mode 100644 index 0000000..534d21c --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/HttpUtils.java @@ -0,0 +1,293 @@ +package com.ruoyi.common.utils.http; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.net.ConnectException; +import java.net.SocketTimeoutException; +import java.net.URL; +import java.net.URLConnection; +import java.nio.charset.StandardCharsets; +import java.security.cert.X509Certificate; +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSession; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.http.MediaType; + +/** + * 通用http发送方法 + * + * @author ruoyi + */ +public class HttpUtils +{ + private static final Logger log = LoggerFactory.getLogger(HttpUtils.class); + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url) + { + return sendGet(url, StringUtils.EMPTY); + } + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url, String param) + { + return sendGet(url, param, Constants.UTF8); + } + + /** + * 向指定 URL 发送GET方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @param contentType 编码类型 + * @return 所代表远程资源的响应结果 + */ + public static String sendGet(String url, String param, String contentType) + { + StringBuilder result = new StringBuilder(); + BufferedReader in = null; + try + { + String urlNameString = StringUtils.isNotBlank(param) ? url + "?" + param : url; + log.info("sendGet - {}", urlNameString); + URL realUrl = new URL(urlNameString); + URLConnection connection = realUrl.openConnection(); + connection.setRequestProperty("accept", "*/*"); + connection.setRequestProperty("connection", "Keep-Alive"); + connection.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"); + connection.connect(); + in = new BufferedReader(new InputStreamReader(connection.getInputStream(), contentType)); + String line; + while ((line = in.readLine()) != null) + { + result.append(line); + } + log.info("recv - {}", result); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendGet ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendGet SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用HttpUtils.sendGet IOException, url=" + url + ",param=" + param, e); + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendGet Exception, url=" + url + ",param=" + param, e); + } + finally + { + try + { + if (in != null) + { + in.close(); + } + } + catch (Exception ex) + { + log.error("调用in.close Exception, url=" + url + ",param=" + param, ex); + } + } + return result.toString(); + } + + /** + * 向指定 URL 发送POST方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return 所代表远程资源的响应结果 + */ + public static String sendPost(String url, String param) + { + return sendPost(url, param, MediaType.APPLICATION_FORM_URLENCODED_VALUE); + } + + /** + * 向指定 URL 发送POST方法的请求 + * + * @param url 发送请求的 URL + * @param param 请求参数 + * @param contentType 内容类型 + * @return 所代表远程资源的响应结果 + */ + public static String sendPost(String url, String param, String contentType) + { + PrintWriter out = null; + BufferedReader in = null; + StringBuilder result = new StringBuilder(); + try + { + log.info("sendPost - {}", url); + URL realUrl = new URL(url); + URLConnection conn = realUrl.openConnection(); + conn.setRequestProperty("accept", "*/*"); + conn.setRequestProperty("connection", "Keep-Alive"); + conn.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"); + conn.setRequestProperty("Accept-Charset", "utf-8"); + conn.setRequestProperty("Content-Type", contentType); + conn.setDoOutput(true); + conn.setDoInput(true); + out = new PrintWriter(conn.getOutputStream()); + out.print(param); + out.flush(); + in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8)); + String line; + while ((line = in.readLine()) != null) + { + result.append(line); + } + log.info("recv - {}", result); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendPost ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendPost SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用HttpUtils.sendPost IOException, url=" + url + ",param=" + param, e); + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendPost Exception, url=" + url + ",param=" + param, e); + } + finally + { + try + { + if (out != null) + { + out.close(); + } + if (in != null) + { + in.close(); + } + } + catch (IOException ex) + { + log.error("调用in.close Exception, url=" + url + ",param=" + param, ex); + } + } + return result.toString(); + } + + public static String sendSSLPost(String url, String param) + { + return sendSSLPost(url, param, MediaType.APPLICATION_FORM_URLENCODED_VALUE); + } + + public static String sendSSLPost(String url, String param, String contentType) + { + StringBuilder result = new StringBuilder(); + String urlNameString = url + "?" + param; + try + { + log.info("sendSSLPost - {}", urlNameString); + SSLContext sc = SSLContext.getInstance("SSL"); + sc.init(null, new TrustManager[] { new TrustAnyTrustManager() }, new java.security.SecureRandom()); + URL console = new URL(urlNameString); + HttpsURLConnection conn = (HttpsURLConnection) console.openConnection(); + conn.setRequestProperty("accept", "*/*"); + conn.setRequestProperty("connection", "Keep-Alive"); + conn.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"); + conn.setRequestProperty("Accept-Charset", "utf-8"); + conn.setRequestProperty("Content-Type", contentType); + conn.setDoOutput(true); + conn.setDoInput(true); + + conn.setSSLSocketFactory(sc.getSocketFactory()); + conn.setHostnameVerifier(new TrustAnyHostnameVerifier()); + conn.connect(); + InputStream is = conn.getInputStream(); + BufferedReader br = new BufferedReader(new InputStreamReader(is)); + String ret = ""; + while ((ret = br.readLine()) != null) + { + if (ret != null && !"".equals(ret.trim())) + { + result.append(new String(ret.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8)); + } + } + log.info("recv - {}", result); + conn.disconnect(); + br.close(); + } + catch (ConnectException e) + { + log.error("调用HttpUtils.sendSSLPost ConnectException, url=" + url + ",param=" + param, e); + } + catch (SocketTimeoutException e) + { + log.error("调用HttpUtils.sendSSLPost SocketTimeoutException, url=" + url + ",param=" + param, e); + } + catch (IOException e) + { + log.error("调用HttpUtils.sendSSLPost IOException, url=" + url + ",param=" + param, e); + } + catch (Exception e) + { + log.error("调用HttpsUtil.sendSSLPost Exception, url=" + url + ",param=" + param, e); + } + return result.toString(); + } + + private static class TrustAnyTrustManager implements X509TrustManager + { + @Override + public void checkClientTrusted(X509Certificate[] chain, String authType) + { + } + + @Override + public void checkServerTrusted(X509Certificate[] chain, String authType) + { + } + + @Override + public X509Certificate[] getAcceptedIssuers() + { + return new X509Certificate[] {}; + } + } + + private static class TrustAnyHostnameVerifier implements HostnameVerifier + { + @Override + public boolean verify(String hostname, SSLSession session) + { + return true; + } + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/OkHttpUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/OkHttpUtils.java new file mode 100644 index 0000000..ccda06e --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/http/OkHttpUtils.java @@ -0,0 +1,64 @@ +package com.ruoyi.common.utils.http; + +import okhttp3.Call; +import okhttp3.OkHttpClient; +import okhttp3.Request; + +import javax.net.ssl.HostnameVerifier; +import javax.net.ssl.SSLContext; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; +import java.util.concurrent.TimeUnit; + + +public class OkHttpUtils { + + public static OkHttpClient createOkHttpClient() { + try { + // 1. 创建「信任所有证书」的 TrustManager +// X509TrustManager trustManager = new X509TrustManager() { +// @Override +// public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { +// // 不校验客户端证书(开发环境忽略) +// } +// +// @Override +// public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { +// // 不校验服务器证书(核心:信任所有服务器证书) +// } +// +// @Override +// public X509Certificate[] getAcceptedIssuers() { +// return new X509Certificate[0]; +// } +// }; + + // 2. 初始化 SSLContext(TLS 协议) +// SSLContext sslContext = SSLContext.getInstance("TLS"); +// sslContext.init(null, new TrustManager[]{trustManager}, new java.security.SecureRandom()); + + // 3. 禁用主机名校验(避免证书域名与实际调用域名不一致的错误,开发环境临时用) +// HostnameVerifier hostnameVerifier = (hostname, session) -> true; + + // 4. 整合原有配置 + SSL 配置 + return new OkHttpClient.Builder() + .connectTimeout(60, TimeUnit.SECONDS) + .readTimeout(60, TimeUnit.SECONDS) + .writeTimeout(60, TimeUnit.SECONDS) +// .sslSocketFactory(sslContext.getSocketFactory(), trustManager) // 注入 SSL 上下文 +// .hostnameVerifier(hostnameVerifier) // 禁用主机名校验 + .build(); + } catch (Exception e) { + // 异常处理(可根据业务抛自定义异常) + throw new RuntimeException("OkHttpClient SSL error", e); + } + } + + public static Call newCall(Request request) { + return createOkHttpClient().newCall(request); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java new file mode 100644 index 0000000..edfe419 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/AddressUtils.java @@ -0,0 +1,56 @@ +package com.ruoyi.common.utils.ip; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.http.HttpUtils; + +/** + * 获取地址类 + * + * @author ruoyi + */ +public class AddressUtils +{ + private static final Logger log = LoggerFactory.getLogger(AddressUtils.class); + + // IP地址查询 + public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp"; + + // 未知地址 + public static final String UNKNOWN = "XX XX"; + + public static String getRealAddressByIP(String ip) + { + // 内网不查询 + if (IpUtils.internalIp(ip)) + { + return "内网IP"; + } + if (RuoYiConfig.isAddressEnabled()) + { + try + { + String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true", Constants.GBK); + if (StringUtils.isEmpty(rspStr)) + { + log.error("获取地理位置异常 {}", ip); + return UNKNOWN; + } + JSONObject obj = JSON.parseObject(rspStr); + String region = obj.getString("pro"); + String city = obj.getString("city"); + return String.format("%s %s", region, city); + } + catch (Exception e) + { + log.error("获取地理位置异常 {}", ip); + } + } + return UNKNOWN; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java new file mode 100644 index 0000000..8e89e30 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java @@ -0,0 +1,382 @@ +package com.ruoyi.common.utils.ip; + +import java.net.InetAddress; +import java.net.UnknownHostException; +import javax.servlet.http.HttpServletRequest; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 获取IP方法 + * + * @author ruoyi + */ +public class IpUtils +{ + public final static String REGX_0_255 = "(25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)"; + // 匹配 ip + public final static String REGX_IP = "((" + REGX_0_255 + "\\.){3}" + REGX_0_255 + ")"; + public final static String REGX_IP_WILDCARD = "(((\\*\\.){3}\\*)|(" + REGX_0_255 + "(\\.\\*){3})|(" + REGX_0_255 + "\\." + REGX_0_255 + ")(\\.\\*){2}" + "|((" + REGX_0_255 + "\\.){3}\\*))"; + // 匹配网段 + public final static String REGX_IP_SEG = "(" + REGX_IP + "\\-" + REGX_IP + ")"; + + /** + * 获取客户端IP + * + * @return IP地址 + */ + public static String getIpAddr() + { + return getIpAddr(ServletUtils.getRequest()); + } + + /** + * 获取客户端IP + * + * @param request 请求对象 + * @return IP地址 + */ + public static String getIpAddr(HttpServletRequest request) + { + if (request == null) + { + return "unknown"; + } + String ip = request.getHeader("x-forwarded-for"); + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Forwarded-For"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("WL-Proxy-Client-IP"); + } + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getHeader("X-Real-IP"); + } + + if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) + { + ip = request.getRemoteAddr(); + } + + return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : getMultistageReverseProxyIp(ip); + } + + /** + * 检查是否为内部IP地址 + * + * @param ip IP地址 + * @return 结果 + */ + public static boolean internalIp(String ip) + { + byte[] addr = textToNumericFormatV4(ip); + return internalIp(addr) || "127.0.0.1".equals(ip); + } + + /** + * 检查是否为内部IP地址 + * + * @param addr byte地址 + * @return 结果 + */ + private static boolean internalIp(byte[] addr) + { + if (StringUtils.isNull(addr) || addr.length < 2) + { + return true; + } + final byte b0 = addr[0]; + final byte b1 = addr[1]; + // 10.x.x.x/8 + final byte SECTION_1 = 0x0A; + // 172.16.x.x/12 + final byte SECTION_2 = (byte) 0xAC; + final byte SECTION_3 = (byte) 0x10; + final byte SECTION_4 = (byte) 0x1F; + // 192.168.x.x/16 + final byte SECTION_5 = (byte) 0xC0; + final byte SECTION_6 = (byte) 0xA8; + switch (b0) + { + case SECTION_1: + return true; + case SECTION_2: + if (b1 >= SECTION_3 && b1 <= SECTION_4) + { + return true; + } + case SECTION_5: + switch (b1) + { + case SECTION_6: + return true; + } + default: + return false; + } + } + + /** + * 将IPv4地址转换成字节 + * + * @param text IPv4地址 + * @return byte 字节 + */ + public static byte[] textToNumericFormatV4(String text) + { + if (text.length() == 0) + { + return null; + } + + byte[] bytes = new byte[4]; + String[] elements = text.split("\\.", -1); + try + { + long l; + int i; + switch (elements.length) + { + case 1: + l = Long.parseLong(elements[0]); + if ((l < 0L) || (l > 4294967295L)) + { + return null; + } + bytes[0] = (byte) (int) (l >> 24 & 0xFF); + bytes[1] = (byte) (int) ((l & 0xFFFFFF) >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 2: + l = Integer.parseInt(elements[0]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[0] = (byte) (int) (l & 0xFF); + l = Integer.parseInt(elements[1]); + if ((l < 0L) || (l > 16777215L)) + { + return null; + } + bytes[1] = (byte) (int) (l >> 16 & 0xFF); + bytes[2] = (byte) (int) ((l & 0xFFFF) >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 3: + for (i = 0; i < 2; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + l = Integer.parseInt(elements[2]); + if ((l < 0L) || (l > 65535L)) + { + return null; + } + bytes[2] = (byte) (int) (l >> 8 & 0xFF); + bytes[3] = (byte) (int) (l & 0xFF); + break; + case 4: + for (i = 0; i < 4; ++i) + { + l = Integer.parseInt(elements[i]); + if ((l < 0L) || (l > 255L)) + { + return null; + } + bytes[i] = (byte) (int) (l & 0xFF); + } + break; + default: + return null; + } + } + catch (NumberFormatException e) + { + return null; + } + return bytes; + } + + /** + * 获取IP地址 + * + * @return 本地IP地址 + */ + public static String getHostIp() + { + try + { + return InetAddress.getLocalHost().getHostAddress(); + } + catch (UnknownHostException e) + { + } + return "127.0.0.1"; + } + + /** + * 获取主机名 + * + * @return 本地主机名 + */ + public static String getHostName() + { + try + { + return InetAddress.getLocalHost().getHostName(); + } + catch (UnknownHostException e) + { + } + return "未知"; + } + + /** + * 从多级反向代理中获得第一个非unknown IP地址 + * + * @param ip 获得的IP地址 + * @return 第一个非unknown IP地址 + */ + public static String getMultistageReverseProxyIp(String ip) + { + // 多级反向代理检测 + if (ip != null && ip.indexOf(",") > 0) + { + final String[] ips = ip.trim().split(","); + for (String subIp : ips) + { + if (false == isUnknown(subIp)) + { + ip = subIp; + break; + } + } + } + return StringUtils.substring(ip, 0, 255); + } + + /** + * 检测给定字符串是否为未知,多用于检测HTTP请求相关 + * + * @param checkString 被检测的字符串 + * @return 是否未知 + */ + public static boolean isUnknown(String checkString) + { + return StringUtils.isBlank(checkString) || "unknown".equalsIgnoreCase(checkString); + } + + /** + * 是否为IP + */ + public static boolean isIP(String ip) + { + return StringUtils.isNotBlank(ip) && ip.matches(REGX_IP); + } + + /** + * 是否为IP,或 *为间隔的通配符地址 + */ + public static boolean isIpWildCard(String ip) + { + return StringUtils.isNotBlank(ip) && ip.matches(REGX_IP_WILDCARD); + } + + /** + * 检测参数是否在ip通配符里 + */ + public static boolean ipIsInWildCardNoCheck(String ipWildCard, String ip) + { + String[] s1 = ipWildCard.split("\\."); + String[] s2 = ip.split("\\."); + boolean isMatchedSeg = true; + for (int i = 0; i < s1.length && !s1[i].equals("*"); i++) + { + if (!s1[i].equals(s2[i])) + { + isMatchedSeg = false; + break; + } + } + return isMatchedSeg; + } + + /** + * 是否为特定格式如:“10.10.10.1-10.10.10.99”的ip段字符串 + */ + public static boolean isIPSegment(String ipSeg) + { + return StringUtils.isNotBlank(ipSeg) && ipSeg.matches(REGX_IP_SEG); + } + + /** + * 判断ip是否在指定网段中 + */ + public static boolean ipIsInNetNoCheck(String iparea, String ip) + { + int idx = iparea.indexOf('-'); + String[] sips = iparea.substring(0, idx).split("\\."); + String[] sipe = iparea.substring(idx + 1).split("\\."); + String[] sipt = ip.split("\\."); + long ips = 0L, ipe = 0L, ipt = 0L; + for (int i = 0; i < 4; ++i) + { + ips = ips << 8 | Integer.parseInt(sips[i]); + ipe = ipe << 8 | Integer.parseInt(sipe[i]); + ipt = ipt << 8 | Integer.parseInt(sipt[i]); + } + if (ips > ipe) + { + long t = ips; + ips = ipe; + ipe = t; + } + return ips <= ipt && ipt <= ipe; + } + + /** + * 校验ip是否符合过滤串规则 + * + * @param filter 过滤IP列表,支持后缀'*'通配,支持网段如:`10.10.10.1-10.10.10.99` + * @param ip 校验IP地址 + * @return boolean 结果 + */ + public static boolean isMatchedIp(String filter, String ip) + { + if (StringUtils.isEmpty(filter) || StringUtils.isEmpty(ip)) + { + return false; + } + String[] ips = filter.split(";"); + for (String iStr : ips) + { + if (isIP(iStr) && iStr.equals(ip)) + { + return true; + } + else if (isIpWildCard(iStr) && ipIsInWildCardNoCheck(iStr, ip)) + { + return true; + } + else if (isIPSegment(iStr) && ipIsInNetNoCheck(iStr, ip)) + { + return true; + } + } + return false; + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java new file mode 100644 index 0000000..ccab288 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelHandlerAdapter.java @@ -0,0 +1,24 @@ +package com.ruoyi.common.utils.poi; + +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.Workbook; + +/** + * Excel数据格式处理适配器 + * + * @author ruoyi + */ +public interface ExcelHandlerAdapter +{ + /** + * 格式化 + * + * @param value 单元格数据值 + * @param args excel注解args参数组 + * @param cell 单元格对象 + * @param wb 工作簿对象 + * + * @return 处理后的值 + */ + Object format(Object value, String[] args, Cell cell, Workbook wb); +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java new file mode 100644 index 0000000..c4191ef --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java @@ -0,0 +1,1893 @@ +package com.ruoyi.common.utils.poi; + +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.lang.reflect.ParameterizedType; +import java.math.BigDecimal; +import java.text.DecimalFormat; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Comparator; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.UUID; +import java.util.stream.Collectors; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.lang3.ArrayUtils; +import org.apache.commons.lang3.RegExUtils; +import org.apache.commons.lang3.reflect.FieldUtils; +import org.apache.poi.hssf.usermodel.HSSFClientAnchor; +import org.apache.poi.hssf.usermodel.HSSFPicture; +import org.apache.poi.hssf.usermodel.HSSFPictureData; +import org.apache.poi.hssf.usermodel.HSSFShape; +import org.apache.poi.hssf.usermodel.HSSFSheet; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.ooxml.POIXMLDocumentPart; +import org.apache.poi.ss.usermodel.BorderStyle; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.CellStyle; +import org.apache.poi.ss.usermodel.CellType; +import org.apache.poi.ss.usermodel.ClientAnchor; +import org.apache.poi.ss.usermodel.DataFormat; +import org.apache.poi.ss.usermodel.DataValidation; +import org.apache.poi.ss.usermodel.DataValidationConstraint; +import org.apache.poi.ss.usermodel.DataValidationHelper; +import org.apache.poi.ss.usermodel.DateUtil; +import org.apache.poi.ss.usermodel.Drawing; +import org.apache.poi.ss.usermodel.FillPatternType; +import org.apache.poi.ss.usermodel.Font; +import org.apache.poi.ss.usermodel.HorizontalAlignment; +import org.apache.poi.ss.usermodel.IndexedColors; +import org.apache.poi.ss.usermodel.Name; +import org.apache.poi.ss.usermodel.PictureData; +import org.apache.poi.ss.usermodel.Row; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.usermodel.VerticalAlignment; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.poi.ss.usermodel.WorkbookFactory; +import org.apache.poi.ss.util.CellRangeAddress; +import org.apache.poi.ss.util.CellRangeAddressList; +import org.apache.poi.util.IOUtils; +import org.apache.poi.xssf.streaming.SXSSFWorkbook; +import org.apache.poi.xssf.usermodel.XSSFClientAnchor; +import org.apache.poi.xssf.usermodel.XSSFDataValidation; +import org.apache.poi.xssf.usermodel.XSSFDrawing; +import org.apache.poi.xssf.usermodel.XSSFPicture; +import org.apache.poi.xssf.usermodel.XSSFShape; +import org.apache.poi.xssf.usermodel.XSSFSheet; +import org.apache.poi.xssf.usermodel.XSSFWorkbook; +import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.annotation.Excel.Type; +import com.ruoyi.common.annotation.Excels; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.UtilException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.file.FileTypeUtils; +import com.ruoyi.common.utils.file.FileUtils; +import com.ruoyi.common.utils.file.ImageUtils; +import com.ruoyi.common.utils.reflect.ReflectUtils; + +/** + * Excel相关处理 + * + * @author ruoyi + */ +public class ExcelUtil +{ + private static final Logger log = LoggerFactory.getLogger(ExcelUtil.class); + + public static final String SEPARATOR = ","; + + public static final String FORMULA_REGEX_STR = "=|-|\\+|@"; + + public static final String[] FORMULA_STR = { "=", "-", "+", "@" }; + + /** + * 用于dictType属性数据存储,避免重复查缓存 + */ + public Map sysDictMap = new HashMap(); + + /** + * Excel sheet最大行数,默认65536 + */ + public static final int sheetSize = 65536; + + /** + * 工作表名称 + */ + private String sheetName; + + /** + * 导出类型(EXPORT:导出数据;IMPORT:导入模板) + */ + private Type type; + + /** + * 工作薄对象 + */ + private Workbook wb; + + /** + * 工作表对象 + */ + private Sheet sheet; + + /** + * 样式列表 + */ + private Map styles; + + /** + * 导入导出数据列表 + */ + private List list; + + /** + * 注解列表 + */ + private List fields; + + /** + * 当前行号 + */ + private int rownum; + + /** + * 标题 + */ + private String title; + + /** + * 最大高度 + */ + private short maxHeight; + + /** + * 合并后最后行数 + */ + private int subMergedLastRowNum = 0; + + /** + * 合并后开始行数 + */ + private int subMergedFirstRowNum = 1; + + /** + * 对象的子列表方法 + */ + private Method subMethod; + + /** + * 对象的子列表属性 + */ + private List subFields; + + /** + * 统计列表 + */ + private Map statistics = new HashMap(); + + /** + * 实体对象 + */ + public Class clazz; + + /** + * 需要显示列属性 + */ + public String[] includeFields; + + /** + * 需要排除列属性 + */ + public String[] excludeFields; + + public ExcelUtil(Class clazz) + { + this.clazz = clazz; + } + + /** + * 仅在Excel中显示列属性 + * + * @param fields 列属性名 示例[单个"name"/多个"id","name"] + */ + public void showColumn(String... fields) + { + this.includeFields = fields; + } + + /** + * 隐藏Excel中列属性 + * + * @param fields 列属性名 示例[单个"name"/多个"id","name"] + */ + public void hideColumn(String... fields) + { + this.excludeFields = fields; + } + + public void init(List list, String sheetName, String title, Type type) + { + if (list == null) + { + list = new ArrayList(); + } + this.list = list; + this.sheetName = sheetName; + this.type = type; + this.title = title; + createExcelField(); + createWorkbook(); + createTitle(); + createSubHead(); + } + + /** + * 创建excel第一行标题 + */ + public void createTitle() + { + if (StringUtils.isNotEmpty(title)) + { + int titleLastCol = this.fields.size() - 1; + if (isSubList()) + { + titleLastCol = titleLastCol + subFields.size() - 1; + } + Row titleRow = sheet.createRow(rownum == 0 ? rownum++ : 0); + titleRow.setHeightInPoints(30); + Cell titleCell = titleRow.createCell(0); + titleCell.setCellStyle(styles.get("title")); + titleCell.setCellValue(title); + sheet.addMergedRegion(new CellRangeAddress(titleRow.getRowNum(), titleRow.getRowNum(), 0, titleLastCol)); + } + } + + /** + * 创建对象的子列表名称 + */ + public void createSubHead() + { + if (isSubList()) + { + Row subRow = sheet.createRow(rownum); + int column = 0; + int subFieldSize = subFields != null ? subFields.size() : 0; + for (Object[] objects : fields) + { + Field field = (Field) objects[0]; + Excel attr = (Excel) objects[1]; + if (Collection.class.isAssignableFrom(field.getType())) + { + Cell cell = subRow.createCell(column); + cell.setCellValue(attr.name()); + cell.setCellStyle(styles.get(StringUtils.format("header_{}_{}", attr.headerColor(), attr.headerBackgroundColor()))); + if (subFieldSize > 1) + { + CellRangeAddress cellAddress = new CellRangeAddress(rownum, rownum, column, column + subFieldSize - 1); + sheet.addMergedRegion(cellAddress); + } + column += subFieldSize; + } + else + { + Cell cell = subRow.createCell(column++); + cell.setCellValue(attr.name()); + cell.setCellStyle(styles.get(StringUtils.format("header_{}_{}", attr.headerColor(), attr.headerBackgroundColor()))); + } + } + rownum++; + } + } + + /** + * 对excel表单默认第一个索引名转换成list + * + * @param is 输入流 + * @return 转换后集合 + */ + public List importExcel(InputStream is) + { + return importExcel(is, 0); + } + + /** + * 对excel表单默认第一个索引名转换成list + * + * @param is 输入流 + * @param titleNum 标题占用行数 + * @return 转换后集合 + */ + public List importExcel(InputStream is, int titleNum) + { + List list = null; + try + { + list = importExcel(StringUtils.EMPTY, is, titleNum); + } + catch (Exception e) + { + log.error("导入Excel异常{}", e.getMessage()); + throw new UtilException(e.getMessage()); + } + finally + { + IOUtils.closeQuietly(is); + } + return list; + } + + /** + * 对excel表单指定表格索引名转换成list + * + * @param sheetName 表格索引名 + * @param titleNum 标题占用行数 + * @param is 输入流 + * @return 转换后集合 + */ + public List importExcel(String sheetName, InputStream is, int titleNum) throws Exception + { + this.type = Type.IMPORT; + this.wb = WorkbookFactory.create(is); + List list = new ArrayList(); + // 如果指定sheet名,则取指定sheet中的内容 否则默认指向第1个sheet + Sheet sheet = StringUtils.isNotEmpty(sheetName) ? wb.getSheet(sheetName) : wb.getSheetAt(0); + if (sheet == null) + { + throw new IOException("文件sheet不存在"); + } + boolean isXSSFWorkbook = !(wb instanceof HSSFWorkbook); + Map> pictures = null; + if (isXSSFWorkbook) + { + pictures = getSheetPictures07((XSSFSheet) sheet, (XSSFWorkbook) wb); + } + else + { + pictures = getSheetPictures03((HSSFSheet) sheet, (HSSFWorkbook) wb); + } + // 获取最后一个非空行的行下标,比如总行数为n,则返回的为n-1 + int rows = sheet.getLastRowNum(); + if (rows > 0) + { + // 定义一个map用于存放excel列的序号和field. + Map cellMap = new HashMap(); + // 获取表头 + Row heard = sheet.getRow(titleNum); + for (int i = 0; i < heard.getPhysicalNumberOfCells(); i++) + { + Cell cell = heard.getCell(i); + if (StringUtils.isNotNull(cell)) + { + String value = this.getCellValue(heard, i).toString(); + cellMap.put(value, i); + } + else + { + cellMap.put(null, i); + } + } + // 有数据时才处理 得到类的所有field. + List fields = this.getFields(); + Map fieldsMap = new HashMap(); + for (Object[] objects : fields) + { + Excel attr = (Excel) objects[1]; + Integer column = cellMap.get(attr.name()); + if (column != null) + { + fieldsMap.put(column, objects); + } + } + for (int i = titleNum + 1; i <= rows; i++) + { + // 从第2行开始取数据,默认第一行是表头. + Row row = sheet.getRow(i); + // 判断当前行是否是空行 + if (isRowEmpty(row)) + { + continue; + } + T entity = null; + for (Map.Entry entry : fieldsMap.entrySet()) + { + Object val = this.getCellValue(row, entry.getKey()); + + // 如果不存在实例则新建. + entity = (entity == null ? clazz.newInstance() : entity); + // 从map中得到对应列的field. + Field field = (Field) entry.getValue()[0]; + Excel attr = (Excel) entry.getValue()[1]; + // 取得类型,并根据对象类型设置值. + Class fieldType = field.getType(); + if (String.class == fieldType) + { + String s = Convert.toStr(val); + if (s.matches("^\\d+\\.0$")) + { + val = StringUtils.substringBefore(s, ".0"); + } + else + { + String dateFormat = field.getAnnotation(Excel.class).dateFormat(); + if (StringUtils.isNotEmpty(dateFormat)) + { + val = parseDateToStr(dateFormat, val); + } + else + { + val = Convert.toStr(val); + } + } + } + else if ((Integer.TYPE == fieldType || Integer.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) + { + val = Convert.toInt(val); + } + else if ((Long.TYPE == fieldType || Long.class == fieldType) && StringUtils.isNumeric(Convert.toStr(val))) + { + val = Convert.toLong(val); + } + else if (Double.TYPE == fieldType || Double.class == fieldType) + { + val = Convert.toDouble(val); + } + else if (Float.TYPE == fieldType || Float.class == fieldType) + { + val = Convert.toFloat(val); + } + else if (BigDecimal.class == fieldType) + { + val = Convert.toBigDecimal(val); + } + else if (Date.class == fieldType) + { + if (val instanceof String) + { + val = DateUtils.parseDate(val); + } + else if (val instanceof Double) + { + val = DateUtil.getJavaDate((Double) val); + } + } + else if (Boolean.TYPE == fieldType || Boolean.class == fieldType) + { + val = Convert.toBool(val, false); + } + if (StringUtils.isNotNull(fieldType)) + { + String propertyName = field.getName(); + if (StringUtils.isNotEmpty(attr.targetAttr())) + { + propertyName = field.getName() + "." + attr.targetAttr(); + } + if (StringUtils.isNotEmpty(attr.readConverterExp())) + { + val = reverseByExp(Convert.toStr(val), attr.readConverterExp(), attr.separator()); + } + else if (StringUtils.isNotEmpty(attr.dictType())) + { + if (!sysDictMap.containsKey(attr.dictType() + val)) + { + String dictValue = reverseDictByExp(Convert.toStr(val), attr.dictType(), attr.separator()); + sysDictMap.put(attr.dictType() + val, dictValue); + } + val = sysDictMap.get(attr.dictType() + val); + } + else if (!attr.handler().equals(ExcelHandlerAdapter.class)) + { + val = dataFormatHandlerAdapter(val, attr, null); + } + else if (ColumnType.IMAGE == attr.cellType() && StringUtils.isNotEmpty(pictures)) + { + StringBuilder propertyString = new StringBuilder(); + List images = pictures.get(row.getRowNum() + "_" + entry.getKey()); + for (PictureData picture : images) + { + byte[] data = picture.getData(); + String fileName = FileUtils.writeImportBytes(data); + propertyString.append(fileName).append(SEPARATOR); + } + val = StringUtils.stripEnd(propertyString.toString(), SEPARATOR); + } + ReflectUtils.invokeSetter(entity, propertyName, val); + } + } + list.add(entity); + } + } + return list; + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @return 结果 + */ + public AjaxResult exportExcel(List list, String sheetName) + { + return exportExcel(list, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public AjaxResult exportExcel(List list, String sheetName, String title) + { + this.init(list, sheetName, title, Type.EXPORT); + return exportExcel(); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param response 返回数据 + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @return 结果 + */ + public void exportExcel(HttpServletResponse response, List list, String sheetName) + { + exportExcel(response, list, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param response 返回数据 + * @param list 导出数据集合 + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public void exportExcel(HttpServletResponse response, List list, String sheetName, String title) + { + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + response.setCharacterEncoding("utf-8"); + this.init(list, sheetName, title, Type.EXPORT); + exportExcel(response); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @return 结果 + */ + public AjaxResult importTemplateExcel(String sheetName) + { + return importTemplateExcel(sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public AjaxResult importTemplateExcel(String sheetName, String title) + { + this.init(null, sheetName, title, Type.IMPORT); + return exportExcel(); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @return 结果 + */ + public void importTemplateExcel(HttpServletResponse response, String sheetName) + { + importTemplateExcel(response, sheetName, StringUtils.EMPTY); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @param sheetName 工作表的名称 + * @param title 标题 + * @return 结果 + */ + public void importTemplateExcel(HttpServletResponse response, String sheetName, String title) + { + response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); + response.setCharacterEncoding("utf-8"); + this.init(null, sheetName, title, Type.IMPORT); + exportExcel(response); + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @return 结果 + */ + public void exportExcel(HttpServletResponse response) + { + try + { + writeSheet(); + wb.write(response.getOutputStream()); + } + catch (Exception e) + { + log.error("导出Excel异常{}", e.getMessage()); + } + finally + { + IOUtils.closeQuietly(wb); + } + } + + /** + * 对list数据源将其里面的数据导入到excel表单 + * + * @return 结果 + */ + public AjaxResult exportExcel() + { + OutputStream out = null; + try + { + writeSheet(); + String filename = encodingFilename(sheetName); + out = new FileOutputStream(getAbsoluteFile(filename)); + wb.write(out); + return AjaxResult.success(filename); + } + catch (Exception e) + { + log.error("导出Excel异常{}", e.getMessage()); + throw new UtilException("导出Excel失败,请联系网站管理员!"); + } + finally + { + IOUtils.closeQuietly(wb); + IOUtils.closeQuietly(out); + } + } + + /** + * 创建写入数据到Sheet + */ + public void writeSheet() + { + // 取出一共有多少个sheet. + int sheetNo = Math.max(1, (int) Math.ceil(list.size() * 1.0 / sheetSize)); + for (int index = 0; index < sheetNo; index++) + { + createSheet(sheetNo, index); + + // 产生一行 + Row row = sheet.createRow(rownum); + int column = 0; + // 写入各个字段的列头名称 + for (Object[] os : fields) + { + Field field = (Field) os[0]; + Excel excel = (Excel) os[1]; + if (Collection.class.isAssignableFrom(field.getType())) + { + for (Field subField : subFields) + { + Excel subExcel = subField.getAnnotation(Excel.class); + this.createHeadCell(subExcel, row, column++); + } + } + else + { + this.createHeadCell(excel, row, column++); + } + } + if (Type.EXPORT.equals(type)) + { + fillExcelData(index, row); + addStatisticsRow(); + } + } + } + + /** + * 填充excel数据 + * + * @param index 序号 + * @param row 单元格行 + */ + @SuppressWarnings("unchecked") + public void fillExcelData(int index, Row row) + { + int startNo = index * sheetSize; + int endNo = Math.min(startNo + sheetSize, list.size()); + int currentRowNum = rownum + 1; // 从标题行后开始 + + for (int i = startNo; i < endNo; i++) + { + row = sheet.createRow(currentRowNum); + T vo = (T) list.get(i); + int column = 0; + int maxSubListSize = getCurrentMaxSubListSize(vo); + for (Object[] os : fields) + { + Field field = (Field) os[0]; + Excel excel = (Excel) os[1]; + if (Collection.class.isAssignableFrom(field.getType())) + { + try + { + Collection subList = (Collection) getTargetValue(vo, field, excel); + if (subList != null && !subList.isEmpty()) + { + int subIndex = 0; + for (Object subVo : subList) + { + Row subRow = sheet.getRow(currentRowNum + subIndex); + if (subRow == null) + { + subRow = sheet.createRow(currentRowNum + subIndex); + } + + int subColumn = column; + for (Field subField : subFields) + { + Excel subExcel = subField.getAnnotation(Excel.class); + addCell(subExcel, subRow, (T) subVo, subField, subColumn++); + } + subIndex++; + } + column += subFields.size(); + } + } + catch (Exception e) + { + log.error("填充集合数据失败", e); + } + } + else + { + // 创建单元格并设置值 + addCell(excel, row, vo, field, column); + if (maxSubListSize > 1 && excel.needMerge()) + { + sheet.addMergedRegion(new CellRangeAddress(currentRowNum, currentRowNum + maxSubListSize - 1, column, column)); + } + column++; + } + } + currentRowNum += maxSubListSize; + } + } + + /** + * 获取子列表最大数 + */ + private int getCurrentMaxSubListSize(T vo) + { + int maxSubListSize = 1; + for (Object[] os : fields) + { + Field field = (Field) os[0]; + if (Collection.class.isAssignableFrom(field.getType())) + { + try + { + Collection subList = (Collection) getTargetValue(vo, field, (Excel) os[1]); + if (subList != null && !subList.isEmpty()) + { + maxSubListSize = Math.max(maxSubListSize, subList.size()); + } + } + catch (Exception e) + { + log.error("获取集合大小失败", e); + } + } + } + return maxSubListSize; + } + + /** + * 创建表格样式 + * + * @param wb 工作薄对象 + * @return 样式列表 + */ + private Map createStyles(Workbook wb) + { + // 写入各条记录,每条记录对应excel表中的一行 + Map styles = new HashMap(); + CellStyle style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + Font titleFont = wb.createFont(); + titleFont.setFontName("Arial"); + titleFont.setFontHeightInPoints((short) 16); + titleFont.setBold(true); + style.setFont(titleFont); + DataFormat dataFormat = wb.createDataFormat(); + style.setDataFormat(dataFormat.getFormat("@")); + styles.put("title", style); + + style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setBorderRight(BorderStyle.THIN); + style.setRightBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderLeft(BorderStyle.THIN); + style.setLeftBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderTop(BorderStyle.THIN); + style.setTopBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderBottom(BorderStyle.THIN); + style.setBottomBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + Font dataFont = wb.createFont(); + dataFont.setFontName("Arial"); + dataFont.setFontHeightInPoints((short) 10); + style.setFont(dataFont); + styles.put("data", style); + + style = wb.createCellStyle(); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setDataFormat(dataFormat.getFormat("######0.00")); + Font totalFont = wb.createFont(); + totalFont.setFontName("Arial"); + totalFont.setFontHeightInPoints((short) 10); + style.setFont(totalFont); + styles.put("total", style); + + styles.putAll(annotationHeaderStyles(wb, styles)); + + styles.putAll(annotationDataStyles(wb)); + + return styles; + } + + /** + * 根据Excel注解创建表格头样式 + * + * @param wb 工作薄对象 + * @return 自定义样式列表 + */ + private Map annotationHeaderStyles(Workbook wb, Map styles) + { + Map headerStyles = new HashMap(); + for (Object[] os : fields) + { + Excel excel = (Excel) os[1]; + String key = StringUtils.format("header_{}_{}", excel.headerColor(), excel.headerBackgroundColor()); + if (!headerStyles.containsKey(key)) + { + CellStyle style = wb.createCellStyle(); + style.cloneStyleFrom(styles.get("data")); + style.setAlignment(HorizontalAlignment.CENTER); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setFillForegroundColor(excel.headerBackgroundColor().index); + style.setFillPattern(FillPatternType.SOLID_FOREGROUND); + Font headerFont = wb.createFont(); + headerFont.setFontName("Arial"); + headerFont.setFontHeightInPoints((short) 10); + headerFont.setBold(true); + headerFont.setColor(excel.headerColor().index); + style.setFont(headerFont); + // 设置表格头单元格文本形式 + DataFormat dataFormat = wb.createDataFormat(); + style.setDataFormat(dataFormat.getFormat("@")); + headerStyles.put(key, style); + } + } + return headerStyles; + } + + /** + * 根据Excel注解创建表格列样式 + * + * @param wb 工作薄对象 + * @return 自定义样式列表 + */ + private Map annotationDataStyles(Workbook wb) + { + Map styles = new HashMap(); + for (Object[] os : fields) + { + Field field = (Field) os[0]; + Excel excel = (Excel) os[1]; + if (Collection.class.isAssignableFrom(field.getType())) + { + ParameterizedType pt = (ParameterizedType) field.getGenericType(); + Class subClass = (Class) pt.getActualTypeArguments()[0]; + List subFields = FieldUtils.getFieldsListWithAnnotation(subClass, Excel.class); + for (Field subField : subFields) + { + Excel subExcel = subField.getAnnotation(Excel.class); + annotationDataStyles(styles, subField, subExcel); + } + } + else + { + annotationDataStyles(styles, field, excel); + } + } + return styles; + } + + /** + * 根据Excel注解创建表格列样式 + * + * @param styles 自定义样式列表 + * @param field 属性列信息 + * @param excel 注解信息 + */ + public void annotationDataStyles(Map styles, Field field, Excel excel) + { + String key = StringUtils.format("data_{}_{}_{}_{}_{}", excel.align(), excel.color(), excel.backgroundColor(), excel.cellType(), excel.wrapText()); + if (!styles.containsKey(key)) + { + CellStyle style = wb.createCellStyle(); + style.setAlignment(excel.align()); + style.setVerticalAlignment(VerticalAlignment.CENTER); + style.setBorderRight(BorderStyle.THIN); + style.setRightBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderLeft(BorderStyle.THIN); + style.setLeftBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderTop(BorderStyle.THIN); + style.setTopBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setBorderBottom(BorderStyle.THIN); + style.setBottomBorderColor(IndexedColors.GREY_50_PERCENT.getIndex()); + style.setFillPattern(FillPatternType.SOLID_FOREGROUND); + style.setFillForegroundColor(excel.backgroundColor().getIndex()); + style.setWrapText(excel.wrapText()); + Font dataFont = wb.createFont(); + dataFont.setFontName("Arial"); + dataFont.setFontHeightInPoints((short) 10); + dataFont.setColor(excel.color().index); + style.setFont(dataFont); + if (ColumnType.TEXT == excel.cellType()) + { + DataFormat dataFormat = wb.createDataFormat(); + style.setDataFormat(dataFormat.getFormat("@")); + } + styles.put(key, style); + } + } + + /** + * 创建单元格 + */ + public Cell createHeadCell(Excel attr, Row row, int column) + { + // 创建列 + Cell cell = row.createCell(column); + // 写入列信息 + cell.setCellValue(attr.name()); + setDataValidation(attr, row, column); + cell.setCellStyle(styles.get(StringUtils.format("header_{}_{}", attr.headerColor(), attr.headerBackgroundColor()))); + if (isSubList()) + { + // 填充默认样式,防止合并单元格样式失效 + sheet.setDefaultColumnStyle(column, styles.get(StringUtils.format("data_{}_{}_{}_{}_{}", attr.align(), attr.color(), attr.backgroundColor(), attr.cellType(), attr.wrapText()))); + if (attr.needMerge()) + { + sheet.addMergedRegion(new CellRangeAddress(rownum - 1, rownum, column, column)); + } + } + return cell; + } + + /** + * 设置单元格信息 + * + * @param value 单元格值 + * @param attr 注解相关 + * @param cell 单元格信息 + */ + public void setCellVo(Object value, Excel attr, Cell cell) + { + if (ColumnType.STRING == attr.cellType() || ColumnType.TEXT == attr.cellType()) + { + String cellValue = Convert.toStr(value); + // 对于任何以表达式触发字符 =-+@开头的单元格,直接使用tab字符作为前缀,防止CSV注入。 + if (StringUtils.startsWithAny(cellValue, FORMULA_STR)) + { + cellValue = RegExUtils.replaceFirst(cellValue, FORMULA_REGEX_STR, "\t$0"); + } + if (value instanceof Collection && StringUtils.equals("[]", cellValue)) + { + cellValue = StringUtils.EMPTY; + } + cell.setCellValue(StringUtils.isNull(cellValue) ? attr.defaultValue() : cellValue + attr.suffix()); + } + else if (ColumnType.NUMERIC == attr.cellType()) + { + if (StringUtils.isNotNull(value)) + { + cell.setCellValue(StringUtils.contains(Convert.toStr(value), ".") ? Convert.toDouble(value) : Convert.toInt(value)); + } + } + else if (ColumnType.IMAGE == attr.cellType()) + { + ClientAnchor anchor = new XSSFClientAnchor(0, 0, 0, 0, (short) cell.getColumnIndex(), cell.getRow().getRowNum(), (short) (cell.getColumnIndex() + 1), cell.getRow().getRowNum() + 1); + String propertyValue = Convert.toStr(value); + if (StringUtils.isNotEmpty(propertyValue)) + { + List imagePaths = StringUtils.str2List(propertyValue, SEPARATOR); + for (String imagePath : imagePaths) + { + byte[] data = ImageUtils.getImage(imagePath); + getDrawingPatriarch(cell.getSheet()).createPicture(anchor, cell.getSheet().getWorkbook().addPicture(data, getImageType(data))); + } + } + } + } + + /** + * 获取画布 + */ + public static Drawing getDrawingPatriarch(Sheet sheet) + { + if (sheet.getDrawingPatriarch() == null) + { + sheet.createDrawingPatriarch(); + } + return sheet.getDrawingPatriarch(); + } + + /** + * 获取图片类型,设置图片插入类型 + */ + public int getImageType(byte[] value) + { + String type = FileTypeUtils.getFileExtendName(value); + if ("JPG".equalsIgnoreCase(type)) + { + return Workbook.PICTURE_TYPE_JPEG; + } + else if ("PNG".equalsIgnoreCase(type)) + { + return Workbook.PICTURE_TYPE_PNG; + } + return Workbook.PICTURE_TYPE_JPEG; + } + + /** + * 创建表格样式 + */ + public void setDataValidation(Excel attr, Row row, int column) + { + if (attr.name().indexOf("注:") >= 0) + { + sheet.setColumnWidth(column, 6000); + } + else + { + // 设置列宽 + sheet.setColumnWidth(column, (int) ((attr.width() + 0.72) * 256)); + } + if (StringUtils.isNotEmpty(attr.prompt()) || attr.combo().length > 0 || attr.comboReadDict()) + { + String[] comboArray = attr.combo(); + if (attr.comboReadDict()) + { + if (!sysDictMap.containsKey("combo_" + attr.dictType())) + { + String labels = DictUtils.getDictLabels(attr.dictType()); + sysDictMap.put("combo_" + attr.dictType(), labels); + } + String val = sysDictMap.get("combo_" + attr.dictType()); + comboArray = StringUtils.split(val, DictUtils.SEPARATOR); + } + if (comboArray.length > 15 || StringUtils.join(comboArray).length() > 255) + { + // 如果下拉数大于15或字符串长度大于255,则使用一个新sheet存储,避免生成的模板下拉值获取不到 + setXSSFValidationWithHidden(sheet, comboArray, attr.prompt(), 1, 100, column, column); + } + else + { + // 提示信息或只能选择不能输入的列内容. + setPromptOrValidation(sheet, comboArray, attr.prompt(), 1, 100, column, column); + } + } + } + + /** + * 添加单元格 + */ + public Cell addCell(Excel attr, Row row, T vo, Field field, int column) + { + Cell cell = null; + try + { + // 设置行高 + row.setHeight(maxHeight); + // 根据Excel中设置情况决定是否导出,有些情况需要保持为空,希望用户填写这一列. + if (attr.isExport()) + { + // 创建cell + cell = row.createCell(column); + if (isSubListValue(vo) && getListCellValue(vo).size() > 1 && attr.needMerge()) + { + if (subMergedLastRowNum >= subMergedFirstRowNum) + { + sheet.addMergedRegion(new CellRangeAddress(subMergedFirstRowNum, subMergedLastRowNum, column, column)); + } + } + cell.setCellStyle(styles.get(StringUtils.format("data_{}_{}_{}_{}_{}", attr.align(), attr.color(), attr.backgroundColor(), attr.cellType(), attr.wrapText()))); + + // 用于读取对象中的属性 + Object value = getTargetValue(vo, field, attr); + String dateFormat = attr.dateFormat(); + String readConverterExp = attr.readConverterExp(); + String separator = attr.separator(); + String dictType = attr.dictType(); + if (StringUtils.isNotEmpty(dateFormat) && StringUtils.isNotNull(value)) + { + cell.getCellStyle().setDataFormat(this.wb.getCreationHelper().createDataFormat().getFormat(dateFormat)); + cell.setCellValue(parseDateToStr(dateFormat, value)); + } + else if (StringUtils.isNotEmpty(readConverterExp) && StringUtils.isNotNull(value)) + { + cell.setCellValue(convertByExp(Convert.toStr(value), readConverterExp, separator)); + } + else if (StringUtils.isNotEmpty(dictType) && StringUtils.isNotNull(value)) + { + if (!sysDictMap.containsKey(dictType + value)) + { + String lable = convertDictByExp(Convert.toStr(value), dictType, separator); + sysDictMap.put(dictType + value, lable); + } + cell.setCellValue(sysDictMap.get(dictType + value)); + } + else if (value instanceof BigDecimal && -1 != attr.scale()) + { + cell.setCellValue((((BigDecimal) value).setScale(attr.scale(), attr.roundingMode())).doubleValue()); + } + else if (!attr.handler().equals(ExcelHandlerAdapter.class)) + { + cell.setCellValue(dataFormatHandlerAdapter(value, attr, cell)); + } + else + { + // 设置列类型 + setCellVo(value, attr, cell); + } + addStatisticsData(column, Convert.toStr(value), attr); + } + } + catch (Exception e) + { + log.error("导出Excel失败{}", e); + } + return cell; + } + + /** + * 设置 POI XSSFSheet 单元格提示或选择框 + * + * @param sheet 表单 + * @param textlist 下拉框显示的内容 + * @param promptContent 提示内容 + * @param firstRow 开始行 + * @param endRow 结束行 + * @param firstCol 开始列 + * @param endCol 结束列 + */ + public void setPromptOrValidation(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, + int firstCol, int endCol) + { + DataValidationHelper helper = sheet.getDataValidationHelper(); + DataValidationConstraint constraint = textlist.length > 0 ? helper.createExplicitListConstraint(textlist) : helper.createCustomConstraint("DD1"); + CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); + DataValidation dataValidation = helper.createValidation(constraint, regions); + if (StringUtils.isNotEmpty(promptContent)) + { + // 如果设置了提示信息则鼠标放上去提示 + dataValidation.createPromptBox("", promptContent); + dataValidation.setShowPromptBox(true); + } + // 处理Excel兼容性问题 + if (dataValidation instanceof XSSFDataValidation) + { + dataValidation.setSuppressDropDownArrow(true); + dataValidation.setShowErrorBox(true); + } + else + { + dataValidation.setSuppressDropDownArrow(false); + } + sheet.addValidationData(dataValidation); + } + + /** + * 设置某些列的值只能输入预制的数据,显示下拉框(兼容超出一定数量的下拉框). + * + * @param sheet 要设置的sheet. + * @param textlist 下拉框显示的内容 + * @param promptContent 提示内容 + * @param firstRow 开始行 + * @param endRow 结束行 + * @param firstCol 开始列 + * @param endCol 结束列 + */ + public void setXSSFValidationWithHidden(Sheet sheet, String[] textlist, String promptContent, int firstRow, int endRow, int firstCol, int endCol) + { + String hideSheetName = "combo_" + firstCol + "_" + endCol; + Sheet hideSheet = wb.createSheet(hideSheetName); // 用于存储 下拉菜单数据 + for (int i = 0; i < textlist.length; i++) + { + hideSheet.createRow(i).createCell(0).setCellValue(textlist[i]); + } + // 创建名称,可被其他单元格引用 + Name name = wb.createName(); + name.setNameName(hideSheetName + "_data"); + name.setRefersToFormula(hideSheetName + "!$A$1:$A$" + textlist.length); + DataValidationHelper helper = sheet.getDataValidationHelper(); + // 加载下拉列表内容 + DataValidationConstraint constraint = helper.createFormulaListConstraint(hideSheetName + "_data"); + // 设置数据有效性加载在哪个单元格上,四个参数分别是:起始行、终止行、起始列、终止列 + CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol); + // 数据有效性对象 + DataValidation dataValidation = helper.createValidation(constraint, regions); + if (StringUtils.isNotEmpty(promptContent)) + { + // 如果设置了提示信息则鼠标放上去提示 + dataValidation.createPromptBox("", promptContent); + dataValidation.setShowPromptBox(true); + } + // 处理Excel兼容性问题 + if (dataValidation instanceof XSSFDataValidation) + { + dataValidation.setSuppressDropDownArrow(true); + dataValidation.setShowErrorBox(true); + } + else + { + dataValidation.setSuppressDropDownArrow(false); + } + + sheet.addValidationData(dataValidation); + // 设置hiddenSheet隐藏 + wb.setSheetHidden(wb.getSheetIndex(hideSheet), true); + } + + /** + * 解析导出值 0=男,1=女,2=未知 + * + * @param propertyValue 参数值 + * @param converterExp 翻译注解 + * @param separator 分隔符 + * @return 解析后值 + */ + public static String convertByExp(String propertyValue, String converterExp, String separator) + { + StringBuilder propertyString = new StringBuilder(); + String[] convertSource = converterExp.split(SEPARATOR); + for (String item : convertSource) + { + String[] itemArray = item.split("="); + if (StringUtils.containsAny(propertyValue, separator)) + { + for (String value : propertyValue.split(separator)) + { + if (itemArray[0].equals(value)) + { + propertyString.append(itemArray[1] + separator); + break; + } + } + } + else + { + if (itemArray[0].equals(propertyValue)) + { + return itemArray[1]; + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 反向解析值 男=0,女=1,未知=2 + * + * @param propertyValue 参数值 + * @param converterExp 翻译注解 + * @param separator 分隔符 + * @return 解析后值 + */ + public static String reverseByExp(String propertyValue, String converterExp, String separator) + { + StringBuilder propertyString = new StringBuilder(); + String[] convertSource = converterExp.split(SEPARATOR); + for (String item : convertSource) + { + String[] itemArray = item.split("="); + if (StringUtils.containsAny(propertyValue, separator)) + { + for (String value : propertyValue.split(separator)) + { + if (itemArray[1].equals(value)) + { + propertyString.append(itemArray[0] + separator); + break; + } + } + } + else + { + if (itemArray[1].equals(propertyValue)) + { + return itemArray[0]; + } + } + } + return StringUtils.stripEnd(propertyString.toString(), separator); + } + + /** + * 解析字典值 + * + * @param dictValue 字典值 + * @param dictType 字典类型 + * @param separator 分隔符 + * @return 字典标签 + */ + public static String convertDictByExp(String dictValue, String dictType, String separator) + { + return DictUtils.getDictLabel(dictType, dictValue, separator); + } + + /** + * 反向解析值字典值 + * + * @param dictLabel 字典标签 + * @param dictType 字典类型 + * @param separator 分隔符 + * @return 字典值 + */ + public static String reverseDictByExp(String dictLabel, String dictType, String separator) + { + return DictUtils.getDictValue(dictType, dictLabel, separator); + } + + /** + * 数据处理器 + * + * @param value 数据值 + * @param excel 数据注解 + * @return + */ + public String dataFormatHandlerAdapter(Object value, Excel excel, Cell cell) + { + try + { + Object instance = excel.handler().newInstance(); + Method formatMethod = excel.handler().getMethod("format", new Class[] { Object.class, String[].class, Cell.class, Workbook.class }); + value = formatMethod.invoke(instance, value, excel.args(), cell, this.wb); + } + catch (Exception e) + { + log.error("不能格式化数据 " + excel.handler(), e.getMessage()); + } + return Convert.toStr(value); + } + + /** + * 合计统计信息 + */ + private void addStatisticsData(Integer index, String text, Excel entity) + { + if (entity != null && entity.isStatistics()) + { + Double temp = 0D; + if (!statistics.containsKey(index)) + { + statistics.put(index, temp); + } + try + { + temp = Double.valueOf(text); + } + catch (NumberFormatException e) + { + } + statistics.put(index, statistics.get(index) + temp); + } + } + + /** + * 创建统计行 + */ + public void addStatisticsRow() + { + if (statistics.size() > 0) + { + Row row = sheet.createRow(sheet.getLastRowNum() + 1); + Set keys = statistics.keySet(); + Cell cell = row.createCell(0); + cell.setCellStyle(styles.get("total")); + cell.setCellValue("合计"); + + for (Integer key : keys) + { + cell = row.createCell(key); + cell.setCellStyle(styles.get("total")); + cell.setCellValue(statistics.get(key)); + } + statistics.clear(); + } + } + + /** + * 编码文件名 + */ + public String encodingFilename(String filename) + { + return UUID.randomUUID() + "_" + filename + ".xlsx"; + } + + /** + * 获取下载路径 + * + * @param filename 文件名称 + */ + public String getAbsoluteFile(String filename) + { + String downloadPath = RuoYiConfig.getDownloadPath() + filename; + File desc = new File(downloadPath); + if (!desc.getParentFile().exists()) + { + desc.getParentFile().mkdirs(); + } + return downloadPath; + } + + /** + * 获取bean中的属性值 + * + * @param vo 实体对象 + * @param field 字段 + * @param excel 注解 + * @return 最终的属性值 + * @throws Exception + */ + private Object getTargetValue(T vo, Field field, Excel excel) throws Exception + { + field.setAccessible(true); + Object o = field.get(vo); + if (StringUtils.isNotEmpty(excel.targetAttr())) + { + String target = excel.targetAttr(); + if (target.contains(".")) + { + String[] targets = target.split("[.]"); + for (String name : targets) + { + o = getValue(o, name); + } + } + else + { + o = getValue(o, target); + } + } + return o; + } + + /** + * 以类的属性的get方法方法形式获取值 + * + * @param o + * @param name + * @return value + * @throws Exception + */ + private Object getValue(Object o, String name) throws Exception + { + if (StringUtils.isNotNull(o) && StringUtils.isNotEmpty(name)) + { + Class clazz = o.getClass(); + Field field = clazz.getDeclaredField(name); + field.setAccessible(true); + o = field.get(o); + } + return o; + } + + /** + * 得到所有定义字段 + */ + private void createExcelField() + { + this.fields = getFields(); + this.fields = this.fields.stream().sorted(Comparator.comparing(objects -> ((Excel) objects[1]).sort())).collect(Collectors.toList()); + this.maxHeight = getRowHeight(); + } + + /** + * 获取字段注解信息 + */ + public List getFields() + { + List fields = new ArrayList(); + List tempFields = new ArrayList<>(); + tempFields.addAll(Arrays.asList(clazz.getSuperclass().getDeclaredFields())); + tempFields.addAll(Arrays.asList(clazz.getDeclaredFields())); + if (StringUtils.isNotEmpty(includeFields)) + { + for (Field field : tempFields) + { + if (ArrayUtils.contains(this.includeFields, field.getName()) || field.isAnnotationPresent(Excels.class)) + { + addField(fields, field); + } + } + } + else if (StringUtils.isNotEmpty(excludeFields)) + { + for (Field field : tempFields) + { + if (!ArrayUtils.contains(this.excludeFields, field.getName())) + { + addField(fields, field); + } + } + } + else + { + for (Field field : tempFields) + { + addField(fields, field); + } + } + return fields; + } + + /** + * 添加字段信息 + */ + public void addField(List fields, Field field) + { + // 单注解 + if (field.isAnnotationPresent(Excel.class)) + { + Excel attr = field.getAnnotation(Excel.class); + if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) + { + fields.add(new Object[] { field, attr }); + } + if (Collection.class.isAssignableFrom(field.getType())) + { + subMethod = getSubMethod(field.getName(), clazz); + ParameterizedType pt = (ParameterizedType) field.getGenericType(); + Class subClass = (Class) pt.getActualTypeArguments()[0]; + this.subFields = FieldUtils.getFieldsListWithAnnotation(subClass, Excel.class); + } + } + + // 多注解 + if (field.isAnnotationPresent(Excels.class)) + { + Excels attrs = field.getAnnotation(Excels.class); + Excel[] excels = attrs.value(); + for (Excel attr : excels) + { + if (StringUtils.isNotEmpty(includeFields)) + { + if (ArrayUtils.contains(this.includeFields, field.getName() + "." + attr.targetAttr()) + && (attr != null && (attr.type() == Type.ALL || attr.type() == type))) + { + fields.add(new Object[] { field, attr }); + } + } + else + { + if (!ArrayUtils.contains(this.excludeFields, field.getName() + "." + attr.targetAttr()) + && (attr != null && (attr.type() == Type.ALL || attr.type() == type))) + { + fields.add(new Object[] { field, attr }); + } + } + } + } + } + + /** + * 根据注解获取最大行高 + */ + public short getRowHeight() + { + double maxHeight = 0; + for (Object[] os : this.fields) + { + Excel excel = (Excel) os[1]; + maxHeight = Math.max(maxHeight, excel.height()); + } + return (short) (maxHeight * 20); + } + + /** + * 创建一个工作簿 + */ + public void createWorkbook() + { + this.wb = new SXSSFWorkbook(500); + this.sheet = wb.createSheet(); + wb.setSheetName(0, sheetName); + this.styles = createStyles(wb); + } + + /** + * 创建工作表 + * + * @param sheetNo sheet数量 + * @param index 序号 + */ + public void createSheet(int sheetNo, int index) + { + // 设置工作表的名称. + if (sheetNo > 1 && index > 0) + { + this.sheet = wb.createSheet(); + this.createTitle(); + wb.setSheetName(index, sheetName + index); + } + } + + /** + * 获取单元格值 + * + * @param row 获取的行 + * @param column 获取单元格列号 + * @return 单元格值 + */ + public Object getCellValue(Row row, int column) + { + if (row == null) + { + return row; + } + Object val = ""; + try + { + Cell cell = row.getCell(column); + if (StringUtils.isNotNull(cell)) + { + if (cell.getCellType() == CellType.NUMERIC || cell.getCellType() == CellType.FORMULA) + { + val = cell.getNumericCellValue(); + if (DateUtil.isCellDateFormatted(cell)) + { + val = DateUtil.getJavaDate((Double) val); // POI Excel 日期格式转换 + } + else + { + if ((Double) val % 1 != 0) + { + val = new BigDecimal(val.toString()); + } + else + { + val = new DecimalFormat("0").format(val); + } + } + } + else if (cell.getCellType() == CellType.STRING) + { + val = cell.getStringCellValue(); + } + else if (cell.getCellType() == CellType.BOOLEAN) + { + val = cell.getBooleanCellValue(); + } + else if (cell.getCellType() == CellType.ERROR) + { + val = cell.getErrorCellValue(); + } + + } + } + catch (Exception e) + { + return val; + } + return val; + } + + /** + * 判断是否是空行 + * + * @param row 判断的行 + * @return + */ + private boolean isRowEmpty(Row row) + { + if (row == null) + { + return true; + } + for (int i = row.getFirstCellNum(); i < row.getLastCellNum(); i++) + { + Cell cell = row.getCell(i); + if (cell != null && cell.getCellType() != CellType.BLANK) + { + return false; + } + } + return true; + } + + /** + * 获取Excel2003图片 + * + * @param sheet 当前sheet对象 + * @param workbook 工作簿对象 + * @return Map key:图片单元格索引(1_1)String,value:图片流PictureData + */ + public static Map> getSheetPictures03(HSSFSheet sheet, HSSFWorkbook workbook) + { + Map> sheetIndexPicMap = new HashMap<>(); + List pictures = workbook.getAllPictures(); + if (!pictures.isEmpty() && sheet.getDrawingPatriarch() != null) + { + for (HSSFShape shape : sheet.getDrawingPatriarch().getChildren()) + { + if (shape instanceof HSSFPicture) + { + HSSFPicture pic = (HSSFPicture) shape; + HSSFClientAnchor anchor = (HSSFClientAnchor) pic.getAnchor(); + String picIndex = anchor.getRow1() + "_" + anchor.getCol1(); + sheetIndexPicMap.computeIfAbsent(picIndex, k -> new ArrayList<>()).add(pic.getPictureData()); + } + } + } + return sheetIndexPicMap; + } + + /** + * 获取Excel2007图片 + * + * @param sheet 当前sheet对象 + * @param workbook 工作簿对象 + * @return Map key:图片单元格索引(1_1)String,value:图片流PictureData + */ + public static Map> getSheetPictures07(XSSFSheet sheet, XSSFWorkbook workbook) + { + Map> sheetIndexPicMap = new HashMap<>(); + for (POIXMLDocumentPart dr : sheet.getRelations()) + { + if (dr instanceof XSSFDrawing) + { + XSSFDrawing drawing = (XSSFDrawing) dr; + for (XSSFShape shape : drawing.getShapes()) + { + if (shape instanceof XSSFPicture) + { + XSSFPicture pic = (XSSFPicture) shape; + XSSFClientAnchor anchor = pic.getPreferredSize(); + CTMarker ctMarker = anchor.getFrom(); + String picIndex = ctMarker.getRow() + "_" + ctMarker.getCol(); + sheetIndexPicMap.computeIfAbsent(picIndex, k -> new ArrayList<>()).add(pic.getPictureData()); + } + } + } + } + return sheetIndexPicMap; + } + + /** + * 格式化不同类型的日期对象 + * + * @param dateFormat 日期格式 + * @param val 被格式化的日期对象 + * @return 格式化后的日期字符 + */ + public String parseDateToStr(String dateFormat, Object val) + { + if (val == null) + { + return ""; + } + String str; + if (val instanceof Date) + { + str = DateUtils.parseDateToStr(dateFormat, (Date) val); + } + else if (val instanceof LocalDateTime) + { + str = DateUtils.parseDateToStr(dateFormat, DateUtils.toDate((LocalDateTime) val)); + } + else if (val instanceof LocalDate) + { + str = DateUtils.parseDateToStr(dateFormat, DateUtils.toDate((LocalDate) val)); + } + else + { + str = val.toString(); + } + return str; + } + + /** + * 是否有对象的子列表 + */ + public boolean isSubList() + { + return StringUtils.isNotNull(subFields) && subFields.size() > 0; + } + + /** + * 是否有对象的子列表,集合不为空 + */ + public boolean isSubListValue(T vo) + { + return StringUtils.isNotNull(subFields) && subFields.size() > 0 && StringUtils.isNotNull(getListCellValue(vo)) && getListCellValue(vo).size() > 0; + } + + /** + * 获取集合的值 + */ + public Collection getListCellValue(Object obj) + { + Object value; + try + { + value = subMethod.invoke(obj, new Object[] {}); + } + catch (Exception e) + { + return new ArrayList(); + } + return (Collection) value; + } + + /** + * 获取对象的子列表方法 + * + * @param name 名称 + * @param pojoClass 类对象 + * @return 子列表方法 + */ + public Method getSubMethod(String name, Class pojoClass) + { + StringBuffer getMethodName = new StringBuffer("get"); + getMethodName.append(name.substring(0, 1).toUpperCase()); + getMethodName.append(name.substring(1)); + Method method = null; + try + { + method = pojoClass.getMethod(getMethodName.toString(), new Class[] {}); + } + catch (Exception e) + { + log.error("获取对象异常{}", e.getMessage()); + } + return method; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java new file mode 100644 index 0000000..b19953e --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/reflect/ReflectUtils.java @@ -0,0 +1,410 @@ +package com.ruoyi.common.utils.reflect; + +import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.lang.reflect.ParameterizedType; +import java.lang.reflect.Type; +import java.util.Date; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Validate; +import org.apache.poi.ss.usermodel.DateUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.DateUtils; + +/** + * 反射工具类. 提供调用getter/setter方法, 访问私有变量, 调用私有方法, 获取泛型类型Class, 被AOP过的真实类等工具函数. + * + * @author ruoyi + */ +@SuppressWarnings("rawtypes") +public class ReflectUtils +{ + private static final String SETTER_PREFIX = "set"; + + private static final String GETTER_PREFIX = "get"; + + private static final String CGLIB_CLASS_SEPARATOR = "$$"; + + private static Logger logger = LoggerFactory.getLogger(ReflectUtils.class); + + /** + * 调用Getter方法. + * 支持多级,如:对象名.对象名.方法 + */ + @SuppressWarnings("unchecked") + public static E invokeGetter(Object obj, String propertyName) + { + Object object = obj; + for (String name : StringUtils.split(propertyName, ".")) + { + String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(name); + object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {}); + } + return (E) object; + } + + /** + * 调用Setter方法, 仅匹配方法名。 + * 支持多级,如:对象名.对象名.方法 + */ + public static void invokeSetter(Object obj, String propertyName, E value) + { + Object object = obj; + String[] names = StringUtils.split(propertyName, "."); + for (int i = 0; i < names.length; i++) + { + if (i < names.length - 1) + { + String getterMethodName = GETTER_PREFIX + StringUtils.capitalize(names[i]); + object = invokeMethod(object, getterMethodName, new Class[] {}, new Object[] {}); + } + else + { + String setterMethodName = SETTER_PREFIX + StringUtils.capitalize(names[i]); + invokeMethodByName(object, setterMethodName, new Object[] { value }); + } + } + } + + /** + * 直接读取对象属性值, 无视private/protected修饰符, 不经过getter函数. + */ + @SuppressWarnings("unchecked") + public static E getFieldValue(final Object obj, final String fieldName) + { + Field field = getAccessibleField(obj, fieldName); + if (field == null) + { + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + return null; + } + E result = null; + try + { + result = (E) field.get(obj); + } + catch (IllegalAccessException e) + { + logger.error("不可能抛出的异常{}", e.getMessage()); + } + return result; + } + + /** + * 直接设置对象属性值, 无视private/protected修饰符, 不经过setter函数. + */ + public static void setFieldValue(final Object obj, final String fieldName, final E value) + { + Field field = getAccessibleField(obj, fieldName); + if (field == null) + { + // throw new IllegalArgumentException("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + fieldName + "] 字段 "); + return; + } + try + { + field.set(obj, value); + } + catch (IllegalAccessException e) + { + logger.error("不可能抛出的异常: {}", e.getMessage()); + } + } + + /** + * 直接调用对象方法, 无视private/protected修饰符. + * 用于一次性调用的情况,否则应使用getAccessibleMethod()函数获得Method后反复调用. + * 同时匹配方法名+参数类型, + */ + @SuppressWarnings("unchecked") + public static E invokeMethod(final Object obj, final String methodName, final Class[] parameterTypes, + final Object[] args) + { + if (obj == null || methodName == null) + { + return null; + } + Method method = getAccessibleMethod(obj, methodName, parameterTypes); + if (method == null) + { + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + methodName + "] 方法 "); + return null; + } + try + { + return (E) method.invoke(obj, args); + } + catch (Exception e) + { + String msg = "method: " + method + ", obj: " + obj + ", args: " + args + ""; + throw convertReflectionExceptionToUnchecked(msg, e); + } + } + + /** + * 直接调用对象方法, 无视private/protected修饰符, + * 用于一次性调用的情况,否则应使用getAccessibleMethodByName()函数获得Method后反复调用. + * 只匹配函数名,如果有多个同名函数调用第一个。 + */ + @SuppressWarnings("unchecked") + public static E invokeMethodByName(final Object obj, final String methodName, final Object[] args) + { + Method method = getAccessibleMethodByName(obj, methodName, args.length); + if (method == null) + { + // 如果为空不报错,直接返回空。 + logger.debug("在 [" + obj.getClass() + "] 中,没有找到 [" + methodName + "] 方法 "); + return null; + } + try + { + // 类型转换(将参数数据类型转换为目标方法参数类型) + Class[] cs = method.getParameterTypes(); + for (int i = 0; i < cs.length; i++) + { + if (args[i] != null && !args[i].getClass().equals(cs[i])) + { + if (cs[i] == String.class) + { + args[i] = Convert.toStr(args[i]); + if (StringUtils.endsWith((String) args[i], ".0")) + { + args[i] = StringUtils.substringBefore((String) args[i], ".0"); + } + } + else if (cs[i] == Integer.class) + { + args[i] = Convert.toInt(args[i]); + } + else if (cs[i] == Long.class) + { + args[i] = Convert.toLong(args[i]); + } + else if (cs[i] == Double.class) + { + args[i] = Convert.toDouble(args[i]); + } + else if (cs[i] == Float.class) + { + args[i] = Convert.toFloat(args[i]); + } + else if (cs[i] == Date.class) + { + if (args[i] instanceof String) + { + args[i] = DateUtils.parseDate(args[i]); + } + else + { + args[i] = DateUtil.getJavaDate((Double) args[i]); + } + } + else if (cs[i] == boolean.class || cs[i] == Boolean.class) + { + args[i] = Convert.toBool(args[i]); + } + } + } + return (E) method.invoke(obj, args); + } + catch (Exception e) + { + String msg = "method: " + method + ", obj: " + obj + ", args: " + args + ""; + throw convertReflectionExceptionToUnchecked(msg, e); + } + } + + /** + * 循环向上转型, 获取对象的DeclaredField, 并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + */ + public static Field getAccessibleField(final Object obj, final String fieldName) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(fieldName, "fieldName can't be blank"); + for (Class superClass = obj.getClass(); superClass != Object.class; superClass = superClass.getSuperclass()) + { + try + { + Field field = superClass.getDeclaredField(fieldName); + makeAccessible(field); + return field; + } + catch (NoSuchFieldException e) + { + continue; + } + } + return null; + } + + /** + * 循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + * 匹配函数名+参数类型。 + * 用于方法需要被多次调用的情况. 先使用本函数先取得Method,然后调用Method.invoke(Object obj, Object... args) + */ + public static Method getAccessibleMethod(final Object obj, final String methodName, + final Class... parameterTypes) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(methodName, "methodName can't be blank"); + for (Class searchType = obj.getClass(); searchType != Object.class; searchType = searchType.getSuperclass()) + { + try + { + Method method = searchType.getDeclaredMethod(methodName, parameterTypes); + makeAccessible(method); + return method; + } + catch (NoSuchMethodException e) + { + continue; + } + } + return null; + } + + /** + * 循环向上转型, 获取对象的DeclaredMethod,并强制设置为可访问. + * 如向上转型到Object仍无法找到, 返回null. + * 只匹配函数名。 + * 用于方法需要被多次调用的情况. 先使用本函数先取得Method,然后调用Method.invoke(Object obj, Object... args) + */ + public static Method getAccessibleMethodByName(final Object obj, final String methodName, int argsNum) + { + // 为空不报错。直接返回 null + if (obj == null) + { + return null; + } + Validate.notBlank(methodName, "methodName can't be blank"); + for (Class searchType = obj.getClass(); searchType != Object.class; searchType = searchType.getSuperclass()) + { + Method[] methods = searchType.getDeclaredMethods(); + for (Method method : methods) + { + if (method.getName().equals(methodName) && method.getParameterTypes().length == argsNum) + { + makeAccessible(method); + return method; + } + } + } + return null; + } + + /** + * 改变private/protected的方法为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。 + */ + public static void makeAccessible(Method method) + { + if ((!Modifier.isPublic(method.getModifiers()) || !Modifier.isPublic(method.getDeclaringClass().getModifiers())) + && !method.isAccessible()) + { + method.setAccessible(true); + } + } + + /** + * 改变private/protected的成员变量为public,尽量不调用实际改动的语句,避免JDK的SecurityManager抱怨。 + */ + public static void makeAccessible(Field field) + { + if ((!Modifier.isPublic(field.getModifiers()) || !Modifier.isPublic(field.getDeclaringClass().getModifiers()) + || Modifier.isFinal(field.getModifiers())) && !field.isAccessible()) + { + field.setAccessible(true); + } + } + + /** + * 通过反射, 获得Class定义中声明的泛型参数的类型, 注意泛型必须定义在父类处 + * 如无法找到, 返回Object.class. + */ + @SuppressWarnings("unchecked") + public static Class getClassGenricType(final Class clazz) + { + return getClassGenricType(clazz, 0); + } + + /** + * 通过反射, 获得Class定义中声明的父类的泛型参数的类型. + * 如无法找到, 返回Object.class. + */ + public static Class getClassGenricType(final Class clazz, final int index) + { + Type genType = clazz.getGenericSuperclass(); + + if (!(genType instanceof ParameterizedType)) + { + logger.debug(clazz.getSimpleName() + "'s superclass not ParameterizedType"); + return Object.class; + } + + Type[] params = ((ParameterizedType) genType).getActualTypeArguments(); + + if (index >= params.length || index < 0) + { + logger.debug("Index: " + index + ", Size of " + clazz.getSimpleName() + "'s Parameterized Type: " + + params.length); + return Object.class; + } + if (!(params[index] instanceof Class)) + { + logger.debug(clazz.getSimpleName() + " not set the actual class on superclass generic parameter"); + return Object.class; + } + + return (Class) params[index]; + } + + public static Class getUserClass(Object instance) + { + if (instance == null) + { + throw new RuntimeException("Instance must not be null"); + } + Class clazz = instance.getClass(); + if (clazz != null && clazz.getName().contains(CGLIB_CLASS_SEPARATOR)) + { + Class superClass = clazz.getSuperclass(); + if (superClass != null && !Object.class.equals(superClass)) + { + return superClass; + } + } + return clazz; + + } + + /** + * 将反射时的checked exception转换为unchecked exception. + */ + public static RuntimeException convertReflectionExceptionToUnchecked(String msg, Exception e) + { + if (e instanceof IllegalAccessException || e instanceof IllegalArgumentException + || e instanceof NoSuchMethodException) + { + return new IllegalArgumentException(msg, e); + } + else if (e instanceof InvocationTargetException) + { + return new RuntimeException(msg, ((InvocationTargetException) e).getTargetException()); + } + return new RuntimeException(msg, e); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Base64.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Base64.java new file mode 100644 index 0000000..55659bc --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Base64.java @@ -0,0 +1,253 @@ +package com.ruoyi.common.utils.sign; + +/** + * Base64工具类 + * + * @author ruoyi + */ +public final class Base64 { + static private final int BASELENGTH = 128; + static private final int LOOKUPLENGTH = 64; + static private final int TWENTYFOURBITGROUP = 24; + static private final int EIGHTBIT = 8; + static private final int SIXTEENBIT = 16; + static private final int FOURBYTE = 4; + static private final int SIGN = -128; + static private final char PAD = '='; + static final private byte[] base64Alphabet = new byte[BASELENGTH]; + static final private char[] lookUpBase64Alphabet = new char[LOOKUPLENGTH]; + + static { + for (int i = 0; i < BASELENGTH; ++i) { + base64Alphabet[i] = -1; + } + for (int i = 'Z'; i >= 'A'; i--) { + base64Alphabet[i] = (byte) (i - 'A'); + } + for (int i = 'z'; i >= 'a'; i--) { + base64Alphabet[i] = (byte) (i - 'a' + 26); + } + + for (int i = '9'; i >= '0'; i--) { + base64Alphabet[i] = (byte) (i - '0' + 52); + } + + base64Alphabet['+'] = 62; + base64Alphabet['/'] = 63; + + for (int i = 0; i <= 25; i++) { + lookUpBase64Alphabet[i] = (char) ('A' + i); + } + + for (int i = 26, j = 0; i <= 51; i++, j++) { + lookUpBase64Alphabet[i] = (char) ('a' + j); + } + + for (int i = 52, j = 0; i <= 61; i++, j++) { + lookUpBase64Alphabet[i] = (char) ('0' + j); + } + lookUpBase64Alphabet[62] = (char) '+'; + lookUpBase64Alphabet[63] = (char) '/'; + } + + private static boolean isWhiteSpace(char octect) { + return (octect == 0x20 || octect == 0xd || octect == 0xa || octect == 0x9); + } + + private static boolean isPad(char octect) { + return (octect == PAD); + } + + private static boolean isData(char octect) { + return (octect < BASELENGTH && base64Alphabet[octect] != -1); + } + + /** + * Encodes hex octects into Base64 + * + * @param binaryData Array containing binaryData + * @return Encoded Base64 array + */ + public static String encode(byte[] binaryData) { + if (binaryData == null) { + return null; + } + + int lengthDataBits = binaryData.length * EIGHTBIT; + if (lengthDataBits == 0) { + return ""; + } + + int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP; + int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP; + int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets; + char encodedData[] = null; + + encodedData = new char[numberQuartet * 4]; + + byte k = 0, l = 0, b1 = 0, b2 = 0, b3 = 0; + + int encodedIndex = 0; + int dataIndex = 0; + + for (int i = 0; i < numberTriplets; i++) { + b1 = binaryData[dataIndex++]; + b2 = binaryData[dataIndex++]; + b3 = binaryData[dataIndex++]; + + l = (byte) (b2 & 0x0f); + k = (byte) (b1 & 0x03); + + byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0); + byte val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4) : (byte) ((b2) >> 4 ^ 0xf0); + byte val3 = ((b3 & SIGN) == 0) ? (byte) (b3 >> 6) : (byte) ((b3) >> 6 ^ 0xfc); + + encodedData[encodedIndex++] = lookUpBase64Alphabet[val1]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[val2 | (k << 4)]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[(l << 2) | val3]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[b3 & 0x3f]; + } + + // form integral number of 6-bit groups + if (fewerThan24bits == EIGHTBIT) { + b1 = binaryData[dataIndex]; + k = (byte) (b1 & 0x03); + byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0); + encodedData[encodedIndex++] = lookUpBase64Alphabet[val1]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[k << 4]; + encodedData[encodedIndex++] = PAD; + encodedData[encodedIndex++] = PAD; + } else if (fewerThan24bits == SIXTEENBIT) { + b1 = binaryData[dataIndex]; + b2 = binaryData[dataIndex + 1]; + l = (byte) (b2 & 0x0f); + k = (byte) (b1 & 0x03); + + byte val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0); + byte val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4) : (byte) ((b2) >> 4 ^ 0xf0); + + encodedData[encodedIndex++] = lookUpBase64Alphabet[val1]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[val2 | (k << 4)]; + encodedData[encodedIndex++] = lookUpBase64Alphabet[l << 2]; + encodedData[encodedIndex++] = PAD; + } + return new String(encodedData); + } + + /** + * Decodes Base64 data into octects + * + * @param encoded string containing Base64 data + * @return Array containind decoded data. + */ + public static byte[] decode(String encoded) { + if (encoded == null) { + return null; + } + + char[] base64Data = encoded.toCharArray(); + // remove white spaces + int len = removeWhiteSpace(base64Data); + + if (len % FOURBYTE != 0) { + return null;// should be divisible by four + } + + int numberQuadruple = (len / FOURBYTE); + + if (numberQuadruple == 0) { + return new byte[0]; + } + + byte decodedData[] = null; + byte b1 = 0, b2 = 0, b3 = 0, b4 = 0; + char d1 = 0, d2 = 0, d3 = 0, d4 = 0; + + int i = 0; + int encodedIndex = 0; + int dataIndex = 0; + decodedData = new byte[(numberQuadruple) * 3]; + + for (; i < numberQuadruple - 1; i++) { + + if (!isData((d1 = base64Data[dataIndex++])) || !isData((d2 = base64Data[dataIndex++])) + || !isData((d3 = base64Data[dataIndex++])) || !isData((d4 = base64Data[dataIndex++]))) { + return null; + } // if found "no data" just return null + + b1 = base64Alphabet[d1]; + b2 = base64Alphabet[d2]; + b3 = base64Alphabet[d3]; + b4 = base64Alphabet[d4]; + + decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4); + decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); + decodedData[encodedIndex++] = (byte) (b3 << 6 | b4); + } + + if (!isData((d1 = base64Data[dataIndex++])) || !isData((d2 = base64Data[dataIndex++]))) { + return null;// if found "no data" just return null + } + + b1 = base64Alphabet[d1]; + b2 = base64Alphabet[d2]; + + d3 = base64Data[dataIndex++]; + d4 = base64Data[dataIndex++]; + if (!isData((d3)) || !isData((d4))) {// Check if they are PAD characters + if (isPad(d3) && isPad(d4)) { + if ((b2 & 0xf) != 0)// last 4 bits should be zero + { + return null; + } + byte[] tmp = new byte[i * 3 + 1]; + System.arraycopy(decodedData, 0, tmp, 0, i * 3); + tmp[encodedIndex] = (byte) (b1 << 2 | b2 >> 4); + return tmp; + } else if (!isPad(d3) && isPad(d4)) { + b3 = base64Alphabet[d3]; + if ((b3 & 0x3) != 0)// last 2 bits should be zero + { + return null; + } + byte[] tmp = new byte[i * 3 + 2]; + System.arraycopy(decodedData, 0, tmp, 0, i * 3); + tmp[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4); + tmp[encodedIndex] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); + return tmp; + } else { + return null; + } + } else { // No PAD e.g 3cQl + b3 = base64Alphabet[d3]; + b4 = base64Alphabet[d4]; + decodedData[encodedIndex++] = (byte) (b1 << 2 | b2 >> 4); + decodedData[encodedIndex++] = (byte) (((b2 & 0xf) << 4) | ((b3 >> 2) & 0xf)); + decodedData[encodedIndex++] = (byte) (b3 << 6 | b4); + + } + return decodedData; + } + + /** + * remove WhiteSpace from MIME containing encoded Base64 data. + * + * @param data the byte array of base64 data (with WS) + * @return the new length + */ + private static int removeWhiteSpace(char[] data) { + if (data == null) { + return 0; + } + + // count characters that's not whitespace + int newSize = 0; + int len = data.length; + for (int i = 0; i < len; i++) { + if (!isWhiteSpace(data[i])) { + data[newSize++] = data[i]; + } + } + return newSize; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/HmacSha256Utils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/HmacSha256Utils.java new file mode 100644 index 0000000..a1347c7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/HmacSha256Utils.java @@ -0,0 +1,93 @@ +package com.ruoyi.common.utils.sign; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; +import java.nio.charset.StandardCharsets; +import java.security.InvalidKeyException; +import java.security.NoSuchAlgorithmException; + +/** + * HMAC-SHA256 加密工具类(Java 1.8 原生实现) + * 功能:hex(hmac-sha256(signatureString, secret)) + */ +public class HmacSha256Utils { + + public static String hmacSha256To16Hex(String data,String secret) throws Exception { + Mac sha256Hmac = Mac.getInstance("HmacSHA256"); + SecretKeySpec secKey = new SecretKeySpec(secret.getBytes(StandardCharsets.UTF_8), "HmacSHA256"); + sha256Hmac.init(secKey); + byte[] hash = sha256Hmac.doFinal(data.getBytes(StandardCharsets.UTF_8)); + + // 转16进制 + StringBuilder sb = new StringBuilder(hash.length * 2); + for (byte b : hash) sb.append(String.format("%02x", b)); + return sb.toString(); + } + + /** + * HMAC-SHA256 加密并转为 16 进制字符串(默认 UTF-8 编码,大写结果) + * + * @param signatureString 待加密的字符串(原始签名串) + * @param secret 密钥(加密密钥) + * @return 16 进制编码的 HMAC-SHA256 结果(大写) + * @throws NoSuchAlgorithmException 算法不存在(理论上不会抛出,Java 1.8 自带 HmacSHA256) + * @throws InvalidKeyException 密钥无效(如密钥为空或格式错误) + */ + public static String hmacSha256ToHex(String signatureString, String secret) + throws NoSuchAlgorithmException, InvalidKeyException { + // 1. 初始化 HMAC-SHA256 算法的 Mac 实例 + Mac hmacSha256 = Mac.getInstance("HmacSHA256"); + + // 2. 将密钥字符串转为 SecretKeySpec(UTF-8 编码) + SecretKeySpec secretKey = new SecretKeySpec( + secret.getBytes(StandardCharsets.UTF_8), + "HmacSHA256" + ); + + // 3. 初始化 Mac 并计算摘要(待加密字符串按 UTF-8 转字节数组) + hmacSha256.init(secretKey); + byte[] hmacBytes = hmacSha256.doFinal(signatureString.getBytes(StandardCharsets.UTF_8)); + + // 4. 将 HMAC 字节数组转为 16 进制字符串(大写) + return bytesToHex(hmacBytes); + } + + /** + * 字节数组转为 16 进制字符串(大写,确保每个字节对应两位十六进制数) + * + * @param bytes HMAC 加密后的字节数组 + * @return 大写 16 进制字符串 + */ + private static String bytesToHex(byte[] bytes) { + StringBuilder hexBuilder = new StringBuilder(); + for (byte b : bytes) { + // 字节转十六进制(& 0xFF 避免负数问题) + String hex = Integer.toHexString(b & 0xFF); + // 不足两位补 0(如字节 0x0A 需转为 "0A",而非 "A") + if (hex.length() == 1) { + hexBuilder.append('0'); + } + hexBuilder.append(hex.toUpperCase()); // 转为大写(如需小写,改为 toLowerCase()) + } + return hexBuilder.toString(); + } + + // ------------------------------ 测试示例 ------------------------------ + public static void main(String[] args) { + try { + // 待加密的签名串 + String signatureString = "HelloWorld123"; + // 加密密钥 + String secret = "mySecretKey123456"; + + // 执行加密 + String hexResult = hmacSha256ToHex(signatureString, secret); + + // 输出结果(示例结果:8F7E2B9D3C7A1F0E4D6B8A0C2E5F3A7D9B0C4E6F8A1B3C5D7E9F0A2B4C6D8E0F) + System.out.println("HMAC-SHA256 Hex 结果:" + hexResult); + } catch (NoSuchAlgorithmException | InvalidKeyException e) { + // 处理异常(实际项目中建议更友好的异常处理) + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Md5Utils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Md5Utils.java new file mode 100644 index 0000000..c1c58db --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/Md5Utils.java @@ -0,0 +1,67 @@ +package com.ruoyi.common.utils.sign; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * Md5加密方法 + * + * @author ruoyi + */ +public class Md5Utils +{ + private static final Logger log = LoggerFactory.getLogger(Md5Utils.class); + + private static byte[] md5(String s) + { + MessageDigest algorithm; + try + { + algorithm = MessageDigest.getInstance("MD5"); + algorithm.reset(); + algorithm.update(s.getBytes("UTF-8")); + byte[] messageDigest = algorithm.digest(); + return messageDigest; + } + catch (Exception e) + { + log.error("MD5 Error...", e); + } + return null; + } + + private static final String toHex(byte hash[]) + { + if (hash == null) + { + return null; + } + StringBuffer buf = new StringBuffer(hash.length * 2); + int i; + + for (i = 0; i < hash.length; i++) + { + if ((hash[i] & 0xff) < 0x10) + { + buf.append("0"); + } + buf.append(Long.toString(hash[i] & 0xff, 16)); + } + return buf.toString(); + } + + public static String hash(String s) + { + try + { + return new String(toHex(md5(s)).getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8); + } + catch (Exception e) + { + log.error("not supported charset...{}", e); + return s; + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/RSAUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/RSAUtils.java new file mode 100644 index 0000000..8229dd7 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sign/RSAUtils.java @@ -0,0 +1,189 @@ +package com.ruoyi.common.utils.sign; + +import cn.hutool.json.JSONObject; +import org.apache.commons.io.IOUtils; +import org.apache.commons.lang3.ArrayUtils; + +import javax.crypto.Cipher; +import java.io.ByteArrayOutputStream; +import java.security.KeyFactory; +import java.security.interfaces.RSAPrivateKey; +import java.security.interfaces.RSAPublicKey; +import java.security.spec.PKCS8EncodedKeySpec; +import java.security.spec.X509EncodedKeySpec; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +public class RSAUtils { + + // RSA最⼤加密明⽂⼤⼩ + private static final int MAX_ENCRYPT_BLOCK = 117; + // 不仅可以使⽤DSA算法,同样也可以使⽤RSA算法做数字签名 + private static final String KEY_ALGORITHM = "RSA"; + + public static String encryptByPrivateKey(String str, String privateKey) throws Exception { + // base64编码的公钥 + byte[] keyBytes = decryptBASE64(privateKey); + RSAPrivateKey priKey = (RSAPrivateKey) KeyFactory.getInstance(KEY_ALGORITHM).generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); + // RSA加密 + Cipher cipher = Cipher.getInstance(KEY_ALGORITHM); + cipher.init(Cipher.ENCRYPT_MODE, priKey); + byte[] data = str.getBytes("UTF-8"); + // 加密时超过117字节就报错。为此采⽤分段加密的办法来加密 + byte[] enBytes = null; + for (int i = 0; i < data.length; i += MAX_ENCRYPT_BLOCK) { + // 注意要使⽤2的倍数,否则会出现加密后的内容再解密时为乱码 + byte[] doFinal = cipher.doFinal(ArrayUtils.subarray(data, i, i + MAX_ENCRYPT_BLOCK)); + enBytes = ArrayUtils.addAll(enBytes, doFinal); + } + String outStr = encryptBASE64(enBytes); + return outStr; + } + + private static String encryptBASE64(byte[] data) { + return new String(Base64.encode(data)); + } + + private static byte[] decryptBASE64(String data) { + return Base64.decode(data); + } + + public static boolean verifySign(JSONObject params, String publickey) { + String platSign = params.getStr("signature"); // sign + List paramNameList = new ArrayList<>(); + for (String key : params.keySet()) { + if (!"signature".equals(key)) { + paramNameList.add(key); + } + } + Collections.sort(paramNameList); + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < paramNameList.size(); i++) { + String name = paramNameList.get(i); + stringBuilder.append(params.getStr(name)); + } + String decryptSign = ""; + try { + decryptSign = publicDecrypt(platSign, getPublicKey(publickey) + ); + } catch (Exception e) { + System.out.println(e.toString()); + } + if (!stringBuilder.toString().equalsIgnoreCase(decryptSign)) { + return false; + } + return true; + } + + public static String getSign(Map createMap, String MCH_PRIVATE_KEY) { + List paramNameList = new ArrayList<>(); + for (String key : createMap.keySet()) { + paramNameList.add(key); + } + Collections.sort(paramNameList); // 排序key + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < paramNameList.size(); i++) { + String key = paramNameList.get(i); + stringBuilder.append(createMap.get(key)); // 拼接参数 + } + String keyStr = stringBuilder.toString(); // 得到待加密的字符串 + String signedStr = ""; + try { + signedStr = privateEncrypt(keyStr, getPrivateKey(MCH_PRIVATE_KEY)); // 私钥加密 + } catch (Exception e) { + System.out.println(e.toString()); + } + return signedStr; + } + + public static String getSignStr(Map createMap, String MCH_PRIVATE_KEY) { + List paramNameList = new ArrayList<>(); + for (String key : createMap.keySet()) { + paramNameList.add(key); + } + Collections.sort(paramNameList); // 排序key + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < paramNameList.size(); i++) { + String key = paramNameList.get(i); + stringBuilder.append(createMap.get(key)); // 拼接参数 + } + String keyStr = stringBuilder.toString(); // 得到待加密的字符串 + String signedStr = ""; + try { + signedStr = privateEncrypt(keyStr, getPrivateKey(MCH_PRIVATE_KEY)); // 私钥加密 + } catch (Exception e) { + System.out.println(e.toString()); + } + return signedStr; + } + + public static String privateEncrypt(String data, RSAPrivateKey privateKey) { + try { + Cipher cipher = Cipher.getInstance("RSA"); + cipher.init(Cipher.ENCRYPT_MODE, privateKey); + return Base64.encode(rsaSplitCodec(cipher, Cipher.ENCRYPT_MODE, data.getBytes("UTF-8"), privateKey.getModulus().bitLength())); + } catch (Exception e) { + throw new RuntimeException("Exception encountered while encry pting string [" + data + "]", e); + } + } + + public static String publicDecrypt(String data, RSAPublicKey publicKey) { + try { + Cipher cipher = Cipher.getInstance("RSA"); + cipher.init(Cipher.DECRYPT_MODE, publicKey); + return new String(rsaSplitCodec(cipher, Cipher.DECRYPT_MODE, Base64.decode(data), publicKey.getModulus().bitLength()), "UTF-8"); + } catch (Exception e) { + throw new RuntimeException("An exception was encountered whil e decrypting the string[" + data + "]", e); + } + } + + public static RSAPrivateKey getPrivateKey(String privateKey) throws Exception { + //Get the private key object through the PKCS#8 encoded Key instruction + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec(Base64.decode(privateKey)); + RSAPrivateKey key = (RSAPrivateKey) keyFactory.generatePrivate(pkcs8KeySpec); + return key; + } + + public static RSAPublicKey getPublicKey(String publicKey) throws Exception { + //Get the public key object through the X509 encoded Key instruction + KeyFactory keyFactory = KeyFactory.getInstance("RSA"); + X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(Base64.decode(publicKey)); + RSAPublicKey key = (RSAPublicKey) keyFactory.generatePublic(x509KeySpec); + return key; + } + + private static byte[] rsaSplitCodec(Cipher cipher, int opmode, byte[] + datas, int keySize) { + int maxBlock = 0; + if (opmode == Cipher.DECRYPT_MODE) { + maxBlock = keySize / 8; + } else { + maxBlock = keySize / 8 - 11; + } + ByteArrayOutputStream out = new ByteArrayOutputStream(); + int offSet = 0; + byte[] buff; + int i = 0; + try { + while (datas.length > offSet) { + if (datas.length - offSet > maxBlock) { + buff = cipher.doFinal(datas, offSet, maxBlock); + } else { + buff = cipher.doFinal(datas, offSet, datas.length - offSet); + } + out.write(buff, 0, buff.length); + i++; + offSet = i * maxBlock; + } + } catch (Exception e) { + throw new RuntimeException("An exception occurred when encryp ting and decrypting data whose threshold is [" + maxBlock + "]", e); + } + byte[] resultDatas = out.toByteArray(); + IOUtils.closeQuietly(out); + return resultDatas; + } + +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java new file mode 100644 index 0000000..5928ed8 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java @@ -0,0 +1,164 @@ +package com.ruoyi.common.utils.spring; + +import org.springframework.aop.framework.Advised; +import org.springframework.aop.framework.AopContext; +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.NoSuchBeanDefinitionException; +import org.springframework.beans.factory.config.BeanFactoryPostProcessor; +import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.StringUtils; + +/** + * spring工具类 方便在非spring管理环境中获取bean + * + * @author ruoyi + */ +@Component +public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware +{ + /** Spring应用上下文环境 */ + private static ConfigurableListableBeanFactory beanFactory; + + private static ApplicationContext applicationContext; + + @Override + public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException + { + SpringUtils.beanFactory = beanFactory; + } + + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + { + SpringUtils.applicationContext = applicationContext; + } + + /** + * 获取对象 + * + * @param name + * @return Object 一个以所给名字注册的bean的实例 + * @throws org.springframework.beans.BeansException + * + */ + @SuppressWarnings("unchecked") + public static T getBean(String name) throws BeansException + { + return (T) beanFactory.getBean(name); + } + + /** + * 获取类型为requiredType的对象 + * + * @param clz + * @return + * @throws org.springframework.beans.BeansException + * + */ + public static T getBean(Class clz) throws BeansException + { + T result = (T) beanFactory.getBean(clz); + return result; + } + + /** + * 如果BeanFactory包含一个与所给名称匹配的bean定义,则返回true + * + * @param name + * @return boolean + */ + public static boolean containsBean(String name) + { + return beanFactory.containsBean(name); + } + + /** + * 判断以给定名字注册的bean定义是一个singleton还是一个prototype。 如果与给定名字相应的bean定义没有被找到,将会抛出一个异常(NoSuchBeanDefinitionException) + * + * @param name + * @return boolean + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static boolean isSingleton(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.isSingleton(name); + } + + /** + * @param name + * @return Class 注册对象的类型 + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static Class getType(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.getType(name); + } + + /** + * 如果给定的bean名字在bean定义中有别名,则返回这些别名 + * + * @param name + * @return + * @throws org.springframework.beans.factory.NoSuchBeanDefinitionException + * + */ + public static String[] getAliases(String name) throws NoSuchBeanDefinitionException + { + return beanFactory.getAliases(name); + } + + /** + * 获取aop代理对象 + * + * @param invoker + * @return + */ + @SuppressWarnings("unchecked") + public static T getAopProxy(T invoker) + { + Object proxy = AopContext.currentProxy(); + if (((Advised) proxy).getTargetSource().getTargetClass() == invoker.getClass()) + { + return (T) proxy; + } + return invoker; + } + + /** + * 获取当前的环境配置,无配置返回null + * + * @return 当前的环境配置 + */ + public static String[] getActiveProfiles() + { + return applicationContext.getEnvironment().getActiveProfiles(); + } + + /** + * 获取当前的环境配置,当有多个环境配置时,只获取第一个 + * + * @return 当前的环境配置 + */ + public static String getActiveProfile() + { + final String[] activeProfiles = getActiveProfiles(); + return StringUtils.isNotEmpty(activeProfiles) ? activeProfiles[0] : null; + } + + /** + * 获取配置文件中的值 + * + * @param key 配置文件的key + * @return 当前的配置文件的值 + * + */ + public static String getRequiredProperty(String key) + { + return applicationContext.getEnvironment().getRequiredProperty(key); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java new file mode 100644 index 0000000..48720dc --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java @@ -0,0 +1,70 @@ +package com.ruoyi.common.utils.sql; + +import com.ruoyi.common.exception.UtilException; +import com.ruoyi.common.utils.StringUtils; + +/** + * sql操作工具类 + * + * @author ruoyi + */ +public class SqlUtil +{ + /** + * 定义常用的 sql关键字 + */ + public static String SQL_REGEX = "\u000B|and |extractvalue|updatexml|sleep|exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |or |union |like |+|/*|user()"; + + /** + * 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序) + */ + public static String SQL_PATTERN = "[a-zA-Z0-9_\\ \\,\\.]+"; + + /** + * 限制orderBy最大长度 + */ + private static final int ORDER_BY_MAX_LENGTH = 500; + + /** + * 检查字符,防止注入绕过 + */ + public static String escapeOrderBySql(String value) + { + if (StringUtils.isNotEmpty(value) && !isValidOrderBySql(value)) + { + throw new UtilException("参数不符合规范,不能进行查询"); + } + if (StringUtils.length(value) > ORDER_BY_MAX_LENGTH) + { + throw new UtilException("参数已超过最大限制,不能进行查询"); + } + return value; + } + + /** + * 验证 order by 语法是否符合规范 + */ + public static boolean isValidOrderBySql(String value) + { + return value.matches(SQL_PATTERN); + } + + /** + * SQL关键字检查 + */ + public static void filterKeyword(String value) + { + if (StringUtils.isEmpty(value)) + { + return; + } + String[] sqlKeywords = StringUtils.split(SQL_REGEX, "\\|"); + for (String sqlKeyword : sqlKeywords) + { + if (StringUtils.indexOfIgnoreCase(value, sqlKeyword) > -1) + { + throw new UtilException("参数存在SQL注入风险"); + } + } + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java new file mode 100644 index 0000000..2c84427 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/IdUtils.java @@ -0,0 +1,49 @@ +package com.ruoyi.common.utils.uuid; + +/** + * ID生成器工具类 + * + * @author ruoyi + */ +public class IdUtils +{ + /** + * 获取随机UUID + * + * @return 随机UUID + */ + public static String randomUUID() + { + return UUID.randomUUID().toString(); + } + + /** + * 简化的UUID,去掉了横线 + * + * @return 简化的UUID,去掉了横线 + */ + public static String simpleUUID() + { + return UUID.randomUUID().toString(true); + } + + /** + * 获取随机UUID,使用性能更好的ThreadLocalRandom生成UUID + * + * @return 随机UUID + */ + public static String fastUUID() + { + return UUID.fastUUID().toString(); + } + + /** + * 简化的UUID,去掉了横线,使用性能更好的ThreadLocalRandom生成UUID + * + * @return 简化的UUID,去掉了横线 + */ + public static String fastSimpleUUID() + { + return UUID.fastUUID().toString(true); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/Seq.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/Seq.java new file mode 100644 index 0000000..bf99611 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/Seq.java @@ -0,0 +1,86 @@ +package com.ruoyi.common.utils.uuid; + +import java.util.concurrent.atomic.AtomicInteger; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * @author ruoyi 序列生成类 + */ +public class Seq +{ + // 通用序列类型 + public static final String commSeqType = "COMMON"; + + // 上传序列类型 + public static final String uploadSeqType = "UPLOAD"; + + // 通用接口序列数 + private static AtomicInteger commSeq = new AtomicInteger(1); + + // 上传接口序列数 + private static AtomicInteger uploadSeq = new AtomicInteger(1); + + // 机器标识 + private static final String machineCode = "A"; + + /** + * 获取通用序列号 + * + * @return 序列值 + */ + public static String getId() + { + return getId(commSeqType); + } + + /** + * 默认16位序列号 yyMMddHHmmss + 一位机器标识 + 3长度循环递增字符串 + * + * @return 序列值 + */ + public static String getId(String type) + { + AtomicInteger atomicInt = commSeq; + if (uploadSeqType.equals(type)) + { + atomicInt = uploadSeq; + } + return getId(atomicInt, 3); + } + + /** + * 通用接口序列号 yyMMddHHmmss + 一位机器标识 + length长度循环递增字符串 + * + * @param atomicInt 序列数 + * @param length 数值长度 + * @return 序列值 + */ + public static String getId(AtomicInteger atomicInt, int length) + { + String result = DateUtils.dateTimeNow(); + result += machineCode; + result += getSeq(atomicInt, length); + return result; + } + + /** + * 序列循环递增字符串[1, 10 的 (length)幂次方), 用0左补齐length位数 + * + * @return 序列值 + */ + private synchronized static String getSeq(AtomicInteger atomicInt, int length) + { + // 先取值再+1 + int value = atomicInt.getAndIncrement(); + + // 如果更新后值>=10 的 (length)幂次方则重置为1 + int maxSeq = (int) Math.pow(10, length); + if (atomicInt.get() >= maxSeq) + { + atomicInt.set(1); + } + // 转字符串,用0左补齐 + return StringUtils.padl(value, length); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java new file mode 100644 index 0000000..a5585d6 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/uuid/UUID.java @@ -0,0 +1,484 @@ +package com.ruoyi.common.utils.uuid; + +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.util.Random; +import java.util.concurrent.ThreadLocalRandom; +import com.ruoyi.common.exception.UtilException; + +/** + * 提供通用唯一识别码(universally unique identifier)(UUID)实现 + * + * @author ruoyi + */ +public final class UUID implements java.io.Serializable, Comparable +{ + private static final long serialVersionUID = -1185015143654744140L; + + /** + * SecureRandom 的单例 + * + */ + private static class Holder + { + static final SecureRandom numberGenerator = getSecureRandom(); + } + + /** 此UUID的最高64有效位 */ + private final long mostSigBits; + + /** 此UUID的最低64有效位 */ + private final long leastSigBits; + + /** + * 私有构造 + * + * @param data 数据 + */ + private UUID(byte[] data) + { + long msb = 0; + long lsb = 0; + assert data.length == 16 : "data must be 16 bytes in length"; + for (int i = 0; i < 8; i++) + { + msb = (msb << 8) | (data[i] & 0xff); + } + for (int i = 8; i < 16; i++) + { + lsb = (lsb << 8) | (data[i] & 0xff); + } + this.mostSigBits = msb; + this.leastSigBits = lsb; + } + + /** + * 使用指定的数据构造新的 UUID。 + * + * @param mostSigBits 用于 {@code UUID} 的最高有效 64 位 + * @param leastSigBits 用于 {@code UUID} 的最低有效 64 位 + */ + public UUID(long mostSigBits, long leastSigBits) + { + this.mostSigBits = mostSigBits; + this.leastSigBits = leastSigBits; + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 + * + * @return 随机生成的 {@code UUID} + */ + public static UUID fastUUID() + { + return randomUUID(false); + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 使用加密的强伪随机数生成器生成该 UUID。 + * + * @return 随机生成的 {@code UUID} + */ + public static UUID randomUUID() + { + return randomUUID(true); + } + + /** + * 获取类型 4(伪随机生成的)UUID 的静态工厂。 使用加密的强伪随机数生成器生成该 UUID。 + * + * @param isSecure 是否使用{@link SecureRandom}如果是可以获得更安全的随机码,否则可以得到更好的性能 + * @return 随机生成的 {@code UUID} + */ + public static UUID randomUUID(boolean isSecure) + { + final Random ng = isSecure ? Holder.numberGenerator : getRandom(); + + byte[] randomBytes = new byte[16]; + ng.nextBytes(randomBytes); + randomBytes[6] &= 0x0f; /* clear version */ + randomBytes[6] |= 0x40; /* set to version 4 */ + randomBytes[8] &= 0x3f; /* clear variant */ + randomBytes[8] |= 0x80; /* set to IETF variant */ + return new UUID(randomBytes); + } + + /** + * 根据指定的字节数组获取类型 3(基于名称的)UUID 的静态工厂。 + * + * @param name 用于构造 UUID 的字节数组。 + * + * @return 根据指定数组生成的 {@code UUID} + */ + public static UUID nameUUIDFromBytes(byte[] name) + { + MessageDigest md; + try + { + md = MessageDigest.getInstance("MD5"); + } + catch (NoSuchAlgorithmException nsae) + { + throw new InternalError("MD5 not supported"); + } + byte[] md5Bytes = md.digest(name); + md5Bytes[6] &= 0x0f; /* clear version */ + md5Bytes[6] |= 0x30; /* set to version 3 */ + md5Bytes[8] &= 0x3f; /* clear variant */ + md5Bytes[8] |= 0x80; /* set to IETF variant */ + return new UUID(md5Bytes); + } + + /** + * 根据 {@link #toString()} 方法中描述的字符串标准表示形式创建{@code UUID}。 + * + * @param name 指定 {@code UUID} 字符串 + * @return 具有指定值的 {@code UUID} + * @throws IllegalArgumentException 如果 name 与 {@link #toString} 中描述的字符串表示形式不符抛出此异常 + * + */ + public static UUID fromString(String name) + { + String[] components = name.split("-"); + if (components.length != 5) + { + throw new IllegalArgumentException("Invalid UUID string: " + name); + } + for (int i = 0; i < 5; i++) + { + components[i] = "0x" + components[i]; + } + + long mostSigBits = Long.decode(components[0]).longValue(); + mostSigBits <<= 16; + mostSigBits |= Long.decode(components[1]).longValue(); + mostSigBits <<= 16; + mostSigBits |= Long.decode(components[2]).longValue(); + + long leastSigBits = Long.decode(components[3]).longValue(); + leastSigBits <<= 48; + leastSigBits |= Long.decode(components[4]).longValue(); + + return new UUID(mostSigBits, leastSigBits); + } + + /** + * 返回此 UUID 的 128 位值中的最低有效 64 位。 + * + * @return 此 UUID 的 128 位值中的最低有效 64 位。 + */ + public long getLeastSignificantBits() + { + return leastSigBits; + } + + /** + * 返回此 UUID 的 128 位值中的最高有效 64 位。 + * + * @return 此 UUID 的 128 位值中最高有效 64 位。 + */ + public long getMostSignificantBits() + { + return mostSigBits; + } + + /** + * 与此 {@code UUID} 相关联的版本号. 版本号描述此 {@code UUID} 是如何生成的。 + *

+ * 版本号具有以下含意: + *

    + *
  • 1 基于时间的 UUID + *
  • 2 DCE 安全 UUID + *
  • 3 基于名称的 UUID + *
  • 4 随机生成的 UUID + *
+ * + * @return 此 {@code UUID} 的版本号 + */ + public int version() + { + // Version is bits masked by 0x000000000000F000 in MS long + return (int) ((mostSigBits >> 12) & 0x0f); + } + + /** + * 与此 {@code UUID} 相关联的变体号。变体号描述 {@code UUID} 的布局。 + *

+ * 变体号具有以下含意: + *

    + *
  • 0 为 NCS 向后兼容保留 + *
  • 2 IETF RFC 4122(Leach-Salz), 用于此类 + *
  • 6 保留,微软向后兼容 + *
  • 7 保留供以后定义使用 + *
+ * + * @return 此 {@code UUID} 相关联的变体号 + */ + public int variant() + { + // This field is composed of a varying number of bits. + // 0 - - Reserved for NCS backward compatibility + // 1 0 - The IETF aka Leach-Salz variant (used by this class) + // 1 1 0 Reserved, Microsoft backward compatibility + // 1 1 1 Reserved for future definition. + return (int) ((leastSigBits >>> (64 - (leastSigBits >>> 62))) & (leastSigBits >> 63)); + } + + /** + * 与此 UUID 相关联的时间戳值。 + * + *

+ * 60 位的时间戳值根据此 {@code UUID} 的 time_low、time_mid 和 time_hi 字段构造。
+ * 所得到的时间戳以 100 毫微秒为单位,从 UTC(通用协调时间) 1582 年 10 月 15 日零时开始。 + * + *

+ * 时间戳值仅在在基于时间的 UUID(其 version 类型为 1)中才有意义。
+ * 如果此 {@code UUID} 不是基于时间的 UUID,则此方法抛出 UnsupportedOperationException。 + * + * @throws UnsupportedOperationException 如果此 {@code UUID} 不是 version 为 1 的 UUID。 + */ + public long timestamp() throws UnsupportedOperationException + { + checkTimeBase(); + return (mostSigBits & 0x0FFFL) << 48// + | ((mostSigBits >> 16) & 0x0FFFFL) << 32// + | mostSigBits >>> 32; + } + + /** + * 与此 UUID 相关联的时钟序列值。 + * + *

+ * 14 位的时钟序列值根据此 UUID 的 clock_seq 字段构造。clock_seq 字段用于保证在基于时间的 UUID 中的时间唯一性。 + *

+ * {@code clockSequence} 值仅在基于时间的 UUID(其 version 类型为 1)中才有意义。 如果此 UUID 不是基于时间的 UUID,则此方法抛出 + * UnsupportedOperationException。 + * + * @return 此 {@code UUID} 的时钟序列 + * + * @throws UnsupportedOperationException 如果此 UUID 的 version 不为 1 + */ + public int clockSequence() throws UnsupportedOperationException + { + checkTimeBase(); + return (int) ((leastSigBits & 0x3FFF000000000000L) >>> 48); + } + + /** + * 与此 UUID 相关的节点值。 + * + *

+ * 48 位的节点值根据此 UUID 的 node 字段构造。此字段旨在用于保存机器的 IEEE 802 地址,该地址用于生成此 UUID 以保证空间唯一性。 + *

+ * 节点值仅在基于时间的 UUID(其 version 类型为 1)中才有意义。
+ * 如果此 UUID 不是基于时间的 UUID,则此方法抛出 UnsupportedOperationException。 + * + * @return 此 {@code UUID} 的节点值 + * + * @throws UnsupportedOperationException 如果此 UUID 的 version 不为 1 + */ + public long node() throws UnsupportedOperationException + { + checkTimeBase(); + return leastSigBits & 0x0000FFFFFFFFFFFFL; + } + + /** + * 返回此{@code UUID} 的字符串表现形式。 + * + *

+ * UUID 的字符串表示形式由此 BNF 描述: + * + *

+     * {@code
+     * UUID                   = ----
+     * time_low               = 4*
+     * time_mid               = 2*
+     * time_high_and_version  = 2*
+     * variant_and_sequence   = 2*
+     * node                   = 6*
+     * hexOctet               = 
+     * hexDigit               = [0-9a-fA-F]
+     * }
+     * 
+ * + * + * + * @return 此{@code UUID} 的字符串表现形式 + * @see #toString(boolean) + */ + @Override + public String toString() + { + return toString(false); + } + + /** + * 返回此{@code UUID} 的字符串表现形式。 + * + *

+ * UUID 的字符串表示形式由此 BNF 描述: + * + *

+     * {@code
+     * UUID                   = ----
+     * time_low               = 4*
+     * time_mid               = 2*
+     * time_high_and_version  = 2*
+     * variant_and_sequence   = 2*
+     * node                   = 6*
+     * hexOctet               = 
+     * hexDigit               = [0-9a-fA-F]
+     * }
+     * 
+ * + * + * + * @param isSimple 是否简单模式,简单模式为不带'-'的UUID字符串 + * @return 此{@code UUID} 的字符串表现形式 + */ + public String toString(boolean isSimple) + { + final StringBuilder builder = new StringBuilder(isSimple ? 32 : 36); + // time_low + builder.append(digits(mostSigBits >> 32, 8)); + if (!isSimple) + { + builder.append('-'); + } + // time_mid + builder.append(digits(mostSigBits >> 16, 4)); + if (!isSimple) + { + builder.append('-'); + } + // time_high_and_version + builder.append(digits(mostSigBits, 4)); + if (!isSimple) + { + builder.append('-'); + } + // variant_and_sequence + builder.append(digits(leastSigBits >> 48, 4)); + if (!isSimple) + { + builder.append('-'); + } + // node + builder.append(digits(leastSigBits, 12)); + + return builder.toString(); + } + + /** + * 返回此 UUID 的哈希码。 + * + * @return UUID 的哈希码值。 + */ + @Override + public int hashCode() + { + long hilo = mostSigBits ^ leastSigBits; + return ((int) (hilo >> 32)) ^ (int) hilo; + } + + /** + * 将此对象与指定对象比较。 + *

+ * 当且仅当参数不为 {@code null}、而是一个 UUID 对象、具有与此 UUID 相同的 varriant、包含相同的值(每一位均相同)时,结果才为 {@code true}。 + * + * @param obj 要与之比较的对象 + * + * @return 如果对象相同,则返回 {@code true};否则返回 {@code false} + */ + @Override + public boolean equals(Object obj) + { + if ((null == obj) || (obj.getClass() != UUID.class)) + { + return false; + } + UUID id = (UUID) obj; + return (mostSigBits == id.mostSigBits && leastSigBits == id.leastSigBits); + } + + // Comparison Operations + + /** + * 将此 UUID 与指定的 UUID 比较。 + * + *

+ * 如果两个 UUID 不同,且第一个 UUID 的最高有效字段大于第二个 UUID 的对应字段,则第一个 UUID 大于第二个 UUID。 + * + * @param val 与此 UUID 比较的 UUID + * + * @return 在此 UUID 小于、等于或大于 val 时,分别返回 -1、0 或 1。 + * + */ + @Override + public int compareTo(UUID val) + { + // The ordering is intentionally set up so that the UUIDs + // can simply be numerically compared as two numbers + return (this.mostSigBits < val.mostSigBits ? -1 : // + (this.mostSigBits > val.mostSigBits ? 1 : // + (this.leastSigBits < val.leastSigBits ? -1 : // + (this.leastSigBits > val.leastSigBits ? 1 : // + 0)))); + } + + // ------------------------------------------------------------------------------------------------------------------- + // Private method start + /** + * 返回指定数字对应的hex值 + * + * @param val 值 + * @param digits 位 + * @return 值 + */ + private static String digits(long val, int digits) + { + long hi = 1L << (digits * 4); + return Long.toHexString(hi | (val & (hi - 1))).substring(1); + } + + /** + * 检查是否为time-based版本UUID + */ + private void checkTimeBase() + { + if (version() != 1) + { + throw new UnsupportedOperationException("Not a time-based UUID"); + } + } + + /** + * 获取{@link SecureRandom},类提供加密的强随机数生成器 (RNG) + * + * @return {@link SecureRandom} + */ + public static SecureRandom getSecureRandom() + { + try + { + return SecureRandom.getInstance("SHA1PRNG"); + } + catch (NoSuchAlgorithmException e) + { + throw new UtilException(e); + } + } + + /** + * 获取随机数生成器对象
+ * ThreadLocalRandom是JDK 7之后提供并发产生随机数,能够解决多个线程发生的竞争争夺。 + * + * @return {@link ThreadLocalRandom} + */ + public static ThreadLocalRandom getRandom() + { + return ThreadLocalRandom.current(); + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/websocket/WebSocketSender.java b/ruoyi-common/src/main/java/com/ruoyi/common/websocket/WebSocketSender.java new file mode 100644 index 0000000..1877038 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/websocket/WebSocketSender.java @@ -0,0 +1,87 @@ +package com.ruoyi.common.websocket; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.socket.*; +import org.springframework.web.socket.client.WebSocketConnectionManager; +import org.springframework.web.socket.client.standard.StandardWebSocketClient; + +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.TimeUnit; + +@Slf4j +public class WebSocketSender implements WebSocketHandler { + + private WebSocketSession session; + private final Object lock = new Object(); // 同步锁 + +// public static void main(String[] args) throws Exception { +// WebSocketClient client = new StandardWebSocketClient(); +// WebSocketConnectionManager manager = new WebSocketConnectionManager( +// client, +// new WebSocketSender(), +// "ws://www.hxzpw.net:7066" +// ); +// manager.start(); +//// Thread.sleep(5000); // 保持连接 +// } + + public static void main(String[] args) throws Exception { + WebSocketSender sender = new WebSocketSender(); + sender.connect("ws://www.hxzpw.net:7066"); + + // 发送文本消息 + Thread.sleep(1000); // 确保连接建立 + sender.sendMessage("Hello WebSocket!"); + } + + public void connect(String serverUri) { + WebSocketConnectionManager manager = new WebSocketConnectionManager( + new StandardWebSocketClient(), + this, + serverUri + ); + manager.start(); + System.out.println("Connecting to {" + serverUri + "}"); + } + + public void sendMessage(String message) { + synchronized (lock) { + try { + CompletableFuture responseFuture = new CompletableFuture<>(); + session.sendMessage(new TextMessage(message)); + String receive = responseFuture.get(5, TimeUnit.SECONDS); + System.out.println("Sent message: " + message); + System.out.println("Receive message: " + receive); + } catch (Exception e) { + log.error("WebSocket 发送信息异常: {}", e.getMessage()); + } + } + } + + @Override + public void afterConnectionEstablished(WebSocketSession session) throws Exception { + this.session = session; + log.info("WebSocket 连接已建立: {}", session.getId()); + } + + @Override + public void handleMessage(WebSocketSession session, WebSocketMessage message) throws Exception { + + } + + @Override + public void handleTransportError(WebSocketSession session, Throwable exception) throws Exception { + + } + + @Override + public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception { + this.session = null; + log.error("连接已关闭: {}", closeStatus.getReason()); + } + + @Override + public boolean supportsPartialMessages() { + return false; + } +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/xss/Xss.java b/ruoyi-common/src/main/java/com/ruoyi/common/xss/Xss.java new file mode 100644 index 0000000..7bfdf04 --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/xss/Xss.java @@ -0,0 +1,27 @@ +package com.ruoyi.common.xss; + +import javax.validation.Constraint; +import javax.validation.Payload; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 自定义xss校验注解 + * + * @author ruoyi + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(value = { ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER }) +@Constraint(validatedBy = { XssValidator.class }) +public @interface Xss +{ + String message() + + default "不允许任何脚本运行"; + + Class[] groups() default {}; + + Class[] payload() default {}; +} diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/xss/XssValidator.java b/ruoyi-common/src/main/java/com/ruoyi/common/xss/XssValidator.java new file mode 100644 index 0000000..42f425c --- /dev/null +++ b/ruoyi-common/src/main/java/com/ruoyi/common/xss/XssValidator.java @@ -0,0 +1,39 @@ +package com.ruoyi.common.xss; + +import com.ruoyi.common.utils.StringUtils; +import javax.validation.ConstraintValidator; +import javax.validation.ConstraintValidatorContext; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * 自定义xss校验注解实现 + * + * @author ruoyi + */ +public class XssValidator implements ConstraintValidator +{ + private static final String HTML_PATTERN = "<(\\S*?)[^>]*>.*?|<.*? />"; + + @Override + public boolean isValid(String value, ConstraintValidatorContext constraintValidatorContext) + { + if (StringUtils.isBlank(value)) + { + return true; + } + return !containsHtml(value); + } + + public static boolean containsHtml(String value) + { + StringBuilder sHtml = new StringBuilder(); + Pattern pattern = Pattern.compile(HTML_PATTERN); + Matcher matcher = pattern.matcher(value); + while (matcher.find()) + { + sHtml.append(matcher.group()); + } + return pattern.matcher(sHtml).matches(); + } +} \ No newline at end of file diff --git a/ruoyi-framework/pom.xml b/ruoyi-framework/pom.xml new file mode 100644 index 0000000..e42a12f --- /dev/null +++ b/ruoyi-framework/pom.xml @@ -0,0 +1,64 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + + ruoyi-framework + + + framework框架核心 + + + + + + + org.springframework.boot + spring-boot-starter-web + + + + + org.springframework.boot + spring-boot-starter-aop + + + + + com.alibaba + druid-spring-boot-starter + + + + + pro.fessional + kaptcha + + + servlet-api + javax.servlet + + + + + + + com.github.oshi + oshi-core + + + + + com.ruoyi + ruoyi-system + + + + + \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java new file mode 100644 index 0000000..b2337c9 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java @@ -0,0 +1,184 @@ +package com.ruoyi.framework.aspectj; + +import java.util.ArrayList; +import java.util.List; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.security.context.PermissionContextHolder; + +/** + * 数据过滤处理 + * + * @author ruoyi + */ +@Aspect +@Component +public class DataScopeAspect +{ + /** + * 全部数据权限 + */ + public static final String DATA_SCOPE_ALL = "1"; + + /** + * 自定数据权限 + */ + public static final String DATA_SCOPE_CUSTOM = "2"; + + /** + * 部门数据权限 + */ + public static final String DATA_SCOPE_DEPT = "3"; + + /** + * 部门及以下数据权限 + */ + public static final String DATA_SCOPE_DEPT_AND_CHILD = "4"; + + /** + * 仅本人数据权限 + */ + public static final String DATA_SCOPE_SELF = "5"; + + /** + * 数据权限过滤关键字 + */ + public static final String DATA_SCOPE = "dataScope"; + + @Before("@annotation(controllerDataScope)") + public void doBefore(JoinPoint point, DataScope controllerDataScope) throws Throwable + { + clearDataScope(point); + handleDataScope(point, controllerDataScope); + } + + protected void handleDataScope(final JoinPoint joinPoint, DataScope controllerDataScope) + { + // 获取当前的用户 + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (StringUtils.isNotNull(loginUser)) + { + SysUser currentUser = loginUser.getUser(); + // 如果是超级管理员,则不过滤数据 + if (StringUtils.isNotNull(currentUser) && !currentUser.isAdmin()) + { + String permission = StringUtils.defaultIfEmpty(controllerDataScope.permission(), PermissionContextHolder.getContext()); + dataScopeFilter(joinPoint, currentUser, controllerDataScope.deptAlias(), controllerDataScope.userAlias(), permission); + } + } + } + + /** + * 数据范围过滤 + * + * @param joinPoint 切点 + * @param user 用户 + * @param deptAlias 部门别名 + * @param userAlias 用户别名 + * @param permission 权限字符 + */ + public static void dataScopeFilter(JoinPoint joinPoint, SysUser user, String deptAlias, String userAlias, String permission) + { + StringBuilder sqlString = new StringBuilder(); + List conditions = new ArrayList(); + List scopeCustomIds = new ArrayList(); + user.getRoles().forEach(role -> { + if (DATA_SCOPE_CUSTOM.equals(role.getDataScope()) && StringUtils.equals(role.getStatus(), UserConstants.ROLE_NORMAL) && StringUtils.containsAny(role.getPermissions(), Convert.toStrArray(permission))) + { + scopeCustomIds.add(Convert.toStr(role.getRoleId())); + } + }); + + for (SysRole role : user.getRoles()) + { + String dataScope = role.getDataScope(); + if (conditions.contains(dataScope) || StringUtils.equals(role.getStatus(), UserConstants.ROLE_DISABLE)) + { + continue; + } + if (!StringUtils.containsAny(role.getPermissions(), Convert.toStrArray(permission))) + { + continue; + } + if (DATA_SCOPE_ALL.equals(dataScope)) + { + sqlString = new StringBuilder(); + conditions.add(dataScope); + break; + } + else if (DATA_SCOPE_CUSTOM.equals(dataScope)) + { + if (scopeCustomIds.size() > 1) + { + // 多个自定数据权限使用in查询,避免多次拼接。 + sqlString.append(StringUtils.format(" OR {}.dept_id IN ( SELECT dept_id FROM sys_role_dept WHERE role_id in ({}) ) ", deptAlias, String.join(",", scopeCustomIds))); + } + else + { + sqlString.append(StringUtils.format(" OR {}.dept_id IN ( SELECT dept_id FROM sys_role_dept WHERE role_id = {} ) ", deptAlias, role.getRoleId())); + } + } + else if (DATA_SCOPE_DEPT.equals(dataScope)) + { + sqlString.append(StringUtils.format(" OR {}.dept_id = {} ", deptAlias, user.getDeptId())); + } + else if (DATA_SCOPE_DEPT_AND_CHILD.equals(dataScope)) + { + sqlString.append(StringUtils.format(" OR {}.dept_id IN ( SELECT dept_id FROM sys_dept WHERE dept_id = {} or find_in_set( {} , ancestors ) )", deptAlias, user.getDeptId(), user.getDeptId())); + } + else if (DATA_SCOPE_SELF.equals(dataScope)) + { + if (StringUtils.isNotBlank(userAlias)) + { + sqlString.append(StringUtils.format(" OR {}.user_id = {} ", userAlias, user.getUserId())); + } + else + { + // 数据权限为仅本人且没有userAlias别名不查询任何数据 + sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias)); + } + } + conditions.add(dataScope); + } + + // 角色都不包含传递过来的权限字符,这个时候sqlString也会为空,所以要限制一下,不查询任何数据 + if (StringUtils.isEmpty(conditions)) + { + sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias)); + } + + if (StringUtils.isNotBlank(sqlString.toString())) + { + Object params = joinPoint.getArgs()[0]; + if (StringUtils.isNotNull(params) && params instanceof BaseEntity) + { + BaseEntity baseEntity = (BaseEntity) params; + baseEntity.getParams().put(DATA_SCOPE, " AND (" + sqlString.substring(4) + ")"); + } + } + } + + /** + * 拼接权限sql前先清空params.dataScope参数防止注入 + */ + private void clearDataScope(final JoinPoint joinPoint) + { + Object params = joinPoint.getArgs()[0]; + if (StringUtils.isNotNull(params) && params instanceof BaseEntity) + { + BaseEntity baseEntity = (BaseEntity) params; + baseEntity.getParams().put(DATA_SCOPE, ""); + } + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java new file mode 100644 index 0000000..8c2c9f4 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataSourceAspect.java @@ -0,0 +1,72 @@ +package com.ruoyi.framework.aspectj; + +import java.util.Objects; +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Pointcut; +import org.aspectj.lang.reflect.MethodSignature; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.annotation.AnnotationUtils; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.DataSource; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.datasource.DynamicDataSourceContextHolder; + +/** + * 多数据源处理 + * + * @author ruoyi + */ +@Aspect +@Order(1) +@Component +public class DataSourceAspect +{ + protected Logger logger = LoggerFactory.getLogger(getClass()); + + @Pointcut("@annotation(com.ruoyi.common.annotation.DataSource)" + + "|| @within(com.ruoyi.common.annotation.DataSource)") + public void dsPointCut() + { + + } + + @Around("dsPointCut()") + public Object around(ProceedingJoinPoint point) throws Throwable + { + DataSource dataSource = getDataSource(point); + + if (StringUtils.isNotNull(dataSource)) + { + DynamicDataSourceContextHolder.setDataSourceType(dataSource.value().name()); + } + + try + { + return point.proceed(); + } + finally + { + // 销毁数据源 在执行方法之后 + DynamicDataSourceContextHolder.clearDataSourceType(); + } + } + + /** + * 获取需要切换的数据源 + */ + public DataSource getDataSource(ProceedingJoinPoint point) + { + MethodSignature signature = (MethodSignature) point.getSignature(); + DataSource dataSource = AnnotationUtils.findAnnotation(signature.getMethod(), DataSource.class); + if (Objects.nonNull(dataSource)) + { + return dataSource; + } + + return AnnotationUtils.findAnnotation(signature.getDeclaringType(), DataSource.class); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java new file mode 100644 index 0000000..bacf820 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java @@ -0,0 +1,256 @@ +package com.ruoyi.framework.aspectj; + +import java.util.Collection; +import java.util.Map; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.lang3.ArrayUtils; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.AfterReturning; +import org.aspectj.lang.annotation.AfterThrowing; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.core.NamedThreadLocal; +import org.springframework.stereotype.Component; +import org.springframework.validation.BindingResult; +import org.springframework.web.multipart.MultipartFile; +import com.alibaba.fastjson2.JSON; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.BusinessStatus; +import com.ruoyi.common.enums.HttpMethod; +import com.ruoyi.common.filter.PropertyPreExcludeFilter; +import com.ruoyi.common.utils.ExceptionUtil; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.domain.SysOperLog; + +/** + * 操作日志记录处理 + * + * @author ruoyi + */ +@Aspect +@Component +public class LogAspect +{ + private static final Logger log = LoggerFactory.getLogger(LogAspect.class); + + /** 排除敏感属性字段 */ + public static final String[] EXCLUDE_PROPERTIES = { "password", "oldPassword", "newPassword", "confirmPassword" }; + + /** 计算操作消耗时间 */ + private static final ThreadLocal TIME_THREADLOCAL = new NamedThreadLocal("Cost Time"); + + /** + * 处理请求前执行 + */ + @Before(value = "@annotation(controllerLog)") + public void doBefore(JoinPoint joinPoint, Log controllerLog) + { + TIME_THREADLOCAL.set(System.currentTimeMillis()); + } + + /** + * 处理完请求后执行 + * + * @param joinPoint 切点 + */ + @AfterReturning(pointcut = "@annotation(controllerLog)", returning = "jsonResult") + public void doAfterReturning(JoinPoint joinPoint, Log controllerLog, Object jsonResult) + { + handleLog(joinPoint, controllerLog, null, jsonResult); + } + + /** + * 拦截异常操作 + * + * @param joinPoint 切点 + * @param e 异常 + */ + @AfterThrowing(value = "@annotation(controllerLog)", throwing = "e") + public void doAfterThrowing(JoinPoint joinPoint, Log controllerLog, Exception e) + { + handleLog(joinPoint, controllerLog, e, null); + } + + protected void handleLog(final JoinPoint joinPoint, Log controllerLog, final Exception e, Object jsonResult) + { + try + { + // 获取当前的用户 + LoginUser loginUser = SecurityUtils.getLoginUser(); + + // *========数据库日志=========*// + SysOperLog operLog = new SysOperLog(); + operLog.setStatus(BusinessStatus.SUCCESS.ordinal()); + // 请求的地址 + String ip = IpUtils.getIpAddr(); + operLog.setOperIp(ip); + operLog.setOperUrl(StringUtils.substring(ServletUtils.getRequest().getRequestURI(), 0, 255)); + if (loginUser != null) + { + operLog.setOperName(loginUser.getUsername()); + SysUser currentUser = loginUser.getUser(); + if (StringUtils.isNotNull(currentUser) && StringUtils.isNotNull(currentUser.getDept())) + { + operLog.setDeptName(currentUser.getDept().getDeptName()); + } + } + + if (e != null) + { + operLog.setStatus(BusinessStatus.FAIL.ordinal()); + operLog.setErrorMsg(StringUtils.substring(Convert.toStr(e.getMessage(), ExceptionUtil.getExceptionMessage(e)), 0, 2000)); + } + // 设置方法名称 + String className = joinPoint.getTarget().getClass().getName(); + String methodName = joinPoint.getSignature().getName(); + operLog.setMethod(className + "." + methodName + "()"); + // 设置请求方式 + operLog.setRequestMethod(ServletUtils.getRequest().getMethod()); + // 处理设置注解上的参数 + getControllerMethodDescription(joinPoint, controllerLog, operLog, jsonResult); + // 设置消耗时间 + operLog.setCostTime(System.currentTimeMillis() - TIME_THREADLOCAL.get()); + // 保存数据库 + AsyncManager.me().execute(AsyncFactory.recordOper(operLog)); + } + catch (Exception exp) + { + // 记录本地异常日志 + log.error("异常信息:{}", exp.getMessage()); + exp.printStackTrace(); + } + finally + { + TIME_THREADLOCAL.remove(); + } + } + + /** + * 获取注解中对方法的描述信息 用于Controller层注解 + * + * @param log 日志 + * @param operLog 操作日志 + * @throws Exception + */ + public void getControllerMethodDescription(JoinPoint joinPoint, Log log, SysOperLog operLog, Object jsonResult) throws Exception + { + // 设置action动作 + operLog.setBusinessType(log.businessType().ordinal()); + // 设置标题 + operLog.setTitle(log.title()); + // 设置操作人类别 + operLog.setOperatorType(log.operatorType().ordinal()); + // 是否需要保存request,参数和值 + if (log.isSaveRequestData()) + { + // 获取参数的信息,传入到数据库中。 + setRequestValue(joinPoint, operLog, log.excludeParamNames()); + } + // 是否需要保存response,参数和值 + if (log.isSaveResponseData() && StringUtils.isNotNull(jsonResult)) + { + operLog.setJsonResult(StringUtils.substring(JSON.toJSONString(jsonResult), 0, 2000)); + } + } + + /** + * 获取请求的参数,放到log中 + * + * @param operLog 操作日志 + * @throws Exception 异常 + */ + private void setRequestValue(JoinPoint joinPoint, SysOperLog operLog, String[] excludeParamNames) throws Exception + { + Map paramsMap = ServletUtils.getParamMap(ServletUtils.getRequest()); + String requestMethod = operLog.getRequestMethod(); + if (StringUtils.isEmpty(paramsMap) && StringUtils.equalsAny(requestMethod, HttpMethod.PUT.name(), HttpMethod.POST.name(), HttpMethod.DELETE.name())) + { + String params = argsArrayToString(joinPoint.getArgs(), excludeParamNames); + operLog.setOperParam(StringUtils.substring(params, 0, 2000)); + } + else + { + operLog.setOperParam(StringUtils.substring(JSON.toJSONString(paramsMap, excludePropertyPreFilter(excludeParamNames)), 0, 2000)); + } + } + + /** + * 参数拼装 + */ + private String argsArrayToString(Object[] paramsArray, String[] excludeParamNames) + { + String params = ""; + if (paramsArray != null && paramsArray.length > 0) + { + for (Object o : paramsArray) + { + if (StringUtils.isNotNull(o) && !isFilterObject(o)) + { + try + { + String jsonObj = JSON.toJSONString(o, excludePropertyPreFilter(excludeParamNames)); + params += jsonObj.toString() + " "; + } + catch (Exception e) + { + } + } + } + } + return params.trim(); + } + + /** + * 忽略敏感属性 + */ + public PropertyPreExcludeFilter excludePropertyPreFilter(String[] excludeParamNames) + { + return new PropertyPreExcludeFilter().addExcludes(ArrayUtils.addAll(EXCLUDE_PROPERTIES, excludeParamNames)); + } + + /** + * 判断是否需要过滤的对象。 + * + * @param o 对象信息。 + * @return 如果是需要过滤的对象,则返回true;否则返回false。 + */ + @SuppressWarnings("rawtypes") + public boolean isFilterObject(final Object o) + { + Class clazz = o.getClass(); + if (clazz.isArray()) + { + return clazz.getComponentType().isAssignableFrom(MultipartFile.class); + } + else if (Collection.class.isAssignableFrom(clazz)) + { + Collection collection = (Collection) o; + for (Object value : collection) + { + return value instanceof MultipartFile; + } + } + else if (Map.class.isAssignableFrom(clazz)) + { + Map map = (Map) o; + for (Object value : map.entrySet()) + { + Map.Entry entry = (Map.Entry) value; + return entry.getValue() instanceof MultipartFile; + } + } + return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse + || o instanceof BindingResult; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/RateLimiterAspect.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/RateLimiterAspect.java new file mode 100644 index 0000000..b720bc1 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/RateLimiterAspect.java @@ -0,0 +1,89 @@ +package com.ruoyi.framework.aspectj; + +import java.lang.reflect.Method; +import java.util.Collections; +import java.util.List; +import org.aspectj.lang.JoinPoint; +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.reflect.MethodSignature; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.core.script.RedisScript; +import org.springframework.stereotype.Component; +import com.ruoyi.common.annotation.RateLimiter; +import com.ruoyi.common.enums.LimitType; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.IpUtils; + +/** + * 限流处理 + * + * @author ruoyi + */ +@Aspect +@Component +public class RateLimiterAspect +{ + private static final Logger log = LoggerFactory.getLogger(RateLimiterAspect.class); + + private RedisTemplate redisTemplate; + + private RedisScript limitScript; + + @Autowired + public void setRedisTemplate1(RedisTemplate redisTemplate) + { + this.redisTemplate = redisTemplate; + } + + @Autowired + public void setLimitScript(RedisScript limitScript) + { + this.limitScript = limitScript; + } + + @Before("@annotation(rateLimiter)") + public void doBefore(JoinPoint point, RateLimiter rateLimiter) throws Throwable + { + int time = rateLimiter.time(); + int count = rateLimiter.count(); + + String combineKey = getCombineKey(rateLimiter, point); + List keys = Collections.singletonList(combineKey); + try + { + Long number = redisTemplate.execute(limitScript, keys, count, time); + if (StringUtils.isNull(number) || number.intValue() > count) + { + throw new ServiceException("访问过于频繁,请稍候再试"); + } + log.info("限制请求'{}',当前请求'{}',缓存key'{}'", count, number.intValue(), combineKey); + } + catch (ServiceException e) + { + throw e; + } + catch (Exception e) + { + throw new RuntimeException("服务器限流异常,请稍候再试"); + } + } + + public String getCombineKey(RateLimiter rateLimiter, JoinPoint point) + { + StringBuffer stringBuffer = new StringBuffer(rateLimiter.key()); + if (rateLimiter.limitType() == LimitType.IP) + { + stringBuffer.append(IpUtils.getIpAddr()).append("-"); + } + MethodSignature signature = (MethodSignature) point.getSignature(); + Method method = signature.getMethod(); + Class targetClass = method.getDeclaringClass(); + stringBuffer.append(targetClass.getName()).append("-").append(method.getName()); + return stringBuffer.toString(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java new file mode 100644 index 0000000..1d4dc1f --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ApplicationConfig.java @@ -0,0 +1,30 @@ +package com.ruoyi.framework.config; + +import java.util.TimeZone; +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.EnableAspectJAutoProxy; + +/** + * 程序注解配置 + * + * @author ruoyi + */ +@Configuration +// 表示通过aop框架暴露该代理对象,AopContext能够访问 +@EnableAspectJAutoProxy(exposeProxy = true) +// 指定要扫描的Mapper类的包的路径 +@MapperScan("com.ruoyi.**.mapper") +public class ApplicationConfig +{ + /** + * 时区配置 + */ + @Bean + public Jackson2ObjectMapperBuilderCustomizer jacksonObjectMapperCustomization() + { + return jacksonObjectMapperBuilder -> jacksonObjectMapperBuilder.timeZone(TimeZone.getDefault()); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java new file mode 100644 index 0000000..43e78ae --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CaptchaConfig.java @@ -0,0 +1,83 @@ +package com.ruoyi.framework.config; + +import java.util.Properties; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.google.code.kaptcha.impl.DefaultKaptcha; +import com.google.code.kaptcha.util.Config; +import static com.google.code.kaptcha.Constants.*; + +/** + * 验证码配置 + * + * @author ruoyi + */ +@Configuration +public class CaptchaConfig +{ + @Bean(name = "captchaProducer") + public DefaultKaptcha getKaptchaBean() + { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + // 是否有边框 默认为true 我们可以自己设置yes,no + properties.setProperty(KAPTCHA_BORDER, "yes"); + // 验证码文本字符颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "black"); + // 验证码图片宽度 默认为200 + properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160"); + // 验证码图片高度 默认为50 + properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60"); + // 验证码文本字符大小 默认为40 + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "38"); + // KAPTCHA_SESSION_KEY + properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCode"); + // 验证码文本字符长度 默认为5 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "4"); + // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize) + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier"); + // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy + properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } + + @Bean(name = "captchaProducerMath") + public DefaultKaptcha getKaptchaBeanMath() + { + DefaultKaptcha defaultKaptcha = new DefaultKaptcha(); + Properties properties = new Properties(); + // 是否有边框 默认为true 我们可以自己设置yes,no + properties.setProperty(KAPTCHA_BORDER, "yes"); + // 边框颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_BORDER_COLOR, "105,179,90"); + // 验证码文本字符颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "blue"); + // 验证码图片宽度 默认为200 + properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160"); + // 验证码图片高度 默认为50 + properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60"); + // 验证码文本字符大小 默认为40 + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "35"); + // KAPTCHA_SESSION_KEY + properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCodeMath"); + // 验证码文本生成器 + properties.setProperty(KAPTCHA_TEXTPRODUCER_IMPL, "com.ruoyi.framework.config.KaptchaTextCreator"); + // 验证码文本字符间距 默认为2 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_SPACE, "3"); + // 验证码文本字符长度 默认为5 + properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "6"); + // 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize) + properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier"); + // 验证码噪点颜色 默认为Color.BLACK + properties.setProperty(KAPTCHA_NOISE_COLOR, "white"); + // 干扰实现类 + properties.setProperty(KAPTCHA_NOISE_IMPL, "com.google.code.kaptcha.impl.NoNoise"); + // 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy + properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy"); + Config config = new Config(properties); + defaultKaptcha.setConfig(config); + return defaultKaptcha; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CustomLanguageLocaleResolver.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CustomLanguageLocaleResolver.java new file mode 100644 index 0000000..8832f46 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/CustomLanguageLocaleResolver.java @@ -0,0 +1,41 @@ +package com.ruoyi.framework.config; + +import org.springframework.web.servlet.LocaleResolver; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Locale; + +/** + * 自定义区域解析器:从 Language 请求头获取 locale + */ +public class CustomLanguageLocaleResolver implements LocaleResolver { + + @Override + public Locale resolveLocale(HttpServletRequest request) { + // 1. 获取 Language 请求头的值 + String languageHeader = request.getHeader("Language"); + + // 2. 处理空值:默认返回系统 locale(或根据需求指定默认值,如 Locale.SIMPLIFIED_CHINESE) + if (languageHeader == null || languageHeader.trim().isEmpty()) { + return Locale.getDefault(); + } + + // 3. 解析请求头值为 Locale(支持格式:zh-CN、en、en-US 等) + // 分割语言和国家/地区(如 "zh-CN" -> 语言 "zh",国家 "CN") + String[] parts = languageHeader.split("_"); + if (parts.length == 1) { + // 只有语言(如 "en") + return new Locale(parts[0]); + } else if (parts.length == 2) { + // 语言 + 国家/地区(如 "zh-CN") + return new Locale(parts[0], parts[1]); + } + + // 4. 非法格式:返回默认 locale + return Locale.getDefault(); + } + + @Override + public void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale) { + } +} \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java new file mode 100644 index 0000000..7e9f4b0 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/DruidConfig.java @@ -0,0 +1,116 @@ +package com.ruoyi.framework.config; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import javax.servlet.Filter; +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; +import javax.sql.DataSource; + +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.web.servlet.FilterRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.context.annotation.Primary; +import com.alibaba.druid.pool.DruidDataSource; +import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder; +import com.alibaba.druid.spring.boot.autoconfigure.properties.DruidStatProperties; +import com.alibaba.druid.util.Utils; +import com.ruoyi.common.enums.DataSourceType; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.framework.config.properties.DruidProperties; +import com.ruoyi.framework.datasource.DynamicDataSource; + +/** + * druid 配置多数据源 + * + * @author ruoyi + */ +@Configuration +public class DruidConfig { + @Bean + @ConfigurationProperties("spring.datasource.druid.master") + public DataSource masterDataSource(DruidProperties druidProperties) { + DruidDataSource dataSource = DruidDataSourceBuilder.create().build(); + return druidProperties.dataSource(dataSource); + } + + @Bean + @ConfigurationProperties("spring.datasource.druid.slave") + @ConditionalOnProperty(prefix = "spring.datasource.druid.slave", name = "enabled", havingValue = "true") + public DataSource slaveDataSource(DruidProperties druidProperties) { + DruidDataSource dataSource = DruidDataSourceBuilder.create().build(); + return druidProperties.dataSource(dataSource); + } + + @Bean(name = "dynamicDataSource") + @Primary + public DynamicDataSource dataSource(DataSource masterDataSource) { + Map targetDataSources = new HashMap<>(); + targetDataSources.put(DataSourceType.MASTER.name(), masterDataSource); + setDataSource(targetDataSources, DataSourceType.SLAVE.name(), "slaveDataSource"); + return new DynamicDataSource(masterDataSource, targetDataSources); + } + + /** + * 设置数据源 + * + * @param targetDataSources 备选数据源集合 + * @param sourceName 数据源名称 + * @param beanName bean名称 + */ + public void setDataSource(Map targetDataSources, String sourceName, String beanName) { + try { + DataSource dataSource = SpringUtils.getBean(beanName); + targetDataSources.put(sourceName, dataSource); + } catch (Exception e) { + } + } + + /** + * 去除监控页面底部的广告 + */ + @SuppressWarnings({"rawtypes", "unchecked"}) + @Bean + @ConditionalOnProperty(name = "spring.datasource.druid.statViewServlet.enabled", havingValue = "true") + public FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties) { + // 获取web监控页面的参数 + DruidStatProperties.StatViewServlet config = properties.getStatViewServlet(); + // 提取common.js的配置路径 + String pattern = config.getUrlPattern() != null ? config.getUrlPattern() : "/druid/*"; + String commonJsPattern = pattern.replaceAll("\\*", "js/common.js"); + final String filePath = "support/http/resources/js/common.js"; + // 创建filter进行过滤 + Filter filter = new Filter() { + @Override + public void init(javax.servlet.FilterConfig filterConfig) throws ServletException { + } + + @Override + public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) + throws IOException, ServletException { + chain.doFilter(request, response); + // 重置缓冲区,响应头不会被重置 + response.resetBuffer(); + // 获取common.js + String text = Utils.readFromResource(filePath); + // 正则替换banner, 除去底部的广告信息 + text = text.replaceAll("
", ""); + text = text.replaceAll("powered.*?shrek.wang", ""); + response.getWriter().write(text); + } + + @Override + public void destroy() { + } + }; + FilterRegistrationBean registrationBean = new FilterRegistrationBean(); + registrationBean.setFilter(filter); + registrationBean.addUrlPatterns(commonJsPattern); + return registrationBean; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FastJson2JsonRedisSerializer.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FastJson2JsonRedisSerializer.java new file mode 100644 index 0000000..4adbb7f --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FastJson2JsonRedisSerializer.java @@ -0,0 +1,52 @@ +package com.ruoyi.framework.config; + +import java.nio.charset.Charset; +import org.springframework.data.redis.serializer.RedisSerializer; +import org.springframework.data.redis.serializer.SerializationException; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONReader; +import com.alibaba.fastjson2.JSONWriter; +import com.alibaba.fastjson2.filter.Filter; +import com.ruoyi.common.constant.Constants; + +/** + * Redis使用FastJson序列化 + * + * @author ruoyi + */ +public class FastJson2JsonRedisSerializer implements RedisSerializer +{ + public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8"); + + static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR); + + private Class clazz; + + public FastJson2JsonRedisSerializer(Class clazz) + { + super(); + this.clazz = clazz; + } + + @Override + public byte[] serialize(T t) throws SerializationException + { + if (t == null) + { + return new byte[0]; + } + return JSON.toJSONString(t, JSONWriter.Feature.WriteClassName).getBytes(DEFAULT_CHARSET); + } + + @Override + public T deserialize(byte[] bytes) throws SerializationException + { + if (bytes == null || bytes.length <= 0) + { + return null; + } + String str = new String(bytes, DEFAULT_CHARSET); + + return JSON.parseObject(str, clazz, AUTO_TYPE_FILTER); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java new file mode 100644 index 0000000..bb14c04 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java @@ -0,0 +1,58 @@ +package com.ruoyi.framework.config; + +import java.util.HashMap; +import java.util.Map; +import javax.servlet.DispatcherType; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.web.servlet.FilterRegistrationBean; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import com.ruoyi.common.filter.RepeatableFilter; +import com.ruoyi.common.filter.XssFilter; +import com.ruoyi.common.utils.StringUtils; + +/** + * Filter配置 + * + * @author ruoyi + */ +@Configuration +public class FilterConfig +{ + @Value("${xss.excludes}") + private String excludes; + + @Value("${xss.urlPatterns}") + private String urlPatterns; + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Bean + @ConditionalOnProperty(value = "xss.enabled", havingValue = "true") + public FilterRegistrationBean xssFilterRegistration() + { + FilterRegistrationBean registration = new FilterRegistrationBean(); + registration.setDispatcherTypes(DispatcherType.REQUEST); + registration.setFilter(new XssFilter()); + registration.addUrlPatterns(StringUtils.split(urlPatterns, ",")); + registration.setName("xssFilter"); + registration.setOrder(FilterRegistrationBean.HIGHEST_PRECEDENCE); + Map initParameters = new HashMap(); + initParameters.put("excludes", excludes); + registration.setInitParameters(initParameters); + return registration; + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Bean + public FilterRegistrationBean someFilterRegistration() + { + FilterRegistrationBean registration = new FilterRegistrationBean(); + registration.setFilter(new RepeatableFilter()); + registration.addUrlPatterns("/*"); + registration.setName("repeatableFilter"); + registration.setOrder(FilterRegistrationBean.LOWEST_PRECEDENCE); + return registration; + } + +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java new file mode 100644 index 0000000..4d8b3ae --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/I18nConfig.java @@ -0,0 +1,24 @@ +package com.ruoyi.framework.config; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.LocaleResolver; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +/** + * 资源文件配置加载 + * + * @author ruoyi + */ +@Configuration +public class I18nConfig implements WebMvcConfigurer +{ + + /** + * 注册自定义区域解析器 + */ + @Bean + public LocaleResolver localeResolver() { + return new CustomLanguageLocaleResolver(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java new file mode 100644 index 0000000..7f8e1d5 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/KaptchaTextCreator.java @@ -0,0 +1,68 @@ +package com.ruoyi.framework.config; + +import java.util.Random; +import com.google.code.kaptcha.text.impl.DefaultTextCreator; + +/** + * 验证码文本生成器 + * + * @author ruoyi + */ +public class KaptchaTextCreator extends DefaultTextCreator +{ + private static final String[] CNUMBERS = "0,1,2,3,4,5,6,7,8,9,10".split(","); + + @Override + public String getText() + { + Integer result = 0; + Random random = new Random(); + int x = random.nextInt(10); + int y = random.nextInt(10); + StringBuilder suChinese = new StringBuilder(); + int randomoperands = random.nextInt(3); + if (randomoperands == 0) + { + result = x * y; + suChinese.append(CNUMBERS[x]); + suChinese.append("*"); + suChinese.append(CNUMBERS[y]); + } + else if (randomoperands == 1) + { + if ((x != 0) && y % x == 0) + { + result = y / x; + suChinese.append(CNUMBERS[y]); + suChinese.append("/"); + suChinese.append(CNUMBERS[x]); + } + else + { + result = x + y; + suChinese.append(CNUMBERS[x]); + suChinese.append("+"); + suChinese.append(CNUMBERS[y]); + } + } + else + { + if (x >= y) + { + result = x - y; + suChinese.append(CNUMBERS[x]); + suChinese.append("-"); + suChinese.append(CNUMBERS[y]); + } + else + { + result = y - x; + suChinese.append(CNUMBERS[y]); + suChinese.append("-"); + suChinese.append(CNUMBERS[x]); + } + } + suChinese.append("=?@" + result); + return suChinese.toString(); + } +} \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java new file mode 100644 index 0000000..9d194c0 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MyBatisConfig.java @@ -0,0 +1,110 @@ +//package com.ruoyi.framework.config; +// +//import java.io.IOException; +//import java.util.ArrayList; +//import java.util.Arrays; +//import java.util.HashSet; +//import java.util.List; +//import javax.sql.DataSource; +// +//import org.apache.ibatis.io.VFS; +//import org.apache.ibatis.session.SqlSessionFactory; +//import org.mybatis.spring.SqlSessionFactoryBean; +//import org.mybatis.spring.boot.autoconfigure.SpringBootVFS; +//import org.springframework.beans.factory.annotation.Autowired; +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import org.springframework.core.env.Environment; +//import org.springframework.core.io.DefaultResourceLoader; +//import org.springframework.core.io.Resource; +//import org.springframework.core.io.support.PathMatchingResourcePatternResolver; +//import org.springframework.core.io.support.ResourcePatternResolver; +//import org.springframework.core.type.classreading.CachingMetadataReaderFactory; +//import org.springframework.core.type.classreading.MetadataReader; +//import org.springframework.core.type.classreading.MetadataReaderFactory; +//import org.springframework.util.ClassUtils; +//import com.ruoyi.common.utils.StringUtils; +// +///** +// * Mybatis支持*匹配扫描包 +// * +// * @author ruoyi +// */ +//@Configuration +//public class MyBatisConfig { +// @Autowired +// private Environment env; +// +// static final String DEFAULT_RESOURCE_PATTERN = "**/*.class"; +// +// public static String setTypeAliasesPackage(String typeAliasesPackage) { +// ResourcePatternResolver resolver = (ResourcePatternResolver) new PathMatchingResourcePatternResolver(); +// MetadataReaderFactory metadataReaderFactory = new CachingMetadataReaderFactory(resolver); +// List allResult = new ArrayList(); +// try { +// for (String aliasesPackage : typeAliasesPackage.split(",")) { +// List result = new ArrayList(); +// aliasesPackage = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX +// + ClassUtils.convertClassNameToResourcePath(aliasesPackage.trim()) + "/" + DEFAULT_RESOURCE_PATTERN; +// Resource[] resources = resolver.getResources(aliasesPackage); +// if (resources != null && resources.length > 0) { +// MetadataReader metadataReader = null; +// for (Resource resource : resources) { +// if (resource.isReadable()) { +// metadataReader = metadataReaderFactory.getMetadataReader(resource); +// try { +// result.add(Class.forName(metadataReader.getClassMetadata().getClassName()).getPackage().getName()); +// } catch (ClassNotFoundException e) { +// e.printStackTrace(); +// } +// } +// } +// } +// if (result.size() > 0) { +// HashSet hashResult = new HashSet(result); +// allResult.addAll(hashResult); +// } +// } +// if (allResult.size() > 0) { +// typeAliasesPackage = String.join(",", (String[]) allResult.toArray(new String[0])); +// } else { +// throw new RuntimeException("mybatis typeAliasesPackage 路径扫描错误,参数typeAliasesPackage:" + typeAliasesPackage + "未找到任何包"); +// } +// } catch (IOException e) { +// e.printStackTrace(); +// } +// return typeAliasesPackage; +// } +// +// public Resource[] resolveMapperLocations(String[] mapperLocations) { +// ResourcePatternResolver resourceResolver = new PathMatchingResourcePatternResolver(); +// List resources = new ArrayList(); +// if (mapperLocations != null) { +// for (String mapperLocation : mapperLocations) { +// try { +// Resource[] mappers = resourceResolver.getResources(mapperLocation); +// resources.addAll(Arrays.asList(mappers)); +// } catch (IOException e) { +// // ignore +// } +// } +// } +// return resources.toArray(new Resource[resources.size()]); +// } +// +// @Bean +// public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception { +// String typeAliasesPackage = env.getProperty("mybatis.typeAliasesPackage"); +// String mapperLocations = env.getProperty("mybatis.mapperLocations"); +// String configLocation = env.getProperty("mybatis.configLocation"); +// typeAliasesPackage = setTypeAliasesPackage(typeAliasesPackage); +// VFS.addImplClass(SpringBootVFS.class); +// +// final SqlSessionFactoryBean sessionFactory = new SqlSessionFactoryBean(); +// sessionFactory.setDataSource(dataSource); +// sessionFactory.setTypeAliasesPackage(typeAliasesPackage); +// sessionFactory.setMapperLocations(resolveMapperLocations(StringUtils.split(mapperLocations, ","))); +// sessionFactory.setConfigLocation(new DefaultResourceLoader().getResource(configLocation)); +// return sessionFactory.getObject(); +// } +//} \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java new file mode 100644 index 0000000..8ae13e4 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java @@ -0,0 +1,57 @@ +package com.ruoyi.framework.config; + +import com.baomidou.mybatisplus.annotation.DbType; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.BlockAttackInnerInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.transaction.annotation.EnableTransactionManagement; + +/** + * @Author wuxd + **/ +@EnableTransactionManagement(proxyTargetClass = true) +@Configuration +public class MybatisPlusConfig { + + @Bean + public MybatisPlusInterceptor mybatisPlusInterceptor() { + MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); + // 分页插件 + interceptor.addInnerInterceptor(paginationInnerInterceptor()); + // 乐观锁插件 + interceptor.addInnerInterceptor(optimisticLockerInnerInterceptor()); + // 阻断插件 + interceptor.addInnerInterceptor(blockAttackInnerInterceptor()); + return interceptor; + } + + /** + * 分页插件,自动识别数据库类型 https://baomidou.com/guide/interceptor-pagination.html + */ + public PaginationInnerInterceptor paginationInnerInterceptor() { + PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor(); + // 设置数据库类型为mysql + paginationInnerInterceptor.setDbType(DbType.MYSQL); + // 设置最大单页限制数量,默认 500 条,-1 不受限制 + paginationInnerInterceptor.setMaxLimit(-1L); + return paginationInnerInterceptor; + } + + /** + * 乐观锁插件 https://baomidou.com/guide/interceptor-optimistic-locker.html + */ + public OptimisticLockerInnerInterceptor optimisticLockerInnerInterceptor() { + return new OptimisticLockerInnerInterceptor(); + } + + /** + * 如果是对全表的删除或更新操作,就会终止该操作 https://baomidou.com/guide/interceptor-block-attack.html + */ + public BlockAttackInnerInterceptor blockAttackInnerInterceptor() { + return new BlockAttackInnerInterceptor(); + } + +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java new file mode 100644 index 0000000..f5bd47c --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/RedisConfig.java @@ -0,0 +1,97 @@ +package com.ruoyi.framework.config; + +import com.fasterxml.jackson.annotation.JsonAutoDetect; +import com.fasterxml.jackson.annotation.PropertyAccessor; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator; +import org.springframework.cache.annotation.CachingConfigurerSupport; +import org.springframework.cache.annotation.EnableCaching; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.connection.RedisConnectionFactory; +import org.springframework.data.redis.core.RedisTemplate; +import org.springframework.data.redis.core.script.DefaultRedisScript; +import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; +import org.springframework.data.redis.serializer.StringRedisSerializer; + +/** + * redis配置 + * + * @author ruoyi + */ +@Configuration +@EnableCaching +public class RedisConfig extends CachingConfigurerSupport { + @Bean + @SuppressWarnings(value = {"unchecked", "rawtypes"}) + public RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory) { +// RedisTemplate template = new RedisTemplate<>(); +// template.setConnectionFactory(connectionFactory); +// +// FastJson2JsonRedisSerializer serializer = new FastJson2JsonRedisSerializer(Object.class); +// +// // 使用StringRedisSerializer来序列化和反序列化redis的key值 +// template.setKeySerializer(new StringRedisSerializer()); +// template.setValueSerializer(serializer); +// +// // Hash的key也采用StringRedisSerializer的序列化方式 +// template.setHashKeySerializer(new StringRedisSerializer()); +// template.setHashValueSerializer(serializer); +// +// template.afterPropertiesSet(); +// return template; + RedisTemplate template = new RedisTemplate<>(); + template.setConnectionFactory(connectionFactory); + + Jackson2JsonRedisSerializer serializer = new Jackson2JsonRedisSerializer<>(Object.class); + ObjectMapper objectMapper = new ObjectMapper(); + + // 1. 允许访问所有字段 + objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); + // 2. 启用类型信息存储 + objectMapper.activateDefaultTyping( + LaissezFaireSubTypeValidator.instance, + ObjectMapper.DefaultTyping.NON_FINAL + ); + // 3. 关键配置:忽略未知字段(解决"Unrecognized field"错误) + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + + serializer.setObjectMapper(objectMapper); + + // 设置序列化器 + template.setKeySerializer(new StringRedisSerializer()); + template.setValueSerializer(serializer); + template.setHashKeySerializer(new StringRedisSerializer()); + template.setHashValueSerializer(serializer); + + template.afterPropertiesSet(); + return template; + } + + @Bean + public DefaultRedisScript limitScript() { + DefaultRedisScript redisScript = new DefaultRedisScript<>(); + redisScript.setScriptText(limitScriptText()); + redisScript.setResultType(Long.class); + return redisScript; + } + + /** + * 限流脚本 + */ + private String limitScriptText() { + return "local key = KEYS[1]\n" + + "local count = tonumber(ARGV[1])\n" + + "local time = tonumber(ARGV[2])\n" + + "local current = redis.call('get', key);\n" + + "if current and tonumber(current) > count then\n" + + " return tonumber(current);\n" + + "end\n" + + "current = redis.call('incr', key)\n" + + "if tonumber(current) == 1 then\n" + + " redis.call('expire', key, time)\n" + + "end\n" + + "return tonumber(current);"; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java new file mode 100644 index 0000000..0f48b11 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java @@ -0,0 +1,72 @@ +package com.ruoyi.framework.config; + +import java.util.concurrent.TimeUnit; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.CacheControl; +import org.springframework.web.cors.CorsConfiguration; +import org.springframework.web.cors.UrlBasedCorsConfigurationSource; +import org.springframework.web.filter.CorsFilter; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; +import com.ruoyi.common.config.RuoYiConfig; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor; + +/** + * 通用配置 + * + * @author ruoyi + */ +@Configuration +public class ResourcesConfig implements WebMvcConfigurer +{ + @Autowired + private RepeatSubmitInterceptor repeatSubmitInterceptor; + + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) + { + /** 本地文件上传路径 */ + registry.addResourceHandler(Constants.RESOURCE_PREFIX + "/**") + .addResourceLocations("file:" + RuoYiConfig.getProfile() + "/"); + + /** swagger配置 */ + registry.addResourceHandler("/swagger-ui/**") + .addResourceLocations("classpath:/META-INF/resources/webjars/springfox-swagger-ui/") + .setCacheControl(CacheControl.maxAge(5, TimeUnit.HOURS).cachePublic()); + } + + /** + * 自定义拦截规则 + */ + @Override + public void addInterceptors(InterceptorRegistry registry) + { + registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); + } + + /** + * 跨域配置 + */ + @Bean + public CorsFilter corsFilter() + { + CorsConfiguration config = new CorsConfiguration(); + // 设置访问源地址 + config.addAllowedOriginPattern("*"); + // 设置访问源请求头 + config.addAllowedHeader("*"); + // 设置访问源请求方法 + config.addAllowedMethod("*"); + // 有效期 1800秒 + config.setMaxAge(1800L); + // 添加映射路径,拦截一切请求 + UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); + source.registerCorsConfiguration("/**", config); + // 返回新的CorsFilter + return new CorsFilter(source); + } +} \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java new file mode 100644 index 0000000..6ea8f4b --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -0,0 +1,132 @@ +package com.ruoyi.framework.config; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.HttpMethod; +import org.springframework.security.authentication.AuthenticationManager; +import org.springframework.security.authentication.ProviderManager; +import org.springframework.security.authentication.dao.DaoAuthenticationProvider; +import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.http.SessionCreationPolicy; +import org.springframework.security.core.userdetails.UserDetailsService; +import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; +import org.springframework.security.web.SecurityFilterChain; +import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; +import org.springframework.security.web.authentication.logout.LogoutFilter; +import org.springframework.web.filter.CorsFilter; +import com.ruoyi.framework.config.properties.PermitAllUrlProperties; +import com.ruoyi.framework.security.filter.JwtAuthenticationTokenFilter; +import com.ruoyi.framework.security.handle.AuthenticationEntryPointImpl; +import com.ruoyi.framework.security.handle.LogoutSuccessHandlerImpl; + +/** + * spring security配置 + * + * @author ruoyi + */ +@EnableMethodSecurity(prePostEnabled = true, securedEnabled = true) +@Configuration +public class SecurityConfig { + /** + * 自定义用户认证逻辑 + */ + @Autowired + private UserDetailsService userDetailsService; + + /** + * 认证失败处理类 + */ + @Autowired + private AuthenticationEntryPointImpl unauthorizedHandler; + + /** + * 退出处理类 + */ + @Autowired + private LogoutSuccessHandlerImpl logoutSuccessHandler; + + /** + * token认证过滤器 + */ + @Autowired + private JwtAuthenticationTokenFilter authenticationTokenFilter; + + /** + * 跨域过滤器 + */ + @Autowired + private CorsFilter corsFilter; + + /** + * 允许匿名访问的地址 + */ + @Autowired + private PermitAllUrlProperties permitAllUrl; + + /** + * 身份验证实现 + */ + @Bean + public AuthenticationManager authenticationManager() { + DaoAuthenticationProvider daoAuthenticationProvider = new DaoAuthenticationProvider(); + daoAuthenticationProvider.setUserDetailsService(userDetailsService); + daoAuthenticationProvider.setPasswordEncoder(bCryptPasswordEncoder()); + return new ProviderManager(daoAuthenticationProvider); + } + + /** + * anyRequest | 匹配所有请求路径 + * access | SpringEl表达式结果为true时可以访问 + * anonymous | 匿名可以访问 + * denyAll | 用户不能访问 + * fullyAuthenticated | 用户完全认证可以访问(非remember-me下自动登录) + * hasAnyAuthority | 如果有参数,参数表示权限,则其中任何一个权限可以访问 + * hasAnyRole | 如果有参数,参数表示角色,则其中任何一个角色可以访问 + * hasAuthority | 如果有参数,参数表示权限,则其权限可以访问 + * hasIpAddress | 如果有参数,参数表示IP地址,如果用户IP和参数匹配,则可以访问 + * hasRole | 如果有参数,参数表示角色,则其角色可以访问 + * permitAll | 用户可以任意访问 + * rememberMe | 允许通过remember-me登录的用户访问 + * authenticated | 用户登录后可访问 + */ + @Bean + protected SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Exception { + return httpSecurity + // CSRF禁用,因为不使用session + .csrf(csrf -> csrf.disable()) + // 禁用HTTP响应标头 + .headers((headersCustomizer) -> { + headersCustomizer.cacheControl(cache -> cache.disable()).frameOptions(options -> options.sameOrigin()); + }) + // 认证失败处理类 + .exceptionHandling(exception -> exception.authenticationEntryPoint(unauthorizedHandler)) + // 基于token,所以不需要session + .sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) + // 注解标记允许匿名访问的url + .authorizeHttpRequests((requests) -> { + permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll()); + // 对于登录login 注册register 验证码captchaImage 允许匿名访问 + requests.antMatchers("/login", "/register", "/captchaImage").permitAll() + // 静态资源,可匿名访问 + .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll().antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() + // 除上面外的所有请求全部需要鉴权认证 + .anyRequest().authenticated(); + }) + // 添加Logout filter + .logout(logout -> logout.logoutUrl("/logout").logoutSuccessHandler(logoutSuccessHandler)) + // 添加JWT filter + .addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class) + // 添加CORS filter + .addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class).addFilterBefore(corsFilter, LogoutFilter.class).build(); + } + + /** + * 强散列哈希加密实现 + */ + @Bean + public BCryptPasswordEncoder bCryptPasswordEncoder() { + return new BCryptPasswordEncoder(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ServerConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ServerConfig.java new file mode 100644 index 0000000..b5b7de3 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ServerConfig.java @@ -0,0 +1,32 @@ +package com.ruoyi.framework.config; + +import javax.servlet.http.HttpServletRequest; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.ServletUtils; + +/** + * 服务相关配置 + * + * @author ruoyi + */ +@Component +public class ServerConfig +{ + /** + * 获取完整的请求路径,包括:域名,端口,上下文访问路径 + * + * @return 服务地址 + */ + public String getUrl() + { + HttpServletRequest request = ServletUtils.getRequest(); + return getDomain(request); + } + + public static String getDomain(HttpServletRequest request) + { + StringBuffer url = request.getRequestURL(); + String contextPath = request.getServletContext().getContextPath(); + return url.delete(url.length() - request.getRequestURI().length(), url.length()).append(contextPath).toString(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ThreadPoolConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ThreadPoolConfig.java new file mode 100644 index 0000000..7840141 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ThreadPoolConfig.java @@ -0,0 +1,63 @@ +package com.ruoyi.framework.config; + +import com.ruoyi.common.utils.Threads; +import org.apache.commons.lang3.concurrent.BasicThreadFactory; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.ThreadPoolExecutor; + +/** + * 线程池配置 + * + * @author ruoyi + **/ +@Configuration +public class ThreadPoolConfig +{ + // 核心线程池大小 + private int corePoolSize = 50; + + // 最大可创建的线程数 + private int maxPoolSize = 200; + + // 队列最大长度 + private int queueCapacity = 1000; + + // 线程池维护线程所允许的空闲时间 + private int keepAliveSeconds = 300; + + @Bean(name = "threadPoolTaskExecutor") + public ThreadPoolTaskExecutor threadPoolTaskExecutor() + { + ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); + executor.setMaxPoolSize(maxPoolSize); + executor.setCorePoolSize(corePoolSize); + executor.setQueueCapacity(queueCapacity); + executor.setKeepAliveSeconds(keepAliveSeconds); + // 线程池对拒绝任务(无线程可用)的处理策略 + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); + return executor; + } + + /** + * 执行周期性或定时任务 + */ + @Bean(name = "scheduledExecutorService") + protected ScheduledExecutorService scheduledExecutorService() + { + return new ScheduledThreadPoolExecutor(corePoolSize, + new BasicThreadFactory.Builder().namingPattern("schedule-pool-%d").daemon(true).build(), + new ThreadPoolExecutor.CallerRunsPolicy()) + { + @Override + protected void afterExecute(Runnable r, Throwable t) + { + super.afterExecute(r, t); + Threads.printException(r, t); + } + }; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java new file mode 100644 index 0000000..c8a5c8a --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/DruidProperties.java @@ -0,0 +1,89 @@ +package com.ruoyi.framework.config.properties; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Configuration; +import com.alibaba.druid.pool.DruidDataSource; + +/** + * druid 配置属性 + * + * @author ruoyi + */ +@Configuration +public class DruidProperties +{ + @Value("${spring.datasource.druid.initialSize}") + private int initialSize; + + @Value("${spring.datasource.druid.minIdle}") + private int minIdle; + + @Value("${spring.datasource.druid.maxActive}") + private int maxActive; + + @Value("${spring.datasource.druid.maxWait}") + private int maxWait; + + @Value("${spring.datasource.druid.connectTimeout}") + private int connectTimeout; + + @Value("${spring.datasource.druid.socketTimeout}") + private int socketTimeout; + + @Value("${spring.datasource.druid.timeBetweenEvictionRunsMillis}") + private int timeBetweenEvictionRunsMillis; + + @Value("${spring.datasource.druid.minEvictableIdleTimeMillis}") + private int minEvictableIdleTimeMillis; + + @Value("${spring.datasource.druid.maxEvictableIdleTimeMillis}") + private int maxEvictableIdleTimeMillis; + + @Value("${spring.datasource.druid.validationQuery}") + private String validationQuery; + + @Value("${spring.datasource.druid.testWhileIdle}") + private boolean testWhileIdle; + + @Value("${spring.datasource.druid.testOnBorrow}") + private boolean testOnBorrow; + + @Value("${spring.datasource.druid.testOnReturn}") + private boolean testOnReturn; + + public DruidDataSource dataSource(DruidDataSource datasource) + { + /** 配置初始化大小、最小、最大 */ + datasource.setInitialSize(initialSize); + datasource.setMaxActive(maxActive); + datasource.setMinIdle(minIdle); + + /** 配置获取连接等待超时的时间 */ + datasource.setMaxWait(maxWait); + + /** 配置驱动连接超时时间,检测数据库建立连接的超时时间,单位是毫秒 */ + datasource.setConnectTimeout(connectTimeout); + + /** 配置网络超时时间,等待数据库操作完成的网络超时时间,单位是毫秒 */ + datasource.setSocketTimeout(socketTimeout); + + /** 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 */ + datasource.setTimeBetweenEvictionRunsMillis(timeBetweenEvictionRunsMillis); + + /** 配置一个连接在池中最小、最大生存的时间,单位是毫秒 */ + datasource.setMinEvictableIdleTimeMillis(minEvictableIdleTimeMillis); + datasource.setMaxEvictableIdleTimeMillis(maxEvictableIdleTimeMillis); + + /** + * 用来检测连接是否有效的sql,要求是一个查询语句,常用select 'x'。如果validationQuery为null,testOnBorrow、testOnReturn、testWhileIdle都不会起作用。 + */ + datasource.setValidationQuery(validationQuery); + /** 建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。 */ + datasource.setTestWhileIdle(testWhileIdle); + /** 申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。 */ + datasource.setTestOnBorrow(testOnBorrow); + /** 归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。 */ + datasource.setTestOnReturn(testOnReturn); + return datasource; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java new file mode 100644 index 0000000..29118fa --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/properties/PermitAllUrlProperties.java @@ -0,0 +1,73 @@ +package com.ruoyi.framework.config.properties; + +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.regex.Pattern; +import org.apache.commons.lang3.RegExUtils; +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.InitializingBean; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; +import org.springframework.context.annotation.Configuration; +import org.springframework.core.annotation.AnnotationUtils; +import org.springframework.web.method.HandlerMethod; +import org.springframework.web.servlet.mvc.method.RequestMappingInfo; +import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping; +import com.ruoyi.common.annotation.Anonymous; + +/** + * 设置Anonymous注解允许匿名访问的url + * + * @author ruoyi + */ +@Configuration +public class PermitAllUrlProperties implements InitializingBean, ApplicationContextAware +{ + private static final Pattern PATTERN = Pattern.compile("\\{(.*?)\\}"); + + private ApplicationContext applicationContext; + + private List urls = new ArrayList<>(); + + public String ASTERISK = "*"; + + @Override + public void afterPropertiesSet() + { + RequestMappingHandlerMapping mapping = applicationContext.getBean(RequestMappingHandlerMapping.class); + Map map = mapping.getHandlerMethods(); + + map.keySet().forEach(info -> { + HandlerMethod handlerMethod = map.get(info); + + // 获取方法上边的注解 替代path variable 为 * + Anonymous method = AnnotationUtils.findAnnotation(handlerMethod.getMethod(), Anonymous.class); + Optional.ofNullable(method).ifPresent(anonymous -> Objects.requireNonNull(info.getPatternsCondition().getPatterns()) + .forEach(url -> urls.add(RegExUtils.replaceAll(url, PATTERN, ASTERISK)))); + + // 获取类上边的注解, 替代path variable 为 * + Anonymous controller = AnnotationUtils.findAnnotation(handlerMethod.getBeanType(), Anonymous.class); + Optional.ofNullable(controller).ifPresent(anonymous -> Objects.requireNonNull(info.getPatternsCondition().getPatterns()) + .forEach(url -> urls.add(RegExUtils.replaceAll(url, PATTERN, ASTERISK)))); + }); + } + + @Override + public void setApplicationContext(ApplicationContext context) throws BeansException + { + this.applicationContext = context; + } + + public List getUrls() + { + return urls; + } + + public void setUrls(List urls) + { + this.urls = urls; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java new file mode 100644 index 0000000..e70b8cf --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSource.java @@ -0,0 +1,26 @@ +package com.ruoyi.framework.datasource; + +import java.util.Map; +import javax.sql.DataSource; +import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; + +/** + * 动态数据源 + * + * @author ruoyi + */ +public class DynamicDataSource extends AbstractRoutingDataSource +{ + public DynamicDataSource(DataSource defaultTargetDataSource, Map targetDataSources) + { + super.setDefaultTargetDataSource(defaultTargetDataSource); + super.setTargetDataSources(targetDataSources); + super.afterPropertiesSet(); + } + + @Override + protected Object determineCurrentLookupKey() + { + return DynamicDataSourceContextHolder.getDataSourceType(); + } +} \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSourceContextHolder.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSourceContextHolder.java new file mode 100644 index 0000000..37a5f8e --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/datasource/DynamicDataSourceContextHolder.java @@ -0,0 +1,41 @@ +package com.ruoyi.framework.datasource; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * 数据源切换处理 + * + * @author ruoyi + */ +public class DynamicDataSourceContextHolder { + public static final Logger log = LoggerFactory.getLogger(DynamicDataSourceContextHolder.class); + + /** + * 使用ThreadLocal维护变量,ThreadLocal为每个使用该变量的线程提供独立的变量副本, + * 所以每一个线程都可以独立地改变自己的副本,而不会影响其它线程所对应的副本。 + */ + private static final ThreadLocal CONTEXT_HOLDER = new ThreadLocal<>(); + + /** + * 设置数据源的变量 + */ + public static void setDataSourceType(String dsType) { + log.info("切换到{}数据源", dsType); + CONTEXT_HOLDER.set(dsType); + } + + /** + * 获得数据源的变量 + */ + public static String getDataSourceType() { + return CONTEXT_HOLDER.get(); + } + + /** + * 清空数据源变量 + */ + public static void clearDataSourceType() { + CONTEXT_HOLDER.remove(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java new file mode 100644 index 0000000..c49eaf4 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/RepeatSubmitInterceptor.java @@ -0,0 +1,56 @@ +package com.ruoyi.framework.interceptor; + +import java.lang.reflect.Method; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.springframework.stereotype.Component; +import org.springframework.web.method.HandlerMethod; +import org.springframework.web.servlet.HandlerInterceptor; +import com.alibaba.fastjson2.JSON; +import com.ruoyi.common.annotation.RepeatSubmit; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.ServletUtils; + +/** + * 防止重复提交拦截器 + * + * @author ruoyi + */ +@Component +public abstract class RepeatSubmitInterceptor implements HandlerInterceptor +{ + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception + { + if (handler instanceof HandlerMethod) + { + HandlerMethod handlerMethod = (HandlerMethod) handler; + Method method = handlerMethod.getMethod(); + RepeatSubmit annotation = method.getAnnotation(RepeatSubmit.class); + if (annotation != null) + { + if (this.isRepeatSubmit(request, annotation)) + { + AjaxResult ajaxResult = AjaxResult.error(annotation.message()); + ServletUtils.renderString(response, JSON.toJSONString(ajaxResult)); + return false; + } + } + return true; + } + else + { + return true; + } + } + + /** + * 验证是否重复提交由子类实现具体的防重复提交的规则 + * + * @param request 请求信息 + * @param annotation 防重复注解参数 + * @return 结果 + * @throws Exception + */ + public abstract boolean isRepeatSubmit(HttpServletRequest request, RepeatSubmit annotation); +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java new file mode 100644 index 0000000..9dc9511 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/impl/SameUrlDataInterceptor.java @@ -0,0 +1,110 @@ +package com.ruoyi.framework.interceptor.impl; + +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.servlet.http.HttpServletRequest; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import com.alibaba.fastjson2.JSON; +import com.ruoyi.common.annotation.RepeatSubmit; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.filter.RepeatedlyRequestWrapper; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.http.HttpHelper; +import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor; + +/** + * 判断请求url和数据是否和上一次相同, + * 如果和上次相同,则是重复提交表单。 有效时间为10秒内。 + * + * @author ruoyi + */ +@Component +public class SameUrlDataInterceptor extends RepeatSubmitInterceptor +{ + public final String REPEAT_PARAMS = "repeatParams"; + + public final String REPEAT_TIME = "repeatTime"; + + // 令牌自定义标识 + @Value("${token.header}") + private String header; + + @Autowired + private RedisCache redisCache; + + @SuppressWarnings("unchecked") + @Override + public boolean isRepeatSubmit(HttpServletRequest request, RepeatSubmit annotation) + { + String nowParams = ""; + if (request instanceof RepeatedlyRequestWrapper) + { + RepeatedlyRequestWrapper repeatedlyRequest = (RepeatedlyRequestWrapper) request; + nowParams = HttpHelper.getBodyString(repeatedlyRequest); + } + + // body参数为空,获取Parameter的数据 + if (StringUtils.isEmpty(nowParams)) + { + nowParams = JSON.toJSONString(request.getParameterMap()); + } + Map nowDataMap = new HashMap(); + nowDataMap.put(REPEAT_PARAMS, nowParams); + nowDataMap.put(REPEAT_TIME, System.currentTimeMillis()); + + // 请求地址(作为存放cache的key值) + String url = request.getRequestURI(); + + // 唯一值(没有消息头则使用请求地址) + String submitKey = StringUtils.trimToEmpty(request.getHeader(header)); + + // 唯一标识(指定key + url + 消息头) + String cacheRepeatKey = CacheConstants.REPEAT_SUBMIT_KEY + url + submitKey; + + Object sessionObj = redisCache.getCacheObject(cacheRepeatKey); + if (sessionObj != null) + { + Map sessionMap = (Map) sessionObj; + if (sessionMap.containsKey(url)) + { + Map preDataMap = (Map) sessionMap.get(url); + if (compareParams(nowDataMap, preDataMap) && compareTime(nowDataMap, preDataMap, annotation.interval())) + { + return true; + } + } + } + Map cacheMap = new HashMap(); + cacheMap.put(url, nowDataMap); + redisCache.setCacheObject(cacheRepeatKey, cacheMap, annotation.interval(), TimeUnit.MILLISECONDS); + return false; + } + + /** + * 判断参数是否相同 + */ + private boolean compareParams(Map nowMap, Map preMap) + { + String nowParams = (String) nowMap.get(REPEAT_PARAMS); + String preParams = (String) preMap.get(REPEAT_PARAMS); + return nowParams.equals(preParams); + } + + /** + * 判断两次间隔时间 + */ + private boolean compareTime(Map nowMap, Map preMap, int interval) + { + long time1 = (Long) nowMap.get(REPEAT_TIME); + long time2 = (Long) preMap.get(REPEAT_TIME); + if ((time1 - time2) < interval) + { + return true; + } + return false; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java new file mode 100644 index 0000000..7387a02 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/AsyncManager.java @@ -0,0 +1,55 @@ +package com.ruoyi.framework.manager; + +import java.util.TimerTask; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import com.ruoyi.common.utils.Threads; +import com.ruoyi.common.utils.spring.SpringUtils; + +/** + * 异步任务管理器 + * + * @author ruoyi + */ +public class AsyncManager +{ + /** + * 操作延迟10毫秒 + */ + private final int OPERATE_DELAY_TIME = 10; + + /** + * 异步操作任务调度线程池 + */ + private ScheduledExecutorService executor = SpringUtils.getBean("scheduledExecutorService"); + + /** + * 单例模式 + */ + private AsyncManager(){} + + private static AsyncManager me = new AsyncManager(); + + public static AsyncManager me() + { + return me; + } + + /** + * 执行任务 + * + * @param task 任务 + */ + public void execute(TimerTask task) + { + executor.schedule(task, OPERATE_DELAY_TIME, TimeUnit.MILLISECONDS); + } + + /** + * 停止任务线程池 + */ + public void shutdown() + { + Threads.shutdownAndAwaitTermination(executor); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java new file mode 100644 index 0000000..e36ca3c --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/ShutdownManager.java @@ -0,0 +1,39 @@ +package com.ruoyi.framework.manager; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.stereotype.Component; +import javax.annotation.PreDestroy; + +/** + * 确保应用退出时能关闭后台线程 + * + * @author ruoyi + */ +@Component +public class ShutdownManager +{ + private static final Logger logger = LoggerFactory.getLogger("sys-user"); + + @PreDestroy + public void destroy() + { + shutdownAsyncManager(); + } + + /** + * 停止异步执行任务 + */ + private void shutdownAsyncManager() + { + try + { + logger.info("====关闭后台任务任务线程池===="); + AsyncManager.me().shutdown(); + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + } + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java new file mode 100644 index 0000000..267e305 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/manager/factory/AsyncFactory.java @@ -0,0 +1,102 @@ +package com.ruoyi.framework.manager.factory; + +import java.util.TimerTask; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.utils.LogUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.AddressUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.service.ISysLogininforService; +import com.ruoyi.system.service.ISysOperLogService; +import eu.bitwalker.useragentutils.UserAgent; + +/** + * 异步工厂(产生任务用) + * + * @author ruoyi + */ +public class AsyncFactory +{ + private static final Logger sys_user_logger = LoggerFactory.getLogger("sys-user"); + + /** + * 记录登录信息 + * + * @param username 用户名 + * @param status 状态 + * @param message 消息 + * @param args 列表 + * @return 任务task + */ + public static TimerTask recordLogininfor(final String username, final String status, final String message, + final Object... args) + { + final UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + final String ip = IpUtils.getIpAddr(); + return new TimerTask() + { + @Override + public void run() + { + String address = AddressUtils.getRealAddressByIP(ip); + StringBuilder s = new StringBuilder(); + s.append(LogUtils.getBlock(ip)); + s.append(address); + s.append(LogUtils.getBlock(username)); + s.append(LogUtils.getBlock(status)); + s.append(LogUtils.getBlock(message)); + // 打印信息到日志 + sys_user_logger.info(s.toString(), args); + // 获取客户端操作系统 + String os = userAgent.getOperatingSystem().getName(); + // 获取客户端浏览器 + String browser = userAgent.getBrowser().getName(); + // 封装对象 + SysLogininfor logininfor = new SysLogininfor(); + logininfor.setUserName(username); + logininfor.setIpaddr(ip); + logininfor.setLoginLocation(address); + logininfor.setBrowser(browser); + logininfor.setOs(os); + logininfor.setMsg(message); + // 日志状态 + if (StringUtils.equalsAny(status, Constants.LOGIN_SUCCESS, Constants.LOGOUT, Constants.REGISTER)) + { + logininfor.setStatus(Constants.SUCCESS); + } + else if (Constants.LOGIN_FAIL.equals(status)) + { + logininfor.setStatus(Constants.FAIL); + } + // 插入数据 + SpringUtils.getBean(ISysLogininforService.class).insertLogininfor(logininfor); + } + }; + } + + /** + * 操作日志记录 + * + * @param operLog 操作日志信息 + * @return 任务task + */ + public static TimerTask recordOper(final SysOperLog operLog) + { + return new TimerTask() + { + @Override + public void run() + { + // 远程查询操作地点 + operLog.setOperLocation(AddressUtils.getRealAddressByIP(operLog.getOperIp())); + SpringUtils.getBean(ISysOperLogService.class).insertOperlog(operLog); + } + }; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/AuthenticationContextHolder.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/AuthenticationContextHolder.java new file mode 100644 index 0000000..6c776ce --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/AuthenticationContextHolder.java @@ -0,0 +1,28 @@ +package com.ruoyi.framework.security.context; + +import org.springframework.security.core.Authentication; + +/** + * 身份验证信息 + * + * @author ruoyi + */ +public class AuthenticationContextHolder +{ + private static final ThreadLocal contextHolder = new ThreadLocal<>(); + + public static Authentication getContext() + { + return contextHolder.get(); + } + + public static void setContext(Authentication context) + { + contextHolder.set(context); + } + + public static void clearContext() + { + contextHolder.remove(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/PermissionContextHolder.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/PermissionContextHolder.java new file mode 100644 index 0000000..5472f3d --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/context/PermissionContextHolder.java @@ -0,0 +1,27 @@ +package com.ruoyi.framework.security.context; + +import org.springframework.web.context.request.RequestAttributes; +import org.springframework.web.context.request.RequestContextHolder; +import com.ruoyi.common.core.text.Convert; + +/** + * 权限信息 + * + * @author ruoyi + */ +public class PermissionContextHolder +{ + private static final String PERMISSION_CONTEXT_ATTRIBUTES = "PERMISSION_CONTEXT"; + + public static void setContext(String permission) + { + RequestContextHolder.currentRequestAttributes().setAttribute(PERMISSION_CONTEXT_ATTRIBUTES, permission, + RequestAttributes.SCOPE_REQUEST); + } + + public static String getContext() + { + return Convert.toStr(RequestContextHolder.currentRequestAttributes().getAttribute(PERMISSION_CONTEXT_ATTRIBUTES, + RequestAttributes.SCOPE_REQUEST)); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java new file mode 100644 index 0000000..c72219c --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/filter/JwtAuthenticationTokenFilter.java @@ -0,0 +1,56 @@ +package com.ruoyi.framework.security.filter; + +import java.io.IOException; +import javax.servlet.FilterChain; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.framework.web.service.TokenAiUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; +import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.security.web.authentication.WebAuthenticationDetailsSource; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.web.service.TokenService; + +/** + * token过滤器 验证token有效性 + * + * @author ruoyi + */ +@Component +public class JwtAuthenticationTokenFilter extends OncePerRequestFilter { + @Autowired + private TokenService tokenService; + + @Autowired + private TokenAiUserService tokenAiUserService; + + @Override + protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + LoginAiUser loginAiUser = tokenAiUserService.getLoginUser(request); + if (StringUtils.isNotNull(loginAiUser) && StringUtils.isNull(SecurityUtils.getAuthentication())) { + tokenAiUserService.verifyToken(loginAiUser); + UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(loginAiUser, null, loginAiUser.getAuthorities()); + authenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); + SecurityContextHolder.getContext().setAuthentication(authenticationToken); + } else { + LoginUser loginUser = tokenService.getLoginUser(request); + if (StringUtils.isNotNull(loginUser) && StringUtils.isNull(SecurityUtils.getAuthentication())) { + tokenService.verifyToken(loginUser); + UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(loginUser, null, loginUser.getAuthorities()); + authenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request)); + SecurityContextHolder.getContext().setAuthentication(authenticationToken); + } + } + + chain.doFilter(request, response); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/AuthenticationEntryPointImpl.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/AuthenticationEntryPointImpl.java new file mode 100644 index 0000000..93b7032 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/AuthenticationEntryPointImpl.java @@ -0,0 +1,34 @@ +package com.ruoyi.framework.security.handle; + +import java.io.IOException; +import java.io.Serializable; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.core.AuthenticationException; +import org.springframework.security.web.AuthenticationEntryPoint; +import org.springframework.stereotype.Component; +import com.alibaba.fastjson2.JSON; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; + +/** + * 认证失败处理类 返回未授权 + * + * @author ruoyi + */ +@Component +public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint, Serializable +{ + private static final long serialVersionUID = -8970718410437077606L; + + @Override + public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) + throws IOException + { + int code = HttpStatus.UNAUTHORIZED; + String msg = StringUtils.format("请求访问:{},认证失败,无法访问系统资源", request.getRequestURI()); + ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code, msg))); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/LogoutSuccessHandlerImpl.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/LogoutSuccessHandlerImpl.java new file mode 100644 index 0000000..2f89a91 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/security/handle/LogoutSuccessHandlerImpl.java @@ -0,0 +1,53 @@ +package com.ruoyi.framework.security.handle; + +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Configuration; +import org.springframework.security.core.Authentication; +import org.springframework.security.web.authentication.logout.LogoutSuccessHandler; +import com.alibaba.fastjson2.JSON; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.framework.web.service.TokenService; + +/** + * 自定义退出处理类 返回成功 + * + * @author ruoyi + */ +@Configuration +public class LogoutSuccessHandlerImpl implements LogoutSuccessHandler +{ + @Autowired + private TokenService tokenService; + + /** + * 退出处理 + * + * @return + */ + @Override + public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) + throws IOException, ServletException + { + LoginUser loginUser = tokenService.getLoginUser(request); + if (StringUtils.isNotNull(loginUser)) + { + String userName = loginUser.getUsername(); + // 删除用户缓存记录 + tokenService.delLoginUser(loginUser.getToken()); + // 记录用户退出日志 + AsyncManager.me().execute(AsyncFactory.recordLogininfor(userName, Constants.LOGOUT, MessageUtils.message("user.logout.success"))); + } + ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.success(MessageUtils.message("user.logout.success")))); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java new file mode 100644 index 0000000..63b03da --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/Server.java @@ -0,0 +1,240 @@ +package com.ruoyi.framework.web.domain; + +import java.net.UnknownHostException; +import java.util.LinkedList; +import java.util.List; +import java.util.Properties; +import com.ruoyi.common.utils.Arith; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.framework.web.domain.server.Cpu; +import com.ruoyi.framework.web.domain.server.Jvm; +import com.ruoyi.framework.web.domain.server.Mem; +import com.ruoyi.framework.web.domain.server.Sys; +import com.ruoyi.framework.web.domain.server.SysFile; +import oshi.SystemInfo; +import oshi.hardware.CentralProcessor; +import oshi.hardware.CentralProcessor.TickType; +import oshi.hardware.GlobalMemory; +import oshi.hardware.HardwareAbstractionLayer; +import oshi.software.os.FileSystem; +import oshi.software.os.OSFileStore; +import oshi.software.os.OperatingSystem; +import oshi.util.Util; + +/** + * 服务器相关信息 + * + * @author ruoyi + */ +public class Server +{ + private static final int OSHI_WAIT_SECOND = 1000; + + /** + * CPU相关信息 + */ + private Cpu cpu = new Cpu(); + + /** + * 內存相关信息 + */ + private Mem mem = new Mem(); + + /** + * JVM相关信息 + */ + private Jvm jvm = new Jvm(); + + /** + * 服务器相关信息 + */ + private Sys sys = new Sys(); + + /** + * 磁盘相关信息 + */ + private List sysFiles = new LinkedList(); + + public Cpu getCpu() + { + return cpu; + } + + public void setCpu(Cpu cpu) + { + this.cpu = cpu; + } + + public Mem getMem() + { + return mem; + } + + public void setMem(Mem mem) + { + this.mem = mem; + } + + public Jvm getJvm() + { + return jvm; + } + + public void setJvm(Jvm jvm) + { + this.jvm = jvm; + } + + public Sys getSys() + { + return sys; + } + + public void setSys(Sys sys) + { + this.sys = sys; + } + + public List getSysFiles() + { + return sysFiles; + } + + public void setSysFiles(List sysFiles) + { + this.sysFiles = sysFiles; + } + + public void copyTo() throws Exception + { + SystemInfo si = new SystemInfo(); + HardwareAbstractionLayer hal = si.getHardware(); + + setCpuInfo(hal.getProcessor()); + + setMemInfo(hal.getMemory()); + + setSysInfo(); + + setJvmInfo(); + + setSysFiles(si.getOperatingSystem()); + } + + /** + * 设置CPU信息 + */ + private void setCpuInfo(CentralProcessor processor) + { + // CPU信息 + long[] prevTicks = processor.getSystemCpuLoadTicks(); + Util.sleep(OSHI_WAIT_SECOND); + long[] ticks = processor.getSystemCpuLoadTicks(); + long nice = ticks[TickType.NICE.getIndex()] - prevTicks[TickType.NICE.getIndex()]; + long irq = ticks[TickType.IRQ.getIndex()] - prevTicks[TickType.IRQ.getIndex()]; + long softirq = ticks[TickType.SOFTIRQ.getIndex()] - prevTicks[TickType.SOFTIRQ.getIndex()]; + long steal = ticks[TickType.STEAL.getIndex()] - prevTicks[TickType.STEAL.getIndex()]; + long cSys = ticks[TickType.SYSTEM.getIndex()] - prevTicks[TickType.SYSTEM.getIndex()]; + long user = ticks[TickType.USER.getIndex()] - prevTicks[TickType.USER.getIndex()]; + long iowait = ticks[TickType.IOWAIT.getIndex()] - prevTicks[TickType.IOWAIT.getIndex()]; + long idle = ticks[TickType.IDLE.getIndex()] - prevTicks[TickType.IDLE.getIndex()]; + long totalCpu = user + nice + cSys + idle + iowait + irq + softirq + steal; + cpu.setCpuNum(processor.getLogicalProcessorCount()); + cpu.setTotal(totalCpu); + cpu.setSys(cSys); + cpu.setUsed(user); + cpu.setWait(iowait); + cpu.setFree(idle); + } + + /** + * 设置内存信息 + */ + private void setMemInfo(GlobalMemory memory) + { + mem.setTotal(memory.getTotal()); + mem.setUsed(memory.getTotal() - memory.getAvailable()); + mem.setFree(memory.getAvailable()); + } + + /** + * 设置服务器信息 + */ + private void setSysInfo() + { + Properties props = System.getProperties(); + sys.setComputerName(IpUtils.getHostName()); + sys.setComputerIp(IpUtils.getHostIp()); + sys.setOsName(props.getProperty("os.name")); + sys.setOsArch(props.getProperty("os.arch")); + sys.setUserDir(props.getProperty("user.dir")); + } + + /** + * 设置Java虚拟机 + */ + private void setJvmInfo() throws UnknownHostException + { + Properties props = System.getProperties(); + jvm.setTotal(Runtime.getRuntime().totalMemory()); + jvm.setMax(Runtime.getRuntime().maxMemory()); + jvm.setFree(Runtime.getRuntime().freeMemory()); + jvm.setVersion(props.getProperty("java.version")); + jvm.setHome(props.getProperty("java.home")); + } + + /** + * 设置磁盘信息 + */ + private void setSysFiles(OperatingSystem os) + { + FileSystem fileSystem = os.getFileSystem(); + List fsArray = fileSystem.getFileStores(); + for (OSFileStore fs : fsArray) + { + long free = fs.getUsableSpace(); + long total = fs.getTotalSpace(); + long used = total - free; + SysFile sysFile = new SysFile(); + sysFile.setDirName(fs.getMount()); + sysFile.setSysTypeName(fs.getType()); + sysFile.setTypeName(fs.getName()); + sysFile.setTotal(convertFileSize(total)); + sysFile.setFree(convertFileSize(free)); + sysFile.setUsed(convertFileSize(used)); + sysFile.setUsage(Arith.mul(Arith.div(used, total, 4), 100)); + sysFiles.add(sysFile); + } + } + + /** + * 字节转换 + * + * @param size 字节大小 + * @return 转换后值 + */ + public String convertFileSize(long size) + { + long kb = 1024; + long mb = kb * 1024; + long gb = mb * 1024; + if (size >= gb) + { + return String.format("%.1f GB", (float) size / gb); + } + else if (size >= mb) + { + float f = (float) size / mb; + return String.format(f > 100 ? "%.0f MB" : "%.1f MB", f); + } + else if (size >= kb) + { + float f = (float) size / kb; + return String.format(f > 100 ? "%.0f KB" : "%.1f KB", f); + } + else + { + return String.format("%d B", size); + } + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java new file mode 100644 index 0000000..a13a66c --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Cpu.java @@ -0,0 +1,101 @@ +package com.ruoyi.framework.web.domain.server; + +import com.ruoyi.common.utils.Arith; + +/** + * CPU相关信息 + * + * @author ruoyi + */ +public class Cpu +{ + /** + * 核心数 + */ + private int cpuNum; + + /** + * CPU总的使用率 + */ + private double total; + + /** + * CPU系统使用率 + */ + private double sys; + + /** + * CPU用户使用率 + */ + private double used; + + /** + * CPU当前等待率 + */ + private double wait; + + /** + * CPU当前空闲率 + */ + private double free; + + public int getCpuNum() + { + return cpuNum; + } + + public void setCpuNum(int cpuNum) + { + this.cpuNum = cpuNum; + } + + public double getTotal() + { + return Arith.round(Arith.mul(total, 100), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getSys() + { + return Arith.round(Arith.mul(sys / total, 100), 2); + } + + public void setSys(double sys) + { + this.sys = sys; + } + + public double getUsed() + { + return Arith.round(Arith.mul(used / total, 100), 2); + } + + public void setUsed(double used) + { + this.used = used; + } + + public double getWait() + { + return Arith.round(Arith.mul(wait / total, 100), 2); + } + + public void setWait(double wait) + { + this.wait = wait; + } + + public double getFree() + { + return Arith.round(Arith.mul(free / total, 100), 2); + } + + public void setFree(double free) + { + this.free = free; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java new file mode 100644 index 0000000..1fdc6ac --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Jvm.java @@ -0,0 +1,130 @@ +package com.ruoyi.framework.web.domain.server; + +import java.lang.management.ManagementFactory; +import com.ruoyi.common.utils.Arith; +import com.ruoyi.common.utils.DateUtils; + +/** + * JVM相关信息 + * + * @author ruoyi + */ +public class Jvm +{ + /** + * 当前JVM占用的内存总数(M) + */ + private double total; + + /** + * JVM最大可用内存总数(M) + */ + private double max; + + /** + * JVM空闲内存(M) + */ + private double free; + + /** + * JDK版本 + */ + private String version; + + /** + * JDK路径 + */ + private String home; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024), 2); + } + + public void setTotal(double total) + { + this.total = total; + } + + public double getMax() + { + return Arith.div(max, (1024 * 1024), 2); + } + + public void setMax(double max) + { + this.max = max; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024), 2); + } + + public void setFree(double free) + { + this.free = free; + } + + public double getUsed() + { + return Arith.div(total - free, (1024 * 1024), 2); + } + + public double getUsage() + { + return Arith.mul(Arith.div(total - free, total, 4), 100); + } + + /** + * 获取JDK名称 + */ + public String getName() + { + return ManagementFactory.getRuntimeMXBean().getVmName(); + } + + public String getVersion() + { + return version; + } + + public void setVersion(String version) + { + this.version = version; + } + + public String getHome() + { + return home; + } + + public void setHome(String home) + { + this.home = home; + } + + /** + * JDK启动时间 + */ + public String getStartTime() + { + return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate()); + } + + /** + * JDK运行时间 + */ + public String getRunTime() + { + return DateUtils.timeDistance(DateUtils.getNowDate(), DateUtils.getServerStartDate()); + } + + /** + * 运行参数 + */ + public String getInputArgs() + { + return ManagementFactory.getRuntimeMXBean().getInputArguments().toString(); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java new file mode 100644 index 0000000..13eec52 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Mem.java @@ -0,0 +1,61 @@ +package com.ruoyi.framework.web.domain.server; + +import com.ruoyi.common.utils.Arith; + +/** + * 內存相关信息 + * + * @author ruoyi + */ +public class Mem +{ + /** + * 内存总量 + */ + private double total; + + /** + * 已用内存 + */ + private double used; + + /** + * 剩余内存 + */ + private double free; + + public double getTotal() + { + return Arith.div(total, (1024 * 1024 * 1024), 2); + } + + public void setTotal(long total) + { + this.total = total; + } + + public double getUsed() + { + return Arith.div(used, (1024 * 1024 * 1024), 2); + } + + public void setUsed(long used) + { + this.used = used; + } + + public double getFree() + { + return Arith.div(free, (1024 * 1024 * 1024), 2); + } + + public void setFree(long free) + { + this.free = free; + } + + public double getUsage() + { + return Arith.mul(Arith.div(used, total, 4), 100); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java new file mode 100644 index 0000000..45d64d9 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/Sys.java @@ -0,0 +1,84 @@ +package com.ruoyi.framework.web.domain.server; + +/** + * 系统相关信息 + * + * @author ruoyi + */ +public class Sys +{ + /** + * 服务器名称 + */ + private String computerName; + + /** + * 服务器Ip + */ + private String computerIp; + + /** + * 项目路径 + */ + private String userDir; + + /** + * 操作系统 + */ + private String osName; + + /** + * 系统架构 + */ + private String osArch; + + public String getComputerName() + { + return computerName; + } + + public void setComputerName(String computerName) + { + this.computerName = computerName; + } + + public String getComputerIp() + { + return computerIp; + } + + public void setComputerIp(String computerIp) + { + this.computerIp = computerIp; + } + + public String getUserDir() + { + return userDir; + } + + public void setUserDir(String userDir) + { + this.userDir = userDir; + } + + public String getOsName() + { + return osName; + } + + public void setOsName(String osName) + { + this.osName = osName; + } + + public String getOsArch() + { + return osArch; + } + + public void setOsArch(String osArch) + { + this.osArch = osArch; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java new file mode 100644 index 0000000..1320cde --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/domain/server/SysFile.java @@ -0,0 +1,114 @@ +package com.ruoyi.framework.web.domain.server; + +/** + * 系统文件相关信息 + * + * @author ruoyi + */ +public class SysFile +{ + /** + * 盘符路径 + */ + private String dirName; + + /** + * 盘符类型 + */ + private String sysTypeName; + + /** + * 文件类型 + */ + private String typeName; + + /** + * 总大小 + */ + private String total; + + /** + * 剩余大小 + */ + private String free; + + /** + * 已经使用量 + */ + private String used; + + /** + * 资源的使用率 + */ + private double usage; + + public String getDirName() + { + return dirName; + } + + public void setDirName(String dirName) + { + this.dirName = dirName; + } + + public String getSysTypeName() + { + return sysTypeName; + } + + public void setSysTypeName(String sysTypeName) + { + this.sysTypeName = sysTypeName; + } + + public String getTypeName() + { + return typeName; + } + + public void setTypeName(String typeName) + { + this.typeName = typeName; + } + + public String getTotal() + { + return total; + } + + public void setTotal(String total) + { + this.total = total; + } + + public String getFree() + { + return free; + } + + public void setFree(String free) + { + this.free = free; + } + + public String getUsed() + { + return used; + } + + public void setUsed(String used) + { + this.used = used; + } + + public double getUsage() + { + return usage; + } + + public void setUsage(double usage) + { + this.usage = usage; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java new file mode 100644 index 0000000..95bd16e --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/GlobalExceptionHandler.java @@ -0,0 +1,148 @@ +package com.ruoyi.framework.web.exception; + +import javax.servlet.http.HttpServletRequest; + +import com.ruoyi.common.utils.MessageUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.security.access.AccessDeniedException; +import org.springframework.validation.BindException; +import org.springframework.web.HttpRequestMethodNotSupportedException; +import org.springframework.web.bind.MethodArgumentNotValidException; +import org.springframework.web.bind.MissingPathVariableException; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; +import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.DemoModeException; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.html.EscapeUtil; + +/** + * 全局异常处理器 + * + * @author ruoyi + */ +@RestControllerAdvice +public class GlobalExceptionHandler +{ + private static final Logger log = LoggerFactory.getLogger(GlobalExceptionHandler.class); + + /** + * 权限校验异常 + */ + @ExceptionHandler(AccessDeniedException.class) + public AjaxResult handleAccessDeniedException(AccessDeniedException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',权限校验失败'{}'", requestURI, e.getMessage()); + return AjaxResult.error(HttpStatus.FORBIDDEN, "没有权限,请联系管理员授权"); + } + + /** + * 请求方式不支持 + */ + @ExceptionHandler(HttpRequestMethodNotSupportedException.class) + public AjaxResult handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException e, + HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',不支持'{}'请求", requestURI, e.getMethod()); + return AjaxResult.error(e.getMessage()); + } + + /** + * 业务异常 + */ + @ExceptionHandler(ServiceException.class) + public AjaxResult handleServiceException(ServiceException e, HttpServletRequest request) + { + log.error(e.getMessage(), e); + Integer code = e.getCode(); + return StringUtils.isNotNull(code) ? AjaxResult.error(code, e.getMessage()) : AjaxResult.error(e.getMessage()); + } + + /** + * 请求路径中缺少必需的路径变量 + */ + @ExceptionHandler(MissingPathVariableException.class) + public AjaxResult handleMissingPathVariableException(MissingPathVariableException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求路径中缺少必需的路径变量'{}',发生系统异常.", requestURI, e); + return AjaxResult.error(String.format("请求路径中缺少必需的路径变量[%s]", e.getVariableName())); + } + + /** + * 请求参数类型不匹配 + */ + @ExceptionHandler(MethodArgumentTypeMismatchException.class) + public AjaxResult handleMethodArgumentTypeMismatchException(MethodArgumentTypeMismatchException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + String value = Convert.toStr(e.getValue()); + if (StringUtils.isNotEmpty(value)) + { + value = EscapeUtil.clean(value); + } + log.error("请求参数类型不匹配'{}',发生系统异常.", requestURI, e); + return AjaxResult.error(String.format("请求参数类型不匹配,参数[%s]要求类型为:'%s',但输入值为:'%s'", e.getName(), e.getRequiredType().getName(), value)); + } + + /** + * 拦截未知的运行时异常 + */ + @ExceptionHandler(RuntimeException.class) + public AjaxResult handleRuntimeException(RuntimeException e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',发生未知异常.", requestURI, e); + return AjaxResult.error(e.getMessage()); + } + + /** + * 系统异常 + */ + @ExceptionHandler(Exception.class) + public AjaxResult handleException(Exception e, HttpServletRequest request) + { + String requestURI = request.getRequestURI(); + log.error("请求地址'{}',发生系统异常.", requestURI, e); + return AjaxResult.error(e.getMessage()); + } + + /** + * 自定义验证异常 + */ + @ExceptionHandler(BindException.class) + public AjaxResult handleBindException(BindException e) + { + log.error(e.getMessage(), e); + String message = e.getAllErrors().get(0).getDefaultMessage(); + return AjaxResult.error(message); + } + + /** + * 自定义验证异常 + */ + @ExceptionHandler(MethodArgumentNotValidException.class) + public Object handleMethodArgumentNotValidException(MethodArgumentNotValidException e) + { + log.error(e.getMessage(), e); + String messageCode = e.getBindingResult().getFieldError().getDefaultMessage(); + String message = MessageUtils.message(messageCode, null); + return AjaxResult.error(message); + } + + /** + * 演示模式异常 + */ + @ExceptionHandler(DemoModeException.class) + public AjaxResult handleDemoModeException(DemoModeException e) + { + return AjaxResult.error("演示模式,不允许操作"); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java new file mode 100644 index 0000000..07d259a --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/PermissionService.java @@ -0,0 +1,159 @@ +package com.ruoyi.framework.web.service; + +import java.util.Set; +import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.security.context.PermissionContextHolder; + +/** + * RuoYi首创 自定义权限实现,ss取自SpringSecurity首字母 + * + * @author ruoyi + */ +@Service("ss") +public class PermissionService +{ + /** + * 验证用户是否具备某权限 + * + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + public boolean hasPermi(String permission) + { + if (StringUtils.isEmpty(permission)) + { + return false; + } + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (StringUtils.isNull(loginUser) || CollectionUtils.isEmpty(loginUser.getPermissions())) + { + return false; + } + PermissionContextHolder.setContext(permission); + return hasPermissions(loginUser.getPermissions(), permission); + } + + /** + * 验证用户是否不具备某权限,与 hasPermi逻辑相反 + * + * @param permission 权限字符串 + * @return 用户是否不具备某权限 + */ + public boolean lacksPermi(String permission) + { + return hasPermi(permission) != true; + } + + /** + * 验证用户是否具有以下任意一个权限 + * + * @param permissions 以 PERMISSION_DELIMETER 为分隔符的权限列表 + * @return 用户是否具有以下任意一个权限 + */ + public boolean hasAnyPermi(String permissions) + { + if (StringUtils.isEmpty(permissions)) + { + return false; + } + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (StringUtils.isNull(loginUser) || CollectionUtils.isEmpty(loginUser.getPermissions())) + { + return false; + } + PermissionContextHolder.setContext(permissions); + Set authorities = loginUser.getPermissions(); + for (String permission : permissions.split(Constants.PERMISSION_DELIMETER)) + { + if (permission != null && hasPermissions(authorities, permission)) + { + return true; + } + } + return false; + } + + /** + * 判断用户是否拥有某个角色 + * + * @param role 角色字符串 + * @return 用户是否具备某角色 + */ + public boolean hasRole(String role) + { + if (StringUtils.isEmpty(role)) + { + return false; + } + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (StringUtils.isNull(loginUser) || CollectionUtils.isEmpty(loginUser.getUser().getRoles())) + { + return false; + } + for (SysRole sysRole : loginUser.getUser().getRoles()) + { + String roleKey = sysRole.getRoleKey(); + if (Constants.SUPER_ADMIN.equals(roleKey) || roleKey.equals(StringUtils.trim(role))) + { + return true; + } + } + return false; + } + + /** + * 验证用户是否不具备某角色,与 isRole逻辑相反。 + * + * @param role 角色名称 + * @return 用户是否不具备某角色 + */ + public boolean lacksRole(String role) + { + return hasRole(role) != true; + } + + /** + * 验证用户是否具有以下任意一个角色 + * + * @param roles 以 ROLE_NAMES_DELIMETER 为分隔符的角色列表 + * @return 用户是否具有以下任意一个角色 + */ + public boolean hasAnyRoles(String roles) + { + if (StringUtils.isEmpty(roles)) + { + return false; + } + LoginUser loginUser = SecurityUtils.getLoginUser(); + if (StringUtils.isNull(loginUser) || CollectionUtils.isEmpty(loginUser.getUser().getRoles())) + { + return false; + } + for (String role : roles.split(Constants.ROLE_DELIMETER)) + { + if (hasRole(role)) + { + return true; + } + } + return false; + } + + /** + * 判断是否包含权限 + * + * @param permissions 权限列表 + * @param permission 权限字符串 + * @return 用户是否具备某权限 + */ + private boolean hasPermissions(Set permissions, String permission) + { + return permissions.contains(Constants.ALL_PERMISSION) || permissions.contains(StringUtils.trim(permission)); + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java new file mode 100644 index 0000000..7bd963b --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -0,0 +1,201 @@ +package com.ruoyi.framework.web.service; + +import javax.annotation.Resource; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.service.IAiStatisticsService; +import com.ruoyi.ai.service.IAiUserService; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.core.domain.model.LoginAiUserBody; +import com.ruoyi.common.utils.IpCountryQueryByApi; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.authentication.AuthenticationManager; +import org.springframework.security.authentication.BadCredentialsException; +import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; +import org.springframework.security.core.Authentication; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.exception.user.BlackListException; +import com.ruoyi.common.exception.user.CaptchaException; +import com.ruoyi.common.exception.user.CaptchaExpireException; +import com.ruoyi.common.exception.user.UserNotExistsException; +import com.ruoyi.common.exception.user.UserPasswordNotMatchException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.framework.security.context.AuthenticationContextHolder; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysUserService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 登录校验方法 + * + * @author ruoyi + */ +@Component +public class SysLoginService { + @Autowired + private TokenService tokenService; + + @Autowired + private TokenAiUserService tokenAiUserService; + + @Resource + private AuthenticationManager authenticationManager; + + @Autowired + private RedisCache redisCache; + + @Autowired + private ISysUserService userService; + + @Autowired + private ISysConfigService configService; + + @Autowired + private IAiUserService aiUserService; + + @Autowired + private IAiStatisticsService aiStatisticsService; + + /** + * 登录验证 + * + * @param username 用户名 + * @param password 密码 + * @param code 验证码 + * @param uuid 唯一标识 + * @return 结果 + */ + public String login(String username, String password, String code, String uuid) { + // 验证码校验 + validateCaptcha(username, code, uuid); + // 登录前置校验 + loginPreCheck(username, password); + // 用户验证 + Authentication authentication = null; + try { + UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password); + AuthenticationContextHolder.setContext(authenticationToken); + // 该方法会去调用UserDetailsServiceImpl.loadUserByUsername + authentication = authenticationManager.authenticate(authenticationToken); + } catch (Exception e) { + if (e instanceof BadCredentialsException) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); + throw new UserPasswordNotMatchException(); + } else { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, e.getMessage())); + throw new ServiceException(e.getMessage()); + } + } finally { + AuthenticationContextHolder.clearContext(); + } + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success"))); + LoginUser loginUser = (LoginUser) authentication.getPrincipal(); + recordLoginInfo(loginUser.getUserId()); + // 生成token + return tokenService.createToken(loginUser); + } + + @Transactional + public String loginAiUser(LoginAiUserBody loginAiUserBody) { + LoginAiUser loginAiUser = aiUserService.loginAiUser(loginAiUserBody); + // 新增访客统计 + AiStatistics aiStatistics = new AiStatistics(); + aiStatistics.setSource(loginAiUser.getUser().getSource()); + aiStatistics.setVisitorCount(1l); + aiStatisticsService.saveOrUpdateData(aiStatistics); + String ip = IpUtils.getIpAddr(); + String country = IpCountryQueryByApi.getIpCountry(ip); + AiUser aiUser = loginAiUser.getUser(); + aiUser.setIp(ip); + aiUser.setCountry(country); + aiUserService.updateAiUser(aiUser); + // 生成token + return tokenAiUserService.createToken(loginAiUser); + } + + /** + * 校验验证码 + * + * @param username 用户名 + * @param code 验证码 + * @param uuid 唯一标识 + * @return 结果 + */ + public void validateCaptcha(String username, String code, String uuid) { + boolean captchaEnabled = configService.selectCaptchaEnabled(); + if (captchaEnabled) { + String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, ""); + String captcha = redisCache.getCacheObject(verifyKey); + if (captcha == null) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire"))); + throw new CaptchaExpireException(); + } + redisCache.deleteObject(verifyKey); + if (!code.equalsIgnoreCase(captcha)) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.error"))); + throw new CaptchaException(); + } + } + } + + /** + * 登录前置校验 + * + * @param username 用户名 + * @param password 用户密码 + */ + public void loginPreCheck(String username, String password) { + // 用户名或密码为空 错误 + if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("not.null"))); + throw new UserNotExistsException(); + } + // 密码如果不在指定范围内 错误 + if (password.length() < UserConstants.PASSWORD_MIN_LENGTH + || password.length() > UserConstants.PASSWORD_MAX_LENGTH) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); + throw new UserPasswordNotMatchException(); + } + // 用户名不在指定范围内 错误 + if (username.length() < UserConstants.USERNAME_MIN_LENGTH + || username.length() > UserConstants.USERNAME_MAX_LENGTH) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match"))); + throw new UserPasswordNotMatchException(); + } + // IP黑名单校验 + String blackStr = configService.selectConfigByKey("sys.login.blackIPList"); + if (IpUtils.isMatchedIp(blackStr, IpUtils.getIpAddr())) { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("login.blocked"))); + throw new BlackListException(); + } + } + + /** + * 记录登录信息 + * + * @param userId 用户ID + */ + public void recordLoginInfo(Long userId) { + SysUser sysUser = new SysUser(); + sysUser.setUserId(userId); + sysUser.setLoginIp(IpUtils.getIpAddr()); + sysUser.setLoginDate(DateUtils.getNowDate()); + userService.updateUserProfile(sysUser); + } + + +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java new file mode 100644 index 0000000..6728c7b --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPasswordService.java @@ -0,0 +1,86 @@ +package com.ruoyi.framework.web.service; + +import java.util.concurrent.TimeUnit; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.security.core.Authentication; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.exception.user.UserPasswordNotMatchException; +import com.ruoyi.common.exception.user.UserPasswordRetryLimitExceedException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.framework.security.context.AuthenticationContextHolder; + +/** + * 登录密码方法 + * + * @author ruoyi + */ +@Component +public class SysPasswordService +{ + @Autowired + private RedisCache redisCache; + + @Value(value = "${user.password.maxRetryCount}") + private int maxRetryCount; + + @Value(value = "${user.password.lockTime}") + private int lockTime; + + /** + * 登录账户密码错误次数缓存键名 + * + * @param username 用户名 + * @return 缓存键key + */ + private String getCacheKey(String username) + { + return CacheConstants.PWD_ERR_CNT_KEY + username; + } + + public void validate(SysUser user) + { + Authentication usernamePasswordAuthenticationToken = AuthenticationContextHolder.getContext(); + String username = usernamePasswordAuthenticationToken.getName(); + String password = usernamePasswordAuthenticationToken.getCredentials().toString(); + + Integer retryCount = redisCache.getCacheObject(getCacheKey(username)); + + if (retryCount == null) + { + retryCount = 0; + } + + if (retryCount >= Integer.valueOf(maxRetryCount).intValue()) + { + throw new UserPasswordRetryLimitExceedException(maxRetryCount, lockTime); + } + + if (!matches(user, password)) + { + retryCount = retryCount + 1; + redisCache.setCacheObject(getCacheKey(username), retryCount, lockTime, TimeUnit.MINUTES); + throw new UserPasswordNotMatchException(); + } + else + { + clearLoginRecordCache(username); + } + } + + public boolean matches(SysUser user, String rawPassword) + { + return SecurityUtils.matchesPassword(rawPassword, user.getPassword()); + } + + public void clearLoginRecordCache(String loginName) + { + if (redisCache.hasKey(getCacheKey(loginName))) + { + redisCache.deleteObject(getCacheKey(loginName)); + } + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java new file mode 100644 index 0000000..c4d0fa5 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java @@ -0,0 +1,88 @@ +package com.ruoyi.framework.web.service; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import org.springframework.util.CollectionUtils; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.ISysMenuService; +import com.ruoyi.system.service.ISysRoleService; + +/** + * 用户权限处理 + * + * @author ruoyi + */ +@Component +public class SysPermissionService +{ + @Autowired + private ISysRoleService roleService; + + @Autowired + private ISysMenuService menuService; + + /** + * 获取角色数据权限 + * + * @param user 用户信息 + * @return 角色权限信息 + */ + public Set getRolePermission(SysUser user) + { + Set roles = new HashSet(); + // 管理员拥有所有权限 + if (user.isAdmin()) + { + roles.add("admin"); + } + else + { + roles.addAll(roleService.selectRolePermissionByUserId(user.getUserId())); + } + return roles; + } + + /** + * 获取菜单数据权限 + * + * @param user 用户信息 + * @return 菜单权限信息 + */ + public Set getMenuPermission(SysUser user) + { + Set perms = new HashSet(); + // 管理员拥有所有权限 + if (user.isAdmin()) + { + perms.add("*:*:*"); + } + else + { + List roles = user.getRoles(); + if (!CollectionUtils.isEmpty(roles)) + { + // 多角色设置permissions属性,以便数据权限匹配权限 + for (SysRole role : roles) + { + if (StringUtils.equals(role.getStatus(), UserConstants.ROLE_NORMAL) && !role.isAdmin()) + { + Set rolePerms = menuService.selectMenuPermsByRoleId(role.getRoleId()); + role.setPermissions(rolePerms); + perms.addAll(rolePerms); + } + } + } + else + { + perms.addAll(menuService.selectMenuPermsByUserId(user.getUserId())); + } + } + return perms; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysRegisterService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysRegisterService.java new file mode 100644 index 0000000..8305bcb --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysRegisterService.java @@ -0,0 +1,117 @@ +package com.ruoyi.framework.web.service; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.RegisterBody; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.exception.user.CaptchaException; +import com.ruoyi.common.exception.user.CaptchaExpireException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.framework.manager.AsyncManager; +import com.ruoyi.framework.manager.factory.AsyncFactory; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 注册校验方法 + * + * @author ruoyi + */ +@Component +public class SysRegisterService +{ + @Autowired + private ISysUserService userService; + + @Autowired + private ISysConfigService configService; + + @Autowired + private RedisCache redisCache; + + /** + * 注册 + */ + public String register(RegisterBody registerBody) + { + String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword(); + SysUser sysUser = new SysUser(); + sysUser.setUserName(username); + + // 验证码开关 + boolean captchaEnabled = configService.selectCaptchaEnabled(); + if (captchaEnabled) + { + validateCaptcha(username, registerBody.getCode(), registerBody.getUuid()); + } + + if (StringUtils.isEmpty(username)) + { + msg = "用户名不能为空"; + } + else if (StringUtils.isEmpty(password)) + { + msg = "用户密码不能为空"; + } + else if (username.length() < UserConstants.USERNAME_MIN_LENGTH + || username.length() > UserConstants.USERNAME_MAX_LENGTH) + { + msg = "账户长度必须在2到20个字符之间"; + } + else if (password.length() < UserConstants.PASSWORD_MIN_LENGTH + || password.length() > UserConstants.PASSWORD_MAX_LENGTH) + { + msg = "密码长度必须在5到20个字符之间"; + } + else if (!userService.checkUserNameUnique(sysUser)) + { + msg = "保存用户'" + username + "'失败,注册账号已存在"; + } + else + { + sysUser.setNickName(username); + sysUser.setPwdUpdateDate(DateUtils.getNowDate()); + sysUser.setPassword(SecurityUtils.encryptPassword(password)); + boolean regFlag = userService.registerUser(sysUser); + if (!regFlag) + { + msg = "注册失败,请联系系统管理人员"; + } + else + { + AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.REGISTER, MessageUtils.message("user.register.success"))); + } + } + return msg; + } + + /** + * 校验验证码 + * + * @param username 用户名 + * @param code 验证码 + * @param uuid 唯一标识 + * @return 结果 + */ + public void validateCaptcha(String username, String code, String uuid) + { + String verifyKey = CacheConstants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, ""); + String captcha = redisCache.getCacheObject(verifyKey); + redisCache.deleteObject(verifyKey); + if (captcha == null) + { + throw new CaptchaExpireException(); + } + if (!code.equalsIgnoreCase(captcha)) + { + throw new CaptchaException(); + } + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenAiUserService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenAiUserService.java new file mode 100644 index 0000000..46289d9 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenAiUserService.java @@ -0,0 +1,230 @@ +package com.ruoyi.framework.web.service; + +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.AddressUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.common.utils.uuid.IdUtils; +import eu.bitwalker.useragentutils.UserAgent; +import io.jsonwebtoken.Claims; +import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.SignatureAlgorithm; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; + +import javax.servlet.http.HttpServletRequest; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +/** + * token验证处理 + * + * @author ruoyi + */ +@Component +public class TokenAiUserService { + private static final Logger log = LoggerFactory.getLogger(TokenAiUserService.class); + + // 令牌自定义标识 + @Value("${ai-token.header}") + private String header; + + // 令牌秘钥 + @Value("${ai-token.secret}") + private String secret; + + // 令牌有效期(默认30分钟) + @Value("${ai-token.expireTime}") + private int expireTime; + + protected static final long MILLIS_SECOND = 1000; + + protected static final long MILLIS_MINUTE = 60 * MILLIS_SECOND; + + private static final Long MILLIS_MINUTE_TWENTY = 20 * 60 * 1000L; + + @Autowired + private RedisCache redisCache; + + /** + * 获取用户身份信息 + * + * @return 用户信息 + */ + public LoginAiUser getLoginUser(HttpServletRequest request) { + // 获取请求携带的令牌 + String token = getToken(request); + if (StringUtils.isNotEmpty(token)) { + try { + Claims claims = parseToken(token); + // 解析对应的权限以及用户信息 + String uuid = (String) claims.get(Constants.LOGIN_USER_KEY); + String userKey = getTokenKey(uuid); + LoginAiUser user = redisCache.getCacheObject(userKey); + return user; + } catch (Exception e) { + log.error("获取用户信息异常'{}'", e.getMessage()); + } + } + return null; + } + + /** + * 设置用户身份信息 + */ + public void setLoginUser(LoginAiUser loginUser) { + if (StringUtils.isNotNull(loginUser) && StringUtils.isNotEmpty(loginUser.getToken())) { + refreshToken(loginUser); + } + } + + /** + * 删除用户身份信息 + */ + public void delLoginUser(String token) { + if (StringUtils.isNotEmpty(token)) { + String userKey = getTokenKey(token); + redisCache.deleteObject(userKey); + } + } + + + /** + * 创建令牌 + * + * @param loginAiUser 用户信息 + * @return 令牌 + */ + public String createToken(LoginAiUser loginAiUser) { + String token = IdUtils.fastUUID(); + loginAiUser.setToken(token); + setAiUserAgent(loginAiUser); + refreshToken(loginAiUser); + + Map claims = new HashMap<>(); + claims.put(Constants.LOGIN_USER_KEY, token); + claims.put(Constants.JWT_USERNAME, loginAiUser.getUsername()); + return createToken(claims); + } + + /** + * 验证令牌有效期,相差不足20分钟,自动刷新缓存 + * + * @param loginUser 登录信息 + * @return 令牌 + */ + public void verifyToken(LoginAiUser loginUser) { + long expireTime = loginUser.getExpireTime(); + long currentTime = System.currentTimeMillis(); + if (expireTime - currentTime <= MILLIS_MINUTE_TWENTY) { + refreshToken(loginUser); + } + } + + /** + * 刷新令牌有效期 + * + * @param loginUser 登录信息 + */ + public void refreshToken(LoginAiUser loginUser) { + loginUser.setLoginTime(System.currentTimeMillis()); + loginUser.setExpireTime(loginUser.getLoginTime() + expireTime * MILLIS_MINUTE); + // 根据uuid将loginUser缓存 + String userKey = getTokenKey(loginUser.getToken()); + redisCache.setCacheObject(userKey, loginUser, expireTime, TimeUnit.MINUTES); + } + + + /** + * 设置用户代理信息 + * + * @param loginUser 登录信息 + */ + public void setUserAgent(LoginAiUser loginUser) { + UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + String ip = IpUtils.getIpAddr(); + loginUser.setIpaddr(ip); + loginUser.setLoginLocation(AddressUtils.getRealAddressByIP(ip)); + loginUser.setBrowser(userAgent.getBrowser().getName()); + loginUser.setOs(userAgent.getOperatingSystem().getName()); + } + + /** + * 设置用户代理信息 + * + * @param loginUser 登录信息 + */ + public void setAiUserAgent(LoginAiUser loginUser) { + UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + String ip = IpUtils.getIpAddr(); + loginUser.setIpaddr(ip); + loginUser.setLoginLocation(AddressUtils.getRealAddressByIP(ip)); + loginUser.setBrowser(userAgent.getBrowser().getName()); + loginUser.setOs(userAgent.getOperatingSystem().getName()); + } + + /** + * 从数据声明生成令牌 + * + * @param claims 数据声明 + * @return 令牌 + */ + private String createToken(Map claims) { + String token = Jwts.builder() + .setClaims(claims) + .signWith(SignatureAlgorithm.HS512, secret).compact(); + return token; + } + + + /** + * 从令牌中获取数据声明 + * + * @param token 令牌 + * @return 数据声明 + */ + private Claims parseToken(String token) { + return Jwts.parser() + .setSigningKey(secret) + .parseClaimsJws(token) + .getBody(); + } + + /** + * 从令牌中获取用户名 + * + * @param token 令牌 + * @return 用户名 + */ + public String getUsernameFromToken(String token) { + Claims claims = parseToken(token); + return claims.getSubject(); + } + + /** + * 获取请求token + * + * @param request + * @return token + */ + private String getToken(HttpServletRequest request) { + String token = request.getHeader(header); + if (StringUtils.isNotEmpty(token) && token.startsWith(Constants.TOKEN_PREFIX)) { + token = token.replace(Constants.TOKEN_PREFIX, ""); + } + return token; + } + + private String getTokenKey(String uuid) { + return CacheConstants.LOGIN_TOKEN_KEY + uuid; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenService.java new file mode 100644 index 0000000..680cab6 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/TokenService.java @@ -0,0 +1,232 @@ +package com.ruoyi.framework.web.service; + +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.servlet.http.HttpServletRequest; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.utils.ServletUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.ip.AddressUtils; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.common.utils.uuid.IdUtils; +import eu.bitwalker.useragentutils.UserAgent; +import io.jsonwebtoken.Claims; +import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.SignatureAlgorithm; + +/** + * token验证处理 + * + * @author ruoyi + */ +@Component +public class TokenService +{ + private static final Logger log = LoggerFactory.getLogger(TokenService.class); + + // 令牌自定义标识 + @Value("${token.header}") + private String header; + + // 令牌秘钥 + @Value("${token.secret}") + private String secret; + + // 令牌有效期(默认30分钟) + @Value("${token.expireTime}") + private int expireTime; + + protected static final long MILLIS_SECOND = 1000; + + protected static final long MILLIS_MINUTE = 60 * MILLIS_SECOND; + + private static final Long MILLIS_MINUTE_TWENTY = 20 * 60 * 1000L; + + @Autowired + private RedisCache redisCache; + + /** + * 获取用户身份信息 + * + * @return 用户信息 + */ + public LoginUser getLoginUser(HttpServletRequest request) + { + // 获取请求携带的令牌 + String token = getToken(request); + if (StringUtils.isNotEmpty(token)) + { + try + { + Claims claims = parseToken(token); + // 解析对应的权限以及用户信息 + String uuid = (String) claims.get(Constants.LOGIN_USER_KEY); + String userKey = getTokenKey(uuid); + LoginUser user = redisCache.getCacheObject(userKey); + return user; + } + catch (Exception e) + { + log.error("获取用户信息异常'{}'", e.getMessage()); + } + } + return null; + } + + /** + * 设置用户身份信息 + */ + public void setLoginUser(LoginUser loginUser) + { + if (StringUtils.isNotNull(loginUser) && StringUtils.isNotEmpty(loginUser.getToken())) + { + refreshToken(loginUser); + } + } + + /** + * 删除用户身份信息 + */ + public void delLoginUser(String token) + { + if (StringUtils.isNotEmpty(token)) + { + String userKey = getTokenKey(token); + redisCache.deleteObject(userKey); + } + } + + /** + * 创建令牌 + * + * @param loginUser 用户信息 + * @return 令牌 + */ + public String createToken(LoginUser loginUser) + { + String token = IdUtils.fastUUID(); + loginUser.setToken(token); + setUserAgent(loginUser); + refreshToken(loginUser); + + Map claims = new HashMap<>(); + claims.put(Constants.LOGIN_USER_KEY, token); + claims.put(Constants.JWT_USERNAME, loginUser.getUsername()); + return createToken(claims); + } + + /** + * 验证令牌有效期,相差不足20分钟,自动刷新缓存 + * + * @param loginUser 登录信息 + * @return 令牌 + */ + public void verifyToken(LoginUser loginUser) + { + long expireTime = loginUser.getExpireTime(); + long currentTime = System.currentTimeMillis(); + if (expireTime - currentTime <= MILLIS_MINUTE_TWENTY) + { + refreshToken(loginUser); + } + } + + /** + * 刷新令牌有效期 + * + * @param loginUser 登录信息 + */ + public void refreshToken(LoginUser loginUser) + { + loginUser.setLoginTime(System.currentTimeMillis()); + loginUser.setExpireTime(loginUser.getLoginTime() + expireTime * MILLIS_MINUTE); + // 根据uuid将loginUser缓存 + String userKey = getTokenKey(loginUser.getToken()); + redisCache.setCacheObject(userKey, loginUser, expireTime, TimeUnit.MINUTES); + } + + /** + * 设置用户代理信息 + * + * @param loginUser 登录信息 + */ + public void setUserAgent(LoginUser loginUser) + { + UserAgent userAgent = UserAgent.parseUserAgentString(ServletUtils.getRequest().getHeader("User-Agent")); + String ip = IpUtils.getIpAddr(); + loginUser.setIpaddr(ip); + loginUser.setLoginLocation(AddressUtils.getRealAddressByIP(ip)); + loginUser.setBrowser(userAgent.getBrowser().getName()); + loginUser.setOs(userAgent.getOperatingSystem().getName()); + } + + /** + * 从数据声明生成令牌 + * + * @param claims 数据声明 + * @return 令牌 + */ + private String createToken(Map claims) + { + String token = Jwts.builder() + .setClaims(claims) + .signWith(SignatureAlgorithm.HS512, secret).compact(); + return token; + } + + /** + * 从令牌中获取数据声明 + * + * @param token 令牌 + * @return 数据声明 + */ + private Claims parseToken(String token) + { + return Jwts.parser() + .setSigningKey(secret) + .parseClaimsJws(token) + .getBody(); + } + + /** + * 从令牌中获取用户名 + * + * @param token 令牌 + * @return 用户名 + */ + public String getUsernameFromToken(String token) + { + Claims claims = parseToken(token); + return claims.getSubject(); + } + + /** + * 获取请求token + * + * @param request + * @return token + */ + private String getToken(HttpServletRequest request) + { + String token = request.getHeader(header); + if (StringUtils.isNotEmpty(token) && token.startsWith(Constants.TOKEN_PREFIX)) + { + token = token.replace(Constants.TOKEN_PREFIX, ""); + } + return token; + } + + private String getTokenKey(String uuid) + { + return CacheConstants.LOGIN_TOKEN_KEY + uuid; + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/UserDetailsServiceImpl.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/UserDetailsServiceImpl.java new file mode 100644 index 0000000..5dcdf90 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/UserDetailsServiceImpl.java @@ -0,0 +1,66 @@ +package com.ruoyi.framework.web.service; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.core.userdetails.UserDetails; +import org.springframework.security.core.userdetails.UserDetailsService; +import org.springframework.security.core.userdetails.UsernameNotFoundException; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.enums.UserStatus; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.service.ISysUserService; + +/** + * 用户验证处理 + * + * @author ruoyi + */ +@Service +public class UserDetailsServiceImpl implements UserDetailsService +{ + private static final Logger log = LoggerFactory.getLogger(UserDetailsServiceImpl.class); + + @Autowired + private ISysUserService userService; + + @Autowired + private SysPasswordService passwordService; + + @Autowired + private SysPermissionService permissionService; + + @Override + public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException + { + SysUser user = userService.selectUserByUserName(username); + if (StringUtils.isNull(user)) + { + log.info("登录用户:{} 不存在.", username); + throw new ServiceException(MessageUtils.message("user.not.exists")); + } + else if (UserStatus.DELETED.getCode().equals(user.getDelFlag())) + { + log.info("登录用户:{} 已被删除.", username); + throw new ServiceException(MessageUtils.message("user.password.delete")); + } + else if (UserStatus.DISABLE.getCode().equals(user.getStatus())) + { + log.info("登录用户:{} 已被停用.", username); + throw new ServiceException(MessageUtils.message("user.blocked")); + } + + passwordService.validate(user); + + return createLoginUser(user); + } + + public UserDetails createLoginUser(SysUser user) + { + return new LoginUser(user.getUserId(), user.getDeptId(), user, permissionService.getMenuPermission(user)); + } +} diff --git a/ruoyi-generator/pom.xml b/ruoyi-generator/pom.xml new file mode 100644 index 0000000..54b9809 --- /dev/null +++ b/ruoyi-generator/pom.xml @@ -0,0 +1,40 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + + ruoyi-generator + + + generator代码生成 + + + + + + + org.apache.velocity + velocity-engine-core + + + + + com.ruoyi + ruoyi-common + + + + + com.alibaba + druid-spring-boot-starter + + + + + \ No newline at end of file diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java new file mode 100644 index 0000000..c01857c --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/config/GenConfig.java @@ -0,0 +1,87 @@ +package com.ruoyi.generator.config; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.PropertySource; +import org.springframework.stereotype.Component; + +/** + * 读取代码生成相关配置 + * + * @author ruoyi + */ +@Component +@ConfigurationProperties(prefix = "gen") +@PropertySource(value = { "classpath:generator.yml" }) +public class GenConfig +{ + /** 作者 */ + public static String author; + + /** 生成包路径 */ + public static String packageName; + + /** 自动去除表前缀 */ + public static boolean autoRemovePre; + + /** 表前缀 */ + public static String tablePrefix; + + /** 是否允许生成文件覆盖到本地(自定义路径) */ + public static boolean allowOverwrite; + + public static String getAuthor() + { + return author; + } + + @Value("${author}") + public void setAuthor(String author) + { + GenConfig.author = author; + } + + public static String getPackageName() + { + return packageName; + } + + @Value("${packageName}") + public void setPackageName(String packageName) + { + GenConfig.packageName = packageName; + } + + public static boolean getAutoRemovePre() + { + return autoRemovePre; + } + + @Value("${autoRemovePre}") + public void setAutoRemovePre(boolean autoRemovePre) + { + GenConfig.autoRemovePre = autoRemovePre; + } + + public static String getTablePrefix() + { + return tablePrefix; + } + + @Value("${tablePrefix}") + public void setTablePrefix(String tablePrefix) + { + GenConfig.tablePrefix = tablePrefix; + } + + public static boolean isAllowOverwrite() + { + return allowOverwrite; + } + + @Value("${allowOverwrite}") + public void setAllowOverwrite(boolean allowOverwrite) + { + GenConfig.allowOverwrite = allowOverwrite; + } +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java new file mode 100644 index 0000000..1ef0d35 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java @@ -0,0 +1,263 @@ +package com.ruoyi.generator.controller; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.servlet.http.HttpServletResponse; +import org.apache.commons.io.IOUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.alibaba.druid.DbType; +import com.alibaba.druid.sql.SQLUtils; +import com.alibaba.druid.sql.ast.SQLStatement; +import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.sql.SqlUtil; +import com.ruoyi.generator.config.GenConfig; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.service.IGenTableColumnService; +import com.ruoyi.generator.service.IGenTableService; + +/** + * 代码生成 操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/tool/gen") +public class GenController extends BaseController +{ + @Autowired + private IGenTableService genTableService; + + @Autowired + private IGenTableColumnService genTableColumnService; + + /** + * 查询代码生成列表 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:list')") + @GetMapping("/list") + public TableDataInfo genList(GenTable genTable) + { + startPage(); + List list = genTableService.selectGenTableList(genTable); + return getDataTable(list); + } + + /** + * 获取代码生成信息 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:query')") + @GetMapping(value = "/{tableId}") + public AjaxResult getInfo(@PathVariable Long tableId) + { + GenTable table = genTableService.selectGenTableById(tableId); + List tables = genTableService.selectGenTableAll(); + List list = genTableColumnService.selectGenTableColumnListByTableId(tableId); + Map map = new HashMap(); + map.put("info", table); + map.put("rows", list); + map.put("tables", tables); + return success(map); + } + + /** + * 查询数据库列表 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:list')") + @GetMapping("/db/list") + public TableDataInfo dataList(GenTable genTable) + { + startPage(); + List list = genTableService.selectDbTableList(genTable); + return getDataTable(list); + } + + /** + * 查询数据表字段列表 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:list')") + @GetMapping(value = "/column/{tableId}") + public TableDataInfo columnList(Long tableId) + { + TableDataInfo dataInfo = new TableDataInfo(); + List list = genTableColumnService.selectGenTableColumnListByTableId(tableId); + dataInfo.setRows(list); + dataInfo.setTotal(list.size()); + return dataInfo; + } + + /** + * 导入表结构(保存) + */ + @PreAuthorize("@ss.hasPermi('tool:gen:import')") + @Log(title = "代码生成", businessType = BusinessType.IMPORT) + @PostMapping("/importTable") + public AjaxResult importTableSave(String tables) + { + String[] tableNames = Convert.toStrArray(tables); + // 查询表信息 + List tableList = genTableService.selectDbTableListByNames(tableNames); + genTableService.importGenTable(tableList, SecurityUtils.getUsername()); + return success(); + } + + /** + * 创建表结构(保存) + */ + @PreAuthorize("@ss.hasRole('admin')") + @Log(title = "创建表", businessType = BusinessType.OTHER) + @PostMapping("/createTable") + public AjaxResult createTableSave(String sql) + { + try + { + SqlUtil.filterKeyword(sql); + List sqlStatements = SQLUtils.parseStatements(sql, DbType.mysql); + List tableNames = new ArrayList<>(); + for (SQLStatement sqlStatement : sqlStatements) + { + if (sqlStatement instanceof MySqlCreateTableStatement) + { + MySqlCreateTableStatement createTableStatement = (MySqlCreateTableStatement) sqlStatement; + if (genTableService.createTable(createTableStatement.toString())) + { + String tableName = createTableStatement.getTableName().replaceAll("`", ""); + tableNames.add(tableName); + } + } + } + List tableList = genTableService.selectDbTableListByNames(tableNames.toArray(new String[tableNames.size()])); + String operName = SecurityUtils.getUsername(); + genTableService.importGenTable(tableList, operName); + return AjaxResult.success(); + } + catch (Exception e) + { + logger.error(e.getMessage(), e); + return AjaxResult.error("创建表结构异常"); + } + } + + /** + * 修改保存代码生成业务 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:edit')") + @Log(title = "代码生成", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult editSave(@Validated @RequestBody GenTable genTable) + { + genTableService.validateEdit(genTable); + genTableService.updateGenTable(genTable); + return success(); + } + + /** + * 删除代码生成 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:remove')") + @Log(title = "代码生成", businessType = BusinessType.DELETE) + @DeleteMapping("/{tableIds}") + public AjaxResult remove(@PathVariable Long[] tableIds) + { + genTableService.deleteGenTableByIds(tableIds); + return success(); + } + + /** + * 预览代码 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:preview')") + @GetMapping("/preview/{tableId}") + public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException + { + Map dataMap = genTableService.previewCode(tableId); + return success(dataMap); + } + + /** + * 生成代码(下载方式) + */ + @PreAuthorize("@ss.hasPermi('tool:gen:code')") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/download/{tableName}") + public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException + { + byte[] data = genTableService.downloadCode(tableName); + genCode(response, data); + } + + /** + * 生成代码(自定义路径) + */ + @PreAuthorize("@ss.hasPermi('tool:gen:code')") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/genCode/{tableName}") + public AjaxResult genCode(@PathVariable("tableName") String tableName) + { + if (!GenConfig.isAllowOverwrite()) + { + return AjaxResult.error("【系统预设】不允许生成文件覆盖到本地"); + } + genTableService.generatorCode(tableName); + return success(); + } + + /** + * 同步数据库 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:edit')") + @Log(title = "代码生成", businessType = BusinessType.UPDATE) + @GetMapping("/synchDb/{tableName}") + public AjaxResult synchDb(@PathVariable("tableName") String tableName) + { + genTableService.synchDb(tableName); + return success(); + } + + /** + * 批量生成代码 + */ + @PreAuthorize("@ss.hasPermi('tool:gen:code')") + @Log(title = "代码生成", businessType = BusinessType.GENCODE) + @GetMapping("/batchGenCode") + public void batchGenCode(HttpServletResponse response, String tables) throws IOException + { + String[] tableNames = Convert.toStrArray(tables); + byte[] data = genTableService.downloadCode(tableNames); + genCode(response, data); + } + + /** + * 生成zip文件 + */ + private void genCode(HttpServletResponse response, byte[] data) throws IOException + { + response.reset(); + response.addHeader("Access-Control-Allow-Origin", "*"); + response.addHeader("Access-Control-Expose-Headers", "Content-Disposition"); + response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\""); + response.addHeader("Content-Length", "" + data.length); + response.setContentType("application/octet-stream; charset=UTF-8"); + IOUtils.write(data, response.getOutputStream()); + } +} \ No newline at end of file diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java new file mode 100644 index 0000000..022a54d --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTable.java @@ -0,0 +1,385 @@ +package com.ruoyi.generator.domain; + +import java.util.List; +import javax.validation.Valid; +import javax.validation.constraints.NotBlank; +import org.apache.commons.lang3.ArrayUtils; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; + +/** + * 业务表 gen_table + * + * @author ruoyi + */ +public class GenTable extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 编号 */ + private Long tableId; + + /** 表名称 */ + @NotBlank(message = "表名称不能为空") + private String tableName; + + /** 表描述 */ + @NotBlank(message = "表描述不能为空") + private String tableComment; + + /** 关联父表的表名 */ + private String subTableName; + + /** 本表关联父表的外键名 */ + private String subTableFkName; + + /** 实体类名称(首字母大写) */ + @NotBlank(message = "实体类名称不能为空") + private String className; + + /** 使用的模板(crud单表操作 tree树表操作 sub主子表操作) */ + private String tplCategory; + + /** 前端类型(element-ui模版 element-plus模版) */ + private String tplWebType; + + /** 生成包路径 */ + @NotBlank(message = "生成包路径不能为空") + private String packageName; + + /** 生成模块名 */ + @NotBlank(message = "生成模块名不能为空") + private String moduleName; + + /** 生成业务名 */ + @NotBlank(message = "生成业务名不能为空") + private String businessName; + + /** 生成功能名 */ + @NotBlank(message = "生成功能名不能为空") + private String functionName; + + /** 生成作者 */ + @NotBlank(message = "作者不能为空") + private String functionAuthor; + + /** 生成代码方式(0zip压缩包 1自定义路径) */ + private String genType; + + /** 生成路径(不填默认项目路径) */ + private String genPath; + + /** 主键信息 */ + private GenTableColumn pkColumn; + + /** 子表信息 */ + private GenTable subTable; + + /** 表列信息 */ + @Valid + private List columns; + + /** 其它生成选项 */ + private String options; + + /** 树编码字段 */ + private String treeCode; + + /** 树父编码字段 */ + private String treeParentCode; + + /** 树名称字段 */ + private String treeName; + + /** 上级菜单ID字段 */ + private Long parentMenuId; + + /** 上级菜单名称字段 */ + private String parentMenuName; + + public Long getTableId() + { + return tableId; + } + + public void setTableId(Long tableId) + { + this.tableId = tableId; + } + + public String getTableName() + { + return tableName; + } + + public void setTableName(String tableName) + { + this.tableName = tableName; + } + + public String getTableComment() + { + return tableComment; + } + + public void setTableComment(String tableComment) + { + this.tableComment = tableComment; + } + + public String getSubTableName() + { + return subTableName; + } + + public void setSubTableName(String subTableName) + { + this.subTableName = subTableName; + } + + public String getSubTableFkName() + { + return subTableFkName; + } + + public void setSubTableFkName(String subTableFkName) + { + this.subTableFkName = subTableFkName; + } + + public String getClassName() + { + return className; + } + + public void setClassName(String className) + { + this.className = className; + } + + public String getTplCategory() + { + return tplCategory; + } + + public void setTplCategory(String tplCategory) + { + this.tplCategory = tplCategory; + } + + public String getTplWebType() + { + return tplWebType; + } + + public void setTplWebType(String tplWebType) + { + this.tplWebType = tplWebType; + } + + public String getPackageName() + { + return packageName; + } + + public void setPackageName(String packageName) + { + this.packageName = packageName; + } + + public String getModuleName() + { + return moduleName; + } + + public void setModuleName(String moduleName) + { + this.moduleName = moduleName; + } + + public String getBusinessName() + { + return businessName; + } + + public void setBusinessName(String businessName) + { + this.businessName = businessName; + } + + public String getFunctionName() + { + return functionName; + } + + public void setFunctionName(String functionName) + { + this.functionName = functionName; + } + + public String getFunctionAuthor() + { + return functionAuthor; + } + + public void setFunctionAuthor(String functionAuthor) + { + this.functionAuthor = functionAuthor; + } + + public String getGenType() + { + return genType; + } + + public void setGenType(String genType) + { + this.genType = genType; + } + + public String getGenPath() + { + return genPath; + } + + public void setGenPath(String genPath) + { + this.genPath = genPath; + } + + public GenTableColumn getPkColumn() + { + return pkColumn; + } + + public void setPkColumn(GenTableColumn pkColumn) + { + this.pkColumn = pkColumn; + } + + public GenTable getSubTable() + { + return subTable; + } + + public void setSubTable(GenTable subTable) + { + this.subTable = subTable; + } + + public List getColumns() + { + return columns; + } + + public void setColumns(List columns) + { + this.columns = columns; + } + + public String getOptions() + { + return options; + } + + public void setOptions(String options) + { + this.options = options; + } + + public String getTreeCode() + { + return treeCode; + } + + public void setTreeCode(String treeCode) + { + this.treeCode = treeCode; + } + + public String getTreeParentCode() + { + return treeParentCode; + } + + public void setTreeParentCode(String treeParentCode) + { + this.treeParentCode = treeParentCode; + } + + public String getTreeName() + { + return treeName; + } + + public void setTreeName(String treeName) + { + this.treeName = treeName; + } + + public Long getParentMenuId() + { + return parentMenuId; + } + + public void setParentMenuId(Long parentMenuId) + { + this.parentMenuId = parentMenuId; + } + + public String getParentMenuName() + { + return parentMenuName; + } + + public void setParentMenuName(String parentMenuName) + { + this.parentMenuName = parentMenuName; + } + + public boolean isSub() + { + return isSub(this.tplCategory); + } + + public static boolean isSub(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_SUB, tplCategory); + } + + public boolean isTree() + { + return isTree(this.tplCategory); + } + + public static boolean isTree(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_TREE, tplCategory); + } + + public boolean isCrud() + { + return isCrud(this.tplCategory); + } + + public static boolean isCrud(String tplCategory) + { + return tplCategory != null && StringUtils.equals(GenConstants.TPL_CRUD, tplCategory); + } + + public boolean isSuperColumn(String javaField) + { + return isSuperColumn(this.tplCategory, javaField); + } + + public static boolean isSuperColumn(String tplCategory, String javaField) + { + if (isTree(tplCategory)) + { + return StringUtils.equalsAnyIgnoreCase(javaField, + ArrayUtils.addAll(GenConstants.TREE_ENTITY, GenConstants.BASE_ENTITY)); + } + return StringUtils.equalsAnyIgnoreCase(javaField, GenConstants.BASE_ENTITY); + } +} \ No newline at end of file diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java new file mode 100644 index 0000000..d1733b6 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/GenTableColumn.java @@ -0,0 +1,373 @@ +package com.ruoyi.generator.domain; + +import javax.validation.constraints.NotBlank; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; + +/** + * 代码生成业务字段表 gen_table_column + * + * @author ruoyi + */ +public class GenTableColumn extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 编号 */ + private Long columnId; + + /** 归属表编号 */ + private Long tableId; + + /** 列名称 */ + private String columnName; + + /** 列描述 */ + private String columnComment; + + /** 列类型 */ + private String columnType; + + /** JAVA类型 */ + private String javaType; + + /** JAVA字段名 */ + @NotBlank(message = "Java属性不能为空") + private String javaField; + + /** 是否主键(1是) */ + private String isPk; + + /** 是否自增(1是) */ + private String isIncrement; + + /** 是否必填(1是) */ + private String isRequired; + + /** 是否为插入字段(1是) */ + private String isInsert; + + /** 是否编辑字段(1是) */ + private String isEdit; + + /** 是否列表字段(1是) */ + private String isList; + + /** 是否查询字段(1是) */ + private String isQuery; + + /** 查询方式(EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围) */ + private String queryType; + + /** 显示类型(input文本框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、image图片上传控件、upload文件上传控件、editor富文本控件) */ + private String htmlType; + + /** 字典类型 */ + private String dictType; + + /** 排序 */ + private Integer sort; + + public void setColumnId(Long columnId) + { + this.columnId = columnId; + } + + public Long getColumnId() + { + return columnId; + } + + public void setTableId(Long tableId) + { + this.tableId = tableId; + } + + public Long getTableId() + { + return tableId; + } + + public void setColumnName(String columnName) + { + this.columnName = columnName; + } + + public String getColumnName() + { + return columnName; + } + + public void setColumnComment(String columnComment) + { + this.columnComment = columnComment; + } + + public String getColumnComment() + { + return columnComment; + } + + public void setColumnType(String columnType) + { + this.columnType = columnType; + } + + public String getColumnType() + { + return columnType; + } + + public void setJavaType(String javaType) + { + this.javaType = javaType; + } + + public String getJavaType() + { + return javaType; + } + + public void setJavaField(String javaField) + { + this.javaField = javaField; + } + + public String getJavaField() + { + return javaField; + } + + public String getCapJavaField() + { + return StringUtils.capitalize(javaField); + } + + public void setIsPk(String isPk) + { + this.isPk = isPk; + } + + public String getIsPk() + { + return isPk; + } + + public boolean isPk() + { + return isPk(this.isPk); + } + + public boolean isPk(String isPk) + { + return isPk != null && StringUtils.equals("1", isPk); + } + + public String getIsIncrement() + { + return isIncrement; + } + + public void setIsIncrement(String isIncrement) + { + this.isIncrement = isIncrement; + } + + public boolean isIncrement() + { + return isIncrement(this.isIncrement); + } + + public boolean isIncrement(String isIncrement) + { + return isIncrement != null && StringUtils.equals("1", isIncrement); + } + + public void setIsRequired(String isRequired) + { + this.isRequired = isRequired; + } + + public String getIsRequired() + { + return isRequired; + } + + public boolean isRequired() + { + return isRequired(this.isRequired); + } + + public boolean isRequired(String isRequired) + { + return isRequired != null && StringUtils.equals("1", isRequired); + } + + public void setIsInsert(String isInsert) + { + this.isInsert = isInsert; + } + + public String getIsInsert() + { + return isInsert; + } + + public boolean isInsert() + { + return isInsert(this.isInsert); + } + + public boolean isInsert(String isInsert) + { + return isInsert != null && StringUtils.equals("1", isInsert); + } + + public void setIsEdit(String isEdit) + { + this.isEdit = isEdit; + } + + public String getIsEdit() + { + return isEdit; + } + + public boolean isEdit() + { + return isInsert(this.isEdit); + } + + public boolean isEdit(String isEdit) + { + return isEdit != null && StringUtils.equals("1", isEdit); + } + + public void setIsList(String isList) + { + this.isList = isList; + } + + public String getIsList() + { + return isList; + } + + public boolean isList() + { + return isList(this.isList); + } + + public boolean isList(String isList) + { + return isList != null && StringUtils.equals("1", isList); + } + + public void setIsQuery(String isQuery) + { + this.isQuery = isQuery; + } + + public String getIsQuery() + { + return isQuery; + } + + public boolean isQuery() + { + return isQuery(this.isQuery); + } + + public boolean isQuery(String isQuery) + { + return isQuery != null && StringUtils.equals("1", isQuery); + } + + public void setQueryType(String queryType) + { + this.queryType = queryType; + } + + public String getQueryType() + { + return queryType; + } + + public String getHtmlType() + { + return htmlType; + } + + public void setHtmlType(String htmlType) + { + this.htmlType = htmlType; + } + + public void setDictType(String dictType) + { + this.dictType = dictType; + } + + public String getDictType() + { + return dictType; + } + + public void setSort(Integer sort) + { + this.sort = sort; + } + + public Integer getSort() + { + return sort; + } + + public boolean isSuperColumn() + { + return isSuperColumn(this.javaField); + } + + public static boolean isSuperColumn(String javaField) + { + return StringUtils.equalsAnyIgnoreCase(javaField, + // BaseEntity + "createBy", "createTime", "updateBy", "updateTime", "remark", + // TreeEntity + "parentName", "parentId", "orderNum", "ancestors"); + } + + public boolean isUsableColumn() + { + return isUsableColumn(javaField); + } + + public static boolean isUsableColumn(String javaField) + { + // isSuperColumn()中的名单用于避免生成多余Domain属性,若某些属性在生成页面时需要用到不能忽略,则放在此处白名单 + return StringUtils.equalsAnyIgnoreCase(javaField, "parentId", "orderNum", "remark"); + } + + public String readConverterExp() + { + String remarks = StringUtils.substringBetween(this.columnComment, "(", ")"); + StringBuffer sb = new StringBuffer(); + if (StringUtils.isNotEmpty(remarks)) + { + for (String value : remarks.split(" ")) + { + if (StringUtils.isNotEmpty(value)) + { + Object startStr = value.subSequence(0, 1); + String endStr = value.substring(1); + sb.append("").append(startStr).append("=").append(endStr).append(","); + } + } + return sb.deleteCharAt(sb.length() - 1).toString(); + } + else + { + return this.columnComment; + } + } +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java new file mode 100644 index 0000000..951e166 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableColumnMapper.java @@ -0,0 +1,60 @@ +package com.ruoyi.generator.mapper; + +import java.util.List; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 业务字段 数据层 + * + * @author ruoyi + */ +public interface GenTableColumnMapper +{ + /** + * 根据表名称查询列信息 + * + * @param tableName 表名称 + * @return 列信息 + */ + public List selectDbTableColumnsByName(String tableName); + + /** + * 查询业务字段列表 + * + * @param tableId 业务字段编号 + * @return 业务字段集合 + */ + public List selectGenTableColumnListByTableId(Long tableId); + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int insertGenTableColumn(GenTableColumn genTableColumn); + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int updateGenTableColumn(GenTableColumn genTableColumn); + + /** + * 删除业务字段 + * + * @param genTableColumns 列数据 + * @return 结果 + */ + public int deleteGenTableColumns(List genTableColumns); + + /** + * 批量删除业务字段 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableColumnByIds(Long[] ids); +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java new file mode 100644 index 0000000..937656d --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/mapper/GenTableMapper.java @@ -0,0 +1,91 @@ +package com.ruoyi.generator.mapper; + +import java.util.List; +import com.ruoyi.generator.domain.GenTable; + +/** + * 业务 数据层 + * + * @author ruoyi + */ +public interface GenTableMapper +{ + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + public List selectGenTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + public List selectDbTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + public List selectDbTableListByNames(String[] tableNames); + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + public List selectGenTableAll(); + + /** + * 查询表ID业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + public GenTable selectGenTableById(Long id); + + /** + * 查询表名称业务信息 + * + * @param tableName 表名称 + * @return 业务信息 + */ + public GenTable selectGenTableByName(String tableName); + + /** + * 新增业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public int insertGenTable(GenTable genTable); + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public int updateGenTable(GenTable genTable); + + /** + * 批量删除业务 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableByIds(Long[] ids); + + /** + * 创建表 + * + * @param sql 表结构 + * @return 结果 + */ + public int createTable(String sql); +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableColumnServiceImpl.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableColumnServiceImpl.java new file mode 100644 index 0000000..8a37ac0 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableColumnServiceImpl.java @@ -0,0 +1,68 @@ +package com.ruoyi.generator.service; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.mapper.GenTableColumnMapper; + +/** + * 业务字段 服务层实现 + * + * @author ruoyi + */ +@Service +public class GenTableColumnServiceImpl implements IGenTableColumnService +{ + @Autowired + private GenTableColumnMapper genTableColumnMapper; + + /** + * 查询业务字段列表 + * + * @param tableId 业务字段编号 + * @return 业务字段集合 + */ + @Override + public List selectGenTableColumnListByTableId(Long tableId) + { + return genTableColumnMapper.selectGenTableColumnListByTableId(tableId); + } + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + @Override + public int insertGenTableColumn(GenTableColumn genTableColumn) + { + return genTableColumnMapper.insertGenTableColumn(genTableColumn); + } + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + @Override + public int updateGenTableColumn(GenTableColumn genTableColumn) + { + return genTableColumnMapper.updateGenTableColumn(genTableColumn); + } + + /** + * 删除业务字段对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteGenTableColumnByIds(String ids) + { + return genTableColumnMapper.deleteGenTableColumnByIds(Convert.toLongArray(ids)); + } +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java new file mode 100644 index 0000000..fe4312f --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/GenTableServiceImpl.java @@ -0,0 +1,531 @@ +package com.ruoyi.generator.service; + +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.IOException; +import java.io.StringWriter; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; +import org.apache.commons.io.FileUtils; +import org.apache.commons.io.IOUtils; +import org.apache.velocity.Template; +import org.apache.velocity.VelocityContext; +import org.apache.velocity.app.Velocity; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.core.text.CharsetKit; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; +import com.ruoyi.generator.mapper.GenTableColumnMapper; +import com.ruoyi.generator.mapper.GenTableMapper; +import com.ruoyi.generator.util.GenUtils; +import com.ruoyi.generator.util.VelocityInitializer; +import com.ruoyi.generator.util.VelocityUtils; + +/** + * 业务 服务层实现 + * + * @author ruoyi + */ +@Service +public class GenTableServiceImpl implements IGenTableService +{ + private static final Logger log = LoggerFactory.getLogger(GenTableServiceImpl.class); + + @Autowired + private GenTableMapper genTableMapper; + + @Autowired + private GenTableColumnMapper genTableColumnMapper; + + /** + * 查询业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + @Override + public GenTable selectGenTableById(Long id) + { + GenTable genTable = genTableMapper.selectGenTableById(id); + setTableFromOptions(genTable); + return genTable; + } + + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + @Override + public List selectGenTableList(GenTable genTable) + { + return genTableMapper.selectGenTableList(genTable); + } + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + @Override + public List selectDbTableList(GenTable genTable) + { + return genTableMapper.selectDbTableList(genTable); + } + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + @Override + public List selectDbTableListByNames(String[] tableNames) + { + return genTableMapper.selectDbTableListByNames(tableNames); + } + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + @Override + public List selectGenTableAll() + { + return genTableMapper.selectGenTableAll(); + } + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + @Override + @Transactional + public void updateGenTable(GenTable genTable) + { + String options = JSON.toJSONString(genTable.getParams()); + genTable.setOptions(options); + int row = genTableMapper.updateGenTable(genTable); + if (row > 0) + { + for (GenTableColumn genTableColumn : genTable.getColumns()) + { + genTableColumnMapper.updateGenTableColumn(genTableColumn); + } + } + } + + /** + * 删除业务对象 + * + * @param tableIds 需要删除的数据ID + * @return 结果 + */ + @Override + @Transactional + public void deleteGenTableByIds(Long[] tableIds) + { + genTableMapper.deleteGenTableByIds(tableIds); + genTableColumnMapper.deleteGenTableColumnByIds(tableIds); + } + + /** + * 创建表 + * + * @param sql 创建表语句 + * @return 结果 + */ + @Override + public boolean createTable(String sql) + { + return genTableMapper.createTable(sql) == 0; + } + + /** + * 导入表结构 + * + * @param tableList 导入表列表 + */ + @Override + @Transactional + public void importGenTable(List tableList, String operName) + { + try + { + for (GenTable table : tableList) + { + String tableName = table.getTableName(); + GenUtils.initTable(table, operName); + int row = genTableMapper.insertGenTable(table); + if (row > 0) + { + // 保存列信息 + List genTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); + for (GenTableColumn column : genTableColumns) + { + GenUtils.initColumnField(column, table); + genTableColumnMapper.insertGenTableColumn(column); + } + } + } + } + catch (Exception e) + { + throw new ServiceException("导入失败:" + e.getMessage()); + } + } + + /** + * 预览代码 + * + * @param tableId 表编号 + * @return 预览数据列表 + */ + @Override + public Map previewCode(Long tableId) + { + Map dataMap = new LinkedHashMap<>(); + // 查询表信息 + GenTable table = genTableMapper.selectGenTableById(tableId); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType()); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + dataMap.put(template, sw.toString()); + } + return dataMap; + } + + /** + * 生成代码(下载方式) + * + * @param tableName 表名称 + * @return 数据 + */ + @Override + public byte[] downloadCode(String tableName) + { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + ZipOutputStream zip = new ZipOutputStream(outputStream); + generatorCode(tableName, zip); + IOUtils.closeQuietly(zip); + return outputStream.toByteArray(); + } + + /** + * 生成代码(自定义路径) + * + * @param tableName 表名称 + */ + @Override + public void generatorCode(String tableName) + { + // 查询表信息 + GenTable table = genTableMapper.selectGenTableByName(tableName); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType()); + for (String template : templates) + { + if (!StringUtils.containsAny(template, "sql.vm", "api.js.vm", "index.vue.vm", "index-tree.vue.vm")) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + try + { + String path = getGenPath(table, template); + FileUtils.writeStringToFile(new File(path), sw.toString(), CharsetKit.UTF_8); + } + catch (IOException e) + { + throw new ServiceException("渲染模板失败,表名:" + table.getTableName()); + } + } + } + } + + /** + * 同步数据库 + * + * @param tableName 表名称 + */ + @Override + @Transactional + public void synchDb(String tableName) + { + GenTable table = genTableMapper.selectGenTableByName(tableName); + List tableColumns = table.getColumns(); + Map tableColumnMap = tableColumns.stream().collect(Collectors.toMap(GenTableColumn::getColumnName, Function.identity())); + + List dbTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); + if (StringUtils.isEmpty(dbTableColumns)) + { + throw new ServiceException("同步数据失败,原表结构不存在"); + } + List dbTableColumnNames = dbTableColumns.stream().map(GenTableColumn::getColumnName).collect(Collectors.toList()); + + dbTableColumns.forEach(column -> { + GenUtils.initColumnField(column, table); + if (tableColumnMap.containsKey(column.getColumnName())) + { + GenTableColumn prevColumn = tableColumnMap.get(column.getColumnName()); + column.setColumnId(prevColumn.getColumnId()); + if (column.isList()) + { + // 如果是列表,继续保留查询方式/字典类型选项 + column.setDictType(prevColumn.getDictType()); + column.setQueryType(prevColumn.getQueryType()); + } + if (StringUtils.isNotEmpty(prevColumn.getIsRequired()) && !column.isPk() + && (column.isInsert() || column.isEdit()) + && ((column.isUsableColumn()) || (!column.isSuperColumn()))) + { + // 如果是(新增/修改&非主键/非忽略及父属性),继续保留必填/显示类型选项 + column.setIsRequired(prevColumn.getIsRequired()); + column.setHtmlType(prevColumn.getHtmlType()); + } + genTableColumnMapper.updateGenTableColumn(column); + } + else + { + genTableColumnMapper.insertGenTableColumn(column); + } + }); + + List delColumns = tableColumns.stream().filter(column -> !dbTableColumnNames.contains(column.getColumnName())).collect(Collectors.toList()); + if (StringUtils.isNotEmpty(delColumns)) + { + genTableColumnMapper.deleteGenTableColumns(delColumns); + } + } + + /** + * 批量生成代码(下载方式) + * + * @param tableNames 表数组 + * @return 数据 + */ + @Override + public byte[] downloadCode(String[] tableNames) + { + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + ZipOutputStream zip = new ZipOutputStream(outputStream); + for (String tableName : tableNames) + { + generatorCode(tableName, zip); + } + IOUtils.closeQuietly(zip); + return outputStream.toByteArray(); + } + + /** + * 查询表信息并生成代码 + */ + private void generatorCode(String tableName, ZipOutputStream zip) + { + // 查询表信息 + GenTable table = genTableMapper.selectGenTableByName(tableName); + // 设置主子表信息 + setSubTable(table); + // 设置主键列信息 + setPkColumn(table); + + VelocityInitializer.initVelocity(); + + VelocityContext context = VelocityUtils.prepareContext(table); + + // 获取模板列表 + List templates = VelocityUtils.getTemplateList(table.getTplCategory(), table.getTplWebType()); + for (String template : templates) + { + // 渲染模板 + StringWriter sw = new StringWriter(); + Template tpl = Velocity.getTemplate(template, Constants.UTF8); + tpl.merge(context, sw); + try + { + // 添加到zip + zip.putNextEntry(new ZipEntry(VelocityUtils.getFileName(template, table))); + IOUtils.write(sw.toString(), zip, Constants.UTF8); + IOUtils.closeQuietly(sw); + zip.flush(); + zip.closeEntry(); + } + catch (IOException e) + { + log.error("渲染模板失败,表名:" + table.getTableName(), e); + } + } + } + + /** + * 修改保存参数校验 + * + * @param genTable 业务信息 + */ + @Override + public void validateEdit(GenTable genTable) + { + if (GenConstants.TPL_TREE.equals(genTable.getTplCategory())) + { + String options = JSON.toJSONString(genTable.getParams()); + JSONObject paramsObj = JSON.parseObject(options); + if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_CODE))) + { + throw new ServiceException("树编码字段不能为空"); + } + else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_PARENT_CODE))) + { + throw new ServiceException("树父编码字段不能为空"); + } + else if (StringUtils.isEmpty(paramsObj.getString(GenConstants.TREE_NAME))) + { + throw new ServiceException("树名称字段不能为空"); + } + } + else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) + { + if (StringUtils.isEmpty(genTable.getSubTableName())) + { + throw new ServiceException("关联子表的表名不能为空"); + } + else if (StringUtils.isEmpty(genTable.getSubTableFkName())) + { + throw new ServiceException("子表关联的外键名不能为空"); + } + } + } + + /** + * 设置主键列信息 + * + * @param table 业务表信息 + */ + public void setPkColumn(GenTable table) + { + for (GenTableColumn column : table.getColumns()) + { + if (column.isPk()) + { + table.setPkColumn(column); + break; + } + } + if (StringUtils.isNull(table.getPkColumn())) + { + table.setPkColumn(table.getColumns().get(0)); + } + if (GenConstants.TPL_SUB.equals(table.getTplCategory())) + { + for (GenTableColumn column : table.getSubTable().getColumns()) + { + if (column.isPk()) + { + table.getSubTable().setPkColumn(column); + break; + } + } + if (StringUtils.isNull(table.getSubTable().getPkColumn())) + { + table.getSubTable().setPkColumn(table.getSubTable().getColumns().get(0)); + } + } + } + + /** + * 设置主子表信息 + * + * @param table 业务表信息 + */ + public void setSubTable(GenTable table) + { + String subTableName = table.getSubTableName(); + if (StringUtils.isNotEmpty(subTableName)) + { + table.setSubTable(genTableMapper.selectGenTableByName(subTableName)); + } + } + + /** + * 设置代码生成其他选项值 + * + * @param genTable 设置后的生成对象 + */ + public void setTableFromOptions(GenTable genTable) + { + JSONObject paramsObj = JSON.parseObject(genTable.getOptions()); + if (StringUtils.isNotNull(paramsObj)) + { + String treeCode = paramsObj.getString(GenConstants.TREE_CODE); + String treeParentCode = paramsObj.getString(GenConstants.TREE_PARENT_CODE); + String treeName = paramsObj.getString(GenConstants.TREE_NAME); + Long parentMenuId = paramsObj.getLongValue(GenConstants.PARENT_MENU_ID); + String parentMenuName = paramsObj.getString(GenConstants.PARENT_MENU_NAME); + + genTable.setTreeCode(treeCode); + genTable.setTreeParentCode(treeParentCode); + genTable.setTreeName(treeName); + genTable.setParentMenuId(parentMenuId); + genTable.setParentMenuName(parentMenuName); + } + } + + /** + * 获取代码生成地址 + * + * @param table 业务表信息 + * @param template 模板文件路径 + * @return 生成地址 + */ + public static String getGenPath(GenTable table, String template) + { + String genPath = table.getGenPath(); + if (StringUtils.equals(genPath, "/")) + { + return System.getProperty("user.dir") + File.separator + "src" + File.separator + VelocityUtils.getFileName(template, table); + } + return genPath + File.separator + VelocityUtils.getFileName(template, table); + } +} \ No newline at end of file diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java new file mode 100644 index 0000000..3037f70 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableColumnService.java @@ -0,0 +1,44 @@ +package com.ruoyi.generator.service; + +import java.util.List; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 业务字段 服务层 + * + * @author ruoyi + */ +public interface IGenTableColumnService +{ + /** + * 查询业务字段列表 + * + * @param tableId 业务字段编号 + * @return 业务字段集合 + */ + public List selectGenTableColumnListByTableId(Long tableId); + + /** + * 新增业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int insertGenTableColumn(GenTableColumn genTableColumn); + + /** + * 修改业务字段 + * + * @param genTableColumn 业务字段信息 + * @return 结果 + */ + public int updateGenTableColumn(GenTableColumn genTableColumn); + + /** + * 删除业务字段信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteGenTableColumnByIds(String ids); +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java new file mode 100644 index 0000000..695426e --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/service/IGenTableService.java @@ -0,0 +1,130 @@ +package com.ruoyi.generator.service; + +import java.util.List; +import java.util.Map; +import com.ruoyi.generator.domain.GenTable; + +/** + * 业务 服务层 + * + * @author ruoyi + */ +public interface IGenTableService +{ + /** + * 查询业务列表 + * + * @param genTable 业务信息 + * @return 业务集合 + */ + public List selectGenTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param genTable 业务信息 + * @return 数据库表集合 + */ + public List selectDbTableList(GenTable genTable); + + /** + * 查询据库列表 + * + * @param tableNames 表名称组 + * @return 数据库表集合 + */ + public List selectDbTableListByNames(String[] tableNames); + + /** + * 查询所有表信息 + * + * @return 表信息集合 + */ + public List selectGenTableAll(); + + /** + * 查询业务信息 + * + * @param id 业务ID + * @return 业务信息 + */ + public GenTable selectGenTableById(Long id); + + /** + * 修改业务 + * + * @param genTable 业务信息 + * @return 结果 + */ + public void updateGenTable(GenTable genTable); + + /** + * 删除业务信息 + * + * @param tableIds 需要删除的表数据ID + * @return 结果 + */ + public void deleteGenTableByIds(Long[] tableIds); + + /** + * 创建表 + * + * @param sql 创建表语句 + * @return 结果 + */ + public boolean createTable(String sql); + + /** + * 导入表结构 + * + * @param tableList 导入表列表 + * @param operName 操作人员 + */ + public void importGenTable(List tableList, String operName); + + /** + * 预览代码 + * + * @param tableId 表编号 + * @return 预览数据列表 + */ + public Map previewCode(Long tableId); + + /** + * 生成代码(下载方式) + * + * @param tableName 表名称 + * @return 数据 + */ + public byte[] downloadCode(String tableName); + + /** + * 生成代码(自定义路径) + * + * @param tableName 表名称 + * @return 数据 + */ + public void generatorCode(String tableName); + + /** + * 同步数据库 + * + * @param tableName 表名称 + */ + public void synchDb(String tableName); + + /** + * 批量生成代码(下载方式) + * + * @param tableNames 表数组 + * @return 数据 + */ + public byte[] downloadCode(String[] tableNames); + + /** + * 修改保存参数校验 + * + * @param genTable 业务信息 + */ + public void validateEdit(GenTable genTable); +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java new file mode 100644 index 0000000..e7ebc20 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java @@ -0,0 +1,257 @@ +package com.ruoyi.generator.util; + +import java.util.Arrays; +import org.apache.commons.lang3.RegExUtils; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.config.GenConfig; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 代码生成器 工具类 + * + * @author ruoyi + */ +public class GenUtils +{ + /** + * 初始化表信息 + */ + public static void initTable(GenTable genTable, String operName) + { + genTable.setClassName(convertClassName(genTable.getTableName())); + genTable.setPackageName(GenConfig.getPackageName()); + genTable.setModuleName(getModuleName(GenConfig.getPackageName())); + genTable.setBusinessName(getBusinessName(genTable.getTableName())); + genTable.setFunctionName(replaceText(genTable.getTableComment())); + genTable.setFunctionAuthor(GenConfig.getAuthor()); + genTable.setCreateBy(operName); + } + + /** + * 初始化列属性字段 + */ + public static void initColumnField(GenTableColumn column, GenTable table) + { + String dataType = getDbType(column.getColumnType()); + String columnName = column.getColumnName(); + column.setTableId(table.getTableId()); + column.setCreateBy(table.getCreateBy()); + // 设置java字段名 + column.setJavaField(StringUtils.toCamelCase(columnName)); + // 设置默认类型 + column.setJavaType(GenConstants.TYPE_STRING); + column.setQueryType(GenConstants.QUERY_EQ); + + if (arraysContains(GenConstants.COLUMNTYPE_STR, dataType) || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType)) + { + // 字符串长度超过500设置为文本域 + Integer columnLength = getColumnLength(column.getColumnType()); + String htmlType = columnLength >= 500 || arraysContains(GenConstants.COLUMNTYPE_TEXT, dataType) ? GenConstants.HTML_TEXTAREA : GenConstants.HTML_INPUT; + column.setHtmlType(htmlType); + } + else if (arraysContains(GenConstants.COLUMNTYPE_TIME, dataType)) + { + column.setJavaType(GenConstants.TYPE_DATE); + column.setHtmlType(GenConstants.HTML_DATETIME); + } + else if (arraysContains(GenConstants.COLUMNTYPE_NUMBER, dataType)) + { + column.setHtmlType(GenConstants.HTML_INPUT); + + // 如果是浮点型 统一用BigDecimal + String[] str = StringUtils.split(StringUtils.substringBetween(column.getColumnType(), "(", ")"), ","); + if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0) + { + column.setJavaType(GenConstants.TYPE_BIGDECIMAL); + } + // 如果是整形 + else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10) + { + column.setJavaType(GenConstants.TYPE_INTEGER); + } + // 长整形 + else + { + column.setJavaType(GenConstants.TYPE_LONG); + } + } + + // 插入字段(默认所有字段都需要插入) + column.setIsInsert(GenConstants.REQUIRE); + + // 编辑字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_EDIT, columnName) && !column.isPk()) + { + column.setIsEdit(GenConstants.REQUIRE); + } + // 列表字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_LIST, columnName) && !column.isPk()) + { + column.setIsList(GenConstants.REQUIRE); + } + // 查询字段 + if (!arraysContains(GenConstants.COLUMNNAME_NOT_QUERY, columnName) && !column.isPk()) + { + column.setIsQuery(GenConstants.REQUIRE); + } + + // 查询字段类型 + if (StringUtils.endsWithIgnoreCase(columnName, "name")) + { + column.setQueryType(GenConstants.QUERY_LIKE); + } + // 状态字段设置单选框 + if (StringUtils.endsWithIgnoreCase(columnName, "status")) + { + column.setHtmlType(GenConstants.HTML_RADIO); + } + // 类型&性别字段设置下拉框 + else if (StringUtils.endsWithIgnoreCase(columnName, "type") + || StringUtils.endsWithIgnoreCase(columnName, "sex")) + { + column.setHtmlType(GenConstants.HTML_SELECT); + } + // 图片字段设置图片上传控件 + else if (StringUtils.endsWithIgnoreCase(columnName, "image")) + { + column.setHtmlType(GenConstants.HTML_IMAGE_UPLOAD); + } + // 文件字段设置文件上传控件 + else if (StringUtils.endsWithIgnoreCase(columnName, "file")) + { + column.setHtmlType(GenConstants.HTML_FILE_UPLOAD); + } + // 内容字段设置富文本控件 + else if (StringUtils.endsWithIgnoreCase(columnName, "content")) + { + column.setHtmlType(GenConstants.HTML_EDITOR); + } + } + + /** + * 校验数组是否包含指定值 + * + * @param arr 数组 + * @param targetValue 值 + * @return 是否包含 + */ + public static boolean arraysContains(String[] arr, String targetValue) + { + return Arrays.asList(arr).contains(targetValue); + } + + /** + * 获取模块名 + * + * @param packageName 包名 + * @return 模块名 + */ + public static String getModuleName(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + int nameLength = packageName.length(); + return StringUtils.substring(packageName, lastIndex + 1, nameLength); + } + + /** + * 获取业务名 + * + * @param tableName 表名 + * @return 业务名 + */ + public static String getBusinessName(String tableName) + { + int lastIndex = tableName.lastIndexOf("_"); + int nameLength = tableName.length(); + return StringUtils.substring(tableName, lastIndex + 1, nameLength); + } + + /** + * 表名转换成Java类名 + * + * @param tableName 表名称 + * @return 类名 + */ + public static String convertClassName(String tableName) + { + boolean autoRemovePre = GenConfig.getAutoRemovePre(); + String tablePrefix = GenConfig.getTablePrefix(); + if (autoRemovePre && StringUtils.isNotEmpty(tablePrefix)) + { + String[] searchList = StringUtils.split(tablePrefix, ","); + tableName = replaceFirst(tableName, searchList); + } + return StringUtils.convertToCamelCase(tableName); + } + + /** + * 批量替换前缀 + * + * @param replacementm 替换值 + * @param searchList 替换列表 + * @return + */ + public static String replaceFirst(String replacementm, String[] searchList) + { + String text = replacementm; + for (String searchString : searchList) + { + if (replacementm.startsWith(searchString)) + { + text = replacementm.replaceFirst(searchString, ""); + break; + } + } + return text; + } + + /** + * 关键字替换 + * + * @param text 需要被替换的名字 + * @return 替换后的名字 + */ + public static String replaceText(String text) + { + return RegExUtils.replaceAll(text, "(?:表|若依)", ""); + } + + /** + * 获取数据库类型字段 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static String getDbType(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + return StringUtils.substringBefore(columnType, "("); + } + else + { + return columnType; + } + } + + /** + * 获取字段长度 + * + * @param columnType 列类型 + * @return 截取后的列类型 + */ + public static Integer getColumnLength(String columnType) + { + if (StringUtils.indexOf(columnType, "(") > 0) + { + String length = StringUtils.substringBetween(columnType, "(", ")"); + return Integer.valueOf(length); + } + else + { + return 0; + } + } +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java new file mode 100644 index 0000000..9f69403 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityInitializer.java @@ -0,0 +1,34 @@ +package com.ruoyi.generator.util; + +import java.util.Properties; +import org.apache.velocity.app.Velocity; +import com.ruoyi.common.constant.Constants; + +/** + * VelocityEngine工厂 + * + * @author ruoyi + */ +public class VelocityInitializer +{ + /** + * 初始化vm方法 + */ + public static void initVelocity() + { + Properties p = new Properties(); + try + { + // 加载classpath目录下的vm文件 + p.setProperty("resource.loader.file.class", "org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader"); + // 定义字符集 + p.setProperty(Velocity.INPUT_ENCODING, Constants.UTF8); + // 初始化Velocity引擎,指定配置Properties + Velocity.init(p); + } + catch (Exception e) + { + throw new RuntimeException(e); + } + } +} diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java new file mode 100644 index 0000000..1a14681 --- /dev/null +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java @@ -0,0 +1,408 @@ +package com.ruoyi.generator.util; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.apache.velocity.VelocityContext; +import com.alibaba.fastjson2.JSON; +import com.alibaba.fastjson2.JSONObject; +import com.ruoyi.common.constant.GenConstants; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.generator.domain.GenTable; +import com.ruoyi.generator.domain.GenTableColumn; + +/** + * 模板处理工具类 + * + * @author ruoyi + */ +public class VelocityUtils +{ + /** 项目空间路径 */ + private static final String PROJECT_PATH = "main/java"; + + /** mybatis空间路径 */ + private static final String MYBATIS_PATH = "main/resources/mapper"; + + /** 默认上级菜单,系统工具 */ + private static final String DEFAULT_PARENT_MENU_ID = "3"; + + /** + * 设置模板变量信息 + * + * @return 模板列表 + */ + public static VelocityContext prepareContext(GenTable genTable) + { + String moduleName = genTable.getModuleName(); + String businessName = genTable.getBusinessName(); + String packageName = genTable.getPackageName(); + String tplCategory = genTable.getTplCategory(); + String functionName = genTable.getFunctionName(); + + VelocityContext velocityContext = new VelocityContext(); + velocityContext.put("tplCategory", genTable.getTplCategory()); + velocityContext.put("tableName", genTable.getTableName()); + velocityContext.put("functionName", StringUtils.isNotEmpty(functionName) ? functionName : "【请填写功能名称】"); + velocityContext.put("ClassName", genTable.getClassName()); + velocityContext.put("className", StringUtils.uncapitalize(genTable.getClassName())); + velocityContext.put("moduleName", genTable.getModuleName()); + velocityContext.put("BusinessName", StringUtils.capitalize(genTable.getBusinessName())); + velocityContext.put("businessName", genTable.getBusinessName()); + velocityContext.put("basePackage", getPackagePrefix(packageName)); + velocityContext.put("packageName", packageName); + velocityContext.put("author", genTable.getFunctionAuthor()); + velocityContext.put("datetime", DateUtils.getDate()); + velocityContext.put("pkColumn", genTable.getPkColumn()); + velocityContext.put("importList", getImportList(genTable)); + velocityContext.put("permissionPrefix", getPermissionPrefix(moduleName, businessName)); + velocityContext.put("columns", genTable.getColumns()); + velocityContext.put("table", genTable); + velocityContext.put("dicts", getDicts(genTable)); + setMenuVelocityContext(velocityContext, genTable); + if (GenConstants.TPL_TREE.equals(tplCategory)) + { + setTreeVelocityContext(velocityContext, genTable); + } + if (GenConstants.TPL_SUB.equals(tplCategory)) + { + setSubVelocityContext(velocityContext, genTable); + } + return velocityContext; + } + + public static void setMenuVelocityContext(VelocityContext context, GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSON.parseObject(options); + String parentMenuId = getParentMenuId(paramsObj); + context.put("parentMenuId", parentMenuId); + } + + public static void setTreeVelocityContext(VelocityContext context, GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSON.parseObject(options); + String treeCode = getTreecode(paramsObj); + String treeParentCode = getTreeParentCode(paramsObj); + String treeName = getTreeName(paramsObj); + + context.put("treeCode", treeCode); + context.put("treeParentCode", treeParentCode); + context.put("treeName", treeName); + context.put("expandColumn", getExpandColumn(genTable)); + if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) + { + context.put("tree_parent_code", paramsObj.getString(GenConstants.TREE_PARENT_CODE)); + } + if (paramsObj.containsKey(GenConstants.TREE_NAME)) + { + context.put("tree_name", paramsObj.getString(GenConstants.TREE_NAME)); + } + } + + public static void setSubVelocityContext(VelocityContext context, GenTable genTable) + { + GenTable subTable = genTable.getSubTable(); + String subTableName = genTable.getSubTableName(); + String subTableFkName = genTable.getSubTableFkName(); + String subClassName = genTable.getSubTable().getClassName(); + String subTableFkClassName = StringUtils.convertToCamelCase(subTableFkName); + + context.put("subTable", subTable); + context.put("subTableName", subTableName); + context.put("subTableFkName", subTableFkName); + context.put("subTableFkClassName", subTableFkClassName); + context.put("subTableFkclassName", StringUtils.uncapitalize(subTableFkClassName)); + context.put("subClassName", subClassName); + context.put("subclassName", StringUtils.uncapitalize(subClassName)); + context.put("subImportList", getImportList(genTable.getSubTable())); + } + + /** + * 获取模板信息 + * @param tplCategory 生成的模板 + * @param tplWebType 前端类型 + * @return 模板列表 + */ + public static List getTemplateList(String tplCategory, String tplWebType) + { + String useWebType = "vm/vue"; + if ("element-plus".equals(tplWebType)) + { + useWebType = "vm/vue/v3"; + } + List templates = new ArrayList(); + templates.add("vm/java/domain.java.vm"); + templates.add("vm/java/mapper.java.vm"); + templates.add("vm/java/service.java.vm"); + templates.add("vm/java/serviceImpl.java.vm"); + templates.add("vm/java/controller.java.vm"); + templates.add("vm/xml/mapper.xml.vm"); + templates.add("vm/sql/sql.vm"); + templates.add("vm/js/api.js.vm"); + if (GenConstants.TPL_CRUD.equals(tplCategory)) + { + templates.add(useWebType + "/index.vue.vm"); + } + else if (GenConstants.TPL_TREE.equals(tplCategory)) + { + templates.add(useWebType + "/index-tree.vue.vm"); + } + else if (GenConstants.TPL_SUB.equals(tplCategory)) + { + templates.add(useWebType + "/index.vue.vm"); + templates.add("vm/java/sub-domain.java.vm"); + } + return templates; + } + + /** + * 获取文件名 + */ + public static String getFileName(String template, GenTable genTable) + { + // 文件名称 + String fileName = ""; + // 包路径 + String packageName = genTable.getPackageName(); + // 模块名 + String moduleName = genTable.getModuleName(); + // 大写类名 + String className = genTable.getClassName(); + // 业务名称 + String businessName = genTable.getBusinessName(); + + String javaPath = PROJECT_PATH + "/" + StringUtils.replace(packageName, ".", "/"); + String mybatisPath = MYBATIS_PATH + "/" + moduleName; + String vuePath = "vue"; + + if (template.contains("domain.java.vm")) + { + fileName = StringUtils.format("{}/domain/{}.java", javaPath, className); + } + if (template.contains("sub-domain.java.vm") && StringUtils.equals(GenConstants.TPL_SUB, genTable.getTplCategory())) + { + fileName = StringUtils.format("{}/domain/{}.java", javaPath, genTable.getSubTable().getClassName()); + } + else if (template.contains("mapper.java.vm")) + { + fileName = StringUtils.format("{}/mapper/{}Mapper.java", javaPath, className); + } + else if (template.contains("service.java.vm")) + { + fileName = StringUtils.format("{}/service/I{}Service.java", javaPath, className); + } + else if (template.contains("serviceImpl.java.vm")) + { + fileName = StringUtils.format("{}/service/impl/{}ServiceImpl.java", javaPath, className); + } + else if (template.contains("controller.java.vm")) + { + fileName = StringUtils.format("{}/controller/{}Controller.java", javaPath, className); + } + else if (template.contains("mapper.xml.vm")) + { + fileName = StringUtils.format("{}/{}Mapper.xml", mybatisPath, className); + } + else if (template.contains("sql.vm")) + { + fileName = businessName + "Menu.sql"; + } + else if (template.contains("api.js.vm")) + { + fileName = StringUtils.format("{}/api/{}/{}.js", vuePath, moduleName, businessName); + } + else if (template.contains("index.vue.vm")) + { + fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName); + } + else if (template.contains("index-tree.vue.vm")) + { + fileName = StringUtils.format("{}/views/{}/{}/index.vue", vuePath, moduleName, businessName); + } + return fileName; + } + + /** + * 获取包前缀 + * + * @param packageName 包名称 + * @return 包前缀名称 + */ + public static String getPackagePrefix(String packageName) + { + int lastIndex = packageName.lastIndexOf("."); + return StringUtils.substring(packageName, 0, lastIndex); + } + + /** + * 根据列类型获取导入包 + * + * @param genTable 业务表对象 + * @return 返回需要导入的包列表 + */ + public static HashSet getImportList(GenTable genTable) + { + List columns = genTable.getColumns(); + GenTable subGenTable = genTable.getSubTable(); + HashSet importList = new HashSet(); + if (StringUtils.isNotNull(subGenTable)) + { + importList.add("java.util.List"); + } + for (GenTableColumn column : columns) + { + if (!column.isSuperColumn() && GenConstants.TYPE_DATE.equals(column.getJavaType())) + { + importList.add("java.util.Date"); + importList.add("com.fasterxml.jackson.annotation.JsonFormat"); + } + else if (!column.isSuperColumn() && GenConstants.TYPE_BIGDECIMAL.equals(column.getJavaType())) + { + importList.add("java.math.BigDecimal"); + } + } + return importList; + } + + /** + * 根据列类型获取字典组 + * + * @param genTable 业务表对象 + * @return 返回字典组 + */ + public static String getDicts(GenTable genTable) + { + List columns = genTable.getColumns(); + Set dicts = new HashSet(); + addDicts(dicts, columns); + if (StringUtils.isNotNull(genTable.getSubTable())) + { + List subColumns = genTable.getSubTable().getColumns(); + addDicts(dicts, subColumns); + } + return StringUtils.join(dicts, ", "); + } + + /** + * 添加字典列表 + * + * @param dicts 字典列表 + * @param columns 列集合 + */ + public static void addDicts(Set dicts, List columns) + { + for (GenTableColumn column : columns) + { + if (!column.isSuperColumn() && StringUtils.isNotEmpty(column.getDictType()) && StringUtils.equalsAny( + column.getHtmlType(), + new String[] { GenConstants.HTML_SELECT, GenConstants.HTML_RADIO, GenConstants.HTML_CHECKBOX })) + { + dicts.add("'" + column.getDictType() + "'"); + } + } + } + + /** + * 获取权限前缀 + * + * @param moduleName 模块名称 + * @param businessName 业务名称 + * @return 返回权限前缀 + */ + public static String getPermissionPrefix(String moduleName, String businessName) + { + return StringUtils.format("{}:{}", moduleName, businessName); + } + + /** + * 获取上级菜单ID字段 + * + * @param paramsObj 生成其他选项 + * @return 上级菜单ID字段 + */ + public static String getParentMenuId(JSONObject paramsObj) + { + if (StringUtils.isNotEmpty(paramsObj) && paramsObj.containsKey(GenConstants.PARENT_MENU_ID) + && StringUtils.isNotEmpty(paramsObj.getString(GenConstants.PARENT_MENU_ID))) + { + return paramsObj.getString(GenConstants.PARENT_MENU_ID); + } + return DEFAULT_PARENT_MENU_ID; + } + + /** + * 获取树编码 + * + * @param paramsObj 生成其他选项 + * @return 树编码 + */ + public static String getTreecode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树父编码 + * + * @param paramsObj 生成其他选项 + * @return 树父编码 + */ + public static String getTreeParentCode(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_PARENT_CODE)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_PARENT_CODE)); + } + return StringUtils.EMPTY; + } + + /** + * 获取树名称 + * + * @param paramsObj 生成其他选项 + * @return 树名称 + */ + public static String getTreeName(JSONObject paramsObj) + { + if (paramsObj.containsKey(GenConstants.TREE_NAME)) + { + return StringUtils.toCamelCase(paramsObj.getString(GenConstants.TREE_NAME)); + } + return StringUtils.EMPTY; + } + + /** + * 获取需要在哪一列上面显示展开按钮 + * + * @param genTable 业务表对象 + * @return 展开按钮列序号 + */ + public static int getExpandColumn(GenTable genTable) + { + String options = genTable.getOptions(); + JSONObject paramsObj = JSON.parseObject(options); + String treeName = paramsObj.getString(GenConstants.TREE_NAME); + int num = 0; + for (GenTableColumn column : genTable.getColumns()) + { + if (column.isList()) + { + num++; + String columnName = column.getColumnName(); + if (columnName.equals(treeName)) + { + break; + } + } + } + return num; + } +} diff --git a/ruoyi-generator/src/main/resources/generator.yml b/ruoyi-generator/src/main/resources/generator.yml new file mode 100644 index 0000000..25158d8 --- /dev/null +++ b/ruoyi-generator/src/main/resources/generator.yml @@ -0,0 +1,12 @@ +# 代码生成 +gen: + # 作者 + author: shi + # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool + packageName: com.ruoyi.ai + # 自动去除表前缀,默认是false + autoRemovePre: false + # 表前缀(生成类名不会包含表前缀,多个用逗号分隔) + tablePrefix: ai_ + # 是否允许生成文件覆盖到本地(自定义路径),默认不允许 + allowOverwrite: false \ No newline at end of file diff --git a/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml b/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml new file mode 100644 index 0000000..52857e8 --- /dev/null +++ b/ruoyi-generator/src/main/resources/mapper/generator/GenTableColumnMapper.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column + + + + + + + + insert into gen_table_column ( + table_id, + column_name, + column_comment, + column_type, + java_type, + java_field, + is_pk, + is_increment, + is_required, + is_insert, + is_edit, + is_list, + is_query, + query_type, + html_type, + dict_type, + sort, + create_by, + create_time + )values( + #{tableId}, + #{columnName}, + #{columnComment}, + #{columnType}, + #{javaType}, + #{javaField}, + #{isPk}, + #{isIncrement}, + #{isRequired}, + #{isInsert}, + #{isEdit}, + #{isList}, + #{isQuery}, + #{queryType}, + #{htmlType}, + #{dictType}, + #{sort}, + #{createBy}, + sysdate() + ) + + + + update gen_table_column + + column_comment = #{columnComment}, + java_type = #{javaType}, + java_field = #{javaField}, + is_insert = #{isInsert}, + is_edit = #{isEdit}, + is_list = #{isList}, + is_query = #{isQuery}, + is_required = #{isRequired}, + query_type = #{queryType}, + html_type = #{htmlType}, + dict_type = #{dictType}, + sort = #{sort}, + update_by = #{updateBy}, + update_time = sysdate() + + where column_id = #{columnId} + + + + delete from gen_table_column where table_id in + + #{tableId} + + + + + delete from gen_table_column where column_id in + + #{item.columnId} + + + + \ No newline at end of file diff --git a/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml b/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml new file mode 100644 index 0000000..d1110f7 --- /dev/null +++ b/ruoyi-generator/src/main/resources/mapper/generator/GenTableMapper.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, tpl_web_type, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table + + + + + + + + + + + + + + + + + + insert into gen_table ( + table_name, + table_comment, + class_name, + tpl_category, + tpl_web_type, + package_name, + module_name, + business_name, + function_name, + function_author, + gen_type, + gen_path, + remark, + create_by, + create_time + )values( + #{tableName}, + #{tableComment}, + #{className}, + #{tplCategory}, + #{tplWebType}, + #{packageName}, + #{moduleName}, + #{businessName}, + #{functionName}, + #{functionAuthor}, + #{genType}, + #{genPath}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + ${sql} + + + + update gen_table + + table_name = #{tableName}, + table_comment = #{tableComment}, + sub_table_name = #{subTableName}, + sub_table_fk_name = #{subTableFkName}, + class_name = #{className}, + function_author = #{functionAuthor}, + gen_type = #{genType}, + gen_path = #{genPath}, + tpl_category = #{tplCategory}, + tpl_web_type = #{tplWebType}, + package_name = #{packageName}, + module_name = #{moduleName}, + business_name = #{businessName}, + function_name = #{functionName}, + options = #{options}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where table_id = #{tableId} + + + + delete from gen_table where table_id in + + #{tableId} + + + + \ No newline at end of file diff --git a/ruoyi-generator/src/main/resources/vm/java/controller.java.vm b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm new file mode 100644 index 0000000..bf88988 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/controller.java.vm @@ -0,0 +1,115 @@ +package ${packageName}.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.I${ClassName}Service; +import com.ruoyi.common.utils.poi.ExcelUtil; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.page.TableDataInfo; +#elseif($table.tree) +#end + +/** + * ${functionName}Controller + * + * @author ${author} + * @date ${datetime} + */ +@RestController +@RequestMapping("/${moduleName}/${businessName}") +public class ${ClassName}Controller extends BaseController +{ + @Autowired + private I${ClassName}Service ${className}Service; + + /** + * 查询${functionName}列表 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") + @GetMapping("/list") +#if($table.crud || $table.sub) + public TableDataInfo list(${ClassName} ${className}) + { + startPage(); + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return getDataTable(list); + } +#elseif($table.tree) + public AjaxResult list(${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + return success(list); + } +#end + + /** + * 导出${functionName}列表 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") + @Log(title = "${functionName}", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ${ClassName} ${className}) + { + List<${ClassName}> list = ${className}Service.select${ClassName}List(${className}); + ExcelUtil<${ClassName}> util = new ExcelUtil<${ClassName}>(${ClassName}.class); + util.exportExcel(response, list, "${functionName}数据"); + } + + /** + * 获取${functionName}详细信息 + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") + @GetMapping(value = "/{${pkColumn.javaField}}") + public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) + { + return success(${className}Service.select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField})); + } + + /** + * 新增${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") + @Log(title = "${functionName}", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ${ClassName} ${className}) + { + return toAjax(${className}Service.insert${ClassName}(${className})); + } + + /** + * 修改${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") + @Log(title = "${functionName}", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ${ClassName} ${className}) + { + return toAjax(${className}Service.update${ClassName}(${className})); + } + + /** + * 删除${functionName} + */ + @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") + @Log(title = "${functionName}", businessType = BusinessType.DELETE) + @DeleteMapping("/{${pkColumn.javaField}s}") + public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) + { + return toAjax(${className}Service.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s)); + } +} diff --git a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm new file mode 100644 index 0000000..fef6731 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm @@ -0,0 +1,111 @@ +package ${packageName}.domain; + +#foreach ($import in $importList) +import ${import}; +#end +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +#if($table.crud || $table.sub) +import com.ruoyi.common.core.domain.BaseEntity; +#elseif($table.tree) +import com.ruoyi.common.core.domain.TreeEntity; +#end + +/** + * ${functionName}对象 ${tableName} + * + * @author ${author} + * @date ${datetime} + */ +@Data +@TableName("${tableName}") +#if($table.crud || $table.sub) +#set($Entity="BaseEntity") +#elseif($table.tree) +#set($Entity="TreeEntity") +#end +public class ${ClassName} extends ${Entity} { + + private static final long serialVersionUID = 1L; + +#foreach ($column in $columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") +#else + @Excel(name = "${comment}") +#end +#end +#if($column.javaField == 'id') + @TableId(type = IdType.AUTO) +#end + private $column.javaType $column.javaField; + +#end +#end +###if($table.sub) +## /** $table.subTable.functionName信息 */ +## private List<${subClassName}> ${subclassName}List; +## +###end +###foreach ($column in $columns) +###if(!$table.isSuperColumn($column.javaField)) +###if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +###set($AttrName=$column.javaField) +###else +###set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +###end +## public void set${AttrName}($column.javaType $column.javaField) +## { +## this.$column.javaField = $column.javaField; +## } +## +## public $column.javaType get${AttrName}() +## { +## return $column.javaField; +## } +## +###end +###end +###if($table.sub) +## public List<${subClassName}> get${subClassName}List() +## { +## return ${subclassName}List; +## } +## +## public void set${subClassName}List(List<${subClassName}> ${subclassName}List) +## { +## this.${subclassName}List = ${subclassName}List; +## } +## +###end +## @Override +## public String toString() { +## return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) +###foreach ($column in $columns) +###if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +###set($AttrName=$column.javaField) +###else +###set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +###end +## .append("${column.javaField}", get${AttrName}()) +###end +###if($table.sub) +## .append("${subclassName}List", get${subClassName}List()) +###end +## .toString(); +## } +} diff --git a/ruoyi-generator/src/main/resources/vm/java/mapper.java.vm b/ruoyi-generator/src/main/resources/vm/java/mapper.java.vm new file mode 100644 index 0000000..47bc2a5 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/mapper.java.vm @@ -0,0 +1,92 @@ +package ${packageName}.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import ${packageName}.domain.${ClassName}; +#if($table.sub) +import ${packageName}.domain .${subClassName}; +#end + +/** + * ${functionName}Mapper接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface ${ClassName}Mapper extends BaseMapper<${ClassName}> { +## /** +## * 查询${functionName} +## * +## * @param ${pkColumn.javaField} ${functionName}主键 +## * @return ${functionName} +## */ +## public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); +## +## /** +## * 查询${functionName}列表 +## * +## * @param ${className} ${functionName} +## * @return ${functionName}集合 +## */ +## public List<${ClassName}> select${ClassName}List(${ClassName} ${className}); +## +## /** +## * 新增${functionName} +## * +## * @param ${className} ${functionName} +## * @return 结果 +## */ +## public int insert${ClassName}(${ClassName} ${className}); +## +## /** +## * 修改${functionName} +## * +## * @param ${className} ${functionName} +## * @return 结果 +## */ +## public int update${ClassName}(${ClassName} ${className}); +## +## /** +## * 删除${functionName} +## * +## * @param ${pkColumn.javaField} ${functionName}主键 +## * @return 结果 +## */ +## public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); +## +## /** +## * 批量删除${functionName} +## * +## * @param ${pkColumn.javaField}s 需要删除的数据主键集合 +## * @return 结果 +## */ +## public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); +## #if($table.sub) +## +## /** +## * 批量删除${subTable.functionName} +## * +## * @param ${pkColumn.javaField}s 需要删除的数据主键集合 +## * @return 结果 +## */ +## public int delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); +## +## /** +## * 批量新增${subTable.functionName} +## * +## * @param ${subclassName}List ${subTable.functionName}列表 +## * @return 结果 +## */ +## public int batch${subClassName}(List<${subClassName}> ${subclassName}List); +## +## +## /** +## * 通过${functionName}主键删除${subTable.functionName}信息 +## * +## * @param ${pkColumn.javaField} ${functionName}ID +## * @return 结果 +## */ +## public int delete${subClassName}By${subTableFkClassName}(${pkColumn.javaType} ${pkColumn.javaField}); +## #end +} diff --git a/ruoyi-generator/src/main/resources/vm/java/service.java.vm b/ruoyi-generator/src/main/resources/vm/java/service.java.vm new file mode 100644 index 0000000..f38a504 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/service.java.vm @@ -0,0 +1,70 @@ +package ${packageName}.service; + +import java.util.List; +import ${packageName}.domain.${ClassName}; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * ${functionName}Service接口 + * + * @author ${author} + * @date ${datetime} + */ +public interface I${ClassName}Service { + + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return ${functionName} + */ + ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + List<${ClassName}> select${ClassName}List(${ClassName} ${className}); + + /** + * 分页查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName}集合 + */ + IPage<${ClassName}> select${ClassName}Page(Page page, ${ClassName} ${className}); + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int insert${ClassName}(${ClassName} ${className}); + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ + int update${ClassName}(${ClassName} ${className}); + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的${functionName}主键集合 + * @return 结果 + */ + int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s); + + /** + * 删除${functionName}信息 + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return 结果 + */ + int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}); +} diff --git a/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm b/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm new file mode 100644 index 0000000..f694e48 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm @@ -0,0 +1,193 @@ +package ${packageName}.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +#foreach ($column in $columns) +#if($column.javaField == 'createTime' || $column.javaField == 'updateTime') +import com.ruoyi.common.utils.DateUtils; +#break +#end +#end +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +#if($table.sub) +import java.util.ArrayList; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.transaction.annotation.Transactional; +import ${packageName}.domain.${subClassName}; +#end +import ${packageName}.mapper.${ClassName}Mapper; +import ${packageName}.domain.${ClassName}; +import ${packageName}.service.I${ClassName}Service; + +/** + * ${functionName}Service业务层处理 + * + * @author ${author} + * @date ${datetime} + */ +@Service +public class ${ClassName}ServiceImpl implements I${ClassName}Service { + + @Autowired + private ${ClassName}Mapper ${className}Mapper; + + /** + * 查询${functionName} + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return ${functionName} + */ + @Override + public ${ClassName} select${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}) { + return ${className}Mapper.selectById(${pkColumn.javaField}); + } + + /** + * 查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + @Override + public List<${ClassName}> select${ClassName}List(${ClassName} ${className}) { + LambdaQueryWrapper<${ClassName}> query = Wrappers.lambdaQuery(${className}); + query.orderByDesc(${ClassName}::getId); + query.eq(${ClassName}::getDelFlag, "0"); + return ${className}Mapper.selectList(query); + } + + /** + * 分页查询${functionName}列表 + * + * @param ${className} ${functionName} + * @return ${functionName} + */ + @Override + public IPage<${ClassName}> select${ClassName}Page(Page page, ${ClassName} ${className}) { + LambdaQueryWrapper<${ClassName}> query = Wrappers.lambdaQuery(${className}); + query.eq(${ClassName}::getDelFlag, "0"); + return ${className}Mapper.selectPage(page, query); + } + + /** + * 新增${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int insert${ClassName}(${ClassName} ${className}) { + ${className}.setDelFlag("0"); +#foreach ($column in $columns) +#if($column.javaField == 'createBy') + ${className}.setCreateBy(SecurityUtils.getUsername()); +#end +#if($column.javaField == 'createTime') + ${className}.setCreateTime(DateUtils.getNowDate()); +#end +#end +#if($table.sub) + int rows = ${className}Mapper.insert${ClassName}(${className}); + insert${subClassName}(${className}); + return rows; +#else + return ${className}Mapper.insert(${className}); +#end + } + + /** + * 修改${functionName} + * + * @param ${className} ${functionName} + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int update${ClassName}(${ClassName} ${className}) { +#foreach ($column in $columns) +#if($column.javaField == 'updateBy') + ${className}.setUpdateBy(SecurityUtils.getUsername()); +#end +#if($column.javaField == 'updateTime') + ${className}.setUpdateTime(DateUtils.getNowDate()); +#end +#end +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${className}.get${pkColumn.capJavaField}()); + insert${subClassName}(${className}); +#end + return ${className}Mapper.updateById(${className}); + } + + /** + * 批量删除${functionName} + * + * @param ${pkColumn.javaField}s 需要删除的${functionName}主键 + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaType}[] ${pkColumn.javaField}s) + { +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}s(${pkColumn.javaField}s); +#end + return ${className}Mapper.delete${ClassName}By${pkColumn.capJavaField}s(${pkColumn.javaField}s); + } + + /** + * 删除${functionName}信息 + * + * @param ${pkColumn.javaField} ${functionName}主键 + * @return 结果 + */ +#if($table.sub) + @Transactional +#end + @Override + public int delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaType} ${pkColumn.javaField}) + { +#if($table.sub) + ${className}Mapper.delete${subClassName}By${subTableFkClassName}(${pkColumn.javaField}); +#end + return ${className}Mapper.delete${ClassName}By${pkColumn.capJavaField}(${pkColumn.javaField}); + } +#if($table.sub) + + /** + * 新增${subTable.functionName}信息 + * + * @param ${className} ${functionName}对象 + */ + public void insert${subClassName}(${ClassName} ${className}) + { + List<${subClassName}> ${subclassName}List = ${className}.get${subClassName}List(); + ${pkColumn.javaType} ${pkColumn.javaField} = ${className}.get${pkColumn.capJavaField}(); + if (StringUtils.isNotNull(${subclassName}List)) + { + List<${subClassName}> list = new ArrayList<${subClassName}>(); + for (${subClassName} ${subclassName} : ${subclassName}List) + { + ${subclassName}.set${subTableFkClassName}(${pkColumn.javaField}); + list.add(${subclassName}); + } + if (list.size() > 0) + { + ${className}Mapper.batch${subClassName}(list); + } + } + } +#end +} diff --git a/ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm b/ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm new file mode 100644 index 0000000..b8e9be7 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/java/sub-domain.java.vm @@ -0,0 +1,76 @@ +package ${packageName}.domain; + +#foreach ($import in $subImportList) +import ${import}; +#end +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * ${subTable.functionName}对象 ${subTableName} + * + * @author ${author} + * @date ${datetime} + */ +public class ${subClassName} extends BaseEntity +{ + private static final long serialVersionUID = 1L; + +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) + /** $column.columnComment */ +#if($column.list) +#set($parentheseIndex=$column.columnComment.indexOf("(")) +#if($parentheseIndex != -1) +#set($comment=$column.columnComment.substring(0, $parentheseIndex)) +#else +#set($comment=$column.columnComment) +#end +#if($parentheseIndex != -1) + @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") +#elseif($column.javaType == 'Date') + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") +#else + @Excel(name = "${comment}") +#end +#end + private $column.javaType $column.javaField; + +#end +#end +#foreach ($column in $subTable.columns) +#if(!$table.isSuperColumn($column.javaField)) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + public void set${AttrName}($column.javaType $column.javaField) + { + this.$column.javaField = $column.javaField; + } + + public $column.javaType get${AttrName}() + { + return $column.javaField; + } +#end +#end + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) +#foreach ($column in $subTable.columns) +#if($column.javaField.length() > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) +#set($AttrName=$column.javaField) +#else +#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) +#end + .append("${column.javaField}", get${AttrName}()) +#end + .toString(); + } +} diff --git a/ruoyi-generator/src/main/resources/vm/js/api.js.vm b/ruoyi-generator/src/main/resources/vm/js/api.js.vm new file mode 100644 index 0000000..9295524 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/js/api.js.vm @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询${functionName}列表 +export function list${BusinessName}(query) { + return request({ + url: '/${moduleName}/${businessName}/list', + method: 'get', + params: query + }) +} + +// 查询${functionName}详细 +export function get${BusinessName}(${pkColumn.javaField}) { + return request({ + url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField}, + method: 'get' + }) +} + +// 新增${functionName} +export function add${BusinessName}(data) { + return request({ + url: '/${moduleName}/${businessName}', + method: 'post', + data: data + }) +} + +// 修改${functionName} +export function update${BusinessName}(data) { + return request({ + url: '/${moduleName}/${businessName}', + method: 'put', + data: data + }) +} + +// 删除${functionName} +export function del${BusinessName}(${pkColumn.javaField}) { + return request({ + url: '/${moduleName}/${businessName}/' + ${pkColumn.javaField}, + method: 'delete' + }) +} diff --git a/ruoyi-generator/src/main/resources/vm/sql/sql.vm b/ruoyi-generator/src/main/resources/vm/sql/sql.vm new file mode 100644 index 0000000..0575583 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/sql/sql.vm @@ -0,0 +1,22 @@ +-- 菜单 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 1, 0, 'C', '0', '0', '${permissionPrefix}:list', '#', 'admin', sysdate(), '', null, '${functionName}菜单'); + +-- 按钮父菜单ID +SELECT @parentId := LAST_INSERT_ID(); + +-- 按钮 SQL +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', sysdate(), '', null, ''); + +insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) +values('${functionName}导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', sysdate(), '', null, ''); \ No newline at end of file diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm new file mode 100644 index 0000000..4e35fc9 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -0,0 +1,505 @@ + + + diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm new file mode 100644 index 0000000..04ebe16 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm @@ -0,0 +1,602 @@ + + + diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm new file mode 100644 index 0000000..765a5e3 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index-tree.vue.vm @@ -0,0 +1,474 @@ + + + diff --git a/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm new file mode 100644 index 0000000..936b465 --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/vue/v3/index.vue.vm @@ -0,0 +1,590 @@ + + + diff --git a/ruoyi-generator/src/main/resources/vm/xml/mapper.xml.vm b/ruoyi-generator/src/main/resources/vm/xml/mapper.xml.vm new file mode 100644 index 0000000..456755b --- /dev/null +++ b/ruoyi-generator/src/main/resources/vm/xml/mapper.xml.vm @@ -0,0 +1,140 @@ + + + + + +#foreach ($column in $columns) + +#end + +#if($table.sub) + + + + + + +#foreach ($column in $subTable.columns) + +#end + +#end + + + select#foreach($column in $columns) $column.columnName#if($foreach.count != $columns.size()),#end#end from ${tableName} + + + + + +#if($table.sub) + + +#end + + + insert into ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + $column.columnName, +#end +#end + + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName || !$pkColumn.increment) + #{$column.javaField}, +#end +#end + + + + + update ${tableName} + +#foreach($column in $columns) +#if($column.columnName != $pkColumn.columnName) + $column.columnName = #{$column.javaField}, +#end +#end + + where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} = #{${pkColumn.javaField}} + + + + delete from ${tableName} where ${pkColumn.columnName} in + + #{${pkColumn.javaField}} + + +#if($table.sub) + + + delete from ${subTableName} where ${subTableFkName} in + + #{${subTableFkclassName}} + + + + + delete from ${subTableName} where ${subTableFkName} = #{${subTableFkclassName}} + + + + insert into ${subTableName}(#foreach($column in $subTable.columns) $column.columnName#if($foreach.count != $subTable.columns.size()),#end#end) values + + (#foreach($column in $subTable.columns) #{item.$column.javaField}#if($foreach.count != $subTable.columns.size()),#end#end) + + +#end + \ No newline at end of file diff --git a/ruoyi-quartz/pom.xml b/ruoyi-quartz/pom.xml new file mode 100644 index 0000000..0a2f52f --- /dev/null +++ b/ruoyi-quartz/pom.xml @@ -0,0 +1,44 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + + ruoyi-quartz + + + quartz定时任务 + + + + + + + org.quartz-scheduler + quartz + + + com.mchange + c3p0 + + + + + + + com.ruoyi + ruoyi-common + + + com.ruoyi + ruoyi-system + + + + + \ No newline at end of file diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java new file mode 100644 index 0000000..d4e065a --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/config/ScheduleConfig.java @@ -0,0 +1,57 @@ +//package com.ruoyi.quartz.config; +// +//import org.springframework.context.annotation.Bean; +//import org.springframework.context.annotation.Configuration; +//import org.springframework.scheduling.quartz.SchedulerFactoryBean; +//import javax.sql.DataSource; +//import java.util.Properties; +// +///** +// * 定时任务配置(单机部署建议删除此类和qrtz数据库表,默认走内存会最高效) +// * +// * @author ruoyi +// */ +//@Configuration +//public class ScheduleConfig +//{ +// @Bean +// public SchedulerFactoryBean schedulerFactoryBean(DataSource dataSource) +// { +// SchedulerFactoryBean factory = new SchedulerFactoryBean(); +// factory.setDataSource(dataSource); +// +// // quartz参数 +// Properties prop = new Properties(); +// prop.put("org.quartz.scheduler.instanceName", "RuoyiScheduler"); +// prop.put("org.quartz.scheduler.instanceId", "AUTO"); +// // 线程池配置 +// prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool"); +// prop.put("org.quartz.threadPool.threadCount", "20"); +// prop.put("org.quartz.threadPool.threadPriority", "5"); +// // JobStore配置 +// prop.put("org.quartz.jobStore.class", "org.springframework.scheduling.quartz.LocalDataSourceJobStore"); +// // 集群配置 +// prop.put("org.quartz.jobStore.isClustered", "true"); +// prop.put("org.quartz.jobStore.clusterCheckinInterval", "15000"); +// prop.put("org.quartz.jobStore.maxMisfiresToHandleAtATime", "10"); +// prop.put("org.quartz.jobStore.txIsolationLevelSerializable", "true"); +// +// // sqlserver 启用 +// // prop.put("org.quartz.jobStore.selectWithLockSQL", "SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?"); +// prop.put("org.quartz.jobStore.misfireThreshold", "12000"); +// prop.put("org.quartz.jobStore.tablePrefix", "QRTZ_"); +// factory.setQuartzProperties(prop); +// +// factory.setSchedulerName("RuoyiScheduler"); +// // 延时启动 +// factory.setStartupDelay(1); +// factory.setApplicationContextSchedulerContextKey("applicationContextKey"); +// // 可选,QuartzScheduler +// // 启动时更新己存在的Job,这样就不用每次修改targetObject后删除qrtz_job_details表对应记录了 +// factory.setOverwriteExistingJobs(true); +// // 设置自动启动,默认为true +// factory.setAutoStartup(true); +// +// return factory; +// } +//} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java new file mode 100644 index 0000000..f11aebf --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobController.java @@ -0,0 +1,185 @@ +package com.ruoyi.quartz.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.quartz.SchedulerException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.service.ISysJobService; +import com.ruoyi.quartz.util.CronUtils; +import com.ruoyi.quartz.util.ScheduleUtils; + +/** + * 调度任务信息操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/job") +public class SysJobController extends BaseController +{ + @Autowired + private ISysJobService jobService; + + /** + * 查询定时任务列表 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:list')") + @GetMapping("/list") + public TableDataInfo list(SysJob sysJob) + { + startPage(); + List list = jobService.selectJobList(sysJob); + return getDataTable(list); + } + + /** + * 导出定时任务列表 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:export')") + @Log(title = "定时任务", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysJob sysJob) + { + List list = jobService.selectJobList(sysJob); + ExcelUtil util = new ExcelUtil(SysJob.class); + util.exportExcel(response, list, "定时任务"); + } + + /** + * 获取定时任务详细信息 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:query')") + @GetMapping(value = "/{jobId}") + public AjaxResult getInfo(@PathVariable("jobId") Long jobId) + { + return success(jobService.selectJobById(jobId)); + } + + /** + * 新增定时任务 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:add')") + @Log(title = "定时任务", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody SysJob job) throws SchedulerException, TaskException + { + if (!CronUtils.isValid(job.getCronExpression())) + { + return error("新增任务'" + job.getJobName() + "'失败,Cron表达式不正确"); + } + else if (StringUtils.containsIgnoreCase(job.getInvokeTarget(), Constants.LOOKUP_RMI)) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'rmi'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.LOOKUP_LDAP, Constants.LOOKUP_LDAPS })) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.HTTP, Constants.HTTPS })) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不允许'http(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), Constants.JOB_ERROR_STR)) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串存在违规"); + } + else if (!ScheduleUtils.whiteList(job.getInvokeTarget())) + { + return error("新增任务'" + job.getJobName() + "'失败,目标字符串不在白名单内"); + } + job.setCreateBy(getUsername()); + return toAjax(jobService.insertJob(job)); + } + + /** + * 修改定时任务 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:edit')") + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody SysJob job) throws SchedulerException, TaskException + { + if (!CronUtils.isValid(job.getCronExpression())) + { + return error("修改任务'" + job.getJobName() + "'失败,Cron表达式不正确"); + } + else if (StringUtils.containsIgnoreCase(job.getInvokeTarget(), Constants.LOOKUP_RMI)) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'rmi'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.LOOKUP_LDAP, Constants.LOOKUP_LDAPS })) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'ldap(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), new String[] { Constants.HTTP, Constants.HTTPS })) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不允许'http(s)'调用"); + } + else if (StringUtils.containsAnyIgnoreCase(job.getInvokeTarget(), Constants.JOB_ERROR_STR)) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串存在违规"); + } + else if (!ScheduleUtils.whiteList(job.getInvokeTarget())) + { + return error("修改任务'" + job.getJobName() + "'失败,目标字符串不在白名单内"); + } + job.setUpdateBy(getUsername()); + return toAjax(jobService.updateJob(job)); + } + + /** + * 定时任务状态修改 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @PutMapping("/changeStatus") + public AjaxResult changeStatus(@RequestBody SysJob job) throws SchedulerException + { + SysJob newJob = jobService.selectJobById(job.getJobId()); + newJob.setStatus(job.getStatus()); + return toAjax(jobService.changeStatus(newJob)); + } + + /** + * 定时任务立即执行一次 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:changeStatus')") + @Log(title = "定时任务", businessType = BusinessType.UPDATE) + @PutMapping("/run") + public AjaxResult run(@RequestBody SysJob job) throws SchedulerException + { + boolean result = jobService.run(job); + return result ? success() : error("任务不存在或已过期!"); + } + + /** + * 删除定时任务 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:remove')") + @Log(title = "定时任务", businessType = BusinessType.DELETE) + @DeleteMapping("/{jobIds}") + public AjaxResult remove(@PathVariable Long[] jobIds) throws SchedulerException + { + jobService.deleteJobByIds(jobIds); + return success(); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java new file mode 100644 index 0000000..62ecbab --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/controller/SysJobLogController.java @@ -0,0 +1,92 @@ +package com.ruoyi.quartz.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.service.ISysJobLogService; + +/** + * 调度日志操作处理 + * + * @author ruoyi + */ +@RestController +@RequestMapping("/monitor/jobLog") +public class SysJobLogController extends BaseController +{ + @Autowired + private ISysJobLogService jobLogService; + + /** + * 查询定时任务调度日志列表 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:list')") + @GetMapping("/list") + public TableDataInfo list(SysJobLog sysJobLog) + { + startPage(); + List list = jobLogService.selectJobLogList(sysJobLog); + return getDataTable(list); + } + + /** + * 导出定时任务调度日志列表 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:export')") + @Log(title = "任务调度日志", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, SysJobLog sysJobLog) + { + List list = jobLogService.selectJobLogList(sysJobLog); + ExcelUtil util = new ExcelUtil(SysJobLog.class); + util.exportExcel(response, list, "调度日志"); + } + + /** + * 根据调度编号获取详细信息 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:query')") + @GetMapping(value = "/{jobLogId}") + public AjaxResult getInfo(@PathVariable Long jobLogId) + { + return success(jobLogService.selectJobLogById(jobLogId)); + } + + + /** + * 删除定时任务调度日志 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:remove')") + @Log(title = "定时任务调度日志", businessType = BusinessType.DELETE) + @DeleteMapping("/{jobLogIds}") + public AjaxResult remove(@PathVariable Long[] jobLogIds) + { + return toAjax(jobLogService.deleteJobLogByIds(jobLogIds)); + } + + /** + * 清空定时任务调度日志 + */ + @PreAuthorize("@ss.hasPermi('monitor:job:remove')") + @Log(title = "调度日志", businessType = BusinessType.CLEAN) + @DeleteMapping("/clean") + public AjaxResult clean() + { + jobLogService.cleanJobLog(); + return success(); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java new file mode 100644 index 0000000..1f49695 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJob.java @@ -0,0 +1,171 @@ +package com.ruoyi.quartz.domain; + +import java.util.Date; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.quartz.util.CronUtils; + +/** + * 定时任务调度表 sys_job + * + * @author ruoyi + */ +public class SysJob extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 任务ID */ + @Excel(name = "任务序号", cellType = ColumnType.NUMERIC) + private Long jobId; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String jobName; + + /** 任务组名 */ + @Excel(name = "任务组名") + private String jobGroup; + + /** 调用目标字符串 */ + @Excel(name = "调用目标字符串") + private String invokeTarget; + + /** cron执行表达式 */ + @Excel(name = "执行表达式 ") + private String cronExpression; + + /** cron计划策略 */ + @Excel(name = "计划策略 ", readConverterExp = "0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行") + private String misfirePolicy = ScheduleConstants.MISFIRE_DEFAULT; + + /** 是否并发执行(0允许 1禁止) */ + @Excel(name = "并发执行", readConverterExp = "0=允许,1=禁止") + private String concurrent; + + /** 任务状态(0正常 1暂停) */ + @Excel(name = "任务状态", readConverterExp = "0=正常,1=暂停") + private String status; + + public Long getJobId() + { + return jobId; + } + + public void setJobId(Long jobId) + { + this.jobId = jobId; + } + + @NotBlank(message = "任务名称不能为空") + @Size(min = 0, max = 64, message = "任务名称不能超过64个字符") + public String getJobName() + { + return jobName; + } + + public void setJobName(String jobName) + { + this.jobName = jobName; + } + + public String getJobGroup() + { + return jobGroup; + } + + public void setJobGroup(String jobGroup) + { + this.jobGroup = jobGroup; + } + + @NotBlank(message = "调用目标字符串不能为空") + @Size(min = 0, max = 500, message = "调用目标字符串长度不能超过500个字符") + public String getInvokeTarget() + { + return invokeTarget; + } + + public void setInvokeTarget(String invokeTarget) + { + this.invokeTarget = invokeTarget; + } + + @NotBlank(message = "Cron执行表达式不能为空") + @Size(min = 0, max = 255, message = "Cron执行表达式不能超过255个字符") + public String getCronExpression() + { + return cronExpression; + } + + public void setCronExpression(String cronExpression) + { + this.cronExpression = cronExpression; + } + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + public Date getNextValidTime() + { + if (StringUtils.isNotEmpty(cronExpression)) + { + return CronUtils.getNextExecution(cronExpression); + } + return null; + } + + public String getMisfirePolicy() + { + return misfirePolicy; + } + + public void setMisfirePolicy(String misfirePolicy) + { + this.misfirePolicy = misfirePolicy; + } + + public String getConcurrent() + { + return concurrent; + } + + public void setConcurrent(String concurrent) + { + this.concurrent = concurrent; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("jobId", getJobId()) + .append("jobName", getJobName()) + .append("jobGroup", getJobGroup()) + .append("cronExpression", getCronExpression()) + .append("nextValidTime", getNextValidTime()) + .append("misfirePolicy", getMisfirePolicy()) + .append("concurrent", getConcurrent()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java new file mode 100644 index 0000000..121c035 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/domain/SysJobLog.java @@ -0,0 +1,155 @@ +package com.ruoyi.quartz.domain; + +import java.util.Date; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 定时任务调度日志表 sys_job_log + * + * @author ruoyi + */ +public class SysJobLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "日志序号") + private Long jobLogId; + + /** 任务名称 */ + @Excel(name = "任务名称") + private String jobName; + + /** 任务组名 */ + @Excel(name = "任务组名") + private String jobGroup; + + /** 调用目标字符串 */ + @Excel(name = "调用目标字符串") + private String invokeTarget; + + /** 日志信息 */ + @Excel(name = "日志信息") + private String jobMessage; + + /** 执行状态(0正常 1失败) */ + @Excel(name = "执行状态", readConverterExp = "0=正常,1=失败") + private String status; + + /** 异常信息 */ + @Excel(name = "异常信息") + private String exceptionInfo; + + /** 开始时间 */ + private Date startTime; + + /** 停止时间 */ + private Date stopTime; + + public Long getJobLogId() + { + return jobLogId; + } + + public void setJobLogId(Long jobLogId) + { + this.jobLogId = jobLogId; + } + + public String getJobName() + { + return jobName; + } + + public void setJobName(String jobName) + { + this.jobName = jobName; + } + + public String getJobGroup() + { + return jobGroup; + } + + public void setJobGroup(String jobGroup) + { + this.jobGroup = jobGroup; + } + + public String getInvokeTarget() + { + return invokeTarget; + } + + public void setInvokeTarget(String invokeTarget) + { + this.invokeTarget = invokeTarget; + } + + public String getJobMessage() + { + return jobMessage; + } + + public void setJobMessage(String jobMessage) + { + this.jobMessage = jobMessage; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getExceptionInfo() + { + return exceptionInfo; + } + + public void setExceptionInfo(String exceptionInfo) + { + this.exceptionInfo = exceptionInfo; + } + + public Date getStartTime() + { + return startTime; + } + + public void setStartTime(Date startTime) + { + this.startTime = startTime; + } + + public Date getStopTime() + { + return stopTime; + } + + public void setStopTime(Date stopTime) + { + this.stopTime = stopTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("jobLogId", getJobLogId()) + .append("jobName", getJobName()) + .append("jobGroup", getJobGroup()) + .append("jobMessage", getJobMessage()) + .append("status", getStatus()) + .append("exceptionInfo", getExceptionInfo()) + .append("startTime", getStartTime()) + .append("stopTime", getStopTime()) + .toString(); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobLogMapper.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobLogMapper.java new file mode 100644 index 0000000..727d916 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobLogMapper.java @@ -0,0 +1,64 @@ +package com.ruoyi.quartz.mapper; + +import java.util.List; +import com.ruoyi.quartz.domain.SysJobLog; + +/** + * 调度任务日志信息 数据层 + * + * @author ruoyi + */ +public interface SysJobLogMapper +{ + /** + * 获取quartz调度器日志的计划任务 + * + * @param jobLog 调度日志信息 + * @return 调度任务日志集合 + */ + public List selectJobLogList(SysJobLog jobLog); + + /** + * 查询所有调度任务日志 + * + * @return 调度任务日志列表 + */ + public List selectJobLogAll(); + + /** + * 通过调度任务日志ID查询调度信息 + * + * @param jobLogId 调度任务日志ID + * @return 调度任务日志对象信息 + */ + public SysJobLog selectJobLogById(Long jobLogId); + + /** + * 新增任务日志 + * + * @param jobLog 调度日志信息 + * @return 结果 + */ + public int insertJobLog(SysJobLog jobLog); + + /** + * 批量删除调度日志信息 + * + * @param logIds 需要删除的数据ID + * @return 结果 + */ + public int deleteJobLogByIds(Long[] logIds); + + /** + * 删除任务日志 + * + * @param jobId 调度日志ID + * @return 结果 + */ + public int deleteJobLogById(Long jobId); + + /** + * 清空任务日志 + */ + public void cleanJobLog(); +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java new file mode 100644 index 0000000..032e819 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/mapper/SysJobMapper.java @@ -0,0 +1,70 @@ +package com.ruoyi.quartz.mapper; + +import java.util.List; +import com.ruoyi.quartz.domain.SysJob; +import org.apache.ibatis.annotations.Param; + +/** + * 调度任务信息 数据层 + * + * @author ruoyi + */ +public interface SysJobMapper +{ + /** + * 查询调度任务日志集合 + * + * @param job 调度信息 + * @return 操作日志集合 + */ + public List selectJobList(SysJob job); + + /** + * 查询所有调度任务 + * + * @return 调度任务列表 + */ + public List selectJobAll(); + + /** + * 通过调度ID查询调度任务信息 + * + * @param jobId 调度ID + * @return 角色对象信息 + */ + public SysJob selectJobById(Long jobId); + + /** + * 通过调度ID删除调度任务信息 + * + * @param jobId 调度ID + * @return 结果 + */ + public int deleteJobById(Long jobId); + + /** + * 批量删除调度任务信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteJobByIds(Long[] ids); + + /** + * 修改调度任务信息 + * + * @param job 调度任务信息 + * @return 结果 + */ + public int updateJob(SysJob job); + + /** + * 新增调度任务信息 + * + * @param job 调度任务信息 + * @return 结果 + */ + public int insertJob(SysJob job); + + SysJob selectJobByInvokeTarget(@Param("invokeTarget") String invokeTarget); +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java new file mode 100644 index 0000000..8546792 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobLogService.java @@ -0,0 +1,56 @@ +package com.ruoyi.quartz.service; + +import java.util.List; +import com.ruoyi.quartz.domain.SysJobLog; + +/** + * 定时任务调度日志信息信息 服务层 + * + * @author ruoyi + */ +public interface ISysJobLogService +{ + /** + * 获取quartz调度器日志的计划任务 + * + * @param jobLog 调度日志信息 + * @return 调度任务日志集合 + */ + public List selectJobLogList(SysJobLog jobLog); + + /** + * 通过调度任务日志ID查询调度信息 + * + * @param jobLogId 调度任务日志ID + * @return 调度任务日志对象信息 + */ + public SysJobLog selectJobLogById(Long jobLogId); + + /** + * 新增任务日志 + * + * @param jobLog 调度日志信息 + */ + public void addJobLog(SysJobLog jobLog); + + /** + * 批量删除调度日志信息 + * + * @param logIds 需要删除的日志ID + * @return 结果 + */ + public int deleteJobLogByIds(Long[] logIds); + + /** + * 删除任务日志 + * + * @param jobId 调度日志ID + * @return 结果 + */ + public int deleteJobLogById(Long jobId); + + /** + * 清空任务日志 + */ + public void cleanJobLog(); +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java new file mode 100644 index 0000000..2b41629 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/ISysJobService.java @@ -0,0 +1,104 @@ +package com.ruoyi.quartz.service; + +import java.util.List; +import org.quartz.SchedulerException; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务调度信息信息 服务层 + * + * @author ruoyi + */ +public interface ISysJobService +{ + /** + * 获取quartz调度器的计划任务 + * + * @param job 调度信息 + * @return 调度任务集合 + */ + public List selectJobList(SysJob job); + + /** + * 通过调度任务ID查询调度信息 + * + * @param jobId 调度任务ID + * @return 调度任务对象信息 + */ + public SysJob selectJobById(Long jobId); + + /** + * 暂停任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int pauseJob(SysJob job) throws SchedulerException; + + /** + * 恢复任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int resumeJob(SysJob job) throws SchedulerException; + + /** + * 删除任务后,所对应的trigger也将被删除 + * + * @param job 调度信息 + * @return 结果 + */ + public int deleteJob(SysJob job) throws SchedulerException; + + /** + * 批量删除调度信息 + * + * @param jobIds 需要删除的任务ID + * @return 结果 + */ + public void deleteJobByIds(Long[] jobIds) throws SchedulerException; + + /** + * 任务调度状态修改 + * + * @param job 调度信息 + * @return 结果 + */ + public int changeStatus(SysJob job) throws SchedulerException; + + /** + * 立即运行任务 + * + * @param job 调度信息 + * @return 结果 + */ + public boolean run(SysJob job) throws SchedulerException; + + /** + * 新增任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int insertJob(SysJob job) throws SchedulerException, TaskException; + + /** + * 更新任务 + * + * @param job 调度信息 + * @return 结果 + */ + public int updateJob(SysJob job) throws SchedulerException, TaskException; + + /** + * 校验cron表达式是否有效 + * + * @param cronExpression 表达式 + * @return 结果 + */ + public boolean checkCronExpressionIsValid(String cronExpression); + + void deleteJobByInvokeTarget(String invokeTarget); +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java new file mode 100644 index 0000000..812eed7 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobLogServiceImpl.java @@ -0,0 +1,87 @@ +package com.ruoyi.quartz.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.mapper.SysJobLogMapper; +import com.ruoyi.quartz.service.ISysJobLogService; + +/** + * 定时任务调度日志信息 服务层 + * + * @author ruoyi + */ +@Service +public class SysJobLogServiceImpl implements ISysJobLogService +{ + @Autowired + private SysJobLogMapper jobLogMapper; + + /** + * 获取quartz调度器日志的计划任务 + * + * @param jobLog 调度日志信息 + * @return 调度任务日志集合 + */ + @Override + public List selectJobLogList(SysJobLog jobLog) + { + return jobLogMapper.selectJobLogList(jobLog); + } + + /** + * 通过调度任务日志ID查询调度信息 + * + * @param jobLogId 调度任务日志ID + * @return 调度任务日志对象信息 + */ + @Override + public SysJobLog selectJobLogById(Long jobLogId) + { + return jobLogMapper.selectJobLogById(jobLogId); + } + + /** + * 新增任务日志 + * + * @param jobLog 调度日志信息 + */ + @Override + public void addJobLog(SysJobLog jobLog) + { + jobLogMapper.insertJobLog(jobLog); + } + + /** + * 批量删除调度日志信息 + * + * @param logIds 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteJobLogByIds(Long[] logIds) + { + return jobLogMapper.deleteJobLogByIds(logIds); + } + + /** + * 删除任务日志 + * + * @param jobId 调度日志ID + */ + @Override + public int deleteJobLogById(Long jobId) + { + return jobLogMapper.deleteJobLogById(jobId); + } + + /** + * 清空任务日志 + */ + @Override + public void cleanJobLog() + { + jobLogMapper.cleanJobLog(); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java new file mode 100644 index 0000000..190e096 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/service/impl/SysJobServiceImpl.java @@ -0,0 +1,271 @@ +package com.ruoyi.quartz.service.impl; + +import java.util.List; +import javax.annotation.PostConstruct; +import org.quartz.JobDataMap; +import org.quartz.JobKey; +import org.quartz.Scheduler; +import org.quartz.SchedulerException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.mapper.SysJobMapper; +import com.ruoyi.quartz.service.ISysJobService; +import com.ruoyi.quartz.util.CronUtils; +import com.ruoyi.quartz.util.ScheduleUtils; + +/** + * 定时任务调度信息 服务层 + * + * @author ruoyi + */ +@Service +public class SysJobServiceImpl implements ISysJobService +{ + @Autowired + private Scheduler scheduler; + + @Autowired + private SysJobMapper jobMapper; + + /** + * 项目启动时,初始化定时器 主要是防止手动修改数据库导致未同步到定时任务处理(注:不能手动修改数据库ID和任务组名,否则会导致脏数据) + */ + @PostConstruct + public void init() throws SchedulerException, TaskException + { + scheduler.clear(); + List jobList = jobMapper.selectJobAll(); + for (SysJob job : jobList) + { + ScheduleUtils.createScheduleJob(scheduler, job); + } + } + + /** + * 获取quartz调度器的计划任务列表 + * + * @param job 调度信息 + * @return + */ + @Override + public List selectJobList(SysJob job) + { + return jobMapper.selectJobList(job); + } + + /** + * 通过调度任务ID查询调度信息 + * + * @param jobId 调度任务ID + * @return 调度任务对象信息 + */ + @Override + public SysJob selectJobById(Long jobId) + { + return jobMapper.selectJobById(jobId); + } + + /** + * 暂停任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int pauseJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + job.setStatus(ScheduleConstants.Status.PAUSE.getValue()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + scheduler.pauseJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 恢复任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int resumeJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + job.setStatus(ScheduleConstants.Status.NORMAL.getValue()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + scheduler.resumeJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 删除任务后,所对应的trigger也将被删除 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int deleteJob(SysJob job) throws SchedulerException + { + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + int rows = jobMapper.deleteJobById(jobId); + if (rows > 0) + { + scheduler.deleteJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + return rows; + } + + /** + * 批量删除调度信息 + * + * @param jobIds 需要删除的任务ID + * @return 结果 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void deleteJobByIds(Long[] jobIds) throws SchedulerException + { + for (Long jobId : jobIds) + { + SysJob job = jobMapper.selectJobById(jobId); + deleteJob(job); + } + } + + /** + * 任务调度状态修改 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int changeStatus(SysJob job) throws SchedulerException + { + int rows = 0; + String status = job.getStatus(); + if (ScheduleConstants.Status.NORMAL.getValue().equals(status)) + { + rows = resumeJob(job); + } + else if (ScheduleConstants.Status.PAUSE.getValue().equals(status)) + { + rows = pauseJob(job); + } + return rows; + } + + /** + * 立即运行任务 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public boolean run(SysJob job) throws SchedulerException + { + boolean result = false; + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + SysJob properties = selectJobById(job.getJobId()); + // 参数 + JobDataMap dataMap = new JobDataMap(); + dataMap.put(ScheduleConstants.TASK_PROPERTIES, properties); + JobKey jobKey = ScheduleUtils.getJobKey(jobId, jobGroup); + if (scheduler.checkExists(jobKey)) + { + result = true; + scheduler.triggerJob(jobKey, dataMap); + } + return result; + } + + /** + * 新增任务 + * + * @param job 调度信息 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int insertJob(SysJob job) throws SchedulerException, TaskException + { +// job.setStatus(ScheduleConstants.Status.PAUSE.getValue()); + int rows = jobMapper.insertJob(job); + if (rows > 0) + { + ScheduleUtils.createScheduleJob(scheduler, job); + } + return rows; + } + + /** + * 更新任务的时间表达式 + * + * @param job 调度信息 + */ + @Override + @Transactional(rollbackFor = Exception.class) + public int updateJob(SysJob job) throws SchedulerException, TaskException + { + SysJob properties = selectJobById(job.getJobId()); + int rows = jobMapper.updateJob(job); + if (rows > 0) + { + updateSchedulerJob(job, properties.getJobGroup()); + } + return rows; + } + + /** + * 更新任务 + * + * @param job 任务对象 + * @param jobGroup 任务组名 + */ + public void updateSchedulerJob(SysJob job, String jobGroup) throws SchedulerException, TaskException + { + Long jobId = job.getJobId(); + // 判断是否存在 + JobKey jobKey = ScheduleUtils.getJobKey(jobId, jobGroup); + if (scheduler.checkExists(jobKey)) + { + // 防止创建时存在数据问题 先移除,然后在执行创建操作 + scheduler.deleteJob(jobKey); + } + ScheduleUtils.createScheduleJob(scheduler, job); + } + + /** + * 校验cron表达式是否有效 + * + * @param cronExpression 表达式 + * @return 结果 + */ + @Override + public boolean checkCronExpressionIsValid(String cronExpression) + { + return CronUtils.isValid(cronExpression); + } + + @Override + public void deleteJobByInvokeTarget(String invokeTarget) { + SysJob job = jobMapper.selectJobByInvokeTarget(invokeTarget); + try { + deleteJob(job); + } catch (SchedulerException e) { + throw new RuntimeException(e); + } + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java new file mode 100644 index 0000000..a36e4c9 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java @@ -0,0 +1,48 @@ +package com.ruoyi.quartz.task; + +import com.ruoyi.ai.service.IAiUserService; +import com.ruoyi.quartz.service.ISysJobService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.StringUtils; + +/** + * 定时任务调度测试 + * + * @author ruoyi + */ +@Component("ryTask") +public class RyTask +{ + + @Autowired + private IAiUserService aiUserService; + + @Autowired + private ISysJobService jobService; + + public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) + { + System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i)); + } + + public void ryParams(String params) + { + System.out.println("执行有参方法:" + params); + } + + public void ryNoParams() + { + System.out.println("执行无参方法"); + } + + /** + * 扣除体验金任务 + * @param userId + */ + public void deductSampleAmount(String userId) { + aiUserService.deductSampleAmount(userId); + // 删除对应的定时任务 + jobService.deleteJobByInvokeTarget("ryTask.deductSampleAmount('" + userId + "')"); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java new file mode 100644 index 0000000..eec1faf --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/AbstractQuartzJob.java @@ -0,0 +1,106 @@ +package com.ruoyi.quartz.util; + +import java.util.Date; +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.utils.ExceptionUtil; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.bean.BeanUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.quartz.domain.SysJob; +import com.ruoyi.quartz.domain.SysJobLog; +import com.ruoyi.quartz.service.ISysJobLogService; + +/** + * 抽象quartz调用 + * + * @author ruoyi + */ +public abstract class AbstractQuartzJob implements Job +{ + private static final Logger log = LoggerFactory.getLogger(AbstractQuartzJob.class); + + /** + * 线程本地变量 + */ + private static ThreadLocal threadLocal = new ThreadLocal<>(); + + @Override + public void execute(JobExecutionContext context) + { + SysJob sysJob = new SysJob(); + BeanUtils.copyBeanProp(sysJob, context.getMergedJobDataMap().get(ScheduleConstants.TASK_PROPERTIES)); + try + { + before(context, sysJob); + if (sysJob != null) + { + doExecute(context, sysJob); + } + after(context, sysJob, null); + } + catch (Exception e) + { + log.error("任务执行异常 - :", e); + after(context, sysJob, e); + } + } + + /** + * 执行前 + * + * @param context 工作执行上下文对象 + * @param sysJob 系统计划任务 + */ + protected void before(JobExecutionContext context, SysJob sysJob) + { + threadLocal.set(new Date()); + } + + /** + * 执行后 + * + * @param context 工作执行上下文对象 + * @param sysJob 系统计划任务 + */ + protected void after(JobExecutionContext context, SysJob sysJob, Exception e) + { + Date startTime = threadLocal.get(); + threadLocal.remove(); + + final SysJobLog sysJobLog = new SysJobLog(); + sysJobLog.setJobName(sysJob.getJobName()); + sysJobLog.setJobGroup(sysJob.getJobGroup()); + sysJobLog.setInvokeTarget(sysJob.getInvokeTarget()); + sysJobLog.setStartTime(startTime); + sysJobLog.setStopTime(new Date()); + long runMs = sysJobLog.getStopTime().getTime() - sysJobLog.getStartTime().getTime(); + sysJobLog.setJobMessage(sysJobLog.getJobName() + " 总共耗时:" + runMs + "毫秒"); + if (e != null) + { + sysJobLog.setStatus(Constants.FAIL); + String errorMsg = StringUtils.substring(ExceptionUtil.getExceptionMessage(e), 0, 2000); + sysJobLog.setExceptionInfo(errorMsg); + } + else + { + sysJobLog.setStatus(Constants.SUCCESS); + } + + // 写入数据库当中 + SpringUtils.getBean(ISysJobLogService.class).addJobLog(sysJobLog); + } + + /** + * 执行方法,由子类重载 + * + * @param context 工作执行上下文对象 + * @param sysJob 系统计划任务 + * @throws Exception 执行过程中的异常 + */ + protected abstract void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception; +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java new file mode 100644 index 0000000..818a904 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/CronUtils.java @@ -0,0 +1,89 @@ +package com.ruoyi.quartz.util; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.TimeZone; + +import org.quartz.CronExpression; + +/** + * cron表达式工具类 + * + * @author ruoyi + * + */ +public class CronUtils +{ + /** + * 返回一个布尔值代表一个给定的Cron表达式的有效性 + * + * @param cronExpression Cron表达式 + * @return boolean 表达式是否有效 + */ + public static boolean isValid(String cronExpression) + { + return CronExpression.isValidExpression(cronExpression); + } + + /** + * 返回一个字符串值,表示该消息无效Cron表达式给出有效性 + * + * @param cronExpression Cron表达式 + * @return String 无效时返回表达式错误描述,如果有效返回null + */ + public static String getInvalidMessage(String cronExpression) + { + try + { + new CronExpression(cronExpression); + return null; + } + catch (ParseException pe) + { + return pe.getMessage(); + } + } + + /** + * 返回下一个执行时间根据给定的Cron表达式 + * + * @param cronExpression Cron表达式 + * @return Date 下次Cron表达式执行时间 + */ + public static Date getNextExecution(String cronExpression) + { + try + { + CronExpression cron = new CronExpression(cronExpression); + return cron.getNextValidTimeAfter(new Date(System.currentTimeMillis())); + } + catch (ParseException e) + { + throw new IllegalArgumentException(e.getMessage()); + } + } + + /** + * 将Date转换为精确到秒的Cron表达式 + * @param date 待转换的日期时间(不能为空) + * @return 格式为 "秒 分 时 日 月 ?" 的Cron表达式(周字段使用?避免与日字段冲突) + * @throws IllegalArgumentException 当传入日期为null时抛出异常 + */ + public static String generateCronExpression(Date date) { + // 校验入参 + if (date == null) { + throw new IllegalArgumentException("传入的日期不能为空!"); + } + + // 设置时区(避免时区偏移导致时间错误,可根据实际需求调整) + TimeZone timeZone = TimeZone.getDefault(); + SimpleDateFormat sdf = new SimpleDateFormat("ss mm HH dd MM"); + sdf.setTimeZone(timeZone); + + // 格式化日期为:秒 分 时 日 月 + String timePart = sdf.format(date); + // 拼接周字段为?(Cron表达式中,日和周字段不能同时指定具体值,此处用?表示不指定周) + return timePart + " ?"; + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java new file mode 100644 index 0000000..dea8cde --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java @@ -0,0 +1,182 @@ +package com.ruoyi.quartz.util; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.LinkedList; +import java.util.List; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 任务执行工具 + * + * @author ruoyi + */ +public class JobInvokeUtil +{ + /** + * 执行方法 + * + * @param sysJob 系统任务 + */ + public static void invokeMethod(SysJob sysJob) throws Exception + { + String invokeTarget = sysJob.getInvokeTarget(); + String beanName = getBeanName(invokeTarget); + String methodName = getMethodName(invokeTarget); + List methodParams = getMethodParams(invokeTarget); + + if (!isValidClassName(beanName)) + { + Object bean = SpringUtils.getBean(beanName); + invokeMethod(bean, methodName, methodParams); + } + else + { + Object bean = Class.forName(beanName).getDeclaredConstructor().newInstance(); + invokeMethod(bean, methodName, methodParams); + } + } + + /** + * 调用任务方法 + * + * @param bean 目标对象 + * @param methodName 方法名称 + * @param methodParams 方法参数 + */ + private static void invokeMethod(Object bean, String methodName, List methodParams) + throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, + InvocationTargetException + { + if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0) + { + Method method = bean.getClass().getMethod(methodName, getMethodParamsType(methodParams)); + method.invoke(bean, getMethodParamsValue(methodParams)); + } + else + { + Method method = bean.getClass().getMethod(methodName); + method.invoke(bean); + } + } + + /** + * 校验是否为为class包名 + * + * @param invokeTarget 名称 + * @return true是 false否 + */ + public static boolean isValidClassName(String invokeTarget) + { + return StringUtils.countMatches(invokeTarget, ".") > 1; + } + + /** + * 获取bean名称 + * + * @param invokeTarget 目标字符串 + * @return bean名称 + */ + public static String getBeanName(String invokeTarget) + { + String beanName = StringUtils.substringBefore(invokeTarget, "("); + return StringUtils.substringBeforeLast(beanName, "."); + } + + /** + * 获取bean方法 + * + * @param invokeTarget 目标字符串 + * @return method方法 + */ + public static String getMethodName(String invokeTarget) + { + String methodName = StringUtils.substringBefore(invokeTarget, "("); + return StringUtils.substringAfterLast(methodName, "."); + } + + /** + * 获取method方法参数相关列表 + * + * @param invokeTarget 目标字符串 + * @return method方法相关参数列表 + */ + public static List getMethodParams(String invokeTarget) + { + String methodStr = StringUtils.substringBetweenLast(invokeTarget, "(", ")"); + if (StringUtils.isEmpty(methodStr)) + { + return null; + } + String[] methodParams = methodStr.split(",(?=([^\"']*[\"'][^\"']*[\"'])*[^\"']*$)"); + List classs = new LinkedList<>(); + for (int i = 0; i < methodParams.length; i++) + { + String str = StringUtils.trimToEmpty(methodParams[i]); + // String字符串类型,以'或"开头 + if (StringUtils.startsWithAny(str, "'", "\"")) + { + classs.add(new Object[] { StringUtils.substring(str, 1, str.length() - 1), String.class }); + } + // boolean布尔类型,等于true或者false + else if ("true".equalsIgnoreCase(str) || "false".equalsIgnoreCase(str)) + { + classs.add(new Object[] { Boolean.valueOf(str), Boolean.class }); + } + // long长整形,以L结尾 + else if (StringUtils.endsWith(str, "L")) + { + classs.add(new Object[] { Long.valueOf(StringUtils.substring(str, 0, str.length() - 1)), Long.class }); + } + // double浮点类型,以D结尾 + else if (StringUtils.endsWith(str, "D")) + { + classs.add(new Object[] { Double.valueOf(StringUtils.substring(str, 0, str.length() - 1)), Double.class }); + } + // 其他类型归类为整形 + else + { + classs.add(new Object[] { Integer.valueOf(str), Integer.class }); + } + } + return classs; + } + + /** + * 获取参数类型 + * + * @param methodParams 参数相关列表 + * @return 参数类型列表 + */ + public static Class[] getMethodParamsType(List methodParams) + { + Class[] classs = new Class[methodParams.size()]; + int index = 0; + for (Object[] os : methodParams) + { + classs[index] = (Class) os[1]; + index++; + } + return classs; + } + + /** + * 获取参数值 + * + * @param methodParams 参数相关列表 + * @return 参数值列表 + */ + public static Object[] getMethodParamsValue(List methodParams) + { + Object[] classs = new Object[methodParams.size()]; + int index = 0; + for (Object[] os : methodParams) + { + classs[index] = (Object) os[0]; + index++; + } + return classs; + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java new file mode 100644 index 0000000..5e13558 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzDisallowConcurrentExecution.java @@ -0,0 +1,21 @@ +package com.ruoyi.quartz.util; + +import org.quartz.DisallowConcurrentExecution; +import org.quartz.JobExecutionContext; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务处理(禁止并发执行) + * + * @author ruoyi + * + */ +@DisallowConcurrentExecution +public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob +{ + @Override + protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception + { + JobInvokeUtil.invokeMethod(sysJob); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java new file mode 100644 index 0000000..e975326 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/QuartzJobExecution.java @@ -0,0 +1,19 @@ +package com.ruoyi.quartz.util; + +import org.quartz.JobExecutionContext; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务处理(允许并发执行) + * + * @author ruoyi + * + */ +public class QuartzJobExecution extends AbstractQuartzJob +{ + @Override + protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception + { + JobInvokeUtil.invokeMethod(sysJob); + } +} diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java new file mode 100644 index 0000000..5a83f50 --- /dev/null +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleUtils.java @@ -0,0 +1,141 @@ +package com.ruoyi.quartz.util; + +import org.quartz.CronScheduleBuilder; +import org.quartz.CronTrigger; +import org.quartz.Job; +import org.quartz.JobBuilder; +import org.quartz.JobDetail; +import org.quartz.JobKey; +import org.quartz.Scheduler; +import org.quartz.SchedulerException; +import org.quartz.TriggerBuilder; +import org.quartz.TriggerKey; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.ScheduleConstants; +import com.ruoyi.common.exception.job.TaskException; +import com.ruoyi.common.exception.job.TaskException.Code; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.quartz.domain.SysJob; + +/** + * 定时任务工具类 + * + * @author ruoyi + * + */ +public class ScheduleUtils +{ + /** + * 得到quartz任务类 + * + * @param sysJob 执行计划 + * @return 具体执行任务类 + */ + private static Class getQuartzJobClass(SysJob sysJob) + { + boolean isConcurrent = "0".equals(sysJob.getConcurrent()); + return isConcurrent ? QuartzJobExecution.class : QuartzDisallowConcurrentExecution.class; + } + + /** + * 构建任务触发对象 + */ + public static TriggerKey getTriggerKey(Long jobId, String jobGroup) + { + return TriggerKey.triggerKey(ScheduleConstants.TASK_CLASS_NAME + jobId, jobGroup); + } + + /** + * 构建任务键对象 + */ + public static JobKey getJobKey(Long jobId, String jobGroup) + { + return JobKey.jobKey(ScheduleConstants.TASK_CLASS_NAME + jobId, jobGroup); + } + + /** + * 创建定时任务 + */ + public static void createScheduleJob(Scheduler scheduler, SysJob job) throws SchedulerException, TaskException + { + Class jobClass = getQuartzJobClass(job); + // 构建job信息 + Long jobId = job.getJobId(); + String jobGroup = job.getJobGroup(); + JobDetail jobDetail = JobBuilder.newJob(jobClass).withIdentity(getJobKey(jobId, jobGroup)).build(); + + // 表达式调度构建器 + CronScheduleBuilder cronScheduleBuilder = CronScheduleBuilder.cronSchedule(job.getCronExpression()); + cronScheduleBuilder = handleCronScheduleMisfirePolicy(job, cronScheduleBuilder); + + // 按新的cronExpression表达式构建一个新的trigger + CronTrigger trigger = TriggerBuilder.newTrigger().withIdentity(getTriggerKey(jobId, jobGroup)) + .withSchedule(cronScheduleBuilder).build(); + + // 放入参数,运行时的方法可以获取 + jobDetail.getJobDataMap().put(ScheduleConstants.TASK_PROPERTIES, job); + + // 判断是否存在 + if (scheduler.checkExists(getJobKey(jobId, jobGroup))) + { + // 防止创建时存在数据问题 先移除,然后在执行创建操作 + scheduler.deleteJob(getJobKey(jobId, jobGroup)); + } + + // 判断任务是否过期 + if (StringUtils.isNotNull(CronUtils.getNextExecution(job.getCronExpression()))) + { + // 执行调度任务 + scheduler.scheduleJob(jobDetail, trigger); + } + + // 暂停任务 + if (job.getStatus().equals(ScheduleConstants.Status.PAUSE.getValue())) + { + scheduler.pauseJob(ScheduleUtils.getJobKey(jobId, jobGroup)); + } + } + + /** + * 设置定时任务策略 + */ + public static CronScheduleBuilder handleCronScheduleMisfirePolicy(SysJob job, CronScheduleBuilder cb) + throws TaskException + { + switch (job.getMisfirePolicy()) + { + case ScheduleConstants.MISFIRE_DEFAULT: + return cb; + case ScheduleConstants.MISFIRE_IGNORE_MISFIRES: + return cb.withMisfireHandlingInstructionIgnoreMisfires(); + case ScheduleConstants.MISFIRE_FIRE_AND_PROCEED: + return cb.withMisfireHandlingInstructionFireAndProceed(); + case ScheduleConstants.MISFIRE_DO_NOTHING: + return cb.withMisfireHandlingInstructionDoNothing(); + default: + throw new TaskException("The task misfire policy '" + job.getMisfirePolicy() + + "' cannot be used in cron schedule tasks", Code.CONFIG_ERROR); + } + } + + /** + * 检查包名是否为白名单配置 + * + * @param invokeTarget 目标字符串 + * @return 结果 + */ + public static boolean whiteList(String invokeTarget) + { + String packageName = StringUtils.substringBefore(invokeTarget, "("); + int count = StringUtils.countMatches(packageName, "."); + if (count > 1) + { + return StringUtils.startsWithAny(invokeTarget, Constants.JOB_WHITELIST_STR); + } + Object obj = SpringUtils.getBean(StringUtils.split(invokeTarget, ".")[0]); + String beanPackageName = obj.getClass().getPackage().getName(); + return StringUtils.startsWithAny(beanPackageName, Constants.JOB_WHITELIST_STR) + && !StringUtils.startsWithAny(beanPackageName, Constants.JOB_ERROR_STR); + } +} diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml new file mode 100644 index 0000000..ba1b683 --- /dev/null +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time + from sys_job_log + + + + + + + + + + delete from sys_job_log where job_log_id = #{jobLogId} + + + + delete from sys_job_log where job_log_id in + + #{jobLogId} + + + + + truncate table sys_job_log + + + + insert into sys_job_log( + job_log_id, + job_name, + job_group, + invoke_target, + job_message, + status, + exception_info, + create_time + )values( + #{jobLogId}, + #{jobName}, + #{jobGroup}, + #{invokeTarget}, + #{jobMessage}, + #{status}, + #{exceptionInfo}, + sysdate() + ) + + + \ No newline at end of file diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml new file mode 100644 index 0000000..4f90a2a --- /dev/null +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark + from sys_job + + + + + + + + + + + + delete from sys_job where job_id = #{jobId} + + + + delete from sys_job where job_id in + + #{jobId} + + + + + update sys_job + + job_name = #{jobName}, + job_group = #{jobGroup}, + invoke_target = #{invokeTarget}, + cron_expression = #{cronExpression}, + misfire_policy = #{misfirePolicy}, + concurrent = #{concurrent}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where job_id = #{jobId} + + + + insert into sys_job( + job_id, + job_name, + job_group, + invoke_target, + cron_expression, + misfire_policy, + concurrent, + status, + remark, + create_by, + create_time + )values( + #{jobId}, + #{jobName}, + #{jobGroup}, + #{invokeTarget}, + #{cronExpression}, + #{misfirePolicy}, + #{concurrent}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/ruoyi-system/pom.xml b/ruoyi-system/pom.xml new file mode 100644 index 0000000..5da2a4c --- /dev/null +++ b/ruoyi-system/pom.xml @@ -0,0 +1,41 @@ + + + + ruoyi + com.ruoyi + 3.9.0 + + 4.0.0 + + ruoyi-system + + + system系统模块 + + + + + + + com.ruoyi + ruoyi-common + + + io.swagger + swagger-annotations + 1.6.2 + compile + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBalanceChangeRecord.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBalanceChangeRecord.java new file mode 100644 index 0000000..1eaa495 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBalanceChangeRecord.java @@ -0,0 +1,62 @@ +package com.ruoyi.ai.domain; + +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.TableName; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 余额使用记录对象 ai_balance_change_record + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_balance_change_record") +public class AiBalanceChangeRecord extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** + * 用户ID + */ + private Long userId; + + /** + * 用户ID + */ + @TableField(exist = false) + private String uuid; + + /** 操作类型:0-充值 1-返佣 2-充值赠送 3-体验金赠送 4-体验金回收 5-图生图 6-一键换脸 7-快捷生图 8-快捷生视频 9-退款 10-系统操作 */ + @Excel(name = "操作类型") + private Integer type; + + /** 变更金额 */ + @Excel(name = "变更金额") + private BigDecimal changeAmount; + + /** 变更后金额 */ + @Excel(name = "变更后金额") + private BigDecimal resultAmount; + + /** 用户昵称 */ + @TableField(exist = false) + @Excel(name = "用户昵称") + private String nickname; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBanner.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBanner.java new file mode 100644 index 0000000..5bedf93 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiBanner.java @@ -0,0 +1,64 @@ +package com.ruoyi.ai.domain; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.util.Date; + +/** + * banner管理对象 ai_banner + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_banner") +public class AiBanner extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 标题 */ + @Excel(name = "标题") + private String title; + + /** 图片地址 */ + @Excel(name = "图片地址") + private String imageUrl; + + /** 链接类型:0-内链 1-外链 */ + @Excel(name = "链接类型:0-内链 1-外链") + private Long type; + + /** 跳转URL */ + @Excel(name = "跳转URL") + private String jumpUrl; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + + /** bannaer位置:0-首页 1-充值中心 */ + @ApiModelProperty(name = "bannaer位置:0-首页 1-充值中心") + @Excel(name = "显示位置", readConverterExp = "bannaer位置:0-首页 1-充值中心用") + private Integer position; + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomer.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomer.java new file mode 100644 index 0000000..e230676 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomer.java @@ -0,0 +1,82 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +import java.util.List; + +/** + * AI-客户配置对象 ai_customer + * + * @author shi + * @date 2025-11-26 + */ +@Data +@TableName("ai_customer") +public class AiCustomer extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String userName; + + /** 客户编号 */ + @Excel(name = "客户编号") + private String userCode; + + /** 客户联系方式 */ + @Excel(name = "客户联系方式") + private String userEmail; + + /** 返佣比例 */ + @Excel(name = "返佣比例") + private String rebateAmount; + + /** 客服链接 */ + @Excel(name = "客服链接") + private String serviceUrl; + + /** logo链接 */ + @Excel(name = "logo链接") + private String logoUrl; + + /** 首页banner链接 */ + @Excel(name = "首页banner链接") + private String bannerUrl; + + /** 状态:0-正常,1-禁用 */ + @Excel(name = "状态:0-正常,1-禁用") + private Integer status; + + /** 充值页banner链接 */ + private String banner1Url; + + /** 启动页链接 */ + private String startUrl; + + /** + * 首页banner集合 + */ + @TableField(exist = false) + private List bannerUrls; + + /** + * 充值页banner集合 + */ + @TableField(exist = false) + private List banner1Urls; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomerService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomerService.java new file mode 100644 index 0000000..ecf19cc --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiCustomerService.java @@ -0,0 +1,38 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 客服管理对象 ai_customer_service + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_customer_service") +public class AiCustomerService extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 客服链接 */ + @Excel(name = "客服链接") + private String url; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiHelp.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiHelp.java new file mode 100644 index 0000000..2bd72f7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiHelp.java @@ -0,0 +1,42 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 【帮助管理】对象 ai_help + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_help") +public class AiHelp extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 标题 */ + @Excel(name = "标题") + private String title; + + /** 内容 */ + @Excel(name = "内容") + private String content; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiImage.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiImage.java new file mode 100644 index 0000000..89ac89d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiImage.java @@ -0,0 +1,47 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Data; + +import java.util.ArrayList; +import java.util.List; + +/** + * AI-客户配置对象 ai_customer + * + * @author shi + * @date 2025-11-26 + */ +@Data +public class AiImage extends BaseEntity { + + private static final long serialVersionUID = 1L; + + private Long uid; + private String url; + + public static List getList(String url) { + String[] urls = url.split(" "); + List aiImages = new ArrayList<>(); + for (String s : urls) { + AiImage aiImage = new AiImage(); + aiImage.setUrl(s); + aiImages.add(aiImage); + } + return aiImages; + } + + + public static String getUrl(List bannerUrls) { + String url = ""; + for (AiImage aiImage : bannerUrls) { + url += aiImage.getUrl() + " "; + } + return url.trim(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiManager.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiManager.java new file mode 100644 index 0000000..ab6b4ea --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiManager.java @@ -0,0 +1,56 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * AI管理对象 ai_manager + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_manager") +public class AiManager extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** AI标题 */ + @Excel(name = "AI标题") + private String title; + + /** 价格 */ + @Excel(name = "价格") + private BigDecimal price; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态(0正常 1停用)") + private Integer status; + + @Excel(name = "提示词") + private String prompt; + + @Excel(name = "类型") + private String type; + + /** + * 提示词ID插入顺序记录 + */ + private String parentIdSort; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiOrder.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiOrder.java new file mode 100644 index 0000000..1b33015 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiOrder.java @@ -0,0 +1,84 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 订单管理对象 ai_order + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_order") +public class AiOrder extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 订单编号 */ + @Excel(name = "订单编号") + private String orderNum; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** AI类型 */ + @Excel(name = "AI类型") + private String type; + + /** 金额 */ + @Excel(name = "金额") + private BigDecimal amount; + + /** 生成结果 */ + @Excel(name = "生成结果") + private String result; + + /** 请求text */ + @Excel(name = "请求text") + private String text; + + /** 来源 */ + @Excel(name = "来源") + private String source; + + /** 状态:0-进行中 1-已完成 2-失败(余额退回) */ + @Excel(name = "状态:0-进行中 1-已完成 2-失败", readConverterExp = "余=额退回") + private Integer status; + + /** 是否置顶:N-否 Y-是 */ + @Excel(name = "是否置顶:N-否 Y-是") + private String isTop; + + /** 首帧图片 */ + private String img1; + + /** 第二张图片 */ + private String img2; + + /** + * 用户UUID + */ + @TableField(exist = false) + private String uuid; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRebateRecord.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRebateRecord.java new file mode 100644 index 0000000..4b2f905 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRebateRecord.java @@ -0,0 +1,57 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; + +import com.baomidou.mybatisplus.annotation.TableField; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 返佣记录对象 ai_rebate_record + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_rebate_record") +public class AiRebateRecord extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 上级ID */ + @Excel(name = "上级ID") + private Long superiorId; + + /** 下级ID */ + @Excel(name = "下级ID") + private Long subordinateId; + + /** 返佣金额 */ + @Excel(name = "返佣金额") + private BigDecimal amount; + + /** + * 上级用户ID + */ + @TableField(exist = false) + private String superiorUserId; + + /** + * 下级用户ID + */ + @TableField(exist = false) + private String subordinateUserId; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRecharge.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRecharge.java new file mode 100644 index 0000000..c883ef2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRecharge.java @@ -0,0 +1,108 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.Date; +/** + * 充值管理对象 ai_recharge + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_recharge") +public class AiRecharge extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 充值订单号 */ + @Excel(name = "充值订单号") + private String orderNum; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** 转入钱包 */ + @Excel(name = "转入钱包") + private String receiveWallet; + + /** 转账钱包 */ + @Excel(name = "转账钱包") + private String paymentWallet; + + /** 交易hash */ + @Excel(name = "交易hash") + private String hash; + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + /** 到账时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "到账时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date creditedTime; + + /** + * 实际金额 + */ + private BigDecimal amount; + + /** + * 充值档位ID + */ + private Long gearId; + + /** 来源 */ + @Excel(name = "来源") + private String source; + + /** + * 档位金额 + */ + private BigDecimal gearAmount; + + /** + * 到账金额(算力点) + */ + private BigDecimal giftAmount; + + /** + * 赠送金额(算力点) + */ + private BigDecimal giveAmount; + + /** + * 支付方式 + */ + private String payType; + + /** + * 支付链接 + */ + private String payUrl; + + + /** + * 用户UUID + */ + @TableField(exist = false) + private String uuid; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGift.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGift.java new file mode 100644 index 0000000..b76cc57 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGift.java @@ -0,0 +1,89 @@ +package com.ruoyi.ai.domain; + +import java.util.Date; +import java.util.List; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +import javax.validation.constraints.NotNull; + +/** + * 充值赠送活动对象 ai_recharge_gift + * + * @author shi + * @date 2025-11-20 + */ +@Data +@TableName("ai_recharge_gift") +public class AiRechargeGift extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** + * 主键ID + */ + @TableId(type = IdType.AUTO) + private Long id; + + /** + * 删除标志(0代表存在 2代表删除) + */ + private String delFlag; + + /** + * 是否首充活动:N-否 Y-是 + */ + @Excel(name = "是否首充活动:N-否 Y-是") + private String isFristRecharge; + + /** + * 状态(0正常 1停用) + */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + + /** + * 活动类型:0-永久 1-周期 + */ + @Excel(name = "活动类型:0-永久 1-周期") + private Long type; + + /** + * 活动开始时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date startTime; + + /** + * 活动结束时间 + */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date endTime; + + /** + * 充值档位集合 + */ + @NotNull(message = "充值档位不能为空") + @TableField(exist = false) + private List gearList; + + /** + * 支付方式 + */ + private String payType; + + /** + * 支付接口 + */ + private String apiUrl; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftGear.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftGear.java new file mode 100644 index 0000000..2082e8b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftGear.java @@ -0,0 +1,52 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +/** + * 充值赠送活动档位配置对象 ai_recharge_gift_gear + * + * @author shi + * @date 2025-11-20 + */ +@Data +@TableName("ai_recharge_gift_gear") +public class AiRechargeGiftGear extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 充值赠送活动ID */ + @Excel(name = "充值赠送活动ID") + private Long rechargeId; + + /** 充值金额 */ + @Excel(name = "充值金额") + private BigDecimal rechargeAmount; + + /** 到账金额 */ + @Excel(name = "到账金额") + private BigDecimal giftAmount; + + /** 赠送金额 */ + @Excel(name = "赠送金额") + private BigDecimal giveAmount; + + /** 档位说明 */ + @Excel(name = "档位说明") + private String title; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftRecord.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftRecord.java new file mode 100644 index 0000000..a5c32b8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiRechargeGiftRecord.java @@ -0,0 +1,64 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +/** + * 充值赠送记录对象 ai_recharge_gift_record + * + * @author shi + * @date 2025-11-20 + */ +@Data +@TableName("ai_recharge_gift_record") +public class AiRechargeGiftRecord extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** 充值订单号 */ + @Excel(name = "充值订单号") + private String orderNum; + + /** 档位说明 */ + @Excel(name = "档位说明") + private String rechargeGearTitle; + + /** 档位金额 */ + @Excel(name = "档位金额") + private BigDecimal gearAmount; + + /** 赠送金额 */ + @Excel(name = "赠送金额") + private BigDecimal giftAmount; + + /** 赠送金额 */ + @Excel(name = "创建时间") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + @TableField(exist = false) + private String uuid; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmount.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmount.java new file mode 100644 index 0000000..2f39829 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmount.java @@ -0,0 +1,59 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 体验金活动管理对象 ai_sample_amount + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_sample_amount") +public class AiSampleAmount extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 体验金额 */ + @Excel(name = "体验金额") + private BigDecimal amount; + + /** 体验时长(h) */ + @Excel(name = "体验时长", readConverterExp = "h=") + private Integer duration; + + /** 活动类型:0-永久 1-周期 */ + @Excel(name = "活动类型:0-永久 1-周期") + private Long type; + + /** 活动开始时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date startTime; + + /** 活动结束时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date endTime; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmountRecord.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmountRecord.java new file mode 100644 index 0000000..7fb0f99 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiSampleAmountRecord.java @@ -0,0 +1,63 @@ +package com.ruoyi.ai.domain; + +import java.math.BigDecimal; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +/** + * 体验金领取记录对象 ai_sample_amount_record + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_sample_amount_record") +public class AiSampleAmountRecord extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** 体验金额 */ + @Excel(name = "体验金额") + private BigDecimal sampleAmount; + + /** 回收时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "回收时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date recycleTime; + + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + + /** + * 回收状态:0-已发放 1-已回收 + */ + private Integer status; + + /** + * 用户UUID + */ + @TableField(exist = false) + private String uuid; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiStatistics.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiStatistics.java new file mode 100644 index 0000000..60e513a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiStatistics.java @@ -0,0 +1,102 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * ai-统计对象 ai_statistics + * + * @author shi + * @date 2025-11-29 + */ +@Data +@TableName("ai_statistics") +public class AiStatistics extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 统计日期 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date dateKey; + + /** 来源 */ + private String source; + + /** 新增用户数 */ + @Excel(name = "新增用户数") + private Long addUserCount; + + /** 访客数量 */ + @Excel(name = "访客数量") + private Long visitorCount; + + /** 生成数量 */ + @Excel(name = "生成数量") + private Long generateCount; + + /** 充值金额 */ + @Excel(name = "充值金额") + private BigDecimal rechargeAmount; + + /** + * 今日新增用户数量 + */ + @TableField(exist = false) + private Long todayAddUserCount; + + + /** + * 用户总数量 + */ + @TableField(exist = false) + private Long totalUserCount; + + + /** + * 今日新增访客数量 + */ + @TableField(exist = false) + private Long todayVisitorCount; + + /** + * 总访客数量 + */ + @TableField(exist = false) + private Long totalVisitorCount; + + + /** + * 今日生成数量 + */ + @TableField(exist = false) + private Long todayGenerateCount; + + /** + * 总生成数量 + */ + @TableField(exist = false) + private Long totalGenerateCount; + + + /** + * 今日充值金额 + */ + @TableField(exist = false) + private Long todayRechargeAmount; + + /** + * 总充值金额 + */ + @TableField(exist = false) + private Long totalRechargeAmount; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTag.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTag.java new file mode 100644 index 0000000..9ae5307 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTag.java @@ -0,0 +1,74 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.core.domain.entity.SysDept; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +import java.util.ArrayList; +import java.util.List; + +/** + * ai-标签管理对象 ai_tag + * + * @author shi + * @date 2025-11-24 + */ +@Data +@TableName("ai_tag") +public class AiTag extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** parentId */ + @Excel(name = "parentId") + private Long parentId; + + /** aiId */ + @Excel(name = "aiId") + private Long aiId; + + /** 标签名 */ + @Excel(name = "标签名") + private String title; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private Integer status; + + /** 提示词 */ + @Excel(name = "提示词") + private String prompt; + + /** + * 繁体标题 + */ + @TableField(value = "title_HK") + private String titleHK; + + /** + * 英文标题 + */ + @TableField(value = "title_US") + private String titleUS; + + /** + * 语言类型 + */ + @TableField(exist = false) + private String language; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTemplate.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTemplate.java new file mode 100644 index 0000000..08611e0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiTemplate.java @@ -0,0 +1,53 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.ruoyi.common.core.domain.entity.SysDept; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * AI模版对象 ai_template + * + * @author shi + * @date 2026-01-15 + */ +@Data +@TableName("ai_template") +public class AiTemplate extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 自增ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 模版名称 */ + @Excel(name = "模版名称") + private String name; + + /** 模版中文 */ + @Excel(name = "模版中文") + private String chineseContent; + + /** 模版英文 */ + @Excel(name = "模版英文") + private String englishContent; + + /** 模版图片URL */ + @Excel(name = "模版图片URL") + private String imageUrl; + + /** 状态:0-禁用,1-启用 */ + @Excel(name = "状态:0-禁用,1-启用") + private Integer status; + + /** 删除标志:0-未删除,1-已删除 */ + private String delFlag; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiUserMessage.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiUserMessage.java new file mode 100644 index 0000000..7799dd8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiUserMessage.java @@ -0,0 +1,53 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.TableField; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; + +import java.util.List; +import java.util.Set; + +/** + * 站内信管理对象 ai_user_message + * + * @author shi + * @date 2025-11-13 + */ +@Data +@TableName("ai_user_message") +public class AiUserMessage extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 信息标题 */ + @Excel(name = "信息标题") + private String title; + + /** 发送类型:0-所有用户 1-指定用户 */ + @Excel(name = "发送类型:0-所有用户 1-指定用户") + private Long sendType; + + /** 发送内容 */ + @Excel(name = "发送内容") + private String content; + + /** + * 特定用户ID集合 + */ + @TableField(exist = false) + private Set userIds; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiWork.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiWork.java new file mode 100644 index 0000000..a91d732 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/AiWork.java @@ -0,0 +1,55 @@ +package com.ruoyi.ai.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * ai作品对象 ai_work + * + * @author shi + * @date 2025-11-25 + */ +@Data +@TableName("ai_work") +public class AiWork extends BaseEntity { + + private static final long serialVersionUID = 1L; + + /** 主键ID */ + @TableId(type = IdType.AUTO) + private Long id; + + /** 删除标志(0代表存在 2代表删除) */ + private String delFlag; + + /** 作品url */ + @Excel(name = "作品url") + private String url; + + /** 文字描述 */ + @Excel(name = "文字描述") + private String text; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** ai类型 */ + @Excel(name = "ai类型") + private String type; + + /** 来源 */ + @Excel(name = "来源") + private String source; + + /** 是否置顶:N-否 Y-是 */ + @Excel(name = "是否置顶:N-否 Y-是") + private String isTop; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyReq.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyReq.java new file mode 100644 index 0000000..63d46fa --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyReq.java @@ -0,0 +1,34 @@ +package com.ruoyi.ai.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +import java.util.List; + +@Data +public class ByteBodyReq { + + @JsonProperty("model") + private String model; + + private String prompt; + + private Object image; + + private String sequential_image_generation; + + private String response_format; + + private String size; + + private Boolean stream; + + private Boolean watermark; + + private String callback_url; + + @JsonProperty("content") + private List content; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyRes.java new file mode 100644 index 0000000..c6e858a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteBodyRes.java @@ -0,0 +1,34 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +import java.util.List; + +@Data +public class ByteBodyRes { + private String model; + private Integer created; + private List data; + private ByteUsageRes usage; + private String id; + + /** + * running生成中 succeeded已完成 + */ + private String status; + + private content content; + + private String created_at; + private String updated_at; + private String service_tier; + private String execution_expires_after; + private Integer seed; + private String resolution; + private String ratio; + private Integer duration; + private Integer framespersecond; + private boolean draft; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteDataRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteDataRes.java new file mode 100644 index 0000000..b36befe --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteDataRes.java @@ -0,0 +1,10 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class ByteDataRes { + + private String url; + private String size; +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteUsageRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteUsageRes.java new file mode 100644 index 0000000..a3ff623 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ByteUsageRes.java @@ -0,0 +1,14 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class ByteUsageRes { + + private int generated_images; + private int output_tokens; + private int total_tokens; + + private int completion_tokens; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ContentItem.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ContentItem.java new file mode 100644 index 0000000..e0630d5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ContentItem.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +@Data +public class ContentItem { + + @JsonProperty("type") + private String type; + + @JsonProperty("text") + private String text; + + @JsonProperty("image_url") + private ImageUrl imageUrl; + + @JsonProperty("role") + private String role; +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ImageUrl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ImageUrl.java new file mode 100644 index 0000000..1b43ab9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/ImageUrl.java @@ -0,0 +1,12 @@ +package com.ruoyi.ai.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +@Data +public class ImageUrl { + + @JsonProperty("url") + private String url; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyCall.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyCall.java new file mode 100644 index 0000000..266cdb4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyCall.java @@ -0,0 +1,25 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +import java.math.BigDecimal; + +@Data +public class JinShaBodyCall { + + /** + * status:0=>处理中 + * status:1=>成功 + * status:2=>失败 + */ + private Integer status; + + private String orderno; + + private BigDecimal amount; + + private String appid; + + private String sign; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyReq.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyReq.java new file mode 100644 index 0000000..80c7a37 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyReq.java @@ -0,0 +1,34 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +import java.math.BigDecimal; + +@Data +public class JinShaBodyReq { + + private String appid; + + /** + * 订单编号 + */ + private String orderno; + + /** + * 订单金额 + */ + private BigDecimal amount; + + private String notify_url; + + private String return_url; + + private String sign; + + /** + * 档位ID + */ + private Long gearId; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyRes.java new file mode 100644 index 0000000..343d856 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaBodyRes.java @@ -0,0 +1,17 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +import java.math.BigDecimal; + +@Data +public class JinShaBodyRes { + + private Integer code; + + private String msg; + + private JinShaDataRes data; + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaDataRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaDataRes.java new file mode 100644 index 0000000..d550d09 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/JinShaDataRes.java @@ -0,0 +1,10 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class JinShaDataRes { + + private String payurl; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyCall.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyCall.java new file mode 100644 index 0000000..67a5782 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyCall.java @@ -0,0 +1,32 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class KaDaBodyCall { + + private String amount; + + private String callbackUrl; + + private long createTime; + + private String currency; + + private String fee; + + private String netAmount; + + private String ref; + + private String status; + + private String txid; + + private String type; + + private long completeTime; + + private long paidTime; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyReq.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyReq.java new file mode 100644 index 0000000..d7d5fdd --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyReq.java @@ -0,0 +1,22 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +import java.math.BigDecimal; + +@Data +public class KaDaBodyReq { + + private BigDecimal amount; + + private String pm; + + private String ref; + + private String redirect; + + private String callbackUrl; + + private KaDaPayer payer; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyRes.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyRes.java new file mode 100644 index 0000000..d2630b1 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaBodyRes.java @@ -0,0 +1,14 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class KaDaBodyRes { + + private Boolean success; + + private int code; + + private KaDaData data; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaData.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaData.java new file mode 100644 index 0000000..71810df --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaData.java @@ -0,0 +1,36 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class KaDaData { + + private String amount; + + private String pm; + + private String ref; + + private String redirect; + + private String currency; + + private String txid; + + private String fee; + + private String netAmount; + + private Long requestTime; + + private Long createTime; + + private String paymentUrl; + + private String callbackUrl; + + private String qrImage; + + private KaDaPayer payer; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaPayer.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaPayer.java new file mode 100644 index 0000000..93b0f55 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/KaDaPayer.java @@ -0,0 +1,11 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class KaDaPayer { + + private String email = ""; + private String phone = ""; + private String name = ""; +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/MapValue.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/MapValue.java new file mode 100644 index 0000000..9b89623 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/MapValue.java @@ -0,0 +1,13 @@ +package com.ruoyi.ai.domain; + + +import lombok.Data; + +@Data +public class MapValue { + + private String name; + + private Long value; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/PayResVO.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/PayResVO.java new file mode 100644 index 0000000..e17efba --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/PayResVO.java @@ -0,0 +1,12 @@ +package com.ruoyi.ai.domain; + +import lombok.Data; + +@Data +public class PayResVO { + + private String orderNo; + + private String payUrl; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/content.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/content.java new file mode 100644 index 0000000..a2f9696 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/content.java @@ -0,0 +1,12 @@ +package com.ruoyi.ai.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Data; + +@Data +public class content { + + @JsonProperty("video_url") + private String video_url; + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/domain/enums/AiConfigEnum.java b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/enums/AiConfigEnum.java new file mode 100644 index 0000000..058a3c4 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/domain/enums/AiConfigEnum.java @@ -0,0 +1,44 @@ +package com.ruoyi.ai.domain.enums; + + +public enum AiConfigEnum { + + TEXT_TO_IMG_1("1", "ai_function_type","快捷生图"), + + IMG_TO_IMG_11("11", "ai_function_type","一键脱衣"), + IMG_TO_IMG_12("12", "ai_function_type","图生图2"), + IMG_TO_IMG_13("13", "ai_function_type","一键换脸"), + + IMG_TO_VID_21("21", "ai_function_type","快捷生视频"), + IMG_TO_VID_22("22", "ai_function_type","视频换脸"), + + SYS_INVITE_COMMISSION("sys.invite.commission", "sys.invite.commission","一级返佣比例%"), + SYS_TOTAL_AMOUNT("sys.total.amount", "sys.total.amount","用户累充金额"), + SYS_PORTAL_LOGO("sys.portal.logo", "sys.portal.logo","门户端logo"), + + + ; + + private String value; + private String type; + private String label; + + AiConfigEnum(final String value, final String type, final String label) { + this.value = value; + this.type = type; + this.label = label; + } + + public String getValue() { + return this.value; + } + + public String getType() { + return this.type; + } + + public String getLabel() { + return this.label; + } + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBalanceChangeRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBalanceChangeRecordMapper.java new file mode 100644 index 0000000..64b6199 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBalanceChangeRecordMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiBalanceChangeRecord; + +/** + * 余额使用记录Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiBalanceChangeRecordMapper extends BaseMapper { + int deleteAiBalanceChangeRecordByIds(Long[] ids); + + int deleteAiBalanceChangeRecordById(Long id); + + List selectAiBalanceChangeRecordList(AiBalanceChangeRecord aiBalanceChangeRecord); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBannerMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBannerMapper.java new file mode 100644 index 0000000..f1b9c00 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiBannerMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiBanner; + +/** + * banner管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiBannerMapper extends BaseMapper { + int deleteAiBannerByIds(Long[] ids); + + int deleteAiBannerById(Long id); + + List selectAiBannerList(AiBanner aiBanner); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerMapper.java new file mode 100644 index 0000000..0c26124 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerMapper.java @@ -0,0 +1,18 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiCustomer; + +/** + * AI-客户配置Mapper接口 + * + * @author shi + * @date 2025-11-26 + */ +public interface AiCustomerMapper extends BaseMapper { + int deleteAiCustomerByIds(Long[] ids); + + int deleteAiCustomerById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerServiceMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerServiceMapper.java new file mode 100644 index 0000000..9b4211a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiCustomerServiceMapper.java @@ -0,0 +1,18 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiCustomerService; + +/** + * 客服管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiCustomerServiceMapper extends BaseMapper { + int deleteAiCustomerServiceByIds(Long[] ids); + + int deleteAiCustomerServiceById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiHelpMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiHelpMapper.java new file mode 100644 index 0000000..0b39ad2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiHelpMapper.java @@ -0,0 +1,18 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiHelp; + +/** + * 【请填写功能名称】Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiHelpMapper extends BaseMapper { + int deleteAiHelpByIds(Long[] ids); + + int deleteAiHelpById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiManagerMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiManagerMapper.java new file mode 100644 index 0000000..74084c3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiManagerMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiManager; + +/** + * AI管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiManagerMapper extends BaseMapper { + int deleteAiManagerByIds(Long[] ids); + + int deleteAiManagerById(Long id); + + List selectAiManagerList(AiManager aiManager); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiOrderMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiOrderMapper.java new file mode 100644 index 0000000..44e98be --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiOrderMapper.java @@ -0,0 +1,26 @@ +package com.ruoyi.ai.mapper; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiOrder; +import org.apache.ibatis.annotations.Param; + +/** + * 订单管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiOrderMapper extends BaseMapper { + int deleteAiOrderByIds(Long[] ids); + + int deleteAiOrderById(Long id); + + List selectAiOrderList(AiOrder aiOrder); + + AiOrder getAiOrderByResult(@Param("result") String result); + + BigDecimal getSumAmountByUserId(@Param("userId") String userId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRebateRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRebateRecordMapper.java new file mode 100644 index 0000000..1cd64eb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRebateRecordMapper.java @@ -0,0 +1,25 @@ +package com.ruoyi.ai.mapper; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiRebateRecord; + +/** + * 返佣记录Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiRebateRecordMapper extends BaseMapper { + int deleteAiRebateRecordByIds(Long[] ids); + + int deleteAiRebateRecordById(Long id); + + List selectAiRebateRecordList(AiRebateRecord aiRebateRecord); + + BigDecimal getTotalAmount(AiRebateRecord aiRebateRecord); + + List getAiRebateRecordList(AiRebateRecord aiRebateRecord); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftGearMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftGearMapper.java new file mode 100644 index 0000000..dbd8bf7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftGearMapper.java @@ -0,0 +1,23 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import org.apache.ibatis.annotations.Param; + +/** + * 充值赠送活动档位配置Mapper接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface AiRechargeGiftGearMapper extends BaseMapper { + int deleteAiRechargeGiftGearByIds(Long[] ids); + + int deleteAiRechargeGiftGearById(Long id); + + void insertBatch(@Param("list") List gearList); + + List getGiftGear(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftMapper.java new file mode 100644 index 0000000..f6af099 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftMapper.java @@ -0,0 +1,27 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiRechargeGift; +import org.apache.ibatis.annotations.Param; + +/** + * 充值赠送活动Mapper接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface AiRechargeGiftMapper extends BaseMapper { + int deleteAiRechargeGiftByIds(Long[] ids); + + int deleteAiRechargeGiftById(Long id); + + List selectAiRechargeGiftList(AiRechargeGift aiRechargeGift); + + AiRechargeGift selectAiRechargeGiftById(Long id); + + void updateAllStatus(); + + boolean isActivityAvailable(@Param("id") Long rechargeId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftRecordMapper.java new file mode 100644 index 0000000..c8b6b8f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeGiftRecordMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiRechargeGiftRecord; + +/** + * 充值赠送记录Mapper接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface AiRechargeGiftRecordMapper extends BaseMapper { + int deleteAiRechargeGiftRecordByIds(Long[] ids); + + int deleteAiRechargeGiftRecordById(Long id); + + List selectAiRechargeGiftRecordList(AiRechargeGiftRecord aiRechargeGiftRecord); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeMapper.java new file mode 100644 index 0000000..e6e9c84 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiRechargeMapper.java @@ -0,0 +1,27 @@ +package com.ruoyi.ai.mapper; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiRecharge; + +/** + * 充值管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiRechargeMapper extends BaseMapper { + int deleteAiRechargeByIds(Long[] ids); + + int deleteAiRechargeById(Long id); + + List selectAiRechargeList(AiRecharge aiRecharge); + + AiRecharge getAiRechargeByOrderNum(String orderno); + + BigDecimal getTotalAmount(AiRecharge aiRecharge); + + List getAiRechargeList(AiRecharge aiRecharge); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountMapper.java new file mode 100644 index 0000000..dec6ce8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountMapper.java @@ -0,0 +1,22 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiSampleAmount; + +/** + * 体验金活动管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiSampleAmountMapper extends BaseMapper { + int deleteAiSampleAmountByIds(Long[] ids); + + int deleteAiSampleAmountById(Long id); + + void updateAllStatus(); + + AiSampleAmount getSampleAmount(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountRecordMapper.java new file mode 100644 index 0000000..94d2921 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiSampleAmountRecordMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiSampleAmountRecord; + +/** + * 体验金领取记录Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiSampleAmountRecordMapper extends BaseMapper { + int deleteAiSampleAmountRecordByIds(Long[] ids); + + int deleteAiSampleAmountRecordById(Long id); + + List selectAiSampleAmountRecordList(AiSampleAmountRecord aiSampleAmountRecord); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiStatisticsMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiStatisticsMapper.java new file mode 100644 index 0000000..d32929e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiStatisticsMapper.java @@ -0,0 +1,64 @@ +package com.ruoyi.ai.mapper; + +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.domain.MapValue; +import org.apache.ibatis.annotations.Param; + +/** + * ai-统计Mapper接口 + * + * @author shi + * @date 2025-11-29 + */ +public interface AiStatisticsMapper extends BaseMapper { + int deleteAiStatisticsByDateKeys(String[] dateKeys); + + int deleteAiStatisticsByDateKey(String dateKey); + + void saveOrUpdateData(AiStatistics aiStatistics); + + AiStatistics getTitleTotal(); + + List getTodayHourlyAddUserWithZero(@Param("source") String source); + + List getWeeklyAddUserCount(@Param("source") String source); + + List getMonthlyAddUserCount(@Param("source") String source); + + List getMonthlyAddUserCountByRange(@Param("source") String source, @Param("startDate") Date startDate, @Param("endDate") Date endDate); + + List getAllSource(); + + List getTodayHourlyRechargeWithZero(@Param("source") String source); + + List getWeeklyRecharge(@Param("source") String source); + + List getMonthlyRecharge(@Param("source") String source); + + List getMonthlyRechargeByRange(@Param("source") String source, @Param("startDate") Date startDate, @Param("endDate") Date endDate); + + List getTodayHourlyVisitorWithZero(@Param("source") String source); + + List getWeeklyVisitor(@Param("source") String source); + + List getMonthlyVisitor(@Param("source") String source); + + List getMonthlyVisitorByRange(@Param("source") String source, @Param("startDate") Date startDate, @Param("endDate") Date endDate); + + + List getTodayHourlyGenerateWithZero(@Param("source") String source); + + List getWeeklyGenerate(@Param("source") String source); + + List getMonthlyGenerate(@Param("source") String source); + + List getMonthlyVisitorGenerate(@Param("source") String source, @Param("startDate") Date startDate, @Param("endDate") Date endDate); + + List getMapStatistics(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTagMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTagMapper.java new file mode 100644 index 0000000..c39e8ca --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTagMapper.java @@ -0,0 +1,27 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiTag; +import org.apache.ibatis.annotations.Param; + +/** + * ai-标签管理Mapper接口 + * + * @author shi + * @date 2025-11-24 + */ +public interface AiTagMapper extends BaseMapper { + int deleteAiTagByIds(Long[] ids); + + int deleteAiTagById(Long id); + + List selectAiTagList(AiTag aiTag); + + AiTag selectAiTagById(Long id); + + List selectUserAiTagList(AiTag aiTag); + + List selectAiTagListByIds(@Param("tags") String[] tags, @Param("parentTags") String[] parentTags); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTemplateMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTemplateMapper.java new file mode 100644 index 0000000..ee9d972 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiTemplateMapper.java @@ -0,0 +1,22 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiTemplate; +import com.ruoyi.ai.domain.AiTemplate; + +/** + * AI模版Mapper接口 + * + * @author shi + * @date 2026-01-15 + */ +public interface AiTemplateMapper extends BaseMapper { + int deleteAiTemplateByIds(Long[] ids); + + int deleteAiTemplateById(Long id); + List selectAiTemplateList(AiTemplate AiTemplate); + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMapper.java new file mode 100644 index 0000000..9cd1763 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMapper.java @@ -0,0 +1,25 @@ +package com.ruoyi.ai.mapper; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.common.core.domain.entity.AiUser; +import org.apache.ibatis.annotations.Param; + +/** + * ai-用户信息Mapper接口 + * + * @author shi + * @date 2025-11-12 + */ +public interface AiUserMapper extends BaseMapper { + List selectAiUserList(AiUser aiUser); + + String selectPasswordById(@Param("id") Long aiUserId); + + void updateUserBalance(@Param("id") Long userId, @Param("amount") BigDecimal amount); + + AiUser selectAiUserById(Long id); + AiUser getUserInfo(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMessageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMessageMapper.java new file mode 100644 index 0000000..00511bb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiUserMessageMapper.java @@ -0,0 +1,30 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; +import java.util.Set; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiUserMessage; +import org.apache.ibatis.annotations.Delete; +import org.apache.ibatis.annotations.Param; + +/** + * 站内信管理Mapper接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface AiUserMessageMapper extends BaseMapper { + int deleteAiUserMessageByIds(Long[] ids); + + int deleteAiUserMessageById(Long id); + + void addUserMessage(@Param("messageId") Long id, @Param("userIds") Set userIds); + + List selectAiUserMessageList(AiUserMessage aiUserMessage); + + AiUserMessage selectAiUserMessageById(Long id); + + @Delete(" delete from user_message where message_id = #{messageId}") + void deleteUserMessage(@Param("messageId") Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiWorkMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiWorkMapper.java new file mode 100644 index 0000000..3f6e1e3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/mapper/AiWorkMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.ai.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.ruoyi.ai.domain.AiWork; + +/** + * ai作品Mapper接口 + * + * @author shi + * @date 2025-11-25 + */ +public interface AiWorkMapper extends BaseMapper { + int deleteAiWorkByIds(Long[] ids); + + int deleteAiWorkById(Long id); + + List selectAiWorkList(AiWork aiWork); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/EmailVerifyService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/EmailVerifyService.java new file mode 100644 index 0000000..80e4b1a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/EmailVerifyService.java @@ -0,0 +1,95 @@ +package com.ruoyi.ai.service; + +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.EmailUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.VerifyCodeUtils; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.data.redis.core.StringRedisTemplate; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +import javax.mail.MessagingException; +import java.util.concurrent.TimeUnit; + +/** + * 邮件验证码Service + */ +@Service +@RequiredArgsConstructor +public class EmailVerifyService { + + private final EmailUtils emailUtils; // 邮箱发送工具类 + private final StringRedisTemplate redisTemplate; // Redis操作模板 + + // 从配置文件读取验证码配置 + @Value("${verify.code.length}") + private int codeLength; // 验证码长度 + @Value("${verify.code.expire}") + private int expireSeconds; // 验证码有效期(秒) + @Value("${verify.code.prefix}") + private String redisKeyPrefix; // Redis存储前缀 + @Value("${verify.code.send-interval}") + private int sendIntervalSeconds; // 重复发送间隔(秒) + + /** + * 发送邮件验证码 + * @param email 收件人邮箱 + * @throws MessagingException 邮件发送异常 + * @throws RuntimeException 重复发送/参数异常 + */ + public void sendVerifyCode(String email) throws MessagingException { + // 1. 参数校验(邮箱格式) + if (!StringUtils.hasText(email) || !email.matches("^[A-Za-z0-9+_.-]+@[A-Za-z0-9.-]+$")) { + throw new ServiceException(MessageUtils.message("Email.user.email")); + } + + // 2. 防止重复发送(检查Redis中是否存在未过期的发送记录) + String sendKey = redisKeyPrefix + "send_" + email; + if (Boolean.TRUE.equals(redisTemplate.hasKey(sendKey))) { + long remainingTime = redisTemplate.getExpire(sendKey, TimeUnit.SECONDS); + throw new ServiceException(MessageUtils.message("email.code.sent", remainingTime)); + } + + // 3. 生成验证码(纯数字) + String verifyCode = VerifyCodeUtils.generateNumberCode(codeLength); + + // 4. 存储验证码到Redis(设置过期时间) + String codeKey = redisKeyPrefix + email; + redisTemplate.opsForValue().set(codeKey, verifyCode, expireSeconds, TimeUnit.SECONDS); + + // 5. 发送邮件(纯文本/HTML) + String subject = "【Code】"; + String content = MessageUtils.message(verifyCode, expireSeconds / 60); + emailUtils.sendTextEmail(email, subject, content); + + // 6. 记录发送时间(设置重复发送间隔) + redisTemplate.opsForValue().set(sendKey, "sent", sendIntervalSeconds, TimeUnit.SECONDS); + } + + /** + * 验证邮箱验证码 + * @param email 邮箱 + * @param inputCode 用户输入的验证码 + * @return true=验证通过,false=验证失败 + */ + public boolean verifyCode(String email, String inputCode) { + // 1. 参数校验 + if (!StringUtils.hasText(email) || !StringUtils.hasText(inputCode)) { + return false; + } + + // 2. 从Redis获取存储的验证码 + String codeKey = redisKeyPrefix + email; + String storedCode = redisTemplate.opsForValue().get(codeKey); + + // 3. 验证验证码(非空 + 相等) + if (inputCode.equals(storedCode)) { + // 验证通过后删除验证码(防止重复使用) + redisTemplate.delete(codeKey); + return true; + } + return false; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBalanceChangeRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBalanceChangeRecordService.java new file mode 100644 index 0000000..33048aa --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBalanceChangeRecordService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiBalanceChangeRecord; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 余额使用记录Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiBalanceChangeRecordService { + + /** + * 查询余额使用记录 + * + * @param id 余额使用记录主键 + * @return 余额使用记录 + */ + AiBalanceChangeRecord selectAiBalanceChangeRecordById(Long id); + + /** + * 查询余额使用记录列表 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 余额使用记录集合 + */ + List selectAiBalanceChangeRecordList(AiBalanceChangeRecord aiBalanceChangeRecord); + + /** + * 分页查询余额使用记录列表 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 余额使用记录集合 + */ + IPage selectAiBalanceChangeRecordPage(Page page, AiBalanceChangeRecord aiBalanceChangeRecord); + + /** + * 新增余额使用记录 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 结果 + */ + int insertAiBalanceChangeRecord(AiBalanceChangeRecord aiBalanceChangeRecord); + + /** + * 修改余额使用记录 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 结果 + */ + int updateAiBalanceChangeRecord(AiBalanceChangeRecord aiBalanceChangeRecord); + + /** + * 批量删除余额使用记录 + * + * @param ids 需要删除的余额使用记录主键集合 + * @return 结果 + */ + int deleteAiBalanceChangeRecordByIds(Long[] ids); + + /** + * 删除余额使用记录信息 + * + * @param id 余额使用记录主键 + * @return 结果 + */ + int deleteAiBalanceChangeRecordById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBannerService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBannerService.java new file mode 100644 index 0000000..696e092 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiBannerService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiBanner; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * banner管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiBannerService { + + /** + * 查询banner管理 + * + * @param id banner管理主键 + * @return banner管理 + */ + AiBanner selectAiBannerById(Long id); + + /** + * 查询banner管理列表 + * + * @param aiBanner banner管理 + * @return banner管理集合 + */ + List selectAiBannerList(AiBanner aiBanner); + + /** + * 分页查询banner管理列表 + * + * @param aiBanner banner管理 + * @return banner管理集合 + */ + IPage selectAiBannerPage(Page page, AiBanner aiBanner); + + /** + * 新增banner管理 + * + * @param aiBanner banner管理 + * @return 结果 + */ + int insertAiBanner(AiBanner aiBanner); + + /** + * 修改banner管理 + * + * @param aiBanner banner管理 + * @return 结果 + */ + int updateAiBanner(AiBanner aiBanner); + + /** + * 批量删除banner管理 + * + * @param ids 需要删除的banner管理主键集合 + * @return 结果 + */ + int deleteAiBannerByIds(Long[] ids); + + /** + * 删除banner管理信息 + * + * @param id banner管理主键 + * @return 结果 + */ + int deleteAiBannerById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerService.java new file mode 100644 index 0000000..0b7c8bb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiCustomer; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * AI-客户配置Service接口 + * + * @author shi + * @date 2025-11-26 + */ +public interface IAiCustomerService { + + /** + * 查询AI-客户配置 + * + * @param id AI-客户配置主键 + * @return AI-客户配置 + */ + AiCustomer selectAiCustomerById(Long id); + + /** + * 查询AI-客户配置列表 + * + * @param aiCustomer AI-客户配置 + * @return AI-客户配置集合 + */ + List selectAiCustomerList(AiCustomer aiCustomer); + + /** + * 分页查询AI-客户配置列表 + * + * @param aiCustomer AI-客户配置 + * @return AI-客户配置集合 + */ + IPage selectAiCustomerPage(Page page, AiCustomer aiCustomer); + + /** + * 新增AI-客户配置 + * + * @param aiCustomer AI-客户配置 + * @return 结果 + */ + int insertAiCustomer(AiCustomer aiCustomer); + + /** + * 修改AI-客户配置 + * + * @param aiCustomer AI-客户配置 + * @return 结果 + */ + int updateAiCustomer(AiCustomer aiCustomer); + + /** + * 批量删除AI-客户配置 + * + * @param ids 需要删除的AI-客户配置主键集合 + * @return 结果 + */ + int deleteAiCustomerByIds(Long[] ids); + + /** + * 删除AI-客户配置信息 + * + * @param id AI-客户配置主键 + * @return 结果 + */ + int deleteAiCustomerById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerServiceService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerServiceService.java new file mode 100644 index 0000000..7cf8803 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiCustomerServiceService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiCustomerService; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 客服管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiCustomerServiceService { + + /** + * 查询客服管理 + * + * @param id 客服管理主键 + * @return 客服管理 + */ + AiCustomerService selectAiCustomerServiceById(Long id); + + /** + * 查询客服管理列表 + * + * @param aiCustomerService 客服管理 + * @return 客服管理集合 + */ + List selectAiCustomerServiceList(AiCustomerService aiCustomerService); + + /** + * 分页查询客服管理列表 + * + * @param aiCustomerService 客服管理 + * @return 客服管理集合 + */ + IPage selectAiCustomerServicePage(Page page, AiCustomerService aiCustomerService); + + /** + * 新增客服管理 + * + * @param aiCustomerService 客服管理 + * @return 结果 + */ + int insertAiCustomerService(AiCustomerService aiCustomerService); + + /** + * 修改客服管理 + * + * @param aiCustomerService 客服管理 + * @return 结果 + */ + int updateAiCustomerService(AiCustomerService aiCustomerService); + + /** + * 批量删除客服管理 + * + * @param ids 需要删除的客服管理主键集合 + * @return 结果 + */ + int deleteAiCustomerServiceByIds(Long[] ids); + + /** + * 删除客服管理信息 + * + * @param id 客服管理主键 + * @return 结果 + */ + int deleteAiCustomerServiceById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiHelpService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiHelpService.java new file mode 100644 index 0000000..0b01f76 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiHelpService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiHelp; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 【帮助管理】Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiHelpService { + + /** + * 查询【帮助管理】 + * + * @param id 【帮助管理】主键 + * @return 【帮助管理】 + */ + AiHelp selectAiHelpById(Long id); + + /** + * 查询【帮助管理】列表 + * + * @param aiHelp 【帮助管理】 + * @return 【帮助管理】集合 + */ + List selectAiHelpList(AiHelp aiHelp); + + /** + * 分页查询【帮助管理】列表 + * + * @param aiHelp 【帮助管理】 + * @return 【帮助管理】集合 + */ + IPage selectAiHelpPage(Page page, AiHelp aiHelp); + + /** + * 新增【帮助管理】 + * + * @param aiHelp 【帮助管理】 + * @return 结果 + */ + int insertAiHelp(AiHelp aiHelp); + + /** + * 修改【帮助管理】 + * + * @param aiHelp 【帮助管理】 + * @return 结果 + */ + int updateAiHelp(AiHelp aiHelp); + + /** + * 批量删除【帮助管理】 + * + * @param ids 需要删除的【帮助管理】主键集合 + * @return 结果 + */ + int deleteAiHelpByIds(Long[] ids); + + /** + * 删除【帮助管理】信息 + * + * @param id 【帮助管理】主键 + * @return 结果 + */ + int deleteAiHelpById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiManagerService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiManagerService.java new file mode 100644 index 0000000..e6788ee --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiManagerService.java @@ -0,0 +1,76 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiManager; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * AI管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiManagerService { + + /** + * 查询AI管理 + * + * @param id AI管理主键 + * @return AI管理 + */ + AiManager selectAiManagerById(Long id); + + /** + * 查询AI管理列表 + * + * @param aiManager AI管理 + * @return AI管理集合 + */ + List selectAiManagerList(AiManager aiManager); + + /** + * 分页查询AI管理列表 + * + * @param aiManager AI管理 + * @return AI管理集合 + */ + IPage selectAiManagerPage(Page page, AiManager aiManager); + + /** + * 新增AI管理 + * + * @param aiManager AI管理 + * @return 结果 + */ + int insertAiManager(AiManager aiManager); + + /** + * 修改AI管理 + * + * @param aiManager AI管理 + * @return 结果 + */ + int updateAiManager(AiManager aiManager); + + /** + * 批量删除AI管理 + * + * @param ids 需要删除的AI管理主键集合 + * @return 结果 + */ + int deleteAiManagerByIds(Long[] ids); + + /** + * 删除AI管理信息 + * + * @param id AI管理主键 + * @return 结果 + */ + int deleteAiManagerById(Long id); + + int updateAiStatus(AiManager aiManager); + + AiManager selectAiManagerByType(String aiType); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiOrderService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiOrderService.java new file mode 100644 index 0000000..641c287 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiOrderService.java @@ -0,0 +1,83 @@ +package com.ruoyi.ai.service; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiOrder; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 订单管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiOrderService { + + /** + * 查询订单管理 + * + * @param id 订单管理主键 + * @return 订单管理 + */ + AiOrder selectAiOrderById(Long id); + + /** + * 查询订单管理列表 + * + * @param aiOrder 订单管理 + * @return 订单管理集合 + */ + List selectAiOrderList(AiOrder aiOrder); + + /** + * 分页查询订单管理列表 + * + * @param aiOrder 订单管理 + * @return 订单管理集合 + */ + IPage selectAiOrderPage(Page page, AiOrder aiOrder); + + /** + * 新增订单管理 + * + * @param aiOrder 订单管理 + * @return 结果 + */ + int insertAiOrder(AiOrder aiOrder); + + /** + * 修改订单管理 + * + * @param aiOrder 订单管理 + * @return 结果 + */ + int updateAiOrder(AiOrder aiOrder); + + /** + * 批量删除订单管理 + * + * @param ids 需要删除的订单管理主键集合 + * @return 结果 + */ + int deleteAiOrderByIds(Long[] ids); + + /** + * 删除订单管理信息 + * + * @param id 订单管理主键 + * @return 结果 + */ + int deleteAiOrderById(Long id); + + AiOrder getAiOrder(String aiType); + + void orderFailure(AiOrder aiOrder); + + void orderSuccess(AiOrder aiOrder); + + AiOrder getAiOrderByResult(String result); + + BigDecimal getSumAmountByUserId(String userId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRebateRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRebateRecordService.java new file mode 100644 index 0000000..5e3981f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRebateRecordService.java @@ -0,0 +1,77 @@ +package com.ruoyi.ai.service; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiRebateRecord; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 返佣记录Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiRebateRecordService { + + /** + * 查询返佣记录 + * + * @param id 返佣记录主键 + * @return 返佣记录 + */ + AiRebateRecord selectAiRebateRecordById(Long id); + + /** + * 查询返佣记录列表 + * + * @param aiRebateRecord 返佣记录 + * @return 返佣记录集合 + */ + List selectAiRebateRecordList(AiRebateRecord aiRebateRecord); + + /** + * 分页查询返佣记录列表 + * + * @param aiRebateRecord 返佣记录 + * @return 返佣记录集合 + */ + IPage selectAiRebateRecordPage(Page page, AiRebateRecord aiRebateRecord); + + /** + * 新增返佣记录 + * + * @param aiRebateRecord 返佣记录 + * @return 结果 + */ + int insertAiRebateRecord(AiRebateRecord aiRebateRecord); + + /** + * 修改返佣记录 + * + * @param aiRebateRecord 返佣记录 + * @return 结果 + */ + int updateAiRebateRecord(AiRebateRecord aiRebateRecord); + + /** + * 批量删除返佣记录 + * + * @param ids 需要删除的返佣记录主键集合 + * @return 结果 + */ + int deleteAiRebateRecordByIds(Long[] ids); + + /** + * 删除返佣记录信息 + * + * @param id 返佣记录主键 + * @return 结果 + */ + int deleteAiRebateRecordById(Long id); + + BigDecimal getTotalAmount(AiRebateRecord aiRebateRecord); + + List getAiRebateRecordList(AiRebateRecord aiRebateRecord); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftGearService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftGearService.java new file mode 100644 index 0000000..ccc5be6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftGearService.java @@ -0,0 +1,74 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 充值赠送活动档位配置Service接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface IAiRechargeGiftGearService { + + /** + * 查询充值赠送活动档位配置 + * + * @param id 充值赠送活动档位配置主键 + * @return 充值赠送活动档位配置 + */ + AiRechargeGiftGear selectAiRechargeGiftGearById(Long id); + + /** + * 查询充值赠送活动档位配置列表 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 充值赠送活动档位配置集合 + */ + List selectAiRechargeGiftGearList(AiRechargeGiftGear aiRechargeGiftGear); + + /** + * 分页查询充值赠送活动档位配置列表 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 充值赠送活动档位配置集合 + */ + IPage selectAiRechargeGiftGearPage(Page page, AiRechargeGiftGear aiRechargeGiftGear); + + /** + * 新增充值赠送活动档位配置 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 结果 + */ + int insertAiRechargeGiftGear(AiRechargeGiftGear aiRechargeGiftGear); + + /** + * 修改充值赠送活动档位配置 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 结果 + */ + int updateAiRechargeGiftGear(AiRechargeGiftGear aiRechargeGiftGear); + + /** + * 批量删除充值赠送活动档位配置 + * + * @param ids 需要删除的充值赠送活动档位配置主键集合 + * @return 结果 + */ + int deleteAiRechargeGiftGearByIds(Long[] ids); + + /** + * 删除充值赠送活动档位配置信息 + * + * @param id 充值赠送活动档位配置主键 + * @return 结果 + */ + int deleteAiRechargeGiftGearById(Long id); + + List getGiftGear(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftRecordService.java new file mode 100644 index 0000000..0fba647 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftRecordService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiRechargeGiftRecord; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 充值赠送记录Service接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface IAiRechargeGiftRecordService { + + /** + * 查询充值赠送记录 + * + * @param id 充值赠送记录主键 + * @return 充值赠送记录 + */ + AiRechargeGiftRecord selectAiRechargeGiftRecordById(Long id); + + /** + * 查询充值赠送记录列表 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 充值赠送记录集合 + */ + List selectAiRechargeGiftRecordList(AiRechargeGiftRecord aiRechargeGiftRecord); + + /** + * 分页查询充值赠送记录列表 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 充值赠送记录集合 + */ + IPage selectAiRechargeGiftRecordPage(Page page, AiRechargeGiftRecord aiRechargeGiftRecord); + + /** + * 新增充值赠送记录 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 结果 + */ + int insertAiRechargeGiftRecord(AiRechargeGiftRecord aiRechargeGiftRecord); + + /** + * 修改充值赠送记录 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 结果 + */ + int updateAiRechargeGiftRecord(AiRechargeGiftRecord aiRechargeGiftRecord); + + /** + * 批量删除充值赠送记录 + * + * @param ids 需要删除的充值赠送记录主键集合 + * @return 结果 + */ + int deleteAiRechargeGiftRecordByIds(Long[] ids); + + /** + * 删除充值赠送记录信息 + * + * @param id 充值赠送记录主键 + * @return 结果 + */ + int deleteAiRechargeGiftRecordById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftService.java new file mode 100644 index 0000000..448ff69 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeGiftService.java @@ -0,0 +1,76 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiRechargeGift; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 充值赠送活动Service接口 + * + * @author shi + * @date 2025-11-20 + */ +public interface IAiRechargeGiftService { + + /** + * 查询充值赠送活动 + * + * @param id 充值赠送活动主键 + * @return 充值赠送活动 + */ + AiRechargeGift selectAiRechargeGiftById(Long id); + + /** + * 查询充值赠送活动列表 + * + * @param aiRechargeGift 充值赠送活动 + * @return 充值赠送活动集合 + */ + List selectAiRechargeGiftList(AiRechargeGift aiRechargeGift); + + /** + * 分页查询充值赠送活动列表 + * + * @param aiRechargeGift 充值赠送活动 + * @return 充值赠送活动集合 + */ + IPage selectAiRechargeGiftPage(Page page, AiRechargeGift aiRechargeGift); + + /** + * 新增充值赠送活动 + * + * @param aiRechargeGift 充值赠送活动 + * @return 结果 + */ + int insertAiRechargeGift(AiRechargeGift aiRechargeGift); + + /** + * 修改充值赠送活动 + * + * @param aiRechargeGift 充值赠送活动 + * @return 结果 + */ + int updateAiRechargeGift(AiRechargeGift aiRechargeGift); + + /** + * 批量删除充值赠送活动 + * + * @param ids 需要删除的充值赠送活动主键集合 + * @return 结果 + */ + int deleteAiRechargeGiftByIds(Long[] ids); + + /** + * 删除充值赠送活动信息 + * + * @param id 充值赠送活动主键 + * @return 结果 + */ + int deleteAiRechargeGiftById(Long id); + + int changeUserStatus(AiRechargeGift aiRechargeGift); + + boolean isActivityAvailable(Long rechargeId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeService.java new file mode 100644 index 0000000..e66da7b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiRechargeService.java @@ -0,0 +1,82 @@ +package com.ruoyi.ai.service; + +import java.math.BigDecimal; +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiRecharge; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 充值管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiRechargeService { + + /** + * 查询充值管理 + * + * @param id 充值管理主键 + * @return 充值管理 + */ + AiRecharge selectAiRechargeById(Long id); + + /** + * 查询充值管理列表 + * + * @param aiRecharge 充值管理 + * @return 充值管理集合 + */ + List selectAiRechargeList(AiRecharge aiRecharge); + + /** + * 分页查询充值管理列表 + * + * @param aiRecharge 充值管理 + * @return 充值管理集合 + */ + IPage selectAiRechargePage(Page page, AiRecharge aiRecharge); + + /** + * 新增充值管理 + * + * @param aiRecharge 充值管理 + * @return 结果 + */ + int insertAiRecharge(AiRecharge aiRecharge); + + /** + * 修改充值管理 + * + * @param aiRecharge 充值管理 + * @return 结果 + */ + int updateAiRecharge(AiRecharge aiRecharge); + + /** + * 批量删除充值管理 + * + * @param ids 需要删除的充值管理主键集合 + * @return 结果 + */ + int deleteAiRechargeByIds(Long[] ids); + + /** + * 删除充值管理信息 + * + * @param id 充值管理主键 + * @return 结果 + */ + int deleteAiRechargeById(Long id); + + + AiRecharge getAiRechargeByOrderNum(String orderno); + + BigDecimal getTotalAmount(AiRecharge aiRecharge); + + void addRecharge(String orderNo); + + List getAiRechargeList(AiRecharge aiRecharge); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountRecordService.java new file mode 100644 index 0000000..af81418 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountRecordService.java @@ -0,0 +1,74 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiSampleAmountRecord; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 体验金领取记录Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiSampleAmountRecordService { + + /** + * 查询体验金领取记录 + * + * @param id 体验金领取记录主键 + * @return 体验金领取记录 + */ + AiSampleAmountRecord selectAiSampleAmountRecordById(Long id); + + /** + * 查询体验金领取记录列表 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 体验金领取记录集合 + */ + List selectAiSampleAmountRecordList(AiSampleAmountRecord aiSampleAmountRecord); + + /** + * 分页查询体验金领取记录列表 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 体验金领取记录集合 + */ + IPage selectAiSampleAmountRecordPage(Page page, AiSampleAmountRecord aiSampleAmountRecord); + + /** + * 新增体验金领取记录 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 结果 + */ + int insertAiSampleAmountRecord(AiSampleAmountRecord aiSampleAmountRecord); + + /** + * 修改体验金领取记录 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 结果 + */ + int updateAiSampleAmountRecord(AiSampleAmountRecord aiSampleAmountRecord); + + /** + * 批量删除体验金领取记录 + * + * @param ids 需要删除的体验金领取记录主键集合 + * @return 结果 + */ + int deleteAiSampleAmountRecordByIds(Long[] ids); + + /** + * 删除体验金领取记录信息 + * + * @param id 体验金领取记录主键 + * @return 结果 + */ + int deleteAiSampleAmountRecordById(Long id); + + AiSampleAmountRecord getAiSampleAmountRecordByUserId(String userId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountService.java new file mode 100644 index 0000000..28e7531 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiSampleAmountService.java @@ -0,0 +1,74 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiSampleAmount; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 体验金活动管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiSampleAmountService { + + /** + * 查询体验金活动管理 + * + * @param id 体验金活动管理主键 + * @return 体验金活动管理 + */ + AiSampleAmount selectAiSampleAmountById(Long id); + + /** + * 查询体验金活动管理列表 + * + * @param aiSampleAmount 体验金活动管理 + * @return 体验金活动管理集合 + */ + List selectAiSampleAmountList(AiSampleAmount aiSampleAmount); + + /** + * 分页查询体验金活动管理列表 + * + * @param aiSampleAmount 体验金活动管理 + * @return 体验金活动管理集合 + */ + IPage selectAiSampleAmountPage(Page page, AiSampleAmount aiSampleAmount); + + /** + * 新增体验金活动管理 + * + * @param aiSampleAmount 体验金活动管理 + * @return 结果 + */ + int insertAiSampleAmount(AiSampleAmount aiSampleAmount); + + /** + * 修改体验金活动管理 + * + * @param aiSampleAmount 体验金活动管理 + * @return 结果 + */ + int updateAiSampleAmount(AiSampleAmount aiSampleAmount); + + /** + * 批量删除体验金活动管理 + * + * @param ids 需要删除的体验金活动管理主键集合 + * @return 结果 + */ + int deleteAiSampleAmountByIds(Long[] ids); + + /** + * 删除体验金活动管理信息 + * + * @param id 体验金活动管理主键 + * @return 结果 + */ + int deleteAiSampleAmountById(Long id); + + int changeUserStatus(AiSampleAmount aiSampleAmount); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiStatisticsService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiStatisticsService.java new file mode 100644 index 0000000..e35dfae --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiStatisticsService.java @@ -0,0 +1,116 @@ +package com.ruoyi.ai.service; + +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiStatistics; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.MapValue; + +/** + * ai-统计Service接口 + * + * @author shi + * @date 2025-11-29 + */ +public interface IAiStatisticsService { + + /** + * 查询ai-统计 + * + * @param dateKey ai-统计主键 + * @return ai-统计 + */ + AiStatistics selectAiStatisticsByDateKey(String dateKey); + + /** + * 查询ai-统计列表 + * + * @param aiStatistics ai-统计 + * @return ai-统计集合 + */ + List selectAiStatisticsList(AiStatistics aiStatistics); + + /** + * 分页查询ai-统计列表 + * + * @param aiStatistics ai-统计 + * @return ai-统计集合 + */ + IPage selectAiStatisticsPage(Page page, AiStatistics aiStatistics); + + /** + * 新增ai-统计 + * + * @param aiStatistics ai-统计 + * @return 结果 + */ + int insertAiStatistics(AiStatistics aiStatistics); + + /** + * 修改ai-统计 + * + * @param aiStatistics ai-统计 + * @return 结果 + */ + int updateAiStatistics(AiStatistics aiStatistics); + + /** + * 批量删除ai-统计 + * + * @param dateKeys 需要删除的ai-统计主键集合 + * @return 结果 + */ + int deleteAiStatisticsByDateKeys(String[] dateKeys); + + /** + * 删除ai-统计信息 + * + * @param dateKey ai-统计主键 + * @return 结果 + */ + int deleteAiStatisticsByDateKey(String dateKey); + + void saveOrUpdateData(AiStatistics aiStatistics); + + AiStatistics getTitleTotal(); + + List getTodayHourlyAddUserWithZero(String source); + + List getWeeklyAddUserCount(String source); + + List getMonthlyAddUserCount(String source); + + List getMonthlyAddUserCountByRange(String source, Date startDate, Date endDate); + + List getAllSource(); + + List getTodayHourlyRechargeWithZero(String source); + + List getWeeklyRecharge(String source); + + List getMonthlyRecharge(String source); + + List getMonthlyRechargeByRange(String source, Date startDate, Date endDate); + + List getTodayHourlyVisitorWithZero(String source); + + List getWeeklyVisitor(String source); + + List getMonthlyVisitor(String source); + + List getMonthlyVisitorByRange(String source, Date startDate, Date endDate); + + List getTodayHourlyGenerateWithZero(String source); + + List getWeeklyGenerate(String source); + + List getMonthlyGenerate(String source); + + List getMonthlyVisitorGenerate(String source, Date startDate, Date endDate); + + List getMapStatistics(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTagService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTagService.java new file mode 100644 index 0000000..0c56fbb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTagService.java @@ -0,0 +1,78 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiTag; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * ai-标签管理Service接口 + * + * @author shi + * @date 2025-11-24 + */ +public interface IAiTagService { + + /** + * 查询ai-标签管理 + * + * @param id ai-标签管理主键 + * @return ai-标签管理 + */ + AiTag selectAiTagById(Long id); + + /** + * 查询ai-标签管理列表 + * + * @param aiTag ai-标签管理 + * @return ai-标签管理集合 + */ + List selectAiTagList(AiTag aiTag); + + /** + * 分页查询ai-标签管理列表 + * + * @param aiTag ai-标签管理 + * @return ai-标签管理集合 + */ + IPage selectAiTagPage(Page page, AiTag aiTag); + + /** + * 新增ai-标签管理 + * + * @param aiTag ai-标签管理 + * @return 结果 + */ + int insertAiTag(AiTag aiTag); + + /** + * 修改ai-标签管理 + * + * @param aiTag ai-标签管理 + * @return 结果 + */ + int updateAiTag(AiTag aiTag); + + /** + * 批量删除ai-标签管理 + * + * @param ids 需要删除的ai-标签管理主键集合 + * @return 结果 + */ + int deleteAiTagByIds(Long[] ids); + + /** + * 删除ai-标签管理信息 + * + * @param id ai-标签管理主键 + * @return 结果 + */ + int deleteAiTagById(Long id); + + boolean checkStatus(Long parentId); + + List selectUserAiTagList(AiTag aiTag); + + List selectAiTagListByIds(String tags, String parentTags); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTemplateService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTemplateService.java new file mode 100644 index 0000000..7e9d86a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiTemplateService.java @@ -0,0 +1,71 @@ +package com.ruoyi.ai.service; + +import java.util.List; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiTemplate; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * AI模版Service接口 + * + * @author shi + * @date 2026-01-15 + */ +public interface IAiTemplateService { + + /** + * 查询AI模版 + * + * @param id AI模版主键 + * @return AI模版 + */ + AiTemplate selectAiTemplateById(Long id); + + /** + * 查询AI模版列表 + * + * @param aiTemplate AI模版 + * @return AI模版集合 + */ + List selectAiTemplateList(AiTemplate aiTemplate); + + /** + * 分页查询AI模版列表 + * + * @param aiTemplate AI模版 + * @return AI模版集合 + */ + IPage selectAiTemplatePage(Page page, AiTemplate aiTemplate); + + /** + * 新增AI模版 + * + * @param aiTemplate AI模版 + * @return 结果 + */ + int insertAiTemplate(AiTemplate aiTemplate); + + /** + * 修改AI模版 + * + * @param aiTemplate AI模版 + * @return 结果 + */ + int updateAiTemplate(AiTemplate aiTemplate); + + /** + * 批量删除AI模版 + * + * @param ids 需要删除的AI模版主键集合 + * @return 结果 + */ + int deleteAiTemplateByIds(Long[] ids); + + /** + * 删除AI模版信息 + * + * @param id AI模版主键 + * @return 结果 + */ + int deleteAiTemplateById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserMessageService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserMessageService.java new file mode 100644 index 0000000..b15d850 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserMessageService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiUserMessage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * 站内信管理Service接口 + * + * @author shi + * @date 2025-11-13 + */ +public interface IAiUserMessageService { + + /** + * 查询站内信管理 + * + * @param id 站内信管理主键 + * @return 站内信管理 + */ + AiUserMessage selectAiUserMessageById(Long id); + + /** + * 查询站内信管理列表 + * + * @param aiUserMessage 站内信管理 + * @return 站内信管理集合 + */ + List selectAiUserMessageList(AiUserMessage aiUserMessage); + + /** + * 分页查询站内信管理列表 + * + * @param aiUserMessage 站内信管理 + * @return 站内信管理集合 + */ + IPage selectAiUserMessagePage(Page page, AiUserMessage aiUserMessage); + + /** + * 新增站内信管理 + * + * @param aiUserMessage 站内信管理 + * @return 结果 + */ + int insertAiUserMessage(AiUserMessage aiUserMessage); + + /** + * 修改站内信管理 + * + * @param aiUserMessage 站内信管理 + * @return 结果 + */ + int updateAiUserMessage(AiUserMessage aiUserMessage); + + /** + * 批量删除站内信管理 + * + * @param ids 需要删除的站内信管理主键集合 + * @return 结果 + */ + int deleteAiUserMessageByIds(Long[] ids); + + /** + * 删除站内信管理信息 + * + * @param id 站内信管理主键 + * @return 结果 + */ + int deleteAiUserMessageById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserService.java new file mode 100644 index 0000000..7ff4540 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiUserService.java @@ -0,0 +1,109 @@ +package com.ruoyi.ai.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.core.domain.model.LoginAiUserBody; +import com.ruoyi.common.core.domain.model.RegisterAiUserBody; + +import java.math.BigDecimal; +import java.util.List; +import java.util.Map; + +/** + * ai-用户信息Service接口 + * + * @author shi + * @date 2025-11-12 + */ +public interface IAiUserService { + + /** + * 查询ai-用户信息 + * + * @param id ai-用户信息主键 + * @return ai-用户信息 + */ + AiUser selectAiUserById(Long id); + + /** + * 查询ai-用户信息列表 + * + * @param aiUser ai-用户信息 + * @return ai-用户信息集合 + */ + List selectAiUserList(AiUser aiUser); + + /** + * 分页查询ai-用户信息列表 + * + * @param aiUser ai-用户信息 + * @return ai-用户信息集合 + */ + IPage selectAiUserPage(Page page, AiUser aiUser); + + /** + * 新增ai-用户信息 + * + * @param aiUser ai-用户信息 + * @return 结果 + */ + int insertAiUser(AiUser aiUser); + + /** + * 修改ai-用户信息 + * + * @param aiUser ai-用户信息 + * @return 结果 + */ + int updateAiUser(AiUser aiUser); + + /** + * 批量删除ai-用户信息 + * + * @param ids 需要删除的ai-用户信息主键集合 + * @return 结果 + */ + int deleteAiUserByIds(Long[] ids); + + /** + * 删除ai-用户信息信息 + * + * @param id ai-用户信息主键 + * @return 结果 + */ + int deleteAiUserById(Long id); + + int updateUserStatus(AiUser aiUser); + + AiUser registerAiUser(RegisterAiUserBody registerAiUserBody); + + Long getUserCountByEmail(String email); + + LoginAiUser loginAiUser(LoginAiUserBody loginAiUserBody); + + void updatePassword(String oldPassword, String newPassword); + + void updateEmail(String email, String code); + + void addUserBalance(Long userId, BigDecimal amount, int recharge); + + void addUserBalance(Long userId, BigDecimal amount, int recharge, String remark); + + AiUser getUserByEmail(String email); + + void updateAvatar(String avatar); + + AiUser getUserInfo(Long aiUserId); + + int updatePassword(AiUser aiUser); + + public void deductSampleAmount(String userId); + + void handleRebate(Long userId, BigDecimal rechargeAmount); + + String getRebateConfig(); + + Map checkIsStandard(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiWorkService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiWorkService.java new file mode 100644 index 0000000..f862a70 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IAiWorkService.java @@ -0,0 +1,72 @@ +package com.ruoyi.ai.service; + +import java.util.List; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.ruoyi.ai.domain.AiWork; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +/** + * ai作品Service接口 + * + * @author shi + * @date 2025-11-25 + */ +public interface IAiWorkService { + + /** + * 查询ai作品 + * + * @param id ai作品主键 + * @return ai作品 + */ + AiWork selectAiWorkById(Long id); + + /** + * 查询ai作品列表 + * + * @param aiWork ai作品 + * @return ai作品集合 + */ + List selectAiWorkList(AiWork aiWork); + + /** + * 分页查询ai作品列表 + * + * @param aiWork ai作品 + * @return ai作品集合 + */ + IPage selectAiWorkPage(Page page, AiWork aiWork); + + /** + * 新增ai作品 + * + * @param aiWork ai作品 + * @return 结果 + */ + int insertAiWork(AiWork aiWork); + + /** + * 修改ai作品 + * + * @param aiWork ai作品 + * @return 结果 + */ + int updateAiWork(AiWork aiWork); + + /** + * 批量删除ai作品 + * + * @param ids 需要删除的ai作品主键集合 + * @return 结果 + */ + int deleteAiWorkByIds(Long[] ids); + + /** + * 删除ai作品信息 + * + * @param id ai作品主键 + * @return 结果 + */ + int deleteAiWorkById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IByteService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IByteService.java new file mode 100644 index 0000000..137fd63 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IByteService.java @@ -0,0 +1,27 @@ +package com.ruoyi.ai.service; + +import com.ruoyi.ai.domain.ByteBodyReq; +import com.ruoyi.ai.domain.ByteBodyRes; + +public interface IByteService { + + /** + * 文生图 + */ + ByteBodyRes promptToImg(ByteBodyReq req) throws Exception; + + /** + * 图生图 + */ + ByteBodyRes imgToImg(ByteBodyReq req) throws Exception; + + /** + * 首尾帧图生视频 + */ + ByteBodyRes imgToVideo(ByteBodyReq req) throws Exception; + + /** + * 下载视频 + */ + ByteBodyRes uploadVideo(String id) throws Exception; +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IJinShaService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IJinShaService.java new file mode 100644 index 0000000..1fdd219 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IJinShaService.java @@ -0,0 +1,23 @@ +package com.ruoyi.ai.service; + +import com.ruoyi.ai.domain.JinShaBodyCall; +import com.ruoyi.ai.domain.PayResVO; +import com.ruoyi.common.core.domain.AjaxResult; + +public interface IJinShaService { + + /** + * 支付 + */ + PayResVO jinShaPay(Long gearId) throws Exception; + + + /** + * 回调 + */ + AjaxResult jinShaCall(JinShaBodyCall req); + + + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IKaDaService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IKaDaService.java new file mode 100644 index 0000000..e78ea9b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IKaDaService.java @@ -0,0 +1,24 @@ +package com.ruoyi.ai.service; + +import com.ruoyi.ai.domain.KaDaBodyCall; +import com.ruoyi.ai.domain.PayResVO; +import com.ruoyi.common.core.domain.AjaxResult; +import javax.servlet.http.HttpServletRequest; + +public interface IKaDaService { + + /** + * 支付 + */ + PayResVO pay(Long gearId) throws Exception; + + + /** + * 回调 + */ + AjaxResult callBack(HttpServletRequest request, KaDaBodyCall req) throws Exception; + + + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/IYuZhouService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IYuZhouService.java new file mode 100644 index 0000000..f3dc960 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/IYuZhouService.java @@ -0,0 +1,22 @@ +package com.ruoyi.ai.service; + +import com.ruoyi.ai.domain.PayResVO; +import java.util.Map; + +public interface IYuZhouService { + + /** + * 支付 + */ + PayResVO pay(Long gearId) throws Exception; + + + /** + * 回调 + */ + String callBack(Map map) throws Exception; + + + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBalanceChangeRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBalanceChangeRecordServiceImpl.java new file mode 100644 index 0000000..c21e2e6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBalanceChangeRecordServiceImpl.java @@ -0,0 +1,116 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiBalanceChangeRecordMapper; +import com.ruoyi.ai.domain.AiBalanceChangeRecord; +import com.ruoyi.ai.service.IAiBalanceChangeRecordService; + +/** + * 余额使用记录Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiBalanceChangeRecordServiceImpl implements IAiBalanceChangeRecordService { + + @Autowired + private AiBalanceChangeRecordMapper aiBalanceChangeRecordMapper; + + /** + * 查询余额使用记录 + * + * @param id 余额使用记录主键 + * @return 余额使用记录 + */ + @Override + public AiBalanceChangeRecord selectAiBalanceChangeRecordById(Long id) { + return aiBalanceChangeRecordMapper.selectById(id); + } + + /** + * 查询余额使用记录列表 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 余额使用记录 + */ + @Override + public List selectAiBalanceChangeRecordList(AiBalanceChangeRecord aiBalanceChangeRecord) { +// LambdaQueryWrapper query = Wrappers.lambdaQuery(aiBalanceChangeRecord); +// query.orderByDesc(AiBalanceChangeRecord::getId); +// query.eq(AiBalanceChangeRecord::getDelFlag, "0"); + return aiBalanceChangeRecordMapper.selectAiBalanceChangeRecordList(aiBalanceChangeRecord); + } + + /** + * 分页查询余额使用记录列表 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 余额使用记录 + */ + @Override + public IPage selectAiBalanceChangeRecordPage(Page page, AiBalanceChangeRecord aiBalanceChangeRecord) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiBalanceChangeRecord); + query.eq(AiBalanceChangeRecord::getDelFlag, "0"); + return aiBalanceChangeRecordMapper.selectPage(page, query); + } + + /** + * 新增余额使用记录 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 结果 + */ + @Override + public int insertAiBalanceChangeRecord(AiBalanceChangeRecord aiBalanceChangeRecord) { + aiBalanceChangeRecord.setDelFlag("0"); + aiBalanceChangeRecord.setCreateTime(DateUtils.getNowDate()); + return aiBalanceChangeRecordMapper.insert(aiBalanceChangeRecord); + } + + /** + * 修改余额使用记录 + * + * @param aiBalanceChangeRecord 余额使用记录 + * @return 结果 + */ + @Override + public int updateAiBalanceChangeRecord(AiBalanceChangeRecord aiBalanceChangeRecord) { + aiBalanceChangeRecord.setUpdateBy(SecurityUtils.getUsername()); + aiBalanceChangeRecord.setUpdateTime(DateUtils.getNowDate()); + return aiBalanceChangeRecordMapper.updateById(aiBalanceChangeRecord); + } + + /** + * 批量删除余额使用记录 + * + * @param ids 需要删除的余额使用记录主键 + * @return 结果 + */ + @Override + public int deleteAiBalanceChangeRecordByIds(Long[] ids) + { + return aiBalanceChangeRecordMapper.deleteAiBalanceChangeRecordByIds(ids); + } + + /** + * 删除余额使用记录信息 + * + * @param id 余额使用记录主键 + * @return 结果 + */ + @Override + public int deleteAiBalanceChangeRecordById(Long id) + { + return aiBalanceChangeRecordMapper.deleteAiBalanceChangeRecordById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBannerServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBannerServiceImpl.java new file mode 100644 index 0000000..ebcf5ca --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiBannerServiceImpl.java @@ -0,0 +1,114 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiBannerMapper; +import com.ruoyi.ai.domain.AiBanner; +import com.ruoyi.ai.service.IAiBannerService; + +/** + * banner管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiBannerServiceImpl implements IAiBannerService { + + @Autowired + private AiBannerMapper aiBannerMapper; + + /** + * 查询banner管理 + * + * @param id banner管理主键 + * @return banner管理 + */ + @Override + public AiBanner selectAiBannerById(Long id) { + return aiBannerMapper.selectById(id); + } + + /** + * 查询banner管理列表 + * + * @param aiBanner banner管理 + * @return banner管理 + */ + @Override + public List selectAiBannerList(AiBanner aiBanner) { + return aiBannerMapper.selectAiBannerList(aiBanner); + } + + /** + * 分页查询banner管理列表 + * + * @param aiBanner banner管理 + * @return banner管理 + */ + @Override + public IPage selectAiBannerPage(Page page, AiBanner aiBanner) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiBanner); + query.eq(AiBanner::getDelFlag, "0"); + return aiBannerMapper.selectPage(page, query); + } + + /** + * 新增banner管理 + * + * @param aiBanner banner管理 + * @return 结果 + */ + @Override + public int insertAiBanner(AiBanner aiBanner) { + aiBanner.setDelFlag("0"); + aiBanner.setCreateBy(SecurityUtils.getUsername()); + aiBanner.setCreateTime(DateUtils.getNowDate()); + return aiBannerMapper.insert(aiBanner); + } + + /** + * 修改banner管理 + * + * @param aiBanner banner管理 + * @return 结果 + */ + @Override + public int updateAiBanner(AiBanner aiBanner) { + aiBanner.setUpdateBy(SecurityUtils.getUsername()); + aiBanner.setUpdateTime(DateUtils.getNowDate()); + return aiBannerMapper.updateById(aiBanner); + } + + /** + * 批量删除banner管理 + * + * @param ids 需要删除的banner管理主键 + * @return 结果 + */ + @Override + public int deleteAiBannerByIds(Long[] ids) + { + return aiBannerMapper.deleteAiBannerByIds(ids); + } + + /** + * 删除banner管理信息 + * + * @param id banner管理主键 + * @return 结果 + */ + @Override + public int deleteAiBannerById(Long id) + { + return aiBannerMapper.deleteAiBannerById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceImpl.java new file mode 100644 index 0000000..ed68a7a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceImpl.java @@ -0,0 +1,155 @@ +package com.ruoyi.ai.service.impl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.AiImage; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiCustomerMapper; +import com.ruoyi.ai.domain.AiCustomer; +import com.ruoyi.ai.service.IAiCustomerService; + +/** + * AI-客户配置Service业务层处理 + * + * @author shi + * @date 2025-11-26 + */ +@Service +public class AiCustomerServiceImpl implements IAiCustomerService { + + @Autowired + private AiCustomerMapper aiCustomerMapper; + + /** + * 查询AI-客户配置 + * + * @param id AI-客户配置主键 + * @return AI-客户配置 + */ + @Override + public AiCustomer selectAiCustomerById(Long id) { + AiCustomer customer = aiCustomerMapper.selectById(id); + if (StringUtils.isNotEmpty(customer.getBannerUrl())) { + customer.setBannerUrls(AiImage.getList(customer.getBannerUrl())); + customer.setBannerUrl(null); + } + if (StringUtils.isNotEmpty(customer.getBanner1Url())) { + customer.setBanner1Urls(AiImage.getList(customer.getBanner1Url())); + customer.setBanner1Url(null); + } + return customer; + } + + /** + * 查询AI-客户配置列表 + * + * @param aiCustomer AI-客户配置 + * @return AI-客户配置 + */ + @Override + public List selectAiCustomerList(AiCustomer aiCustomer) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiCustomer); + query.orderByDesc(AiCustomer::getId); + query.eq(AiCustomer::getDelFlag, "0"); + List aiCustomers = aiCustomerMapper.selectList(query); + for (AiCustomer customer : aiCustomers) { + if (StringUtils.isNotEmpty(customer.getBannerUrl())) { + customer.setBannerUrls(AiImage.getList(customer.getBannerUrl())); + } + if (StringUtils.isNotEmpty(customer.getBanner1Url())) { + customer.setBannerUrls(AiImage.getList(customer.getBanner1Url())); + } + } + return aiCustomers; + } + + /** + * 分页查询AI-客户配置列表 + * + * @param aiCustomer AI-客户配置 + * @return AI-客户配置 + */ + @Override + public IPage selectAiCustomerPage(Page page, AiCustomer aiCustomer) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiCustomer); + query.eq(AiCustomer::getDelFlag, "0"); + return aiCustomerMapper.selectPage(page, query); + } + + /** + * 新增AI-客户配置 + * + * @param aiCustomer AI-客户配置 + * @return 结果 + */ + @Override + public int insertAiCustomer(AiCustomer aiCustomer) { + aiCustomer.setDelFlag("0"); + aiCustomer.setCreateBy(SecurityUtils.getUsername()); + aiCustomer.setCreateTime(DateUtils.getNowDate()); + if (aiCustomer.getBannerUrls() != null && aiCustomer.getBannerUrls().size() > 0) { + String bannerUrl = AiImage.getUrl(aiCustomer.getBannerUrls()); + aiCustomer.setBannerUrl(bannerUrl); + } + if (aiCustomer.getBanner1Urls() != null && aiCustomer.getBanner1Urls().size() > 0) { + String banner1Url = AiImage.getUrl(aiCustomer.getBanner1Urls()); + aiCustomer.setBanner1Url(banner1Url); + } + return aiCustomerMapper.insert(aiCustomer); + } + + /** + * 修改AI-客户配置 + * + * @param aiCustomer AI-客户配置 + * @return 结果 + */ + @Override + public int updateAiCustomer(AiCustomer aiCustomer) { + aiCustomer.setUpdateBy(SecurityUtils.getUsername()); + aiCustomer.setUpdateTime(DateUtils.getNowDate()); + if (aiCustomer.getBannerUrls() != null && aiCustomer.getBannerUrls().size() > 0) { + String bannerUrl = AiImage.getUrl(aiCustomer.getBannerUrls()); + aiCustomer.setBannerUrl(bannerUrl); + } + if (aiCustomer.getBanner1Urls() != null && aiCustomer.getBanner1Urls().size() > 0) { + String banner1Url = AiImage.getUrl(aiCustomer.getBanner1Urls()); + aiCustomer.setBanner1Url(banner1Url); + } + return aiCustomerMapper.updateById(aiCustomer); + } + + /** + * 批量删除AI-客户配置 + * + * @param ids 需要删除的AI-客户配置主键 + * @return 结果 + */ + @Override + public int deleteAiCustomerByIds(Long[] ids) + { + return aiCustomerMapper.deleteAiCustomerByIds(ids); + } + + /** + * 删除AI-客户配置信息 + * + * @param id AI-客户配置主键 + * @return 结果 + */ + @Override + public int deleteAiCustomerById(Long id) + { + return aiCustomerMapper.deleteAiCustomerById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceServiceImpl.java new file mode 100644 index 0000000..f073c44 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiCustomerServiceServiceImpl.java @@ -0,0 +1,117 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiCustomerServiceMapper; +import com.ruoyi.ai.domain.AiCustomerService; +import com.ruoyi.ai.service.IAiCustomerServiceService; + +/** + * 客服管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiCustomerServiceServiceImpl implements IAiCustomerServiceService { + + @Autowired + private AiCustomerServiceMapper aiCustomerServiceMapper; + + /** + * 查询客服管理 + * + * @param id 客服管理主键 + * @return 客服管理 + */ + @Override + public AiCustomerService selectAiCustomerServiceById(Long id) { + return aiCustomerServiceMapper.selectById(id); + } + + /** + * 查询客服管理列表 + * + * @param aiCustomerService 客服管理 + * @return 客服管理 + */ + @Override + public List selectAiCustomerServiceList(AiCustomerService aiCustomerService) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiCustomerService); + query.orderByDesc(AiCustomerService::getId); + query.eq(AiCustomerService::getDelFlag, "0"); + return aiCustomerServiceMapper.selectList(query); + } + + /** + * 分页查询客服管理列表 + * + * @param aiCustomerService 客服管理 + * @return 客服管理 + */ + @Override + public IPage selectAiCustomerServicePage(Page page, AiCustomerService aiCustomerService) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiCustomerService); + query.eq(AiCustomerService::getDelFlag, "0"); + return aiCustomerServiceMapper.selectPage(page, query); + } + + /** + * 新增客服管理 + * + * @param aiCustomerService 客服管理 + * @return 结果 + */ + @Override + public int insertAiCustomerService(AiCustomerService aiCustomerService) { + aiCustomerService.setDelFlag("0"); + aiCustomerService.setCreateBy(SecurityUtils.getUsername()); + aiCustomerService.setCreateTime(DateUtils.getNowDate()); + return aiCustomerServiceMapper.insert(aiCustomerService); + } + + /** + * 修改客服管理 + * + * @param aiCustomerService 客服管理 + * @return 结果 + */ + @Override + public int updateAiCustomerService(AiCustomerService aiCustomerService) { + aiCustomerService.setUpdateBy(SecurityUtils.getUsername()); + aiCustomerService.setUpdateTime(DateUtils.getNowDate()); + return aiCustomerServiceMapper.updateById(aiCustomerService); + } + + /** + * 批量删除客服管理 + * + * @param ids 需要删除的客服管理主键 + * @return 结果 + */ + @Override + public int deleteAiCustomerServiceByIds(Long[] ids) + { + return aiCustomerServiceMapper.deleteAiCustomerServiceByIds(ids); + } + + /** + * 删除客服管理信息 + * + * @param id 客服管理主键 + * @return 结果 + */ + @Override + public int deleteAiCustomerServiceById(Long id) + { + return aiCustomerServiceMapper.deleteAiCustomerServiceById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiHelpServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiHelpServiceImpl.java new file mode 100644 index 0000000..95daaed --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiHelpServiceImpl.java @@ -0,0 +1,117 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiHelpMapper; +import com.ruoyi.ai.domain.AiHelp; +import com.ruoyi.ai.service.IAiHelpService; + +/** + * 【帮助管理】Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiHelpServiceImpl implements IAiHelpService { + + @Autowired + private AiHelpMapper aiHelpMapper; + + /** + * 查询【帮助管理】 + * + * @param id 【帮助管理】主键 + * @return 【帮助管理】 + */ + @Override + public AiHelp selectAiHelpById(Long id) { + return aiHelpMapper.selectById(id); + } + + /** + * 查询【帮助管理】列表 + * + * @param aiHelp 【帮助管理】 + * @return 【帮助管理】 + */ + @Override + public List selectAiHelpList(AiHelp aiHelp) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiHelp); + query.orderByDesc(AiHelp::getId); + query.eq(AiHelp::getDelFlag, "0"); + return aiHelpMapper.selectList(query); + } + + /** + * 分页查询【帮助管理】列表 + * + * @param aiHelp 【帮助管理】 + * @return 【帮助管理】 + */ + @Override + public IPage selectAiHelpPage(Page page, AiHelp aiHelp) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiHelp); + query.eq(AiHelp::getDelFlag, "0"); + return aiHelpMapper.selectPage(page, query); + } + + /** + * 新增【帮助管理】 + * + * @param aiHelp 【帮助管理】 + * @return 结果 + */ + @Override + public int insertAiHelp(AiHelp aiHelp) { + aiHelp.setDelFlag("0"); + aiHelp.setCreateBy(SecurityUtils.getUsername()); + aiHelp.setCreateTime(DateUtils.getNowDate()); + return aiHelpMapper.insert(aiHelp); + } + + /** + * 修改【帮助管理】 + * + * @param aiHelp 【帮助管理】 + * @return 结果 + */ + @Override + public int updateAiHelp(AiHelp aiHelp) { + aiHelp.setUpdateBy(SecurityUtils.getUsername()); + aiHelp.setUpdateTime(DateUtils.getNowDate()); + return aiHelpMapper.updateById(aiHelp); + } + + /** + * 批量删除【帮助管理】 + * + * @param ids 需要删除的【帮助管理】主键 + * @return 结果 + */ + @Override + public int deleteAiHelpByIds(Long[] ids) + { + return aiHelpMapper.deleteAiHelpByIds(ids); + } + + /** + * 删除【帮助管理】信息 + * + * @param id 【帮助管理】主键 + * @return 结果 + */ + @Override + public int deleteAiHelpById(Long id) + { + return aiHelpMapper.deleteAiHelpById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiManagerServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiManagerServiceImpl.java new file mode 100644 index 0000000..349124f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiManagerServiceImpl.java @@ -0,0 +1,129 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiManagerMapper; +import com.ruoyi.ai.domain.AiManager; +import com.ruoyi.ai.service.IAiManagerService; + +/** + * AI管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiManagerServiceImpl implements IAiManagerService { + + @Autowired + private AiManagerMapper aiManagerMapper; + + /** + * 查询AI管理 + * + * @param id AI管理主键 + * @return AI管理 + */ + @Override + public AiManager selectAiManagerById(Long id) { + return aiManagerMapper.selectById(id); + } + + /** + * 查询AI管理列表 + * + * @param aiManager AI管理 + * @return AI管理 + */ + @Override + public List selectAiManagerList(AiManager aiManager) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiManager); + query.eq(AiManager::getDelFlag, "0"); + List aiManagers = aiManagerMapper.selectList(query); + return aiManagers; + } + + /** + * 分页查询AI管理列表 + * + * @param aiManager AI管理 + * @return AI管理 + */ + @Override + public IPage selectAiManagerPage(Page page, AiManager aiManager) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiManager); + query.eq(AiManager::getDelFlag, "0"); + return aiManagerMapper.selectPage(page, query); + } + + /** + * 新增AI管理 + * + * @param aiManager AI管理 + * @return 结果 + */ + @Override + public int insertAiManager(AiManager aiManager) { + aiManager.setDelFlag("0"); + aiManager.setCreateBy(SecurityUtils.getUsername()); + aiManager.setCreateTime(DateUtils.getNowDate()); + return aiManagerMapper.insert(aiManager); + } + + /** + * 修改AI管理 + * + * @param aiManager AI管理 + * @return 结果 + */ + @Override + public int updateAiManager(AiManager aiManager) { + aiManager.setUpdateBy(SecurityUtils.getUsername()); + aiManager.setUpdateTime(DateUtils.getNowDate()); + return aiManagerMapper.updateById(aiManager); + } + + /** + * 批量删除AI管理 + * + * @param ids 需要删除的AI管理主键 + * @return 结果 + */ + @Override + public int deleteAiManagerByIds(Long[] ids) + { + return aiManagerMapper.deleteAiManagerByIds(ids); + } + + /** + * 删除AI管理信息 + * + * @param id AI管理主键 + * @return 结果 + */ + @Override + public int deleteAiManagerById(Long id) + { + return aiManagerMapper.deleteAiManagerById(id); + } + + @Override + public int updateAiStatus(AiManager aiManager) { + return aiManagerMapper.updateById(aiManager); + } + + @Override + public AiManager selectAiManagerByType(String aiType) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("type", aiType); + return aiManagerMapper.selectOne(queryWrapper); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiOrderServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiOrderServiceImpl.java new file mode 100644 index 0000000..48b23a3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiOrderServiceImpl.java @@ -0,0 +1,228 @@ +package com.ruoyi.ai.service.impl; + +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.List; +import java.util.UUID; + +import cn.hutool.core.util.NumberUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.AiManager; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.service.IAiManagerService; +import com.ruoyi.ai.service.IAiStatisticsService; +import com.ruoyi.ai.service.IAiUserService; +import com.ruoyi.common.constant.BalanceChangerConstants; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.MessageUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiOrderMapper; +import com.ruoyi.ai.domain.AiOrder; +import com.ruoyi.ai.service.IAiOrderService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 订单管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiOrderServiceImpl implements IAiOrderService { + + @Autowired + private AiOrderMapper aiOrderMapper; + + @Autowired + private IAiManagerService aiManagerService; + + @Autowired + private IAiUserService aiUserService; + + @Autowired + private IAiStatisticsService aiStatisticsService; + + + /** + * 查询订单管理 + * + * @param id 订单管理主键 + * @return 订单管理 + */ + @Override + public AiOrder selectAiOrderById(Long id) { + return aiOrderMapper.selectById(id); + } + + /** + * 查询订单管理列表 + * + * @param aiOrder 订单管理 + * @return 订单管理 + */ + @Override + public List selectAiOrderList(AiOrder aiOrder) { + return aiOrderMapper.selectAiOrderList(aiOrder); + } + + /** + * 分页查询订单管理列表 + * + * @param aiOrder 订单管理 + * @return 订单管理 + */ + @Override + public IPage selectAiOrderPage(Page page, AiOrder aiOrder) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiOrder); + query.eq(AiOrder::getDelFlag, "0"); + return aiOrderMapper.selectPage(page, query); + } + + /** + * 新增订单管理 + * + * @param aiOrder 订单管理 + * @return 结果 + */ + @Override + public int insertAiOrder(AiOrder aiOrder) { + aiOrder.setDelFlag("0"); + aiOrder.setCreateBy(SecurityUtils.getUsername()); + aiOrder.setCreateTime(DateUtils.getNowDate()); + return aiOrderMapper.insert(aiOrder); + } + + /** + * 修改订单管理 + * + * @param aiOrder 订单管理 + * @return 结果 + */ + @Override + public int updateAiOrder(AiOrder aiOrder) { +// aiOrder.setUpdateBy(SecurityUtils.getUsername()); + aiOrder.setUpdateTime(DateUtils.getNowDate()); + return aiOrderMapper.updateById(aiOrder); + } + + /** + * 批量删除订单管理 + * + * @param ids 需要删除的订单管理主键 + * @return 结果 + */ + @Override + public int deleteAiOrderByIds(Long[] ids) + { + return aiOrderMapper.deleteAiOrderByIds(ids); + } + + /** + * 删除订单管理信息 + * + * @param id 订单管理主键 + * @return 结果 + */ + @Override + public int deleteAiOrderById(Long id) + { + return aiOrderMapper.deleteAiOrderById(id); + } + + /** + * 生成订单 + * @param aiType 对应的AI类型 + * @return + */ + @Override + @Transactional + public AiOrder getAiOrder(String aiType) { + AiManager aiManager = aiManagerService.selectAiManagerByType(aiType); + if (aiManager == null) { + throw new ServiceException("Corresponding functionType does not exist", HttpStatus.BAD_REQUEST); + } + // 判断用户余额是否足够 + AiUser aiUser = aiUserService.selectAiUserById(SecurityUtils.getAiUserId()); + if (aiUser.getBalance().compareTo(aiManager.getPrice()) < 0) { + return null; + } + AiOrder aiOrder = new AiOrder(); + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyyMMdd").format(new Date()); + String orderno = dateTime + uuid; + aiOrder.setOrderNum(orderno); + aiOrder.setUserId(SecurityUtils.getAiUserId()); + aiOrder.setType(aiType); + aiOrder.setResult(null); + aiOrder.setAmount(aiManager.getPrice()); + aiOrder.setStatus(0); + aiOrder.setSource(aiUser.getSource()); + aiOrderMapper.insert(aiOrder); + // 执行余额变更 + aiUserService.addUserBalance(SecurityUtils.getAiUserId(), NumberUtil.mul(-1, aiManager.getPrice()), getChangerType(aiType)); + return aiOrder; + } + + @Override + @Transactional + public void orderFailure(AiOrder aiOrder) { + aiOrder.setStatus(2); + String remark = MessageUtils.message("order.number.generation.failed", aiOrder.getOrderNum()); + aiOrder.setRemark(remark); + aiOrderMapper.updateById(aiOrder); + aiUserService.addUserBalance(SecurityUtils.getAiUserId(), aiOrder.getAmount(), BalanceChangerConstants.REFUND, remark); + } + + @Override + @Transactional + public void orderSuccess(AiOrder aiOrder) { + aiOrder.setStatus(1); + aiOrderMapper.updateById(aiOrder); + AiStatistics aiStatistics = new AiStatistics(); + aiStatistics.setSource(aiOrder.getSource()); + aiStatistics.setGenerateCount(1l); + // 新增生成数量 + aiStatisticsService.saveOrUpdateData(aiStatistics); + } + + @Override + public AiOrder getAiOrderByResult(String result) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(); + query.eq(AiOrder::getDelFlag, "0"); + query.eq(AiOrder::getResult, result); + return aiOrderMapper.selectOne(query); + } + + public int getChangerType(String aiType) { + switch (aiType) { + case "11": + return BalanceChangerConstants.IMAGE_TO_IMAGE_1; + case "12": + return BalanceChangerConstants.IMAGE_TO_IMAGE_2; + case "13": + return BalanceChangerConstants.ONE_CLICK_FACE_SWAP; + case "1": + return BalanceChangerConstants.QUICK_IMAGE_GENERATION; + case "21": + return BalanceChangerConstants.QUICK_VIDEO_GENERATION; + default: + return -1; + } + } + + @Override + public BigDecimal getSumAmountByUserId(String userId) { + return aiOrderMapper.getSumAmountByUserId(userId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRebateRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRebateRecordServiceImpl.java new file mode 100644 index 0000000..ab880fc --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRebateRecordServiceImpl.java @@ -0,0 +1,124 @@ +package com.ruoyi.ai.service.impl; + +import java.math.BigDecimal; +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiRebateRecordMapper; +import com.ruoyi.ai.domain.AiRebateRecord; +import com.ruoyi.ai.service.IAiRebateRecordService; + +/** + * 返佣记录Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiRebateRecordServiceImpl implements IAiRebateRecordService { + + @Autowired + private AiRebateRecordMapper aiRebateRecordMapper; + + /** + * 查询返佣记录 + * + * @param id 返佣记录主键 + * @return 返佣记录 + */ + @Override + public AiRebateRecord selectAiRebateRecordById(Long id) { + return aiRebateRecordMapper.selectById(id); + } + + /** + * 查询返佣记录列表 + * + * @param aiRebateRecord 返佣记录 + * @return 返佣记录 + */ + @Override + public List selectAiRebateRecordList(AiRebateRecord aiRebateRecord) { + return aiRebateRecordMapper.selectAiRebateRecordList(aiRebateRecord); + } + + /** + * 分页查询返佣记录列表 + * + * @param aiRebateRecord 返佣记录 + * @return 返佣记录 + */ + @Override + public IPage selectAiRebateRecordPage(Page page, AiRebateRecord aiRebateRecord) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRebateRecord); + query.eq(AiRebateRecord::getDelFlag, "0"); + return aiRebateRecordMapper.selectPage(page, query); + } + + /** + * 新增返佣记录 + * + * @param aiRebateRecord 返佣记录 + * @return 结果 + */ + @Override + public int insertAiRebateRecord(AiRebateRecord aiRebateRecord) { + aiRebateRecord.setDelFlag("0"); + aiRebateRecord.setCreateTime(DateUtils.getNowDate()); + return aiRebateRecordMapper.insert(aiRebateRecord); + } + + /** + * 修改返佣记录 + * + * @param aiRebateRecord 返佣记录 + * @return 结果 + */ + @Override + public int updateAiRebateRecord(AiRebateRecord aiRebateRecord) { + aiRebateRecord.setUpdateBy(SecurityUtils.getUsername()); + aiRebateRecord.setUpdateTime(DateUtils.getNowDate()); + return aiRebateRecordMapper.updateById(aiRebateRecord); + } + + /** + * 批量删除返佣记录 + * + * @param ids 需要删除的返佣记录主键 + * @return 结果 + */ + @Override + public int deleteAiRebateRecordByIds(Long[] ids) + { + return aiRebateRecordMapper.deleteAiRebateRecordByIds(ids); + } + + /** + * 删除返佣记录信息 + * + * @param id 返佣记录主键 + * @return 结果 + */ + @Override + public int deleteAiRebateRecordById(Long id) + { + return aiRebateRecordMapper.deleteAiRebateRecordById(id); + } + + @Override + public BigDecimal getTotalAmount(AiRebateRecord aiRebateRecord) { + return aiRebateRecordMapper.getTotalAmount(aiRebateRecord); + } + + @Override + public List getAiRebateRecordList(AiRebateRecord aiRebateRecord) { + return aiRebateRecordMapper.getAiRebateRecordList(aiRebateRecord); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftGearServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftGearServiceImpl.java new file mode 100644 index 0000000..36ee7a3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftGearServiceImpl.java @@ -0,0 +1,122 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiRechargeGiftGearMapper; +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import com.ruoyi.ai.service.IAiRechargeGiftGearService; + +/** + * 充值赠送活动档位配置Service业务层处理 + * + * @author shi + * @date 2025-11-20 + */ +@Service +public class AiRechargeGiftGearServiceImpl implements IAiRechargeGiftGearService { + + @Autowired + private AiRechargeGiftGearMapper aiRechargeGiftGearMapper; + + /** + * 查询充值赠送活动档位配置 + * + * @param id 充值赠送活动档位配置主键 + * @return 充值赠送活动档位配置 + */ + @Override + public AiRechargeGiftGear selectAiRechargeGiftGearById(Long id) { + return aiRechargeGiftGearMapper.selectById(id); + } + + /** + * 查询充值赠送活动档位配置列表 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 充值赠送活动档位配置 + */ + @Override + public List selectAiRechargeGiftGearList(AiRechargeGiftGear aiRechargeGiftGear) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRechargeGiftGear); + query.orderByDesc(AiRechargeGiftGear::getId); + query.eq(AiRechargeGiftGear::getDelFlag, "0"); + return aiRechargeGiftGearMapper.selectList(query); + } + + /** + * 分页查询充值赠送活动档位配置列表 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 充值赠送活动档位配置 + */ + @Override + public IPage selectAiRechargeGiftGearPage(Page page, AiRechargeGiftGear aiRechargeGiftGear) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRechargeGiftGear); + query.eq(AiRechargeGiftGear::getDelFlag, "0"); + return aiRechargeGiftGearMapper.selectPage(page, query); + } + + /** + * 新增充值赠送活动档位配置 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 结果 + */ + @Override + public int insertAiRechargeGiftGear(AiRechargeGiftGear aiRechargeGiftGear) { + aiRechargeGiftGear.setDelFlag("0"); + aiRechargeGiftGear.setCreateBy(SecurityUtils.getUsername()); + aiRechargeGiftGear.setCreateTime(DateUtils.getNowDate()); + return aiRechargeGiftGearMapper.insert(aiRechargeGiftGear); + } + + /** + * 修改充值赠送活动档位配置 + * + * @param aiRechargeGiftGear 充值赠送活动档位配置 + * @return 结果 + */ + @Override + public int updateAiRechargeGiftGear(AiRechargeGiftGear aiRechargeGiftGear) { + aiRechargeGiftGear.setUpdateBy(SecurityUtils.getUsername()); + aiRechargeGiftGear.setUpdateTime(DateUtils.getNowDate()); + return aiRechargeGiftGearMapper.updateById(aiRechargeGiftGear); + } + + /** + * 批量删除充值赠送活动档位配置 + * + * @param ids 需要删除的充值赠送活动档位配置主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftGearByIds(Long[] ids) + { + return aiRechargeGiftGearMapper.deleteAiRechargeGiftGearByIds(ids); + } + + /** + * 删除充值赠送活动档位配置信息 + * + * @param id 充值赠送活动档位配置主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftGearById(Long id) + { + return aiRechargeGiftGearMapper.deleteAiRechargeGiftGearById(id); + } + + @Override + public List getGiftGear() { + return aiRechargeGiftGearMapper.getGiftGear(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftRecordServiceImpl.java new file mode 100644 index 0000000..472ce64 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftRecordServiceImpl.java @@ -0,0 +1,114 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiRechargeGiftRecordMapper; +import com.ruoyi.ai.domain.AiRechargeGiftRecord; +import com.ruoyi.ai.service.IAiRechargeGiftRecordService; + +/** + * 充值赠送记录Service业务层处理 + * + * @author shi + * @date 2025-11-20 + */ +@Service +public class AiRechargeGiftRecordServiceImpl implements IAiRechargeGiftRecordService { + + @Autowired + private AiRechargeGiftRecordMapper aiRechargeGiftRecordMapper; + + /** + * 查询充值赠送记录 + * + * @param id 充值赠送记录主键 + * @return 充值赠送记录 + */ + @Override + public AiRechargeGiftRecord selectAiRechargeGiftRecordById(Long id) { + return aiRechargeGiftRecordMapper.selectById(id); + } + + /** + * 查询充值赠送记录列表 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 充值赠送记录 + */ + @Override + public List selectAiRechargeGiftRecordList(AiRechargeGiftRecord aiRechargeGiftRecord) { + return aiRechargeGiftRecordMapper.selectAiRechargeGiftRecordList(aiRechargeGiftRecord); + } + + /** + * 分页查询充值赠送记录列表 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 充值赠送记录 + */ + @Override + public IPage selectAiRechargeGiftRecordPage(Page page, AiRechargeGiftRecord aiRechargeGiftRecord) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRechargeGiftRecord); + query.eq(AiRechargeGiftRecord::getDelFlag, "0"); + return aiRechargeGiftRecordMapper.selectPage(page, query); + } + + /** + * 新增充值赠送记录 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 结果 + */ + @Override + public int insertAiRechargeGiftRecord(AiRechargeGiftRecord aiRechargeGiftRecord) { + aiRechargeGiftRecord.setDelFlag("0"); +// aiRechargeGiftRecord.setCreateBy(SecurityUtils.getUsername()); + aiRechargeGiftRecord.setCreateTime(DateUtils.getNowDate()); + return aiRechargeGiftRecordMapper.insert(aiRechargeGiftRecord); + } + + /** + * 修改充值赠送记录 + * + * @param aiRechargeGiftRecord 充值赠送记录 + * @return 结果 + */ + @Override + public int updateAiRechargeGiftRecord(AiRechargeGiftRecord aiRechargeGiftRecord) { + aiRechargeGiftRecord.setUpdateBy(SecurityUtils.getUsername()); + aiRechargeGiftRecord.setUpdateTime(DateUtils.getNowDate()); + return aiRechargeGiftRecordMapper.updateById(aiRechargeGiftRecord); + } + + /** + * 批量删除充值赠送记录 + * + * @param ids 需要删除的充值赠送记录主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftRecordByIds(Long[] ids) + { + return aiRechargeGiftRecordMapper.deleteAiRechargeGiftRecordByIds(ids); + } + + /** + * 删除充值赠送记录信息 + * + * @param id 充值赠送记录主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftRecordById(Long id) + { + return aiRechargeGiftRecordMapper.deleteAiRechargeGiftRecordById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftServiceImpl.java new file mode 100644 index 0000000..bbb1c00 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeGiftServiceImpl.java @@ -0,0 +1,150 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.AiRechargeGiftGear; +import com.ruoyi.ai.mapper.AiRechargeGiftGearMapper; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiRechargeGiftMapper; +import com.ruoyi.ai.domain.AiRechargeGift; +import com.ruoyi.ai.service.IAiRechargeGiftService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 充值赠送活动Service业务层处理 + * + * @author shi + * @date 2025-11-20 + */ +@Service +public class AiRechargeGiftServiceImpl implements IAiRechargeGiftService { + + @Autowired + private AiRechargeGiftMapper aiRechargeGiftMapper; + + @Autowired + private AiRechargeGiftGearMapper aiRechargeGiftGearMapper; + + /** + * 查询充值赠送活动 + * + * @param id 充值赠送活动主键 + * @return 充值赠送活动 + */ + @Override + public AiRechargeGift selectAiRechargeGiftById(Long id) { + return aiRechargeGiftMapper.selectAiRechargeGiftById(id); + } + + /** + * 查询充值赠送活动列表 + * + * @param aiRechargeGift 充值赠送活动 + * @return 充值赠送活动 + */ + @Override + public List selectAiRechargeGiftList(AiRechargeGift aiRechargeGift) { + return aiRechargeGiftMapper.selectAiRechargeGiftList(aiRechargeGift); + } + + /** + * 分页查询充值赠送活动列表 + * + * @param aiRechargeGift 充值赠送活动 + * @return 充值赠送活动 + */ + @Override + public IPage selectAiRechargeGiftPage(Page page, AiRechargeGift aiRechargeGift) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRechargeGift); + query.eq(AiRechargeGift::getDelFlag, "0"); + return aiRechargeGiftMapper.selectPage(page, query); + } + + /** + * 新增充值赠送活动 + * + * @param aiRechargeGift 充值赠送活动 + * @return 结果 + */ + @Override + @Transactional + public int insertAiRechargeGift(AiRechargeGift aiRechargeGift) { + aiRechargeGift.setDelFlag("0"); + aiRechargeGift.setCreateBy(SecurityUtils.getUsername()); + aiRechargeGift.setCreateTime(DateUtils.getNowDate()); + int insert = aiRechargeGiftMapper.insert(aiRechargeGift); + for (AiRechargeGiftGear giftGear : aiRechargeGift.getGearList()) { + giftGear.setRechargeId(aiRechargeGift.getId()); + } + aiRechargeGiftGearMapper.insertBatch(aiRechargeGift.getGearList()); + return insert; + } + + /** + * 修改充值赠送活动 + * + * @param aiRechargeGift 充值赠送活动 + * @return 结果 + */ + @Override + @Transactional + public int updateAiRechargeGift(AiRechargeGift aiRechargeGift) { + aiRechargeGift.setUpdateBy(SecurityUtils.getUsername()); + aiRechargeGift.setUpdateTime(DateUtils.getNowDate()); + // 删除原有档位 + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq("recharge_id", aiRechargeGift.getId()); + aiRechargeGiftGearMapper.delete(wrapper); + for (AiRechargeGiftGear giftGear : aiRechargeGift.getGearList()) { + giftGear.setRechargeId(aiRechargeGift.getId()); + } + aiRechargeGiftGearMapper.insertBatch(aiRechargeGift.getGearList()); + return aiRechargeGiftMapper.updateById(aiRechargeGift); + } + + /** + * 批量删除充值赠送活动 + * + * @param ids 需要删除的充值赠送活动主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftByIds(Long[] ids) + { + return aiRechargeGiftMapper.deleteAiRechargeGiftByIds(ids); + } + + /** + * 删除充值赠送活动信息 + * + * @param id 充值赠送活动主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeGiftById(Long id) + { + return aiRechargeGiftMapper.deleteAiRechargeGiftById(id); + } + + @Override + @Transactional + public int changeUserStatus(AiRechargeGift aiRechargeGift) { +// if (aiRechargeGift.getStatus() == 0) { +// // 设置其他状态禁用 +// aiRechargeGiftMapper.updateAllStatus(); +// } + return aiRechargeGiftMapper.updateById(aiRechargeGift); + } + + @Override + public boolean isActivityAvailable(Long rechargeId) { + return aiRechargeGiftMapper.isActivityAvailable(rechargeId); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeServiceImpl.java new file mode 100644 index 0000000..19dd73c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiRechargeServiceImpl.java @@ -0,0 +1,216 @@ +package com.ruoyi.ai.service.impl; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import cn.hutool.core.util.NumberUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.domain.enums.AiConfigEnum; +import com.ruoyi.ai.service.*; +import com.ruoyi.common.constant.BalanceChangerConstants; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.system.domain.SysConfig; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiRechargeMapper; +import org.springframework.transaction.annotation.Transactional; + +/** + * 充值管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +@Slf4j +public class AiRechargeServiceImpl implements IAiRechargeService { + + @Autowired + private AiRechargeMapper aiRechargeMapper; + @Autowired + private IAiUserService aiUserService; + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + @Autowired + private IAiRechargeGiftService aiRechargeGiftService; + @Autowired + private IAiStatisticsService statisticsService; + @Autowired + private IAiRechargeGiftRecordService aiRechargeGiftRecordService; + + /** + * 查询充值管理 + * + * @param id 充值管理主键 + * @return 充值管理 + */ + @Override + public AiRecharge selectAiRechargeById(Long id) { + return aiRechargeMapper.selectById(id); + } + + /** + * 查询充值管理列表 + * + * @param aiRecharge 充值管理 + * @return 充值管理 + */ + @Override + public List selectAiRechargeList(AiRecharge aiRecharge) { + return aiRechargeMapper.selectAiRechargeList(aiRecharge); + } + + @Override + public List getAiRechargeList(AiRecharge aiRecharge) { + return aiRechargeMapper.getAiRechargeList(aiRecharge); + } + + @Override + public BigDecimal getTotalAmount(AiRecharge aiRecharge) { + return aiRechargeMapper.getTotalAmount(aiRecharge); + } + + @Override + @Transactional + public void addRecharge(String orderNo) { + // 设置到账时间 + AiRecharge aiRecharge = this.getAiRechargeByOrderNum(orderNo); + Date creditedTime = aiRecharge.getCreditedTime(); + if (creditedTime != null) { + log.error("支付回调重复 {}", orderNo); + return; + } + Long gearId = aiRecharge.getGearId(); + AiRechargeGiftGear aiRechargeGiftGear = aiRechargeGiftGearService.selectAiRechargeGiftGearById(gearId); + AiRechargeGift aiRechargeGift = aiRechargeGiftService.selectAiRechargeGiftById(aiRechargeGiftGear.getRechargeId()); + + // 如果是首充活动就判断是否是第一次充值 + boolean isFristRecharge = true; + if (aiRechargeGift.getIsFristRecharge().equals("Y")) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("user_id", aiRecharge.getUserId()); + queryWrapper.isNotNull("credited_time"); + isFristRecharge = aiRechargeMapper.selectCount(queryWrapper) == 0; + } + + BigDecimal amount = aiRechargeGiftGear.getGiftAmount(); + aiRecharge.setCreditedTime(DateUtils.getNowDate()); + aiRecharge.setGiftAmount(amount); + + + + + // 新增用户余额 + aiUserService.addUserBalance(aiRecharge.getUserId(), amount, BalanceChangerConstants.RECHARGE); + // 处理返佣 (根据充值金额计算返佣) + aiUserService.handleRebate(aiRecharge.getUserId(), aiRechargeGiftGear.getRechargeAmount()); + // 新增充值统计 + AiStatistics aiStatistics = new AiStatistics(); + aiStatistics.setSource(aiRecharge.getSource()); + aiStatistics.setRechargeAmount(amount); + statisticsService.saveOrUpdateData(aiStatistics); + + + // 处理赠送金额 + if (isFristRecharge && aiRecharge.getGearId() != null) { + // 查询活动是否过期 + boolean isAvailable = aiRechargeGiftService.isActivityAvailable(aiRechargeGiftGear.getRechargeId()); + if (isAvailable) { + aiRecharge.setGiveAmount(aiRechargeGiftGear.getGiveAmount()); + // 新增用户赠送余额 + aiUserService.addUserBalance(aiRecharge.getUserId(), aiRechargeGiftGear.getGiveAmount(), BalanceChangerConstants.RECHARGE_BONUS); + // 新增充值赠送记录 + AiRechargeGiftRecord aiRechargeGiftRecord = new AiRechargeGiftRecord(); + aiRechargeGiftRecord.setOrderNum(orderNo); + aiRechargeGiftRecord.setRechargeGearTitle(aiRechargeGiftGear.getTitle()); // 档位说明 + aiRechargeGiftRecord.setGearAmount(aiRechargeGiftGear.getRechargeAmount()); // 档位金额 + aiRechargeGiftRecord.setGiftAmount(aiRechargeGiftGear.getGiveAmount()); // 赠送金额 + aiRechargeGiftRecord.setUserId(aiRecharge.getUserId()); + aiRechargeGiftRecordService.insertAiRechargeGiftRecord(aiRechargeGiftRecord); + } + } + this.updateAiRecharge(aiRecharge); + } + + /** + * 分页查询充值管理列表 + * + * @param aiRecharge 充值管理 + * @return 充值管理 + */ + @Override + public IPage selectAiRechargePage(Page page, AiRecharge aiRecharge) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiRecharge); + query.eq(AiRecharge::getDelFlag, "0"); + return aiRechargeMapper.selectPage(page, query); + } + + /** + * 新增充值管理 + * + * @param aiRecharge 充值管理 + * @return 结果 + */ + @Override + public int insertAiRecharge(AiRecharge aiRecharge) { + aiRecharge.setDelFlag("0"); + aiRecharge.setCreateTime(DateUtils.getNowDate()); + + return aiRechargeMapper.insert(aiRecharge); + } + + /** + * 修改充值管理 + * + * @param aiRecharge 充值管理 + * @return 结果 + */ + @Override + public int updateAiRecharge(AiRecharge aiRecharge) { +// aiRecharge.setUpdateBy(SecurityUtils.getUsername()); + aiRecharge.setUpdateTime(DateUtils.getNowDate()); + return aiRechargeMapper.updateById(aiRecharge); + } + + /** + * 批量删除充值管理 + * + * @param ids 需要删除的充值管理主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeByIds(Long[] ids) { + return aiRechargeMapper.deleteAiRechargeByIds(ids); + } + + /** + * 删除充值管理信息 + * + * @param id 充值管理主键 + * @return 结果 + */ + @Override + public int deleteAiRechargeById(Long id) { + return aiRechargeMapper.deleteAiRechargeById(id); + } + + /** + * 通过订单号获取充值记录 + * + * @param orderno + * @return + */ + @Override + public AiRecharge getAiRechargeByOrderNum(String orderno) { + return aiRechargeMapper.getAiRechargeByOrderNum(orderno); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountRecordServiceImpl.java new file mode 100644 index 0000000..c607b21 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountRecordServiceImpl.java @@ -0,0 +1,120 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiSampleAmountRecordMapper; +import com.ruoyi.ai.domain.AiSampleAmountRecord; +import com.ruoyi.ai.service.IAiSampleAmountRecordService; + +/** + * 体验金领取记录Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiSampleAmountRecordServiceImpl implements IAiSampleAmountRecordService { + + @Autowired + private AiSampleAmountRecordMapper aiSampleAmountRecordMapper; + + /** + * 查询体验金领取记录 + * + * @param id 体验金领取记录主键 + * @return 体验金领取记录 + */ + @Override + public AiSampleAmountRecord selectAiSampleAmountRecordById(Long id) { + return aiSampleAmountRecordMapper.selectById(id); + } + + /** + * 查询体验金领取记录列表 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 体验金领取记录 + */ + @Override + public List selectAiSampleAmountRecordList(AiSampleAmountRecord aiSampleAmountRecord) { + return aiSampleAmountRecordMapper.selectAiSampleAmountRecordList(aiSampleAmountRecord); + } + + /** + * 分页查询体验金领取记录列表 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 体验金领取记录 + */ + @Override + public IPage selectAiSampleAmountRecordPage(Page page, AiSampleAmountRecord aiSampleAmountRecord) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiSampleAmountRecord); + query.eq(AiSampleAmountRecord::getDelFlag, "0"); + return aiSampleAmountRecordMapper.selectPage(page, query); + } + + /** + * 新增体验金领取记录 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 结果 + */ + @Override + public int insertAiSampleAmountRecord(AiSampleAmountRecord aiSampleAmountRecord) { + aiSampleAmountRecord.setDelFlag("0"); + aiSampleAmountRecord.setCreateTime(DateUtils.getNowDate()); + return aiSampleAmountRecordMapper.insert(aiSampleAmountRecord); + } + + /** + * 修改体验金领取记录 + * + * @param aiSampleAmountRecord 体验金领取记录 + * @return 结果 + */ + @Override + public int updateAiSampleAmountRecord(AiSampleAmountRecord aiSampleAmountRecord) { +// aiSampleAmountRecord.setUpdateBy(SecurityUtils.getUsername()); + aiSampleAmountRecord.setUpdateTime(DateUtils.getNowDate()); + return aiSampleAmountRecordMapper.updateById(aiSampleAmountRecord); + } + + /** + * 批量删除体验金领取记录 + * + * @param ids 需要删除的体验金领取记录主键 + * @return 结果 + */ + @Override + public int deleteAiSampleAmountRecordByIds(Long[] ids) + { + return aiSampleAmountRecordMapper.deleteAiSampleAmountRecordByIds(ids); + } + + /** + * 删除体验金领取记录信息 + * + * @param id 体验金领取记录主键 + * @return 结果 + */ + @Override + public int deleteAiSampleAmountRecordById(Long id) + { + return aiSampleAmountRecordMapper.deleteAiSampleAmountRecordById(id); + } + + @Override + public AiSampleAmountRecord getAiSampleAmountRecordByUserId(String userId) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("user_id", userId); + return aiSampleAmountRecordMapper.selectOne(queryWrapper); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountServiceImpl.java new file mode 100644 index 0000000..54c6a94 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiSampleAmountServiceImpl.java @@ -0,0 +1,129 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiSampleAmountMapper; +import com.ruoyi.ai.domain.AiSampleAmount; +import com.ruoyi.ai.service.IAiSampleAmountService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 体验金活动管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiSampleAmountServiceImpl implements IAiSampleAmountService { + + @Autowired + private AiSampleAmountMapper aiSampleAmountMapper; + + /** + * 查询体验金活动管理 + * + * @param id 体验金活动管理主键 + * @return 体验金活动管理 + */ + @Override + public AiSampleAmount selectAiSampleAmountById(Long id) { + return aiSampleAmountMapper.selectById(id); + } + + /** + * 查询体验金活动管理列表 + * + * @param aiSampleAmount 体验金活动管理 + * @return 体验金活动管理 + */ + @Override + public List selectAiSampleAmountList(AiSampleAmount aiSampleAmount) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiSampleAmount); + query.orderByDesc(AiSampleAmount::getId); + query.eq(AiSampleAmount::getDelFlag, "0"); + return aiSampleAmountMapper.selectList(query); + } + + /** + * 分页查询体验金活动管理列表 + * + * @param aiSampleAmount 体验金活动管理 + * @return 体验金活动管理 + */ + @Override + public IPage selectAiSampleAmountPage(Page page, AiSampleAmount aiSampleAmount) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiSampleAmount); + query.eq(AiSampleAmount::getDelFlag, "0"); + return aiSampleAmountMapper.selectPage(page, query); + } + + /** + * 新增体验金活动管理 + * + * @param aiSampleAmount 体验金活动管理 + * @return 结果 + */ + @Override + public int insertAiSampleAmount(AiSampleAmount aiSampleAmount) { + aiSampleAmount.setDelFlag("0"); + aiSampleAmount.setCreateBy(SecurityUtils.getUsername()); + aiSampleAmount.setCreateTime(DateUtils.getNowDate()); + return aiSampleAmountMapper.insert(aiSampleAmount); + } + + /** + * 修改体验金活动管理 + * + * @param aiSampleAmount 体验金活动管理 + * @return 结果 + */ + @Override + public int updateAiSampleAmount(AiSampleAmount aiSampleAmount) { + aiSampleAmount.setUpdateBy(SecurityUtils.getUsername()); + aiSampleAmount.setUpdateTime(DateUtils.getNowDate()); + return aiSampleAmountMapper.updateById(aiSampleAmount); + } + + /** + * 批量删除体验金活动管理 + * + * @param ids 需要删除的体验金活动管理主键 + * @return 结果 + */ + @Override + public int deleteAiSampleAmountByIds(Long[] ids) + { + return aiSampleAmountMapper.deleteAiSampleAmountByIds(ids); + } + + /** + * 删除体验金活动管理信息 + * + * @param id 体验金活动管理主键 + * @return 结果 + */ + @Override + public int deleteAiSampleAmountById(Long id) + { + return aiSampleAmountMapper.deleteAiSampleAmountById(id); + } + + @Override + @Transactional + public int changeUserStatus(AiSampleAmount aiSampleAmount) { + if (aiSampleAmount.getStatus() == 0) { + // 设置全部为禁用状态 + aiSampleAmountMapper.updateAllStatus(); + } + return aiSampleAmountMapper.updateById(aiSampleAmount); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiStatisticsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiStatisticsServiceImpl.java new file mode 100644 index 0000000..8fb1b14 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiStatisticsServiceImpl.java @@ -0,0 +1,215 @@ +package com.ruoyi.ai.service.impl; + +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.MapValue; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiStatisticsMapper; +import com.ruoyi.ai.domain.AiStatistics; +import com.ruoyi.ai.service.IAiStatisticsService; + +/** + * ai-统计Service业务层处理 + * + * @author shi + * @date 2025-11-29 + */ +@Service +public class AiStatisticsServiceImpl implements IAiStatisticsService { + + @Autowired + private AiStatisticsMapper aiStatisticsMapper; + + /** + * 查询ai-统计 + * + * @param dateKey ai-统计主键 + * @return ai-统计 + */ + @Override + public AiStatistics selectAiStatisticsByDateKey(String dateKey) { + return aiStatisticsMapper.selectById(dateKey); + } + + /** + * 查询ai-统计列表 + * + * @param aiStatistics ai-统计 + * @return ai-统计 + */ + @Override + public List selectAiStatisticsList(AiStatistics aiStatistics) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiStatistics); + return aiStatisticsMapper.selectList(query); + } + + /** + * 分页查询ai-统计列表 + * + * @param aiStatistics ai-统计 + * @return ai-统计 + */ + @Override + public IPage selectAiStatisticsPage(Page page, AiStatistics aiStatistics) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiStatistics); + return aiStatisticsMapper.selectPage(page, query); + } + + /** + * 新增ai-统计 + * + * @param aiStatistics ai-统计 + * @return 结果 + */ + @Override + public int insertAiStatistics(AiStatistics aiStatistics) { + return aiStatisticsMapper.insert(aiStatistics); + } + + /** + * 修改ai-统计 + * + * @param aiStatistics ai-统计 + * @return 结果 + */ + @Override + public int updateAiStatistics(AiStatistics aiStatistics) { + return aiStatisticsMapper.updateById(aiStatistics); + } + + /** + * 批量删除ai-统计 + * + * @param dateKeys 需要删除的ai-统计主键 + * @return 结果 + */ + @Override + public int deleteAiStatisticsByDateKeys(String[] dateKeys) + { + return aiStatisticsMapper.deleteAiStatisticsByDateKeys(dateKeys); + } + + /** + * 删除ai-统计信息 + * + * @param dateKey ai-统计主键 + * @return 结果 + */ + @Override + public int deleteAiStatisticsByDateKey(String dateKey) + { + return aiStatisticsMapper.deleteAiStatisticsByDateKey(dateKey); + } + + @Override + public void saveOrUpdateData(AiStatistics aiStatistics) { + // 设置时间 为 yyyy-MM-dd HH:00:00 + aiStatistics.setDateKey(DateUtils.getCurrentHourStart()); + aiStatisticsMapper.saveOrUpdateData(aiStatistics); + } + + @Override + public AiStatistics getTitleTotal() { + return aiStatisticsMapper.getTitleTotal(); + } + + @Override + public List getTodayHourlyAddUserWithZero(String source) { + return aiStatisticsMapper.getTodayHourlyAddUserWithZero(source); + } + + @Override + public List getWeeklyAddUserCount(String source) { + return aiStatisticsMapper.getWeeklyAddUserCount(source); + } + + @Override + public List getMonthlyAddUserCount(String source) { + return aiStatisticsMapper.getMonthlyAddUserCount(source); + } + + @Override + public List getMonthlyAddUserCountByRange(String source, Date startDate, Date endDate) { + return aiStatisticsMapper.getMonthlyAddUserCountByRange(source, startDate, endDate); + } + + @Override + public List getTodayHourlyRechargeWithZero(String source) { + return aiStatisticsMapper.getTodayHourlyRechargeWithZero(source); + } + + @Override + public List getWeeklyRecharge(String source) { + return aiStatisticsMapper.getWeeklyRecharge(source); + } + + @Override + public List getMonthlyRecharge(String source) { + return aiStatisticsMapper.getMonthlyRecharge(source); + } + + @Override + public List getMonthlyRechargeByRange(String source, Date startDate, Date endDate) { + return aiStatisticsMapper.getMonthlyRechargeByRange(source, startDate, endDate); + } + + @Override + public List getTodayHourlyVisitorWithZero(String source) { + return aiStatisticsMapper.getTodayHourlyVisitorWithZero(source); + } + + @Override + public List getWeeklyVisitor(String source) { + return aiStatisticsMapper.getWeeklyVisitor(source); + } + + @Override + public List getMonthlyVisitor(String source) { + return aiStatisticsMapper.getMonthlyVisitor(source); + } + + @Override + public List getMonthlyVisitorByRange(String source, Date startDate, Date endDate) { + return aiStatisticsMapper.getMonthlyVisitorByRange(source, startDate, endDate); + } + + @Override + public List getTodayHourlyGenerateWithZero(String source) { + return aiStatisticsMapper.getTodayHourlyGenerateWithZero(source); + } + + @Override + public List getWeeklyGenerate(String source) { + return aiStatisticsMapper.getWeeklyGenerate(source); + } + + @Override + public List getMonthlyGenerate(String source) { + return aiStatisticsMapper.getMonthlyGenerate(source); + } + + @Override + public List getMonthlyVisitorGenerate(String source, Date startDate, Date endDate) { + return aiStatisticsMapper.getMonthlyVisitorGenerate(source, startDate, endDate); + } + + @Override + public List getMapStatistics() { + return aiStatisticsMapper.getMapStatistics(); + } + + @Override + public List getAllSource() { + return aiStatisticsMapper.getAllSource(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTagServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTagServiceImpl.java new file mode 100644 index 0000000..5730b45 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTagServiceImpl.java @@ -0,0 +1,143 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiTagMapper; +import com.ruoyi.ai.domain.AiTag; +import com.ruoyi.ai.service.IAiTagService; + +/** + * ai-标签管理Service业务层处理 + * + * @author shi + * @date 2025-11-24 + */ +@Service +public class AiTagServiceImpl implements IAiTagService { + + @Autowired + private AiTagMapper aiTagMapper; + + /** + * 查询ai-标签管理 + * + * @param id ai-标签管理主键 + * @return ai-标签管理 + */ + @Override + public AiTag selectAiTagById(Long id) { + return aiTagMapper.selectAiTagById(id); + } + + /** + * 查询ai-标签管理列表 + * + * @param aiTag ai-标签管理 + * @return ai-标签管理 + */ + @Override + public List selectAiTagList(AiTag aiTag) { + return aiTagMapper.selectAiTagList(aiTag); + } + + @Override + public List selectUserAiTagList(AiTag aiTag) { + return aiTagMapper.selectUserAiTagList(aiTag); + } + + /** + * 分页查询ai-标签管理列表 + * + * @param aiTag ai-标签管理 + * @return ai-标签管理 + */ + @Override + public IPage selectAiTagPage(Page page, AiTag aiTag) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiTag); + query.eq(AiTag::getDelFlag, "0"); + return aiTagMapper.selectPage(page, query); + } + + /** + * 新增ai-标签管理 + * + * @param aiTag ai-标签管理 + * @return 结果 + */ + @Override + public int insertAiTag(AiTag aiTag) { + aiTag.setDelFlag("0"); + aiTag.setCreateBy(SecurityUtils.getUsername()); + aiTag.setCreateTime(DateUtils.getNowDate()); + return aiTagMapper.insert(aiTag); + } + + /** + * 修改ai-标签管理 + * + * @param aiTag ai-标签管理 + * @return 结果 + */ + @Override + public int updateAiTag(AiTag aiTag) { + aiTag.setUpdateBy(SecurityUtils.getUsername()); + aiTag.setUpdateTime(DateUtils.getNowDate()); + return aiTagMapper.updateById(aiTag); + } + + /** + * 批量删除ai-标签管理 + * + * @param ids 需要删除的ai-标签管理主键 + * @return 结果 + */ + @Override + public int deleteAiTagByIds(Long[] ids) + { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.in("parent_id", ids); + if (aiTagMapper.selectCount(queryWrapper) > 0) { + throw new ServiceException("要删除的标签存在子级标签"); + } + return aiTagMapper.deleteAiTagByIds(ids); + } + + /** + * 删除ai-标签管理信息 + * + * @param id ai-标签管理主键 + * @return 结果 + */ + @Override + public int deleteAiTagById(Long id) + { + return aiTagMapper.deleteAiTagById(id); + } + + @Override + public boolean checkStatus(Long parentId) { + AiTag pT = aiTagMapper.selectById(parentId); + if (pT.getStatus() == 0) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("parent_id", parentId); + queryWrapper.eq("status", 0); + return aiTagMapper.selectCount(queryWrapper) > 0; + } + return true; + } + + @Override + public List selectAiTagListByIds(String tags, String parentTags) { + if (parentTags == null) parentTags = ""; + return aiTagMapper.selectAiTagListByIds(tags.split(","), parentTags.split(",")); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTemplateServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTemplateServiceImpl.java new file mode 100644 index 0000000..0a0ecd9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiTemplateServiceImpl.java @@ -0,0 +1,118 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiTemplateMapper; +import com.ruoyi.ai.domain.AiTemplate; +import com.ruoyi.ai.service.IAiTemplateService; + +/** + * AI模版Service业务层处理 + * + * @author shi + * @date 2026-01-15 + */ +@Service +public class AiTemplateServiceImpl implements IAiTemplateService { + + @Autowired + private AiTemplateMapper aiTemplateMapper; + + /** + * 查询AI模版 + * + * @param id AI模版主键 + * @return AI模版 + */ + @Override + public AiTemplate selectAiTemplateById(Long id) { + return aiTemplateMapper.selectById(id); + } + + /** + * 查询AI模版列表 + * + * @param aiTemplate AI模版 + * @return AI模版 + */ + @Override + public List selectAiTemplateList(AiTemplate aiTemplate) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiTemplate); + query.orderByDesc(AiTemplate::getId); + query.eq(AiTemplate::getDelFlag, "0"); + return aiTemplateMapper.selectList(query); + } + + /** + * 分页查询AI模版列表 + * + * @param aiTemplate AI模版 + * @return AI模版 + */ + @Override + public IPage selectAiTemplatePage(Page page, AiTemplate aiTemplate) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiTemplate); + query.eq(AiTemplate::getDelFlag, "0"); + return aiTemplateMapper.selectPage(page, query); + } + + /** + * 新增AI模版 + * + * @param aiTemplate AI模版 + * @return 结果 + */ + @Override + public int insertAiTemplate(AiTemplate aiTemplate) { + aiTemplate.setDelFlag("0"); + aiTemplate.setCreateTime(DateUtils.getNowDate()); + aiTemplate.setCreateBy(SecurityUtils.getUsername()); + return aiTemplateMapper.insert(aiTemplate); + } + + /** + * 修改AI模版 + * + * @param aiTemplate AI模版 + * @return 结果 + */ + @Override + public int updateAiTemplate(AiTemplate aiTemplate) { + aiTemplate.setUpdateBy(SecurityUtils.getUsername()); + aiTemplate.setUpdateTime(DateUtils.getNowDate()); + return aiTemplateMapper.updateById(aiTemplate); + } + + /** + * 批量删除AI模版 + * + * @param ids 需要删除的AI模版主键 + * @return 结果 + */ + @Override + public int deleteAiTemplateByIds(Long[] ids) + { + return aiTemplateMapper.deleteAiTemplateByIds(ids); + } + + /** + * 删除AI模版信息 + * + * @param id AI模版主键 + * @return 结果 + */ + @Override + public int deleteAiTemplateById(Long id) + { + return aiTemplateMapper.deleteAiTemplateById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserMessageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserMessageServiceImpl.java new file mode 100644 index 0000000..4c5fcc3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserMessageServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiUserMessageMapper; +import com.ruoyi.ai.domain.AiUserMessage; +import com.ruoyi.ai.service.IAiUserMessageService; +import org.springframework.transaction.annotation.Transactional; + +/** + * 站内信管理Service业务层处理 + * + * @author shi + * @date 2025-11-13 + */ +@Service +public class AiUserMessageServiceImpl implements IAiUserMessageService { + + @Autowired + private AiUserMessageMapper aiUserMessageMapper; + + /** + * 查询站内信管理 + * + * @param id 站内信管理主键 + * @return 站内信管理 + */ + @Override + public AiUserMessage selectAiUserMessageById(Long id) { + return aiUserMessageMapper.selectAiUserMessageById(id); + } + + /** + * 查询站内信管理列表 + * + * @param aiUserMessage 站内信管理 + * @return 站内信管理 + */ + @Override + public List selectAiUserMessageList(AiUserMessage aiUserMessage) { + return aiUserMessageMapper.selectAiUserMessageList(aiUserMessage); + } + + /** + * 分页查询站内信管理列表 + * + * @param aiUserMessage 站内信管理 + * @return 站内信管理 + */ + @Override + public IPage selectAiUserMessagePage(Page page, AiUserMessage aiUserMessage) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiUserMessage); + query.eq(AiUserMessage::getDelFlag, "0"); + return aiUserMessageMapper.selectPage(page, query); + } + + /** + * 新增站内信管理 + * + * @param aiUserMessage 站内信管理 + * @return 结果 + */ + @Override + @Transactional + public int insertAiUserMessage(AiUserMessage aiUserMessage) { + aiUserMessage.setDelFlag("0"); + aiUserMessage.setCreateBy(SecurityUtils.getUsername()); + aiUserMessage.setCreateTime(DateUtils.getNowDate()); + int insert = aiUserMessageMapper.insert(aiUserMessage); + if (aiUserMessage.getSendType() == 1 && aiUserMessage.getUserIds().size() > 0) { + aiUserMessageMapper.addUserMessage(aiUserMessage.getId(), aiUserMessage.getUserIds()); + } + return insert; + } + + /** + * 修改站内信管理 + * + * @param aiUserMessage 站内信管理 + * @return 结果 + */ + @Override + @Transactional + public int updateAiUserMessage(AiUserMessage aiUserMessage) { + aiUserMessage.setUpdateBy(SecurityUtils.getUsername()); + aiUserMessage.setUpdateTime(DateUtils.getNowDate()); + // 删除原有的用户消息关系 + aiUserMessageMapper.deleteUserMessage(aiUserMessage.getId()); + if (aiUserMessage.getSendType() == 1 && aiUserMessage.getUserIds().size() > 0) { + aiUserMessageMapper.addUserMessage(aiUserMessage.getId(), aiUserMessage.getUserIds()); + } + return aiUserMessageMapper.updateById(aiUserMessage); + } + + /** + * 批量删除站内信管理 + * + * @param ids 需要删除的站内信管理主键 + * @return 结果 + */ + @Override + public int deleteAiUserMessageByIds(Long[] ids) + { + return aiUserMessageMapper.deleteAiUserMessageByIds(ids); + } + + /** + * 删除站内信管理信息 + * + * @param id 站内信管理主键 + * @return 结果 + */ + @Override + public int deleteAiUserMessageById(Long id) + { + return aiUserMessageMapper.deleteAiUserMessageById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserServiceImpl.java new file mode 100644 index 0000000..e101b88 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiUserServiceImpl.java @@ -0,0 +1,461 @@ +package com.ruoyi.ai.service.impl; + +import cn.hutool.core.util.NumberUtil; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.domain.enums.AiConfigEnum; +import com.ruoyi.ai.mapper.AiRechargeMapper; +import com.ruoyi.ai.mapper.AiSampleAmountMapper; +import com.ruoyi.ai.mapper.AiSampleAmountRecordMapper; +import com.ruoyi.ai.service.*; +import com.ruoyi.common.constant.BalanceChangerConstants; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.ai.mapper.AiUserMapper; +import com.ruoyi.common.core.domain.model.LoginAiUser; +import com.ruoyi.common.core.domain.model.LoginAiUserBody; +import com.ruoyi.common.core.domain.model.RegisterAiUserBody; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.*; +import com.ruoyi.common.utils.ip.IpUtils; +import com.ruoyi.common.utils.uuid.UUID; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.mapper.SysConfigMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * ai-用户信息Service业务层处理 + * + * @author shi + * @date 2025-11-12 + */ +@Service +public class AiUserServiceImpl implements IAiUserService { + + @Autowired + private AiUserMapper aiUserMapper; + + @Autowired + private SysConfigMapper sysConfigMapper; + + @Autowired + private EmailVerifyService emailVerifyService; + + @Autowired + private IAiBalanceChangeRecordService balanceChangeRecordService; + + @Autowired + private IAiRebateRecordService aiRebateRecordService; + + @Autowired + private IAiStatisticsService aiStatisticsService; + + @Autowired + private IAiSampleAmountRecordService aiSampleAmountRecordService; + + @Autowired + private AiRechargeMapper aiRechargeMapper; + + + + /** + * 查询ai-用户信息 + * + * @param id ai-用户信息主键 + * @return ai-用户信息 + */ + @Override + public AiUser selectAiUserById(Long id) { + return aiUserMapper.selectAiUserById(id); + } + + @Override + public AiUser getUserInfo(Long id) { + return aiUserMapper.getUserInfo(id); + } + + /** + * 查询ai-用户信息列表 + * + * @param aiUser ai-用户信息 + * @return ai-用户信息 + */ + @Override + public List selectAiUserList(AiUser aiUser) { + return aiUserMapper.selectAiUserList(aiUser); + } + + /** + * 分页查询ai-用户信息列表 + * + * @param aiUser ai-用户信息 + * @return ai-用户信息 + */ + @Override + public IPage selectAiUserPage(Page page, AiUser aiUser) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiUser); + query.eq(AiUser::getDelFlag, "0"); + return aiUserMapper.selectPage(page, query); + } + + /** + * 新增ai-用户信息 + * + * @param aiUser ai-用户信息 + * @return 结果 + */ + @Override + public int insertAiUser(AiUser aiUser) { + aiUser.setDelFlag("0"); + aiUser.setCreateBy(SecurityUtils.getUsername()); + aiUser.setCreateTime(DateUtils.getNowDate()); + return aiUserMapper.insert(aiUser); + } + + /** + * 修改ai-用户信息 + * + * @param aiUser ai-用户信息 + * @return 结果 + */ + @Override + public int updateAiUser(AiUser aiUser) { + aiUser.setUpdateTime(DateUtils.getNowDate()); + return aiUserMapper.updateById(aiUser); + } + + /** + * 批量删除ai-用户信息 + * + * @param ids 需要删除的ai-用户信息主键 + * @return 结果 + */ + @Override + public int deleteAiUserByIds(Long[] ids) { + + return aiUserMapper.deleteBatchIds(ListUtils.arrayToList(ids)); + } + + /** + * 删除ai-用户信息信息 + * + * @param id ai-用户信息主键 + * @return 结果 + */ + @Override + public int deleteAiUserById(Long id) { + return aiUserMapper.deleteById(id); + } + + @Override + public int updateUserStatus(AiUser aiUser) { + return aiUserMapper.updateById(aiUser); + } + + @Override + @Transactional + public AiUser registerAiUser(RegisterAiUserBody registerAiUserBody) { + // 判断用户名是否重复 + if (getUserCountByUserName(registerAiUserBody.getUsername()) > 0) { + throw new ServiceException(MessageUtils.message("user.username.exists", registerAiUserBody.getUsername()), HttpStatus.CONFLICT); + } + // 判断邮箱是否重复 + if (getUserCountByEmail(registerAiUserBody.getEmail()) > 0) { + throw new ServiceException(MessageUtils.message("user.email.registered"), HttpStatus.CONFLICT); + } + boolean b = emailVerifyService.verifyCode(registerAiUserBody.getEmail(), registerAiUserBody.getCode()); + if (!b) { + throw new ServiceException(MessageUtils.message("email.verification.code.error"), HttpStatus.BAD_REQUEST); + } + AiUser aiUser = new AiUser(); + aiUser.setUsername(registerAiUserBody.getUsername()); + aiUser.setNickname(registerAiUserBody.getNickname()); + aiUser.setGender(registerAiUserBody.getGender()); + aiUser.setAvatar(registerAiUserBody.getAvatar()); + aiUser.setPhone(registerAiUserBody.getPhone()); + aiUser.setEmail(registerAiUserBody.getEmail()); + aiUser.setBirthday(registerAiUserBody.getBirthday()); + aiUser.setCreateTime(DateUtils.getNowDate()); + aiUser.setUserId(generateUuiD()); + String ip = IpUtils.getIpAddr(); + String country = IpCountryQueryByApi.getIpCountry(ip); + aiUser.setIp(ip); + aiUser.setCountry(country); + // 获取上级ID + AiUser user = getUserByInvitationCode(registerAiUserBody.getInvitationCode()); + if (user != null) { + aiUser.setSuperiorId(user.getId()); + } + aiUser.setInvitationCode(generateUniqueString()); + aiUser.setPassword(SecurityUtils.encryptPassword(registerAiUserBody.getPassword())); + aiUser.setSource(registerAiUserBody.getSource()); + // 新增用户 + aiUserMapper.insert(aiUser); + + // 新增访客统计 + AiStatistics aiStatistics = new AiStatistics(); + aiStatistics.setSource(registerAiUserBody.getSource()); + aiStatistics.setAddUserCount(1l); + aiStatisticsService.saveOrUpdateData(aiStatistics); + return aiUser; + } + + private String generateUniqueString() { + // 初始长度为8 + int currentLength = 8; + // 记录当前长度下的连续重复次数 + int duplicateCount = 0; + + while (true) { + // 生成一个当前长度的随机字符串 + String newString = RandomStringUtil.generateRandomString(currentLength); + // 检查是否已经存在 + if (!getUserCountByInvitationCode(newString)) { + return newString; + } else { + // 如果存在,增加重复计数 + duplicateCount++; + // 如果连续重复达到3次 + if (duplicateCount >= 3) { + // 增加长度 + currentLength++; + // 重置重复计数 + duplicateCount = 0; + System.out.println("连续3次重复,将字符串长度增加到 " + currentLength + " 位。"); + } + } + } + } + + private String generateUuiD() { + while (true) { + // 生成一个当前长度的随机字符串 + String newString = RandomStringUtil.generateRandomUUIDString(); + // 检查是否已经存在 + if (!getUserCountByUuid(newString)) { + return newString; + } + } + } + + + /** + * 通过邀请码获取用户 + * + * @param invitationCode + * @return + */ + private AiUser getUserByInvitationCode(String invitationCode) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(); + query.eq(AiUser::getInvitationCode, invitationCode); + query.eq(AiUser::getDelFlag, 0); + return aiUserMapper.selectOne(query); + } + + private Long getUserCountByUserName(String username) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("username", username); + queryWrapper.eq("del_flag", "0"); + return aiUserMapper.selectCount(queryWrapper); + } + + @Override + public Long getUserCountByEmail(String email) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("email", email); + queryWrapper.eq("del_flag", "0"); + return aiUserMapper.selectCount(queryWrapper); + } + + @Override + public AiUser getUserByEmail(String email) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("email", email); + queryWrapper.eq("del_flag", "0"); + return aiUserMapper.selectOne(queryWrapper); + } + + public Boolean getUserCountByInvitationCode(String invitationCode) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("invitation_code", invitationCode); + return aiUserMapper.selectCount(queryWrapper) > 0; + } + + public Boolean getUserCountByUuid(String uuid) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("user_id", uuid); + return aiUserMapper.selectCount(queryWrapper) > 0; + } + + @Override + public LoginAiUser loginAiUser(LoginAiUserBody loginAiUserBody) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("username", loginAiUserBody.getUsername()).or().eq("email", loginAiUserBody.getEmail()); + AiUser aiUser = aiUserMapper.selectOne(queryWrapper); + if (aiUser == null) { + throw new ServiceException(MessageUtils.message("user.not.found"), HttpStatus.CONFLICT); + } + // 验证密码是否正确 + if (!SecurityUtils.matchesPassword(loginAiUserBody.getPassword(), aiUser.getPassword())) { + throw new ServiceException(MessageUtils.message("user.password.incorrect"), HttpStatus.CONFLICT); + } + // 更新登录时间 + aiUser.setLoginTime(new Date()); + aiUserMapper.updateById(aiUser); + return new LoginAiUser(aiUser.getId(), aiUser); + } + + @Override + public void updatePassword(String oldPassword, String newPassword) { + String password = aiUserMapper.selectPasswordById(SecurityUtils.getAiUserId()); + if (!SecurityUtils.matchesPassword(oldPassword, password)) { + throw new ServiceException(MessageUtils.message("user.password.incorrect"), HttpStatus.CONFLICT); + } + newPassword = SecurityUtils.encryptPassword(newPassword); + AiUser user = new AiUser(); + user.setId(SecurityUtils.getAiUserId()); + user.setPassword(newPassword); + aiUserMapper.updateById(user); + } + + @Override + public void updateEmail(String email, String code) { + boolean b = emailVerifyService.verifyCode(email, code); + if (!b) { + throw new ServiceException(MessageUtils.message("email.verification.code.error"), HttpStatus.BAD_REQUEST); + } + AiUser user = new AiUser(); + user.setId(SecurityUtils.getAiUserId()); + user.setEmail(email); + aiUserMapper.updateById(user); + } + + @Override + public void updateAvatar(String avatar) { + AiUser user = new AiUser(); + user.setId(SecurityUtils.getAiUserId()); + user.setAvatar(avatar); + aiUserMapper.updateById(user); + } + + @Override + public void addUserBalance(Long userId, BigDecimal amount, int recharge) { + addUserBalance(userId, amount, recharge, null); + } + + @Override + @Transactional + public void addUserBalance(Long userId, BigDecimal amount, int recharge, String remark) { + // 新增余额使用记录 + AiUser aiUser = aiUserMapper.selectById(userId); + AiBalanceChangeRecord balanceChangeRecord = new AiBalanceChangeRecord(); + balanceChangeRecord.setUserId(userId); + balanceChangeRecord.setType(recharge); + balanceChangeRecord.setChangeAmount(amount); + balanceChangeRecord.setResultAmount(NumberUtil.add(amount, aiUser.getBalance())); + balanceChangeRecord.setRemark(remark); + balanceChangeRecordService.insertAiBalanceChangeRecord(balanceChangeRecord); + // 修改用户余额 + aiUser.setBalance(balanceChangeRecord.getResultAmount()); + aiUserMapper.updateById(aiUser); +// // 如果是充值余额就返佣上级用户 +// if (recharge == BalanceChangerConstants.RECHARGE && aiUser.getSuperiorId() != null) { +// // 查询上级用户 +// AiUser superiorUser = aiUserMapper.selectById(aiUser.getSuperiorId()); +// if (superiorUser != null) { +// // 获取返佣比例% +//// SysConfig sysConfig = sysConfigMapper.selectConfigById(100l); +// SysConfig sysConfig = sysConfigMapper.checkConfigKeyUnique(AiConfigEnum.SYS_INVITE_COMMISSION.getValue()); +// double decimal = NumberUtil.div(Integer.parseInt(sysConfig.getConfigValue()), 100, 2); +// BigDecimal rebateAmount = NumberUtil.mul(amount, decimal); +// addUserBalance(superiorUser.getId(), rebateAmount, BalanceChangerConstants.REBATE); +// // 新增返佣记录 +// AiRebateRecord rebateRecord = new AiRebateRecord(); +// rebateRecord.setSuperiorId(superiorUser.getId()); +// rebateRecord.setSubordinateId(aiUser.getId()); +// rebateRecord.setAmount(rebateAmount); +// aiRebateRecordService.insertAiRebateRecord(rebateRecord); +// } +// } + } + + @Override + public int updatePassword(AiUser aiUser) { + aiUser.setPassword(SecurityUtils.encryptPassword(aiUser.getNewPassword())); + return aiUserMapper.updateById(aiUser); + } + + @Override + @Transactional + public void deductSampleAmount(String userId) { + // 查询对应用户的体验金记录 + AiSampleAmountRecord aiSampleAmountRecord = aiSampleAmountRecordService.getAiSampleAmountRecordByUserId(userId); +// // 查询用户使用所有合计金额 +// BigDecimal amount = aiOrderService.getSumAmountByUserId(userId); +// // 计算回收金额,假如使用过的金额大于赠送金额则回收0 +// BigDecimal deductAmount = NumberUtil.sub(aiSampleAmountRecord.getSampleAmount(), amount); +// if (deductAmount.compareTo(BigDecimal.ZERO) < 0) { +// deductAmount = new BigDecimal(0); +// } + addUserBalance(Long.valueOf(userId), NumberUtil.mul(aiSampleAmountRecord.getSampleAmount(), -1), BalanceChangerConstants.EXPERIENCE_GOLD_RECYCLE); + // 修改状态已回收 + aiSampleAmountRecord.setStatus(1); + aiSampleAmountRecordService.updateAiSampleAmountRecord(aiSampleAmountRecord); + } + + @Override + public void handleRebate(Long userId, BigDecimal amount) { + AiUser aiUser = aiUserMapper.selectById(userId); + if (aiUser.getSuperiorId() == null) return; + // 查询上级用户 + AiUser superiorUser = aiUserMapper.selectById(aiUser.getSuperiorId()); + if (superiorUser != null) { + // 获取返佣比例% +// SysConfig sysConfig = sysConfigMapper.selectConfigById(100l); + SysConfig sysConfig = sysConfigMapper.checkConfigKeyUnique(AiConfigEnum.SYS_INVITE_COMMISSION.getValue()); + double decimal = NumberUtil.div(Integer.parseInt(sysConfig.getConfigValue()), 100, 2); + BigDecimal rebateAmount = NumberUtil.mul(amount, decimal); + addUserBalance(superiorUser.getId(), rebateAmount, BalanceChangerConstants.REBATE); + // 新增返佣记录 + AiRebateRecord rebateRecord = new AiRebateRecord(); + rebateRecord.setSuperiorId(superiorUser.getId()); + rebateRecord.setSubordinateId(aiUser.getId()); + rebateRecord.setAmount(rebateAmount); + aiRebateRecordService.insertAiRebateRecord(rebateRecord); + } + } + + @Override + public String getRebateConfig() { + SysConfig sysConfig = sysConfigMapper.checkConfigKeyUnique(AiConfigEnum.SYS_INVITE_COMMISSION.getValue()); + return sysConfig.getConfigValue() + "%"; + } + + @Override + public Map checkIsStandard() { + // 获取累计金额 + SysConfig sysConfig = sysConfigMapper.checkConfigKeyUnique(AiConfigEnum.SYS_TOTAL_AMOUNT.getValue()); + double targetAmount = Double.parseDouble(sysConfig.getConfigValue()); + // 获取当前用户累计充值金额 + AiRecharge aiRecharge = new AiRecharge(); + aiRecharge.setUserId(SecurityUtils.getAiUserId()); + double totalAmount = aiRechargeMapper.getTotalAmount(aiRecharge).doubleValue(); + Map map = new HashMap<>(); + map.put("result", totalAmount >= targetAmount); + map.put("totalAmount", totalAmount); + return map; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiWorkServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiWorkServiceImpl.java new file mode 100644 index 0000000..1f92d4c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/AiWorkServiceImpl.java @@ -0,0 +1,111 @@ +package com.ruoyi.ai.service.impl; + +import java.util.List; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.ai.mapper.AiWorkMapper; +import com.ruoyi.ai.domain.AiWork; +import com.ruoyi.ai.service.IAiWorkService; + +/** + * ai作品Service业务层处理 + * + * @author shi + * @date 2025-11-25 + */ +@Service +public class AiWorkServiceImpl implements IAiWorkService { + + @Autowired + private AiWorkMapper aiWorkMapper; + + /** + * 查询ai作品 + * + * @param id ai作品主键 + * @return ai作品 + */ + @Override + public AiWork selectAiWorkById(Long id) { + return aiWorkMapper.selectById(id); + } + + /** + * 查询ai作品列表 + * + * @param aiWork ai作品 + * @return ai作品 + */ + @Override + public List selectAiWorkList(AiWork aiWork) { + return aiWorkMapper.selectAiWorkList(aiWork); + } + + /** + * 分页查询ai作品列表 + * + * @param aiWork ai作品 + * @return ai作品 + */ + @Override + public IPage selectAiWorkPage(Page page, AiWork aiWork) { + LambdaQueryWrapper query = Wrappers.lambdaQuery(aiWork); + query.eq(AiWork::getDelFlag, "0"); + return aiWorkMapper.selectPage(page, query); + } + + /** + * 新增ai作品 + * + * @param aiWork ai作品 + * @return 结果 + */ + @Override + public int insertAiWork(AiWork aiWork) { + aiWork.setDelFlag("0"); + aiWork.setCreateTime(DateUtils.getNowDate()); + return aiWorkMapper.insert(aiWork); + } + + /** + * 修改ai作品 + * + * @param aiWork ai作品 + * @return 结果 + */ + @Override + public int updateAiWork(AiWork aiWork) { + aiWork.setUpdateTime(DateUtils.getNowDate()); + return aiWorkMapper.updateById(aiWork); + } + + /** + * 批量删除ai作品 + * + * @param ids 需要删除的ai作品主键 + * @return 结果 + */ + @Override + public int deleteAiWorkByIds(Long[] ids) + { + return aiWorkMapper.deleteAiWorkByIds(ids); + } + + /** + * 删除ai作品信息 + * + * @param id ai作品主键 + * @return 结果 + */ + @Override + public int deleteAiWorkById(Long id) + { + return aiWorkMapper.deleteAiWorkById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteService.java new file mode 100644 index 0000000..cc315b8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/ByteService.java @@ -0,0 +1,145 @@ +package com.ruoyi.ai.service.impl; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ruoyi.ai.domain.ByteBodyReq; +import com.ruoyi.ai.domain.ByteBodyRes; +import com.ruoyi.ai.service.IByteService; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.http.OkHttpUtils; +import okhttp3.*; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +@Service +public class ByteService implements IByteService { + +// private final OkHttpClient okHttpClient = OkHttpUtils.createOkHttpClient(); + + // Jackson用于JSON序列化/反序列化 + private final ObjectMapper objectMapper = new ObjectMapper() + .setSerializationInclusion(JsonInclude.Include.NON_NULL) + .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) + .configure(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT, true); + + // API地址(可配置在配置文件中) + @Value("${byteapi.url}") + private String API_URL; + + @Value("${byteapi.apiKey}") + private String apiKey; + + @Override + public ByteBodyRes promptToImg(ByteBodyReq req) throws Exception { + return this.imgToImg(req); + } + + @Override + public ByteBodyRes imgToImg(ByteBodyReq req) throws Exception { + + // 1. 验证请求参数(可选,根据业务需求) + if (StringUtils.isBlank(req.getPrompt())) { + throw new Exception("imgToImg error:prompt is null"); + } + + // 2. 构建请求体JSON(基于ByteBodyReq的字段) + // 注意:ByteBodyReq需包含与API参数对应的字段(model、prompt等) + String jsonBody = objectMapper.writeValueAsString(req); + // 3. 构建请求 + Request request = new Request.Builder() + .url(API_URL + "/images/generations") + .header("Content-Type", "application/json") + .header("Authorization", "Bearer " + apiKey) +// .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("192.168.1.1", 8080))) + .post(RequestBody.create( + MediaType.parse("application/json"), + jsonBody + )) + .build(); + // 4. 发送同步请求(因方法需要返回值,使用execute而非enqueue) + Response response = OkHttpUtils.newCall(request).execute(); + // 5. 处理响应 + if (!response.isSuccessful()) { + // 非200状态:返回错误信息(假设ByteBodyRes有error字段) + String errorMsg = response.body() != null ? response.body().string() : "imgToImg error"; + throw new Exception("imgToImg error:" + errorMsg); + } + // 6. 解析成功响应为ByteBodyRes + if (response.body() == null) { + throw new Exception("imgToImg response null"); + } + String responseBody = response.body().string(); + return objectMapper.readValue(responseBody, ByteBodyRes.class); + } + + @Override + public ByteBodyRes imgToVideo(ByteBodyReq req) throws Exception { + + // 1. 验证请求参数(可选,根据业务需求) +// if (StringUtils.isBlank(req.getPrompt())) { +// throw new Exception("imgToVideo error:prompt is null"); +// } + + // 2. 构建请求体JSON(基于ByteBodyReq的字段) + // 注意:ByteBodyReq需包含与API参数对应的字段(model、prompt等) + String jsonBody = objectMapper.writeValueAsString(req); + // 3. 构建请求 + Request request = new Request.Builder() + .url(API_URL + "/contents/generations/tasks") + .header("Content-Type", "application/json") + .header("Authorization", "Bearer " + apiKey) + .post(RequestBody.create( + MediaType.parse("application/json; charset=utf-8"), + jsonBody + )) + .build(); + // 4. 发送同步请求(因方法需要返回值,使用execute而非enqueue) + Response response = OkHttpUtils.newCall(request).execute(); + // 5. 处理响应 + if (!response.isSuccessful()) { + // 非200状态:返回错误信息(假设ByteBodyRes有error字段) + String errorMsg = response.body() != null ? response.body().string() : "imgToVideo error"; + throw new Exception("imgToVideo error:" + errorMsg); + } + // 6. 解析成功响应为ByteBodyRes + if (response.body() == null) { + throw new Exception("imgToVideo response null"); + } + String responseBody = response.body().string(); + return objectMapper.readValue(responseBody, ByteBodyRes.class); + } + + @Override + public ByteBodyRes uploadVideo(String id) throws Exception { + // 1. 验证请求参数(可选,根据业务需求) + if (StringUtils.isBlank(id)) { + throw new Exception("uploadVideo error:id is null"); + } + + // 2. 构建请求体JSON(基于ByteBodyReq的字段) + // 注意:ByteBodyReq需包含与API参数对应的字段(model、prompt等) + //String jsonBody = objectMapper.writeValueAsString(req); + // 3. 构建请求 + Request request = new Request.Builder() + .url(API_URL + "/contents/generations/tasks/" + id) + .header("Content-Type", "application/json") + .header("Authorization", "Bearer " + apiKey) + .get() + .build(); + // 4. 发送同步请求(因方法需要返回值,使用execute而非enqueue) + Response response = OkHttpUtils.newCall(request).execute(); + // 5. 处理响应 + if (!response.isSuccessful()) { + // 非200状态:返回错误信息(假设ByteBodyRes有error字段) + String errorMsg = response.body() != null ? response.body().string() : "uploadVideo error"; + throw new Exception("uploadVideo error:" + errorMsg); + } + // 6. 解析成功响应为ByteBodyRes + if (response.body() == null) { + throw new Exception("uploadVideo response null"); + } + String responseBody = response.body().string(); + return objectMapper.readValue(responseBody, ByteBodyRes.class); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/JinShaService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/JinShaService.java new file mode 100644 index 0000000..45cbcc0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/JinShaService.java @@ -0,0 +1,151 @@ +package com.ruoyi.ai.service.impl; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.service.*; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.http.OkHttpUtils; +import com.ruoyi.common.utils.sign.Md5Utils; +import lombok.extern.slf4j.Slf4j; +import okhttp3.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Map; +import java.util.TreeMap; +import java.util.UUID; + +@Service +@Slf4j +public class JinShaService implements IJinShaService { + + private final ObjectMapper objectMapper = new ObjectMapper().setSerializationInclusion(JsonInclude.Include.NON_NULL); + + @Value("${jinsha.url}") + private String url; + @Value("${jinsha.appId}") + private String appId; + @Value("${jinsha.secret}") + private String secret; + @Value("${jinsha.notifyUrl}") + private String notifyUrl; + @Value("${jinsha.returnUrl}") + private String returnUrl; + + @Autowired + private IAiRechargeService aiRechargeService; + @Autowired + private IAiUserService aiUserService; + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + + @Override + public PayResVO jinShaPay(Long gearId) throws Exception { + + //充值挡位查询 + AiRechargeGiftGear aiRechargeGiftGear = aiRechargeGiftGearService.selectAiRechargeGiftGearById(gearId); + if (aiRechargeGiftGear == null) { + throw new ServiceException("The gear position does not exist.", -1); + } + BigDecimal amount = aiRechargeGiftGear.getRechargeAmount(); + amount = amount.multiply(new BigDecimal(90)); + + JinShaBodyReq req = new JinShaBodyReq(); + req.setAppid(appId); + req.setReturn_url(returnUrl + "/recharge"); + req.setNotify_url(notifyUrl + "/api/pay/jinsha-callBack"); + req.setAmount(amount); + // 1. 配置请求参数 + TreeMap params = new TreeMap<>(); + params.put("appid", req.getAppid()); + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyyMMdd").format(new Date()); + String orderNo = dateTime + "js" + uuid; + params.put("orderno", orderNo); + params.put("amount", amount); + params.put("notify_url", req.getNotify_url()); + params.put("return_url", req.getReturn_url()); + StringBuilder append = this.append(params); + String sign = this.sign(append); + String formData = append + "&sign=" + sign; + // 2. 构建请求体(form-urlencoded 格式) + RequestBody requestBody = RequestBody.create( + MediaType.get("application/x-www-form-urlencoded;charset=utf-8"), + formData + ); + // 3. 构建 POST 请求 + Request request = new Request.Builder() + .url(url + "/api/pay") +// .header("Content-Type", "application/x-www-form-urlencoded;charset=utf-8") + .post(requestBody) + .build(); + // 4. 发送请求并获取响应 + Response response = OkHttpUtils.newCall(request).execute(); + ResponseBody body = response.body(); + if (null == body) { + log.error("kada支付请求的响应异常"); + throw new Exception("kadapay responsebody is null"); + } + JinShaBodyRes jinShaBodyRes = objectMapper.readValue(body.string(), JinShaBodyRes.class); + // 创建充值管理 + AiUser userInfo = aiUserService.getUserInfo(SecurityUtils.getAiUserId()); + AiRecharge aiRecharge = new AiRecharge(); + aiRecharge.setOrderNum(orderNo); + aiRecharge.setUserId(SecurityUtils.getAiUserId()); + aiRecharge.setAmount(amount); + aiRecharge.setGearId(req.getGearId()); + aiRecharge.setGearAmount(aiRechargeGiftGear.getRechargeAmount()); + aiRecharge.setSource(userInfo.getSource()); + aiRechargeService.insertAiRecharge(aiRecharge); + PayResVO payResVO = new PayResVO(); + payResVO.setOrderNo(orderNo); + payResVO.setPayUrl(jinShaBodyRes.getData().getPayurl()); + return payResVO; + } + + @Override + @Transactional + public AjaxResult jinShaCall(JinShaBodyCall req) { + TreeMap params = new TreeMap<>(); + params.put("status", req.getStatus()); + params.put("orderno", req.getOrderno()); + params.put("appid", req.getAppid()); + params.put("amount", req.getAmount()); + StringBuilder append = this.append(params); + String sign = this.sign(append); + if (!sign.equals(req.getSign())) { + log.error("支付回调签名错误 {}", req.getOrderno()); + return AjaxResult.error(); + } + //充值成功处理 + aiRechargeService.addRecharge(req.getOrderno()); + return AjaxResult.success(); + } + + private StringBuilder append(TreeMap sortedParams) { + StringBuilder paramSb = new StringBuilder(); + for (Map.Entry entry : sortedParams.entrySet()) { + String key = entry.getKey(); + Object value = entry.getValue(); + // 拼接格式:key=value&(末尾的&会被后续secret覆盖) + paramSb.append(key).append("=").append(value).append("&"); + } + return paramSb; + } + + private String sign(StringBuilder paramSb) { + String signSource = paramSb.append("secret=").append(secret).toString(); + return Md5Utils.hash(signSource); + } + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/KaDaService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/KaDaService.java new file mode 100644 index 0000000..5ed2d92 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/KaDaService.java @@ -0,0 +1,153 @@ +package com.ruoyi.ai.service.impl; + +import com.alibaba.fastjson.JSON; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.service.*; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.http.OkHttpUtils; +import com.ruoyi.common.utils.sign.HmacSha256Utils; +import lombok.extern.slf4j.Slf4j; +import okhttp3.*; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.util.EntityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import javax.servlet.http.HttpServletRequest; +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.Base64; +import java.util.Date; +import java.util.UUID; + +@Service +@Slf4j +public class KaDaService implements IKaDaService { + + private final ObjectMapper objectMapper = new ObjectMapper().setSerializationInclusion(JsonInclude.Include.NON_NULL); + + @Value("${kada.url}") + private String url; + @Value("${kada.appId}") + private String appId; + @Value("${kada.secret}") + private String secret; + @Value("${kada.notifyUrl}") + private String notifyUrl; + @Value("${kada.returnUrl}") + private String returnUrl; + @Autowired + private IAiUserService aiUserService; + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + @Autowired + private IAiRechargeService aiRechargeService; + @Autowired + private IAiRechargeGiftService aiRechargeGiftService; + + + @Override + public PayResVO pay(Long gearId) throws Exception { + + //充值挡位查询 + AiRechargeGiftGear aiRechargeGiftGear = aiRechargeGiftGearService.selectAiRechargeGiftGearById(gearId); + if (aiRechargeGiftGear == null) { + throw new ServiceException("The gear position does not exist.", -1); + } + BigDecimal amount = aiRechargeGiftGear.getRechargeAmount(); + amount = amount.multiply(new BigDecimal(60.00)); + + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyyMMdd").format(new Date()); + String orderNo = dateTime + "kd" + uuid; + + KaDaBodyReq req = new KaDaBodyReq(); + req.setAmount(amount); + req.setPm("GCASH"); + req.setRef(orderNo); + req.setPayer(new KaDaPayer()); + req.setRedirect(notifyUrl + "/recharge"); + req.setCallbackUrl(returnUrl + "/api/pay/kada-callBack"); + String json = JSON.toJSONString(req); + String timestamp = String.valueOf(System.currentTimeMillis()); + String sign = timestamp + "." + json; + sign = HmacSha256Utils.hmacSha256To16Hex(sign, secret); + // 3. 构建 POST 请求 + String Basic = appId + ":" + sign; + String encode = "Basic " + Base64.getEncoder().encodeToString(Basic.getBytes()); + CloseableHttpClient client = HttpClients.createDefault(); + HttpPost post = new HttpPost(url+"/api/mcht/payment/submit"); + post.setHeader("Content-Type", "application/json"); + post.setHeader("Authorization", encode); + post.setHeader("Request-Time", timestamp); + post.setEntity(new StringEntity(json, "UTF-8")); + CloseableHttpResponse response = client.execute(post); + int status = response.getStatusLine().getStatusCode(); + if (200 != status) { + log.error("kada支付请求的响应异常 {}", json); + throw new Exception("kadapay responsebody is null"); + } + String respString = EntityUtils.toString(response.getEntity(), "UTF-8"); + KaDaBodyRes kaDaBodyRes = objectMapper.readValue(respString, KaDaBodyRes.class); + // 创建充值管理 + AiUser userInfo = aiUserService.getUserInfo(SecurityUtils.getAiUserId()); + AiRecharge aiRecharge = new AiRecharge(); + aiRecharge.setOrderNum(orderNo); + aiRecharge.setUserId(SecurityUtils.getAiUserId()); + aiRecharge.setAmount(amount); + aiRecharge.setGearId(gearId); + aiRecharge.setSource(userInfo.getSource()); + aiRecharge.setGearAmount(aiRechargeGiftGear.getRechargeAmount()); + AiRechargeGift aiRechargeGift = aiRechargeGiftService.selectAiRechargeGiftById(aiRechargeGiftGear.getRechargeId()); + aiRecharge.setPayType(aiRechargeGift.getPayType()); + aiRecharge.setPayUrl(kaDaBodyRes.getData().getPaymentUrl()); + aiRechargeService.insertAiRecharge(aiRecharge); + PayResVO payResVO = new PayResVO(); + payResVO.setOrderNo(orderNo); + payResVO.setPayUrl(kaDaBodyRes.getData().getPaymentUrl()); + return payResVO; + } + + @Override + public AjaxResult callBack(HttpServletRequest request, KaDaBodyCall req) throws Exception { + String status = req.getStatus(); + String ref = req.getRef(); + if (!"COMPLETE".equals(status)){ + log.error("kada支付失败 {}", ref); + return null; + } + String timestamp = request.getHeader("Request-Time"); + String signature = request.getHeader("Signature"); + String Authorization = request.getHeader("Authorization"); + String json = JSON.toJSONString(req); + String sign = timestamp + "." + json; + sign = HmacSha256Utils.hmacSha256To16Hex(sign, secret); + String Basic = appId + ":" + sign; + String encode = "Basic " + Base64.getEncoder().encodeToString(Basic.getBytes()); + if (!signature.equals(sign)) { + log.error("kada支付回调签名错误 {}", ref); + log.error("kada支付回调时间 {}", timestamp); + log.error("kada支付回调签名 {}", signature); + log.error("kada支付回调认证头 {}", Authorization); + log.error("kada支付回调报文 {}", json); + log.error("我方kada支付回调验证签名 {}", sign); + log.error("我方kada支付回调验证认证头 {}", encode); + return AjaxResult.error(); + } + //充值成功处理 + aiRechargeService.addRecharge(ref); + return AjaxResult.success(); + } + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/YuZhouService.java b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/YuZhouService.java new file mode 100644 index 0000000..b12b677 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ai/service/impl/YuZhouService.java @@ -0,0 +1,137 @@ +package com.ruoyi.ai.service.impl; + +import cn.hutool.http.HttpRequest; +import cn.hutool.json.JSONObject; +import cn.hutool.json.JSONUtil; +import com.ruoyi.ai.domain.*; +import com.ruoyi.ai.service.*; +import com.ruoyi.common.core.domain.entity.AiUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.sign.RSAUtils; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.text.SimpleDateFormat; +import java.util.*; + +@Service +@Slf4j +public class YuZhouService implements IYuZhouService { + + @Value("${yuzhou.url}") + private String url; + @Value("${yuzhou.appId}") + private String appId; + @Value("${yuzhou.publicKey}") + private String publicKey; + @Value("${yuzhou.secretKey}") + private String secretKey; + @Value("${yuzhou.redirectUrl}") + private String redirectUrl; + @Value("${yuzhou.callbackUrl}") + private String callbackUrl; + @Autowired + private IAiUserService aiUserService; + @Autowired + private IAiRechargeGiftGearService aiRechargeGiftGearService; + @Autowired + private IAiRechargeService aiRechargeService; + @Autowired + private IAiRechargeGiftService aiRechargeGiftService; + + + @Override + public PayResVO pay(Long gearId) throws Exception { + + //充值挡位查询 + AiRechargeGiftGear aiRechargeGiftGear = aiRechargeGiftGearService.selectAiRechargeGiftGearById(gearId); + if (aiRechargeGiftGear == null) { + throw new ServiceException("The gear position does not exist.", -1); + } + BigDecimal amount = aiRechargeGiftGear.getRechargeAmount(); + //汇率 + //amount = amount.multiply(new BigDecimal(60.00)); + + String uuid = UUID.randomUUID().toString().replaceAll("-", "").substring(0, 8); + String dateTime = new SimpleDateFormat("yyyyMMdd").format(new Date()); + String orderNo = dateTime + "yz" + uuid; + + Map createMap = new HashMap<>(); + createMap.put("merchantNo", appId); + createMap.put("orderNo", orderNo); + createMap.put("money", amount.toString()); + createMap.put("description", "test"); + createMap.put("name", "test"); + createMap.put("email", "test@gmail.com"); + createMap.put("callbackUrl", callbackUrl + "/api/pay/yuzhou-callBack"); + createMap.put("phone", "7383442114"); + createMap.put("expiredPeriod", "1440"); + createMap.put("redirectUrl", redirectUrl + "/recharge"); + String signedStr = RSAUtils.getSignStr(createMap, secretKey); + createMap.put("signature", signedStr); + String postStr = JSONUtil.toJsonStr(createMap); + String response = HttpRequest.post(url + "/gateway/order/US/payIn").header("Content-Type", "application/json") + .body(postStr).execute().body(); + JSONObject returnObj = JSONUtil.parseObj(response); + Integer code = returnObj.getInt("code"); + if (200 != code) { + log.error("yuzhou支付请求的响应异常 {}", returnObj); + throw new Exception("yuzhoupay responsebody is null"); + } + JSONObject data = returnObj.getJSONObject("data"); + String money = data.getStr("money"); + String payUrl = data.getStr("url"); + // 创建充值管理 + AiUser userInfo = aiUserService.getUserInfo(SecurityUtils.getAiUserId()); + AiRecharge aiRecharge = new AiRecharge(); + aiRecharge.setOrderNum(orderNo); + aiRecharge.setUserId(SecurityUtils.getAiUserId()); + aiRecharge.setAmount(new BigDecimal(money)); + aiRecharge.setGearId(gearId); + aiRecharge.setSource(userInfo.getSource()); + aiRecharge.setGearAmount(aiRechargeGiftGear.getRechargeAmount()); + AiRechargeGift aiRechargeGift = aiRechargeGiftService.selectAiRechargeGiftById(aiRechargeGiftGear.getRechargeId()); + aiRecharge.setPayType(aiRechargeGift.getPayType()); + aiRecharge.setPayUrl(payUrl); + aiRechargeService.insertAiRecharge(aiRecharge); + PayResVO payResVO = new PayResVO(); + payResVO.setOrderNo(orderNo); + payResVO.setPayUrl(payUrl); + return payResVO; + } + + @Override + public String callBack(Map map) throws Exception { + int code = Integer.parseInt(map.get("status").toString()); + String orderNo = map.get("orderNo").toString(); + if (10 != code) { + log.error("yuzhou支付失败 {}", orderNo); + return null; + } +// Map createMap = new HashMap<>(); +// createMap.put("orderNo", orderNo); +// createMap.put("platOrderNo", map.get("platOrderNo")); +// createMap.put("money", map.get("money")); +// createMap.put("fee", map.get("fee")); +// createMap.put("status", map.get("status")); +// createMap.put("message", map.get("message")); + String signature = map.get("signature").toString(); + JSONObject entries = JSONUtil.parseObj(map); + boolean b = RSAUtils.verifySign(entries, publicKey); + if (!b) { + log.error("yuzhou支付回调签名错误 {}", orderNo); + log.error("yuzhou支付回调签名 {}", signature); + log.error("yuzhou支付回调报文 {}", map); + return null; + } + //充值成功处理 + aiRechargeService.addRecharge(orderNo); + return "SUCCESS"; + } + + +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysCache.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysCache.java new file mode 100644 index 0000000..83f0703 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysCache.java @@ -0,0 +1,81 @@ +package com.ruoyi.system.domain; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 缓存信息 + * + * @author ruoyi + */ +public class SysCache +{ + /** 缓存名称 */ + private String cacheName = ""; + + /** 缓存键名 */ + private String cacheKey = ""; + + /** 缓存内容 */ + private String cacheValue = ""; + + /** 备注 */ + private String remark = ""; + + public SysCache() + { + + } + + public SysCache(String cacheName, String remark) + { + this.cacheName = cacheName; + this.remark = remark; + } + + public SysCache(String cacheName, String cacheKey, String cacheValue) + { + this.cacheName = StringUtils.replace(cacheName, ":", ""); + this.cacheKey = StringUtils.replace(cacheKey, cacheName, ""); + this.cacheValue = cacheValue; + } + + public String getCacheName() + { + return cacheName; + } + + public void setCacheName(String cacheName) + { + this.cacheName = cacheName; + } + + public String getCacheKey() + { + return cacheKey; + } + + public void setCacheKey(String cacheKey) + { + this.cacheKey = cacheKey; + } + + public String getCacheValue() + { + return cacheValue; + } + + public void setCacheValue(String cacheValue) + { + this.cacheValue = cacheValue; + } + + public String getRemark() + { + return remark; + } + + public void setRemark(String remark) + { + this.remark = remark; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java new file mode 100644 index 0000000..c54678c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java @@ -0,0 +1,111 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 参数配置表 sys_config + * + * @author ruoyi + */ +public class SysConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 参数主键 */ + @Excel(name = "参数主键", cellType = ColumnType.NUMERIC) + private Long configId; + + /** 参数名称 */ + @Excel(name = "参数名称") + private String configName; + + /** 参数键名 */ + @Excel(name = "参数键名") + private String configKey; + + /** 参数键值 */ + @Excel(name = "参数键值") + private String configValue; + + /** 系统内置(Y是 N否) */ + @Excel(name = "系统内置", readConverterExp = "Y=是,N=否") + private String configType; + + public Long getConfigId() + { + return configId; + } + + public void setConfigId(Long configId) + { + this.configId = configId; + } + + @NotBlank(message = "参数名称不能为空") + @Size(min = 0, max = 100, message = "参数名称不能超过100个字符") + public String getConfigName() + { + return configName; + } + + public void setConfigName(String configName) + { + this.configName = configName; + } + + @NotBlank(message = "参数键名长度不能为空") + @Size(min = 0, max = 100, message = "参数键名长度不能超过100个字符") + public String getConfigKey() + { + return configKey; + } + + public void setConfigKey(String configKey) + { + this.configKey = configKey; + } + + @NotBlank(message = "参数键值不能为空") + @Size(min = 0, max = 500, message = "参数键值长度不能超过500个字符") + public String getConfigValue() + { + return configValue; + } + + public void setConfigValue(String configValue) + { + this.configValue = configValue; + } + + public String getConfigType() + { + return configType; + } + + public void setConfigType(String configType) + { + this.configType = configType; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("configId", getConfigId()) + .append("configName", getConfigName()) + .append("configKey", getConfigKey()) + .append("configValue", getConfigValue()) + .append("configType", getConfigType()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java new file mode 100644 index 0000000..7fdea30 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysLogininfor.java @@ -0,0 +1,144 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 系统访问记录表 sys_logininfor + * + * @author ruoyi + */ +public class SysLogininfor extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + @Excel(name = "序号", cellType = ColumnType.NUMERIC) + private Long infoId; + + /** 用户账号 */ + @Excel(name = "用户账号") + private String userName; + + /** 登录状态 0成功 1失败 */ + @Excel(name = "登录状态", readConverterExp = "0=成功,1=失败") + private String status; + + /** 登录IP地址 */ + @Excel(name = "登录地址") + private String ipaddr; + + /** 登录地点 */ + @Excel(name = "登录地点") + private String loginLocation; + + /** 浏览器类型 */ + @Excel(name = "浏览器") + private String browser; + + /** 操作系统 */ + @Excel(name = "操作系统") + private String os; + + /** 提示消息 */ + @Excel(name = "提示消息") + private String msg; + + /** 访问时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date loginTime; + + public Long getInfoId() + { + return infoId; + } + + public void setInfoId(Long infoId) + { + this.infoId = infoId; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getIpaddr() + { + return ipaddr; + } + + public void setIpaddr(String ipaddr) + { + this.ipaddr = ipaddr; + } + + public String getLoginLocation() + { + return loginLocation; + } + + public void setLoginLocation(String loginLocation) + { + this.loginLocation = loginLocation; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public Date getLoginTime() + { + return loginTime; + } + + public void setLoginTime(Date loginTime) + { + this.loginTime = loginTime; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysNotice.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysNotice.java new file mode 100644 index 0000000..8c07a54 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysNotice.java @@ -0,0 +1,102 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.core.domain.BaseEntity; +import com.ruoyi.common.xss.Xss; + +/** + * 通知公告表 sys_notice + * + * @author ruoyi + */ +public class SysNotice extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 公告ID */ + private Long noticeId; + + /** 公告标题 */ + private String noticeTitle; + + /** 公告类型(1通知 2公告) */ + private String noticeType; + + /** 公告内容 */ + private String noticeContent; + + /** 公告状态(0正常 1关闭) */ + private String status; + + public Long getNoticeId() + { + return noticeId; + } + + public void setNoticeId(Long noticeId) + { + this.noticeId = noticeId; + } + + public void setNoticeTitle(String noticeTitle) + { + this.noticeTitle = noticeTitle; + } + + @Xss(message = "公告标题不能包含脚本字符") + @NotBlank(message = "公告标题不能为空") + @Size(min = 0, max = 50, message = "公告标题不能超过50个字符") + public String getNoticeTitle() + { + return noticeTitle; + } + + public void setNoticeType(String noticeType) + { + this.noticeType = noticeType; + } + + public String getNoticeType() + { + return noticeType; + } + + public void setNoticeContent(String noticeContent) + { + this.noticeContent = noticeContent; + } + + public String getNoticeContent() + { + return noticeContent; + } + + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("noticeId", getNoticeId()) + .append("noticeTitle", getNoticeTitle()) + .append("noticeType", getNoticeType()) + .append("noticeContent", getNoticeContent()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java new file mode 100644 index 0000000..f6761df --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java @@ -0,0 +1,269 @@ +package com.ruoyi.system.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 操作日志记录表 oper_log + * + * @author ruoyi + */ +public class SysOperLog extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 日志主键 */ + @Excel(name = "操作序号", cellType = ColumnType.NUMERIC) + private Long operId; + + /** 操作模块 */ + @Excel(name = "操作模块") + private String title; + + /** 业务类型(0其它 1新增 2修改 3删除) */ + @Excel(name = "业务类型", readConverterExp = "0=其它,1=新增,2=修改,3=删除,4=授权,5=导出,6=导入,7=强退,8=生成代码,9=清空数据") + private Integer businessType; + + /** 业务类型数组 */ + private Integer[] businessTypes; + + /** 请求方法 */ + @Excel(name = "请求方法") + private String method; + + /** 请求方式 */ + @Excel(name = "请求方式") + private String requestMethod; + + /** 操作类别(0其它 1后台用户 2手机端用户) */ + @Excel(name = "操作类别", readConverterExp = "0=其它,1=后台用户,2=手机端用户") + private Integer operatorType; + + /** 操作人员 */ + @Excel(name = "操作人员") + private String operName; + + /** 部门名称 */ + @Excel(name = "部门名称") + private String deptName; + + /** 请求url */ + @Excel(name = "请求地址") + private String operUrl; + + /** 操作地址 */ + @Excel(name = "操作地址") + private String operIp; + + /** 操作地点 */ + @Excel(name = "操作地点") + private String operLocation; + + /** 请求参数 */ + @Excel(name = "请求参数") + private String operParam; + + /** 返回参数 */ + @Excel(name = "返回参数") + private String jsonResult; + + /** 操作状态(0正常 1异常) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=异常") + private Integer status; + + /** 错误消息 */ + @Excel(name = "错误消息") + private String errorMsg; + + /** 操作时间 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") + private Date operTime; + + /** 消耗时间 */ + @Excel(name = "消耗时间", suffix = "毫秒") + private Long costTime; + + public Long getOperId() + { + return operId; + } + + public void setOperId(Long operId) + { + this.operId = operId; + } + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public Integer getBusinessType() + { + return businessType; + } + + public void setBusinessType(Integer businessType) + { + this.businessType = businessType; + } + + public Integer[] getBusinessTypes() + { + return businessTypes; + } + + public void setBusinessTypes(Integer[] businessTypes) + { + this.businessTypes = businessTypes; + } + + public String getMethod() + { + return method; + } + + public void setMethod(String method) + { + this.method = method; + } + + public String getRequestMethod() + { + return requestMethod; + } + + public void setRequestMethod(String requestMethod) + { + this.requestMethod = requestMethod; + } + + public Integer getOperatorType() + { + return operatorType; + } + + public void setOperatorType(Integer operatorType) + { + this.operatorType = operatorType; + } + + public String getOperName() + { + return operName; + } + + public void setOperName(String operName) + { + this.operName = operName; + } + + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + public String getOperUrl() + { + return operUrl; + } + + public void setOperUrl(String operUrl) + { + this.operUrl = operUrl; + } + + public String getOperIp() + { + return operIp; + } + + public void setOperIp(String operIp) + { + this.operIp = operIp; + } + + public String getOperLocation() + { + return operLocation; + } + + public void setOperLocation(String operLocation) + { + this.operLocation = operLocation; + } + + public String getOperParam() + { + return operParam; + } + + public void setOperParam(String operParam) + { + this.operParam = operParam; + } + + public String getJsonResult() + { + return jsonResult; + } + + public void setJsonResult(String jsonResult) + { + this.jsonResult = jsonResult; + } + + public Integer getStatus() + { + return status; + } + + public void setStatus(Integer status) + { + this.status = status; + } + + public String getErrorMsg() + { + return errorMsg; + } + + public void setErrorMsg(String errorMsg) + { + this.errorMsg = errorMsg; + } + + public Date getOperTime() + { + return operTime; + } + + public void setOperTime(Date operTime) + { + this.operTime = operTime; + } + + public Long getCostTime() + { + return costTime; + } + + public void setCostTime(Long costTime) + { + this.costTime = costTime; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java new file mode 100644 index 0000000..820a13b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java @@ -0,0 +1,124 @@ +package com.ruoyi.system.domain; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.annotation.Excel.ColumnType; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 岗位表 sys_post + * + * @author ruoyi + */ +public class SysPost extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 岗位序号 */ + @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC) + private Long postId; + + /** 岗位编码 */ + @Excel(name = "岗位编码") + private String postCode; + + /** 岗位名称 */ + @Excel(name = "岗位名称") + private String postName; + + /** 岗位排序 */ + @Excel(name = "岗位排序") + private Integer postSort; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; + + /** 用户是否存在此岗位标识 默认不存在 */ + private boolean flag = false; + + public Long getPostId() + { + return postId; + } + + public void setPostId(Long postId) + { + this.postId = postId; + } + + @NotBlank(message = "岗位编码不能为空") + @Size(min = 0, max = 64, message = "岗位编码长度不能超过64个字符") + public String getPostCode() + { + return postCode; + } + + public void setPostCode(String postCode) + { + this.postCode = postCode; + } + + @NotBlank(message = "岗位名称不能为空") + @Size(min = 0, max = 50, message = "岗位名称长度不能超过50个字符") + public String getPostName() + { + return postName; + } + + public void setPostName(String postName) + { + this.postName = postName; + } + + @NotNull(message = "显示顺序不能为空") + public Integer getPostSort() + { + return postSort; + } + + public void setPostSort(Integer postSort) + { + this.postSort = postSort; + } + + public String getStatus() + { + return status; + } + + public void setStatus(String status) + { + this.status = status; + } + + public boolean isFlag() + { + return flag; + } + + public void setFlag(boolean flag) + { + this.flag = flag; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("postId", getPostId()) + .append("postCode", getPostCode()) + .append("postName", getPostName()) + .append("postSort", getPostSort()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java new file mode 100644 index 0000000..47b21bf --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleDept.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 角色和部门关联 sys_role_dept + * + * @author ruoyi + */ +public class SysRoleDept +{ + /** 角色ID */ + private Long roleId; + + /** 部门ID */ + private Long deptId; + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getDeptId() + { + return deptId; + } + + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("deptId", getDeptId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java new file mode 100644 index 0000000..de10a74 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysRoleMenu.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 角色和菜单关联 sys_role_menu + * + * @author ruoyi + */ +public class SysRoleMenu +{ + /** 角色ID */ + private Long roleId; + + /** 菜单ID */ + private Long menuId; + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + public Long getMenuId() + { + return menuId; + } + + public void setMenuId(Long menuId) + { + this.menuId = menuId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("roleId", getRoleId()) + .append("menuId", getMenuId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java new file mode 100644 index 0000000..2bbd318 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserOnline.java @@ -0,0 +1,113 @@ +package com.ruoyi.system.domain; + +/** + * 当前在线会话 + * + * @author ruoyi + */ +public class SysUserOnline +{ + /** 会话编号 */ + private String tokenId; + + /** 部门名称 */ + private String deptName; + + /** 用户名称 */ + private String userName; + + /** 登录IP地址 */ + private String ipaddr; + + /** 登录地址 */ + private String loginLocation; + + /** 浏览器类型 */ + private String browser; + + /** 操作系统 */ + private String os; + + /** 登录时间 */ + private Long loginTime; + + public String getTokenId() + { + return tokenId; + } + + public void setTokenId(String tokenId) + { + this.tokenId = tokenId; + } + + public String getDeptName() + { + return deptName; + } + + public void setDeptName(String deptName) + { + this.deptName = deptName; + } + + public String getUserName() + { + return userName; + } + + public void setUserName(String userName) + { + this.userName = userName; + } + + public String getIpaddr() + { + return ipaddr; + } + + public void setIpaddr(String ipaddr) + { + this.ipaddr = ipaddr; + } + + public String getLoginLocation() + { + return loginLocation; + } + + public void setLoginLocation(String loginLocation) + { + this.loginLocation = loginLocation; + } + + public String getBrowser() + { + return browser; + } + + public void setBrowser(String browser) + { + this.browser = browser; + } + + public String getOs() + { + return os; + } + + public void setOs(String os) + { + this.os = os; + } + + public Long getLoginTime() + { + return loginTime; + } + + public void setLoginTime(Long loginTime) + { + this.loginTime = loginTime; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java new file mode 100644 index 0000000..6e8c416 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserPost.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 用户和岗位关联 sys_user_post + * + * @author ruoyi + */ +public class SysUserPost +{ + /** 用户ID */ + private Long userId; + + /** 岗位ID */ + private Long postId; + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getPostId() + { + return postId; + } + + public void setPostId(Long postId) + { + this.postId = postId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("postId", getPostId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java new file mode 100644 index 0000000..4d15810 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysUserRole.java @@ -0,0 +1,46 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 用户和角色关联 sys_user_role + * + * @author ruoyi + */ +public class SysUserRole +{ + /** 用户ID */ + private Long userId; + + /** 角色ID */ + private Long roleId; + + public Long getUserId() + { + return userId; + } + + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getRoleId() + { + return roleId; + } + + public void setRoleId(Long roleId) + { + this.roleId = roleId; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("userId", getUserId()) + .append("roleId", getRoleId()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java new file mode 100644 index 0000000..a5d5fdc --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java @@ -0,0 +1,106 @@ +package com.ruoyi.system.domain.vo; + +import com.ruoyi.common.utils.StringUtils; + +/** + * 路由显示信息 + * + * @author ruoyi + */ +public class MetaVo +{ + /** + * 设置该路由在侧边栏和面包屑中展示的名字 + */ + private String title; + + /** + * 设置该路由的图标,对应路径src/assets/icons/svg + */ + private String icon; + + /** + * 设置为true,则不会被 缓存 + */ + private boolean noCache; + + /** + * 内链地址(http(s)://开头) + */ + private String link; + + public MetaVo() + { + } + + public MetaVo(String title, String icon) + { + this.title = title; + this.icon = icon; + } + + public MetaVo(String title, String icon, boolean noCache) + { + this.title = title; + this.icon = icon; + this.noCache = noCache; + } + + public MetaVo(String title, String icon, String link) + { + this.title = title; + this.icon = icon; + this.link = link; + } + + public MetaVo(String title, String icon, boolean noCache, String link) + { + this.title = title; + this.icon = icon; + this.noCache = noCache; + if (StringUtils.ishttp(link)) + { + this.link = link; + } + } + + public boolean isNoCache() + { + return noCache; + } + + public void setNoCache(boolean noCache) + { + this.noCache = noCache; + } + + public String getTitle() + { + return title; + } + + public void setTitle(String title) + { + this.title = title; + } + + public String getIcon() + { + return icon; + } + + public void setIcon(String icon) + { + this.icon = icon; + } + + public String getLink() + { + return link; + } + + public void setLink(String link) + { + this.link = link; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java new file mode 100644 index 0000000..afff8c9 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java @@ -0,0 +1,148 @@ +package com.ruoyi.system.domain.vo; + +import com.fasterxml.jackson.annotation.JsonInclude; +import java.util.List; + +/** + * 路由配置信息 + * + * @author ruoyi + */ +@JsonInclude(JsonInclude.Include.NON_EMPTY) +public class RouterVo +{ + /** + * 路由名字 + */ + private String name; + + /** + * 路由地址 + */ + private String path; + + /** + * 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现 + */ + private boolean hidden; + + /** + * 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 + */ + private String redirect; + + /** + * 组件地址 + */ + private String component; + + /** + * 路由参数:如 {"id": 1, "name": "ry"} + */ + private String query; + + /** + * 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 + */ + private Boolean alwaysShow; + + /** + * 其他元素 + */ + private MetaVo meta; + + /** + * 子路由 + */ + private List children; + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + + public String getPath() + { + return path; + } + + public void setPath(String path) + { + this.path = path; + } + + public boolean getHidden() + { + return hidden; + } + + public void setHidden(boolean hidden) + { + this.hidden = hidden; + } + + public String getRedirect() + { + return redirect; + } + + public void setRedirect(String redirect) + { + this.redirect = redirect; + } + + public String getComponent() + { + return component; + } + + public void setComponent(String component) + { + this.component = component; + } + + public String getQuery() + { + return query; + } + + public void setQuery(String query) + { + this.query = query; + } + + public Boolean getAlwaysShow() + { + return alwaysShow; + } + + public void setAlwaysShow(Boolean alwaysShow) + { + this.alwaysShow = alwaysShow; + } + + public MetaVo getMeta() + { + return meta; + } + + public void setMeta(MetaVo meta) + { + this.meta = meta; + } + + public List getChildren() + { + return children; + } + + public void setChildren(List children) + { + this.children = children; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysConfigMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysConfigMapper.java new file mode 100644 index 0000000..13d49d6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysConfigMapper.java @@ -0,0 +1,76 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysConfig; + +/** + * 参数配置 数据层 + * + * @author ruoyi + */ +public interface SysConfigMapper +{ + /** + * 查询参数配置信息 + * + * @param config 参数配置信息 + * @return 参数配置信息 + */ + public SysConfig selectConfig(SysConfig config); + + /** + * 通过ID查询配置 + * + * @param configId 参数ID + * @return 参数配置信息 + */ + public SysConfig selectConfigById(Long configId); + + /** + * 查询参数配置列表 + * + * @param config 参数配置信息 + * @return 参数配置集合 + */ + public List selectConfigList(SysConfig config); + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数键名 + * @return 参数配置信息 + */ + public SysConfig checkConfigKeyUnique(String configKey); + + /** + * 新增参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int insertConfig(SysConfig config); + + /** + * 修改参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int updateConfig(SysConfig config); + + /** + * 删除参数配置 + * + * @param configId 参数ID + * @return 结果 + */ + public int deleteConfigById(Long configId); + + /** + * 批量删除参数信息 + * + * @param configIds 需要删除的参数ID + * @return 结果 + */ + public int deleteConfigByIds(Long[] configIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java new file mode 100644 index 0000000..0e92e4f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java @@ -0,0 +1,120 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysDept; + +/** + * 部门管理 数据层 + * + * @author ruoyi + */ +public interface SysDeptMapper +{ + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + public List selectDeptList(SysDept dept); + + /** + * 根据角色ID查询部门树信息 + * + * @param roleId 角色ID + * @param deptCheckStrictly 部门树选择项是否关联显示 + * @return 选中部门列表 + */ + public List selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + public SysDept selectDeptById(Long deptId); + + /** + * 根据ID查询所有子部门 + * + * @param deptId 部门ID + * @return 部门列表 + */ + public List selectChildrenDeptById(Long deptId); + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + public int selectNormalChildrenDeptById(Long deptId); + + /** + * 是否存在子节点 + * + * @param deptId 部门ID + * @return 结果 + */ + public int hasChildByDeptId(Long deptId); + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 + */ + public int checkDeptExistUser(Long deptId); + + /** + * 校验部门名称是否唯一 + * + * @param deptName 部门名称 + * @param parentId 父部门ID + * @return 结果 + */ + public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId); + + /** + * 新增部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int insertDept(SysDept dept); + + /** + * 修改部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int updateDept(SysDept dept); + + /** + * 修改所在部门正常状态 + * + * @param deptIds 部门ID组 + */ + public void updateDeptStatusNormal(Long[] deptIds); + + /** + * 修改子元素关系 + * + * @param depts 子元素 + * @return 结果 + */ + public int updateDeptChildren(@Param("depts") List depts); + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + public int deleteDeptById(Long deptId); + + public int getMaxOrder(Long deptId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java new file mode 100644 index 0000000..a341f1e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java @@ -0,0 +1,95 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysDictData; + +/** + * 字典表 数据层 + * + * @author ruoyi + */ +public interface SysDictDataMapper +{ + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + public List selectDictDataList(SysDictData dictData); + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + public List selectDictDataByType(String dictType); + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + public String selectDictLabel(@Param("dictType") String dictType, @Param("dictValue") String dictValue); + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + public SysDictData selectDictDataById(Long dictCode); + + /** + * 查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据 + */ + public int countDictDataByType(String dictType); + + /** + * 通过字典ID删除字典数据信息 + * + * @param dictCode 字典数据ID + * @return 结果 + */ + public int deleteDictDataById(Long dictCode); + + /** + * 批量删除字典数据信息 + * + * @param dictCodes 需要删除的字典数据ID + * @return 结果 + */ + public int deleteDictDataByIds(Long[] dictCodes); + + /** + * 新增字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int insertDictData(SysDictData dictData); + + /** + * 修改字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int updateDictData(SysDictData dictData); + + /** + * 同步修改字典类型 + * + * @param oldDictType 旧字典类型 + * @param newDictType 新旧字典类型 + * @return 结果 + */ + public int updateDictDataType(@Param("oldDictType") String oldDictType, @Param("newDictType") String newDictType); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java new file mode 100644 index 0000000..5fb48fb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictTypeMapper.java @@ -0,0 +1,83 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysDictType; + +/** + * 字典表 数据层 + * + * @author ruoyi + */ +public interface SysDictTypeMapper +{ + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + public List selectDictTypeList(SysDictType dictType); + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + public List selectDictTypeAll(); + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + public SysDictType selectDictTypeById(Long dictId); + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + public SysDictType selectDictTypeByType(String dictType); + + /** + * 通过字典ID删除字典信息 + * + * @param dictId 字典ID + * @return 结果 + */ + public int deleteDictTypeById(Long dictId); + + /** + * 批量删除字典类型信息 + * + * @param dictIds 需要删除的字典ID + * @return 结果 + */ + public int deleteDictTypeByIds(Long[] dictIds); + + /** + * 新增字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int insertDictType(SysDictType dictType); + + /** + * 修改字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int updateDictType(SysDictType dictType); + + /** + * 校验字典类型称是否唯一 + * + * @param dictType 字典类型 + * @return 结果 + */ + public SysDictType checkDictTypeUnique(String dictType); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysLogininforMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysLogininforMapper.java new file mode 100644 index 0000000..629866f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysLogininforMapper.java @@ -0,0 +1,42 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysLogininfor; + +/** + * 系统访问日志情况信息 数据层 + * + * @author ruoyi + */ +public interface SysLogininforMapper +{ + /** + * 新增系统登录日志 + * + * @param logininfor 访问日志对象 + */ + public void insertLogininfor(SysLogininfor logininfor); + + /** + * 查询系统登录日志集合 + * + * @param logininfor 访问日志对象 + * @return 登录记录集合 + */ + public List selectLogininforList(SysLogininfor logininfor); + + /** + * 批量删除系统登录日志 + * + * @param infoIds 需要删除的登录日志ID + * @return 结果 + */ + public int deleteLogininforByIds(Long[] infoIds); + + /** + * 清空系统登录日志 + * + * @return 结果 + */ + public int cleanLogininfor(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java new file mode 100644 index 0000000..99c0c50 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java @@ -0,0 +1,125 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysMenu; + +/** + * 菜单表 数据层 + * + * @author ruoyi + */ +public interface SysMenuMapper +{ + /** + * 查询系统菜单列表 + * + * @param menu 菜单信息 + * @return 菜单列表 + */ + public List selectMenuList(SysMenu menu); + + /** + * 根据用户所有权限 + * + * @return 权限列表 + */ + public List selectMenuPerms(); + + /** + * 根据用户查询系统菜单列表 + * + * @param menu 菜单信息 + * @return 菜单列表 + */ + public List selectMenuListByUserId(SysMenu menu); + + /** + * 根据角色ID查询权限 + * + * @param roleId 角色ID + * @return 权限列表 + */ + public List selectMenuPermsByRoleId(Long roleId); + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public List selectMenuPermsByUserId(Long userId); + + /** + * 根据用户ID查询菜单 + * + * @return 菜单列表 + */ + public List selectMenuTreeAll(); + + /** + * 根据用户ID查询菜单 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuTreeByUserId(Long userId); + + /** + * 根据角色ID查询菜单树信息 + * + * @param roleId 角色ID + * @param menuCheckStrictly 菜单树选择项是否关联显示 + * @return 选中菜单列表 + */ + public List selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + public SysMenu selectMenuById(Long menuId); + + /** + * 是否存在菜单子节点 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int hasChildByMenuId(Long menuId); + + /** + * 新增菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int insertMenu(SysMenu menu); + + /** + * 修改菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int updateMenu(SysMenu menu); + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int deleteMenuById(Long menuId); + + /** + * 校验菜单名称是否唯一 + * + * @param menuName 菜单名称 + * @param parentId 父菜单ID + * @return 结果 + */ + public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java new file mode 100644 index 0000000..c34f0a2 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysNoticeMapper.java @@ -0,0 +1,60 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysNotice; + +/** + * 通知公告表 数据层 + * + * @author ruoyi + */ +public interface SysNoticeMapper +{ + /** + * 查询公告信息 + * + * @param noticeId 公告ID + * @return 公告信息 + */ + public SysNotice selectNoticeById(Long noticeId); + + /** + * 查询公告列表 + * + * @param notice 公告信息 + * @return 公告集合 + */ + public List selectNoticeList(SysNotice notice); + + /** + * 新增公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int insertNotice(SysNotice notice); + + /** + * 修改公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int updateNotice(SysNotice notice); + + /** + * 批量删除公告 + * + * @param noticeId 公告ID + * @return 结果 + */ + public int deleteNoticeById(Long noticeId); + + /** + * 批量删除公告信息 + * + * @param noticeIds 需要删除的公告ID + * @return 结果 + */ + public int deleteNoticeByIds(Long[] noticeIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysOperLogMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysOperLogMapper.java new file mode 100644 index 0000000..2ae6457 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysOperLogMapper.java @@ -0,0 +1,48 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysOperLog; + +/** + * 操作日志 数据层 + * + * @author ruoyi + */ +public interface SysOperLogMapper +{ + /** + * 新增操作日志 + * + * @param operLog 操作日志对象 + */ + public void insertOperlog(SysOperLog operLog); + + /** + * 查询系统操作日志集合 + * + * @param operLog 操作日志对象 + * @return 操作日志集合 + */ + public List selectOperLogList(SysOperLog operLog); + + /** + * 批量删除系统操作日志 + * + * @param operIds 需要删除的操作日志ID + * @return 结果 + */ + public int deleteOperLogByIds(Long[] operIds); + + /** + * 查询操作日志详细 + * + * @param operId 操作ID + * @return 操作日志对象 + */ + public SysOperLog selectOperLogById(Long operId); + + /** + * 清空操作日志 + */ + public void cleanOperLog(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java new file mode 100644 index 0000000..19be227 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java @@ -0,0 +1,99 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysPost; + +/** + * 岗位信息 数据层 + * + * @author ruoyi + */ +public interface SysPostMapper +{ + /** + * 查询岗位数据集合 + * + * @param post 岗位信息 + * @return 岗位数据集合 + */ + public List selectPostList(SysPost post); + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + public List selectPostAll(); + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + public SysPost selectPostById(Long postId); + + /** + * 根据用户ID获取岗位选择框列表 + * + * @param userId 用户ID + * @return 选中岗位ID列表 + */ + public List selectPostListByUserId(Long userId); + + /** + * 查询用户所属岗位组 + * + * @param userName 用户名 + * @return 结果 + */ + public List selectPostsByUserName(String userName); + + /** + * 删除岗位信息 + * + * @param postId 岗位ID + * @return 结果 + */ + public int deletePostById(Long postId); + + /** + * 批量删除岗位信息 + * + * @param postIds 需要删除的岗位ID + * @return 结果 + */ + public int deletePostByIds(Long[] postIds); + + /** + * 修改岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int updatePost(SysPost post); + + /** + * 新增岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int insertPost(SysPost post); + + /** + * 校验岗位名称 + * + * @param postName 岗位名称 + * @return 结果 + */ + public SysPost checkPostNameUnique(String postName); + + /** + * 校验岗位编码 + * + * @param postCode 岗位编码 + * @return 结果 + */ + public SysPost checkPostCodeUnique(String postCode); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java new file mode 100644 index 0000000..f9d3a2f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleDeptMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysRoleDept; + +/** + * 角色与部门关联表 数据层 + * + * @author ruoyi + */ +public interface SysRoleDeptMapper +{ + /** + * 通过角色ID删除角色和部门关联 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleDeptByRoleId(Long roleId); + + /** + * 批量删除角色部门关联信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteRoleDept(Long[] ids); + + /** + * 查询部门使用数量 + * + * @param deptId 部门ID + * @return 结果 + */ + public int selectCountRoleDeptByDeptId(Long deptId); + + /** + * 批量新增角色部门信息 + * + * @param roleDeptList 角色部门列表 + * @return 结果 + */ + public int batchRoleDept(List roleDeptList); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java new file mode 100644 index 0000000..cf2bd8c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMapper.java @@ -0,0 +1,107 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysRole; + +/** + * 角色表 数据层 + * + * @author ruoyi + */ +public interface SysRoleMapper +{ + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + public List selectRoleList(SysRole role); + + /** + * 根据用户ID查询角色 + * + * @param userId 用户ID + * @return 角色列表 + */ + public List selectRolePermissionByUserId(Long userId); + + /** + * 查询所有角色 + * + * @return 角色列表 + */ + public List selectRoleAll(); + + /** + * 根据用户ID获取角色选择框列表 + * + * @param userId 用户ID + * @return 选中角色ID列表 + */ + public List selectRoleListByUserId(Long userId); + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + public SysRole selectRoleById(Long roleId); + + /** + * 根据用户ID查询角色 + * + * @param userName 用户名 + * @return 角色列表 + */ + public List selectRolesByUserName(String userName); + + /** + * 校验角色名称是否唯一 + * + * @param roleName 角色名称 + * @return 角色信息 + */ + public SysRole checkRoleNameUnique(String roleName); + + /** + * 校验角色权限是否唯一 + * + * @param roleKey 角色权限 + * @return 角色信息 + */ + public SysRole checkRoleKeyUnique(String roleKey); + + /** + * 修改角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int updateRole(SysRole role); + + /** + * 新增角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int insertRole(SysRole role); + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleById(Long roleId); + + /** + * 批量删除角色信息 + * + * @param roleIds 需要删除的角色ID + * @return 结果 + */ + public int deleteRoleByIds(Long[] roleIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java new file mode 100644 index 0000000..6602bee --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysRoleMenuMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysRoleMenu; + +/** + * 角色与菜单关联表 数据层 + * + * @author ruoyi + */ +public interface SysRoleMenuMapper +{ + /** + * 查询菜单使用数量 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int checkMenuExistRole(Long menuId); + + /** + * 通过角色ID删除角色和菜单关联 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleMenuByRoleId(Long roleId); + + /** + * 批量删除角色菜单关联信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteRoleMenu(Long[] ids); + + /** + * 批量新增角色菜单信息 + * + * @param roleMenuList 角色菜单列表 + * @return 结果 + */ + public int batchRoleMenu(List roleMenuList); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java new file mode 100644 index 0000000..22cddc8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java @@ -0,0 +1,129 @@ +package com.ruoyi.system.mapper; + +import java.util.List; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.common.core.domain.entity.SysUser; + +/** + * 用户表 数据层 + * + * @author ruoyi + */ +public interface SysUserMapper extends BaseMapper +{ + /** + * 根据条件分页查询用户列表 + * + * @param sysUser 用户信息 + * @return 用户信息集合信息 + */ + public List selectUserList(SysUser sysUser); + + /** + * 根据条件分页查询已配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectAllocatedList(SysUser user); + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUnallocatedList(SysUser user); + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + public SysUser selectUserByUserName(String userName); + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + public SysUser selectUserById(Long userId); + + /** + * 新增用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int insertUser(SysUser user); + + /** + * 修改用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUser(SysUser user); + + /** + * 修改用户头像 + * + * @param userId 用户ID + * @param avatar 头像地址 + * @return 结果 + */ + public int updateUserAvatar(@Param("userId") Long userId, @Param("avatar") String avatar); + + /** + * 重置用户密码 + * + * @param userId 用户ID + * @param password 密码 + * @return 结果 + */ + public int resetUserPwd(@Param("userId") Long userId, @Param("password") String password); + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserById(Long userId); + + /** + * 批量删除用户信息 + * + * @param userIds 需要删除的用户ID + * @return 结果 + */ + public int deleteUserByIds(Long[] userIds); + + /** + * 校验用户名称是否唯一 + * + * @param userName 用户名称 + * @return 结果 + */ + public SysUser checkUserNameUnique(String userName); + + /** + * 校验手机号码是否唯一 + * + * @param phonenumber 手机号码 + * @return 结果 + */ + public SysUser checkPhoneUnique(String phonenumber); + + /** + * 校验email是否唯一 + * + * @param email 用户邮箱 + * @return 结果 + */ + public SysUser checkEmailUnique(String email); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java new file mode 100644 index 0000000..2a6a720 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserPostMapper.java @@ -0,0 +1,44 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysUserPost; + +/** + * 用户与岗位关联表 数据层 + * + * @author ruoyi + */ +public interface SysUserPostMapper +{ + /** + * 通过用户ID删除用户和岗位关联 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserPostByUserId(Long userId); + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + public int countUserPostById(Long postId); + + /** + * 批量删除用户和岗位关联 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserPost(Long[] ids); + + /** + * 批量新增用户岗位信息 + * + * @param userPostList 用户岗位列表 + * @return 结果 + */ + public int batchUserPost(List userPostList); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java new file mode 100644 index 0000000..3143ec8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserRoleMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import org.apache.ibatis.annotations.Param; +import com.ruoyi.system.domain.SysUserRole; + +/** + * 用户与角色关联表 数据层 + * + * @author ruoyi + */ +public interface SysUserRoleMapper +{ + /** + * 通过用户ID删除用户和角色关联 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserRoleByUserId(Long userId); + + /** + * 批量删除用户和角色关联 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteUserRole(Long[] ids); + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + public int countUserRoleByRoleId(Long roleId); + + /** + * 批量新增用户角色信息 + * + * @param userRoleList 用户角色列表 + * @return 结果 + */ + public int batchUserRole(List userRoleList); + + /** + * 删除用户和角色关联信息 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + public int deleteUserRoleInfo(SysUserRole userRole); + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + public int deleteUserRoleInfos(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java new file mode 100644 index 0000000..8d59ea5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysConfigService.java @@ -0,0 +1,91 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysConfig; + +/** + * 参数配置 服务层 + * + * @author ruoyi + */ +public interface ISysConfigService +{ + /** + * 查询参数配置信息 + * + * @param configId 参数配置ID + * @return 参数配置信息 + */ + public SysConfig selectConfigById(Long configId); + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数键名 + * @return 参数键值 + */ + public String selectConfigByKey(String configKey); + + /** + * 获取验证码开关 + * + * @return true开启,false关闭 + */ + public boolean selectCaptchaEnabled(); + + /** + * 查询参数配置列表 + * + * @param config 参数配置信息 + * @return 参数配置集合 + */ + public List selectConfigList(SysConfig config); + + /** + * 新增参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int insertConfig(SysConfig config); + + /** + * 修改参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + public int updateConfig(SysConfig config); + + /** + * 批量删除参数信息 + * + * @param configIds 需要删除的参数ID + */ + public void deleteConfigByIds(Long[] configIds); + + /** + * 加载参数缓存数据 + */ + public void loadingConfigCache(); + + /** + * 清空参数缓存数据 + */ + public void clearConfigCache(); + + /** + * 重置参数缓存数据 + */ + public void resetConfigCache(); + + /** + * 校验参数键名是否唯一 + * + * @param config 参数信息 + * @return 结果 + */ + public boolean checkConfigKeyUnique(SysConfig config); + + SysConfig getPortalLogo(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java new file mode 100644 index 0000000..20f4b03 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java @@ -0,0 +1,126 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.TreeSelect; +import com.ruoyi.common.core.domain.entity.SysDept; + +/** + * 部门管理 服务层 + * + * @author ruoyi + */ +public interface ISysDeptService +{ + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + public List selectDeptList(SysDept dept); + + /** + * 查询部门树结构信息 + * + * @param dept 部门信息 + * @return 部门树信息集合 + */ + public List selectDeptTreeList(SysDept dept); + + /** + * 构建前端所需要树结构 + * + * @param depts 部门列表 + * @return 树结构列表 + */ + public List buildDeptTree(List depts); + + /** + * 构建前端所需要下拉树结构 + * + * @param depts 部门列表 + * @return 下拉树结构列表 + */ + public List buildDeptTreeSelect(List depts); + + /** + * 根据角色ID查询部门树信息 + * + * @param roleId 角色ID + * @return 选中部门列表 + */ + public List selectDeptListByRoleId(Long roleId); + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + public SysDept selectDeptById(Long deptId); + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + public int selectNormalChildrenDeptById(Long deptId); + + /** + * 是否存在部门子节点 + * + * @param deptId 部门ID + * @return 结果 + */ + public boolean hasChildByDeptId(Long deptId); + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 true 存在 false 不存在 + */ + public boolean checkDeptExistUser(Long deptId); + + /** + * 校验部门名称是否唯一 + * + * @param dept 部门信息 + * @return 结果 + */ + public boolean checkDeptNameUnique(SysDept dept); + + /** + * 校验部门是否有数据权限 + * + * @param deptId 部门id + */ + public void checkDeptDataScope(Long deptId); + + /** + * 新增保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int insertDept(SysDept dept); + + /** + * 修改保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + public int updateDept(SysDept dept); + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + public int deleteDeptById(Long deptId); + + public int getMaxOrder(Long deptId); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java new file mode 100644 index 0000000..408278f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictDataService.java @@ -0,0 +1,69 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysDictData; + +/** + * 字典 业务层 + * + * @author ruoyi + */ +public interface ISysDictDataService +{ + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + public List selectDictDataList(SysDictData dictData); + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + public String selectDictLabel(String dictType, String dictValue); + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + public SysDictData selectDictDataById(Long dictCode); + + /** + * 批量删除字典数据信息 + * + * @param dictCodes 需要删除的字典数据ID + */ + public void deleteDictDataByIds(Long[] dictCodes); + + /** + * 新增保存字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int insertDictData(SysDictData dictData); + + /** + * 修改保存字典数据信息 + * + * @param dictData 字典数据信息 + * @return 结果 + */ + public int updateDictData(SysDictData dictData); + + + /** + * 修改保存字典数据信息 + * + * @param dictDatas 字典数据信息 + * @return 结果 + */ + public int updateDictDatas(List dictDatas); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java new file mode 100644 index 0000000..01c1c1d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDictTypeService.java @@ -0,0 +1,98 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.domain.entity.SysDictType; + +/** + * 字典 业务层 + * + * @author ruoyi + */ +public interface ISysDictTypeService +{ + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + public List selectDictTypeList(SysDictType dictType); + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + public List selectDictTypeAll(); + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + public List selectDictDataByType(String dictType); + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + public SysDictType selectDictTypeById(Long dictId); + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + public SysDictType selectDictTypeByType(String dictType); + + /** + * 批量删除字典信息 + * + * @param dictIds 需要删除的字典ID + */ + public void deleteDictTypeByIds(Long[] dictIds); + + /** + * 加载字典缓存数据 + */ + public void loadingDictCache(); + + /** + * 清空字典缓存数据 + */ + public void clearDictCache(); + + /** + * 重置字典缓存数据 + */ + public void resetDictCache(); + + /** + * 新增保存字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int insertDictType(SysDictType dictType); + + /** + * 修改保存字典类型信息 + * + * @param dictType 字典类型信息 + * @return 结果 + */ + public int updateDictType(SysDictType dictType); + + /** + * 校验字典类型称是否唯一 + * + * @param dictType 字典类型 + * @return 结果 + */ + public boolean checkDictTypeUnique(SysDictType dictType); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java new file mode 100644 index 0000000..ce3151d --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysLogininforService.java @@ -0,0 +1,40 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysLogininfor; + +/** + * 系统访问日志情况信息 服务层 + * + * @author ruoyi + */ +public interface ISysLogininforService +{ + /** + * 新增系统登录日志 + * + * @param logininfor 访问日志对象 + */ + public void insertLogininfor(SysLogininfor logininfor); + + /** + * 查询系统登录日志集合 + * + * @param logininfor 访问日志对象 + * @return 登录记录集合 + */ + public List selectLogininforList(SysLogininfor logininfor); + + /** + * 批量删除系统登录日志 + * + * @param infoIds 需要删除的登录日志ID + * @return 结果 + */ + public int deleteLogininforByIds(Long[] infoIds); + + /** + * 清空系统登录日志 + */ + public void cleanLogininfor(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java new file mode 100644 index 0000000..7d60696 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysMenuService.java @@ -0,0 +1,144 @@ +package com.ruoyi.system.service; + +import java.util.List; +import java.util.Set; +import com.ruoyi.common.core.domain.TreeSelect; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.system.domain.vo.RouterVo; + +/** + * 菜单 业务层 + * + * @author ruoyi + */ +public interface ISysMenuService +{ + /** + * 根据用户查询系统菜单列表 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuList(Long userId); + + /** + * 根据用户查询系统菜单列表 + * + * @param menu 菜单信息 + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuList(SysMenu menu, Long userId); + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public Set selectMenuPermsByUserId(Long userId); + + /** + * 根据角色ID查询权限 + * + * @param roleId 角色ID + * @return 权限列表 + */ + public Set selectMenuPermsByRoleId(Long roleId); + + /** + * 根据用户ID查询菜单树信息 + * + * @param userId 用户ID + * @return 菜单列表 + */ + public List selectMenuTreeByUserId(Long userId); + + /** + * 根据角色ID查询菜单树信息 + * + * @param roleId 角色ID + * @return 选中菜单列表 + */ + public List selectMenuListByRoleId(Long roleId); + + /** + * 构建前端路由所需要的菜单 + * + * @param menus 菜单列表 + * @return 路由列表 + */ + public List buildMenus(List menus); + + /** + * 构建前端所需要树结构 + * + * @param menus 菜单列表 + * @return 树结构列表 + */ + public List buildMenuTree(List menus); + + /** + * 构建前端所需要下拉树结构 + * + * @param menus 菜单列表 + * @return 下拉树结构列表 + */ + public List buildMenuTreeSelect(List menus); + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + public SysMenu selectMenuById(Long menuId); + + /** + * 是否存在菜单子节点 + * + * @param menuId 菜单ID + * @return 结果 true 存在 false 不存在 + */ + public boolean hasChildByMenuId(Long menuId); + + /** + * 查询菜单是否存在角色 + * + * @param menuId 菜单ID + * @return 结果 true 存在 false 不存在 + */ + public boolean checkMenuExistRole(Long menuId); + + /** + * 新增保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int insertMenu(SysMenu menu); + + /** + * 修改保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + public int updateMenu(SysMenu menu); + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + public int deleteMenuById(Long menuId); + + /** + * 校验菜单名称是否唯一 + * + * @param menu 菜单信息 + * @return 结果 + */ + public boolean checkMenuNameUnique(SysMenu menu); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java new file mode 100644 index 0000000..47ce1b7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysNoticeService.java @@ -0,0 +1,60 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysNotice; + +/** + * 公告 服务层 + * + * @author ruoyi + */ +public interface ISysNoticeService +{ + /** + * 查询公告信息 + * + * @param noticeId 公告ID + * @return 公告信息 + */ + public SysNotice selectNoticeById(Long noticeId); + + /** + * 查询公告列表 + * + * @param notice 公告信息 + * @return 公告集合 + */ + public List selectNoticeList(SysNotice notice); + + /** + * 新增公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int insertNotice(SysNotice notice); + + /** + * 修改公告 + * + * @param notice 公告信息 + * @return 结果 + */ + public int updateNotice(SysNotice notice); + + /** + * 删除公告信息 + * + * @param noticeId 公告ID + * @return 结果 + */ + public int deleteNoticeById(Long noticeId); + + /** + * 批量删除公告信息 + * + * @param noticeIds 需要删除的公告ID + * @return 结果 + */ + public int deleteNoticeByIds(Long[] noticeIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java new file mode 100644 index 0000000..4fd8e5a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysOperLogService.java @@ -0,0 +1,48 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysOperLog; + +/** + * 操作日志 服务层 + * + * @author ruoyi + */ +public interface ISysOperLogService +{ + /** + * 新增操作日志 + * + * @param operLog 操作日志对象 + */ + public void insertOperlog(SysOperLog operLog); + + /** + * 查询系统操作日志集合 + * + * @param operLog 操作日志对象 + * @return 操作日志集合 + */ + public List selectOperLogList(SysOperLog operLog); + + /** + * 批量删除系统操作日志 + * + * @param operIds 需要删除的操作日志ID + * @return 结果 + */ + public int deleteOperLogByIds(Long[] operIds); + + /** + * 查询操作日志详细 + * + * @param operId 操作ID + * @return 操作日志对象 + */ + public SysOperLog selectOperLogById(Long operId); + + /** + * 清空操作日志 + */ + public void cleanOperLog(); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java new file mode 100644 index 0000000..84779bf --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysPostService.java @@ -0,0 +1,99 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysPost; + +/** + * 岗位信息 服务层 + * + * @author ruoyi + */ +public interface ISysPostService +{ + /** + * 查询岗位信息集合 + * + * @param post 岗位信息 + * @return 岗位列表 + */ + public List selectPostList(SysPost post); + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + public List selectPostAll(); + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + public SysPost selectPostById(Long postId); + + /** + * 根据用户ID获取岗位选择框列表 + * + * @param userId 用户ID + * @return 选中岗位ID列表 + */ + public List selectPostListByUserId(Long userId); + + /** + * 校验岗位名称 + * + * @param post 岗位信息 + * @return 结果 + */ + public boolean checkPostNameUnique(SysPost post); + + /** + * 校验岗位编码 + * + * @param post 岗位信息 + * @return 结果 + */ + public boolean checkPostCodeUnique(SysPost post); + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + public int countUserPostById(Long postId); + + /** + * 删除岗位信息 + * + * @param postId 岗位ID + * @return 结果 + */ + public int deletePostById(Long postId); + + /** + * 批量删除岗位信息 + * + * @param postIds 需要删除的岗位ID + * @return 结果 + */ + public int deletePostByIds(Long[] postIds); + + /** + * 新增保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int insertPost(SysPost post); + + /** + * 修改保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + public int updatePost(SysPost post); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java new file mode 100644 index 0000000..9185cce --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysRoleService.java @@ -0,0 +1,173 @@ +package com.ruoyi.system.service; + +import java.util.List; +import java.util.Set; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.system.domain.SysUserRole; + +/** + * 角色业务层 + * + * @author ruoyi + */ +public interface ISysRoleService +{ + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + public List selectRoleList(SysRole role); + + /** + * 根据用户ID查询角色列表 + * + * @param userId 用户ID + * @return 角色列表 + */ + public List selectRolesByUserId(Long userId); + + /** + * 根据用户ID查询角色权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + public Set selectRolePermissionByUserId(Long userId); + + /** + * 查询所有角色 + * + * @return 角色列表 + */ + public List selectRoleAll(); + + /** + * 根据用户ID获取角色选择框列表 + * + * @param userId 用户ID + * @return 选中角色ID列表 + */ + public List selectRoleListByUserId(Long userId); + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + public SysRole selectRoleById(Long roleId); + + /** + * 校验角色名称是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + public boolean checkRoleNameUnique(SysRole role); + + /** + * 校验角色权限是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + public boolean checkRoleKeyUnique(SysRole role); + + /** + * 校验角色是否允许操作 + * + * @param role 角色信息 + */ + public void checkRoleAllowed(SysRole role); + + /** + * 校验角色是否有数据权限 + * + * @param roleIds 角色id + */ + public void checkRoleDataScope(Long... roleIds); + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + public int countUserRoleByRoleId(Long roleId); + + /** + * 新增保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int insertRole(SysRole role); + + /** + * 修改保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int updateRole(SysRole role); + + /** + * 修改角色状态 + * + * @param role 角色信息 + * @return 结果 + */ + public int updateRoleStatus(SysRole role); + + /** + * 修改数据权限信息 + * + * @param role 角色信息 + * @return 结果 + */ + public int authDataScope(SysRole role); + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + public int deleteRoleById(Long roleId); + + /** + * 批量删除角色信息 + * + * @param roleIds 需要删除的角色ID + * @return 结果 + */ + public int deleteRoleByIds(Long[] roleIds); + + /** + * 取消授权用户角色 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + public int deleteAuthUser(SysUserRole userRole); + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要取消授权的用户数据ID + * @return 结果 + */ + public int deleteAuthUsers(Long roleId, Long[] userIds); + + /** + * 批量选择授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要删除的用户数据ID + * @return 结果 + */ + public int insertAuthUsers(Long roleId, Long[] userIds); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java new file mode 100644 index 0000000..8eb5448 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserOnlineService.java @@ -0,0 +1,48 @@ +package com.ruoyi.system.service; + +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.system.domain.SysUserOnline; + +/** + * 在线用户 服务层 + * + * @author ruoyi + */ +public interface ISysUserOnlineService +{ + /** + * 通过登录地址查询信息 + * + * @param ipaddr 登录地址 + * @param user 用户信息 + * @return 在线用户信息 + */ + public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user); + + /** + * 通过用户名称查询信息 + * + * @param userName 用户名称 + * @param user 用户信息 + * @return 在线用户信息 + */ + public SysUserOnline selectOnlineByUserName(String userName, LoginUser user); + + /** + * 通过登录地址/用户名称查询信息 + * + * @param ipaddr 登录地址 + * @param userName 用户名称 + * @param user 用户信息 + * @return 在线用户信息 + */ + public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user); + + /** + * 设置在线用户信息 + * + * @param user 用户信息 + * @return 在线用户 + */ + public SysUserOnline loginUserToUserOnline(LoginUser user); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java new file mode 100644 index 0000000..7a5b679 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysUserService.java @@ -0,0 +1,206 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.common.core.domain.entity.SysUser; + +/** + * 用户 业务层 + * + * @author ruoyi + */ +public interface ISysUserService +{ + /** + * 根据条件分页查询用户列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUserList(SysUser user); + + /** + * 根据条件分页查询已分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectAllocatedList(SysUser user); + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + public List selectUnallocatedList(SysUser user); + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + public SysUser selectUserByUserName(String userName); + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + public SysUser selectUserById(Long userId); + + /** + * 根据用户ID查询用户所属角色组 + * + * @param userName 用户名 + * @return 结果 + */ + public String selectUserRoleGroup(String userName); + + /** + * 根据用户ID查询用户所属岗位组 + * + * @param userName 用户名 + * @return 结果 + */ + public String selectUserPostGroup(String userName); + + /** + * 校验用户名称是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + public boolean checkUserNameUnique(SysUser user); + + /** + * 校验手机号码是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + public boolean checkPhoneUnique(SysUser user); + + /** + * 校验email是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + public boolean checkEmailUnique(SysUser user); + + /** + * 校验用户是否允许操作 + * + * @param user 用户信息 + */ + public void checkUserAllowed(SysUser user); + + /** + * 校验用户是否有数据权限 + * + * @param userId 用户id + */ + public void checkUserDataScope(Long userId); + + /** + * 新增用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int insertUser(SysUser user); + + /** + * 注册用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public boolean registerUser(SysUser user); + + /** + * 修改用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUser(SysUser user); + + /** + * 用户授权角色 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + public void insertUserAuth(Long userId, Long[] roleIds); + + /** + * 修改用户状态 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUserStatus(SysUser user); + + /** + * 修改用户基本信息 + * + * @param user 用户信息 + * @return 结果 + */ + public int updateUserProfile(SysUser user); + + /** + * 修改用户头像 + * + * @param userId 用户ID + * @param avatar 头像地址 + * @return 结果 + */ + public boolean updateUserAvatar(Long userId, String avatar); + + /** + * 重置用户密码 + * + * @param user 用户信息 + * @return 结果 + */ + public int resetPwd(SysUser user); + + /** + * 重置用户密码 + * + * @param userId 用户ID + * @param password 密码 + * @return 结果 + */ + public int resetUserPwd(Long userId, String password); + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + public int deleteUserById(Long userId); + + /** + * 批量删除用户信息 + * + * @param userIds 需要删除的用户ID + * @return 结果 + */ + public int deleteUserByIds(Long[] userIds); + + /** + * 导入用户数据 + * + * @param userList 用户数据列表 + * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 + * @param operName 操作用户 + * @return 结果 + */ + public String importUser(List userList, Boolean isUpdateSupport, String operName); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java new file mode 100644 index 0000000..7ea7e9e --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java @@ -0,0 +1,242 @@ +package com.ruoyi.system.service.impl; + +import java.util.Collection; +import java.util.List; +import javax.annotation.PostConstruct; + +import com.ruoyi.ai.domain.enums.AiConfigEnum; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.annotation.DataSource; +import com.ruoyi.common.constant.CacheConstants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.enums.DataSourceType; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysConfig; +import com.ruoyi.system.mapper.SysConfigMapper; +import com.ruoyi.system.service.ISysConfigService; + +/** + * 参数配置 服务层实现 + * + * @author ruoyi + */ +@Service +public class SysConfigServiceImpl implements ISysConfigService +{ + @Autowired + private SysConfigMapper configMapper; + + @Autowired + private RedisCache redisCache; + + @Autowired + private SysConfigMapper sysConfigMapper; + + /** + * 项目启动时,初始化参数到缓存 + */ + @PostConstruct + public void init() + { + loadingConfigCache(); + } + + /** + * 查询参数配置信息 + * + * @param configId 参数配置ID + * @return 参数配置信息 + */ + @Override + @DataSource(DataSourceType.MASTER) + public SysConfig selectConfigById(Long configId) + { + SysConfig config = new SysConfig(); + config.setConfigId(configId); + return configMapper.selectConfig(config); + } + + /** + * 根据键名查询参数配置信息 + * + * @param configKey 参数key + * @return 参数键值 + */ + @Override + public String selectConfigByKey(String configKey) + { + String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey))); + if (StringUtils.isNotEmpty(configValue)) + { + return configValue; + } + SysConfig config = new SysConfig(); + config.setConfigKey(configKey); + SysConfig retConfig = configMapper.selectConfig(config); + if (StringUtils.isNotNull(retConfig)) + { + redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue()); + return retConfig.getConfigValue(); + } + return StringUtils.EMPTY; + } + + /** + * 获取验证码开关 + * + * @return true开启,false关闭 + */ + @Override + public boolean selectCaptchaEnabled() + { + String captchaEnabled = selectConfigByKey("sys.account.captchaEnabled"); + if (StringUtils.isEmpty(captchaEnabled)) + { + return true; + } + return Convert.toBool(captchaEnabled); + } + + /** + * 查询参数配置列表 + * + * @param config 参数配置信息 + * @return 参数配置集合 + */ + @Override + public List selectConfigList(SysConfig config) + { + return configMapper.selectConfigList(config); + } + + /** + * 新增参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public int insertConfig(SysConfig config) + { + int row = configMapper.insertConfig(config); + if (row > 0) + { + redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + return row; + } + + /** + * 修改参数配置 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public int updateConfig(SysConfig config) + { + SysConfig temp = configMapper.selectConfigById(config.getConfigId()); + if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey())) + { + redisCache.deleteObject(getCacheKey(temp.getConfigKey())); + } + + int row = configMapper.updateConfig(config); + if (row > 0) + { + redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + return row; + } + + /** + * 批量删除参数信息 + * + * @param configIds 需要删除的参数ID + */ + @Override + public void deleteConfigByIds(Long[] configIds) + { + for (Long configId : configIds) + { + SysConfig config = selectConfigById(configId); + if (StringUtils.equals(UserConstants.YES, config.getConfigType())) + { + throw new ServiceException(String.format("内置参数【%1$s】不能删除 ", config.getConfigKey())); + } + configMapper.deleteConfigById(configId); + redisCache.deleteObject(getCacheKey(config.getConfigKey())); + } + } + + /** + * 加载参数缓存数据 + */ + @Override + public void loadingConfigCache() + { + List configsList = configMapper.selectConfigList(new SysConfig()); + for (SysConfig config : configsList) + { + redisCache.setCacheObject(getCacheKey(config.getConfigKey()), config.getConfigValue()); + } + } + + /** + * 清空参数缓存数据 + */ + @Override + public void clearConfigCache() + { + Collection keys = redisCache.keys(CacheConstants.SYS_CONFIG_KEY + "*"); + redisCache.deleteObject(keys); + } + + /** + * 重置参数缓存数据 + */ + @Override + public void resetConfigCache() + { + clearConfigCache(); + loadingConfigCache(); + } + + /** + * 校验参数键名是否唯一 + * + * @param config 参数配置信息 + * @return 结果 + */ + @Override + public boolean checkConfigKeyUnique(SysConfig config) + { + Long configId = StringUtils.isNull(config.getConfigId()) ? -1L : config.getConfigId(); + SysConfig info = configMapper.checkConfigKeyUnique(config.getConfigKey()); + if (StringUtils.isNotNull(info) && info.getConfigId().longValue() != configId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 设置cache key + * + * @param configKey 参数键 + * @return 缓存键key + */ + private String getCacheKey(String configKey) + { + return CacheConstants.SYS_CONFIG_KEY + configKey; + } + + @Override + public SysConfig getPortalLogo() { + return sysConfigMapper.checkConfigKeyUnique(AiConfigEnum.SYS_PORTAL_LOGO.getValue()); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java new file mode 100644 index 0000000..3c6bd5c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java @@ -0,0 +1,344 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; +import java.util.stream.Collectors; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.TreeSelect; +import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.mapper.SysDeptMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.service.ISysDeptService; + +/** + * 部门管理 服务实现 + * + * @author ruoyi + */ +@Service +public class SysDeptServiceImpl implements ISysDeptService +{ + @Autowired + private SysDeptMapper deptMapper; + + @Autowired + private SysRoleMapper roleMapper; + + /** + * 查询部门管理数据 + * + * @param dept 部门信息 + * @return 部门信息集合 + */ + @Override + @DataScope(deptAlias = "d") + public List selectDeptList(SysDept dept) + { + return deptMapper.selectDeptList(dept); + } + + /** + * 查询部门树结构信息 + * + * @param dept 部门信息 + * @return 部门树信息集合 + */ + @Override + public List selectDeptTreeList(SysDept dept) + { + List depts = SpringUtils.getAopProxy(this).selectDeptList(dept); + return buildDeptTreeSelect(depts); + } + + /** + * 构建前端所需要树结构 + * + * @param depts 部门列表 + * @return 树结构列表 + */ + @Override + public List buildDeptTree(List depts) + { + List returnList = new ArrayList(); + List tempList = depts.stream().map(SysDept::getDeptId).collect(Collectors.toList()); + for (SysDept dept : depts) + { + // 如果是顶级节点, 遍历该父节点的所有子节点 + if (!tempList.contains(dept.getParentId())) + { + recursionFn(depts, dept); + returnList.add(dept); + } + } + if (returnList.isEmpty()) + { + returnList = depts; + } + return returnList; + } + + /** + * 构建前端所需要下拉树结构 + * + * @param depts 部门列表 + * @return 下拉树结构列表 + */ + @Override + public List buildDeptTreeSelect(List depts) + { + List deptTrees = buildDeptTree(depts); + return deptTrees.stream().map(TreeSelect::new).collect(Collectors.toList()); + } + + /** + * 根据角色ID查询部门树信息 + * + * @param roleId 角色ID + * @return 选中部门列表 + */ + @Override + public List selectDeptListByRoleId(Long roleId) + { + SysRole role = roleMapper.selectRoleById(roleId); + return deptMapper.selectDeptListByRoleId(roleId, role.isDeptCheckStrictly()); + } + + /** + * 根据部门ID查询信息 + * + * @param deptId 部门ID + * @return 部门信息 + */ + @Override + public SysDept selectDeptById(Long deptId) + { + return deptMapper.selectDeptById(deptId); + } + + /** + * 根据ID查询所有子部门(正常状态) + * + * @param deptId 部门ID + * @return 子部门数 + */ + @Override + public int selectNormalChildrenDeptById(Long deptId) + { + return deptMapper.selectNormalChildrenDeptById(deptId); + } + + /** + * 是否存在子节点 + * + * @param deptId 部门ID + * @return 结果 + */ + @Override + public boolean hasChildByDeptId(Long deptId) + { + int result = deptMapper.hasChildByDeptId(deptId); + return result > 0; + } + + /** + * 查询部门是否存在用户 + * + * @param deptId 部门ID + * @return 结果 true 存在 false 不存在 + */ + @Override + public boolean checkDeptExistUser(Long deptId) + { + int result = deptMapper.checkDeptExistUser(deptId); + return result > 0; + } + + /** + * 校验部门名称是否唯一 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + public boolean checkDeptNameUnique(SysDept dept) + { + Long deptId = StringUtils.isNull(dept.getDeptId()) ? -1L : dept.getDeptId(); + SysDept info = deptMapper.checkDeptNameUnique(dept.getDeptName(), dept.getParentId()); + if (StringUtils.isNotNull(info) && info.getDeptId().longValue() != deptId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验部门是否有数据权限 + * + * @param deptId 部门id + */ + @Override + public void checkDeptDataScope(Long deptId) + { + if (!SysUser.isAdmin(SecurityUtils.getUserId()) && StringUtils.isNotNull(deptId)) + { + SysDept dept = new SysDept(); + dept.setDeptId(deptId); + List depts = SpringUtils.getAopProxy(this).selectDeptList(dept); + if (StringUtils.isEmpty(depts)) + { + throw new ServiceException("没有权限访问部门数据!"); + } + } + } + + /** + * 新增保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + public int insertDept(SysDept dept) + { + SysDept info = deptMapper.selectDeptById(dept.getParentId()); + // 如果父节点不为正常状态,则不允许新增子节点 + if (!UserConstants.DEPT_NORMAL.equals(info.getStatus())) + { + throw new ServiceException("部门停用,不允许新增"); + } + dept.setAncestors(info.getAncestors() + "," + dept.getParentId()); + return deptMapper.insertDept(dept); + } + + /** + * 修改保存部门信息 + * + * @param dept 部门信息 + * @return 结果 + */ + @Override + public int updateDept(SysDept dept) + { + SysDept newParentDept = deptMapper.selectDeptById(dept.getParentId()); + SysDept oldDept = deptMapper.selectDeptById(dept.getDeptId()); + if (StringUtils.isNotNull(newParentDept) && StringUtils.isNotNull(oldDept)) + { + String newAncestors = newParentDept.getAncestors() + "," + newParentDept.getDeptId(); + String oldAncestors = oldDept.getAncestors(); + dept.setAncestors(newAncestors); + updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors); + } + int result = deptMapper.updateDept(dept); + if (UserConstants.DEPT_NORMAL.equals(dept.getStatus()) && StringUtils.isNotEmpty(dept.getAncestors()) + && !StringUtils.equals("0", dept.getAncestors())) + { + // 如果该部门是启用状态,则启用该部门的所有上级部门 + updateParentDeptStatusNormal(dept); + } + return result; + } + + /** + * 修改该部门的父级部门状态 + * + * @param dept 当前部门 + */ + private void updateParentDeptStatusNormal(SysDept dept) + { + String ancestors = dept.getAncestors(); + Long[] deptIds = Convert.toLongArray(ancestors); + deptMapper.updateDeptStatusNormal(deptIds); + } + + /** + * 修改子元素关系 + * + * @param deptId 被修改的部门ID + * @param newAncestors 新的父ID集合 + * @param oldAncestors 旧的父ID集合 + */ + public void updateDeptChildren(Long deptId, String newAncestors, String oldAncestors) + { + List children = deptMapper.selectChildrenDeptById(deptId); + for (SysDept child : children) + { + child.setAncestors(child.getAncestors().replaceFirst(oldAncestors, newAncestors)); + } + if (children.size() > 0) + { + deptMapper.updateDeptChildren(children); + } + } + + /** + * 删除部门管理信息 + * + * @param deptId 部门ID + * @return 结果 + */ + @Override + public int deleteDeptById(Long deptId) + { + return deptMapper.deleteDeptById(deptId); + } + + @Override + public int getMaxOrder(Long deptId) { + Integer maxOrder = deptMapper.getMaxOrder(deptId); + return maxOrder != null ? maxOrder : 1; + } + + /** + * 递归列表 + */ + private void recursionFn(List list, SysDept t) + { + // 得到子节点列表 + List childList = getChildList(list, t); + t.setChildren(childList); + for (SysDept tChild : childList) + { + if (hasChild(list, tChild)) + { + recursionFn(list, tChild); + } + } + } + + /** + * 得到子节点列表 + */ + private List getChildList(List list, SysDept t) + { + List tlist = new ArrayList(); + Iterator it = list.iterator(); + while (it.hasNext()) + { + SysDept n = (SysDept) it.next(); + if (StringUtils.isNotNull(n.getParentId()) && n.getParentId().longValue() == t.getDeptId().longValue()) + { + tlist.add(n); + } + } + return tlist; + } + + /** + * 判断是否有子节点 + */ + private boolean hasChild(List list, SysDept t) + { + return getChildList(list, t).size() > 0; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java new file mode 100644 index 0000000..ec51549 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictDataServiceImpl.java @@ -0,0 +1,125 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.system.mapper.SysDictDataMapper; +import com.ruoyi.system.service.ISysDictDataService; + +/** + * 字典 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysDictDataServiceImpl implements ISysDictDataService +{ + @Autowired + private SysDictDataMapper dictDataMapper; + + /** + * 根据条件分页查询字典数据 + * + * @param dictData 字典数据信息 + * @return 字典数据集合信息 + */ + @Override + public List selectDictDataList(SysDictData dictData) + { + return dictDataMapper.selectDictDataList(dictData); + } + + /** + * 根据字典类型和字典键值查询字典数据信息 + * + * @param dictType 字典类型 + * @param dictValue 字典键值 + * @return 字典标签 + */ + @Override + public String selectDictLabel(String dictType, String dictValue) + { + return dictDataMapper.selectDictLabel(dictType, dictValue); + } + + /** + * 根据字典数据ID查询信息 + * + * @param dictCode 字典数据ID + * @return 字典数据 + */ + @Override + public SysDictData selectDictDataById(Long dictCode) + { + return dictDataMapper.selectDictDataById(dictCode); + } + + /** + * 批量删除字典数据信息 + * + * @param dictCodes 需要删除的字典数据ID + */ + @Override + public void deleteDictDataByIds(Long[] dictCodes) + { + for (Long dictCode : dictCodes) + { + SysDictData data = selectDictDataById(dictCode); + dictDataMapper.deleteDictDataById(dictCode); + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + } + + /** + * 新增保存字典数据信息 + * + * @param data 字典数据信息 + * @return 结果 + */ + @Override + public int insertDictData(SysDictData data) + { + int row = dictDataMapper.insertDictData(data); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + return row; + } + + /** + * 修改保存字典数据信息 + * + * @param data 字典数据信息 + * @return 结果 + */ + @Override + public int updateDictData(SysDictData data) + { + int row = dictDataMapper.updateDictData(data); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(data.getDictType()); + DictUtils.setDictCache(data.getDictType(), dictDatas); + } + return row; + } + + @Override + public int updateDictDatas(List dictDatas) { + int rows = 0; + for(SysDictData dictData : dictDatas) { + rows += dictDataMapper.updateDictData(dictData); + } + SysDictData sysDictData = dictDatas.get(0); + if(rows > 0) { + List list = dictDataMapper.selectDictDataByType(sysDictData.getDictType()); + DictUtils.setDictCache(sysDictData.getDictType(), list); + } + return rows; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java new file mode 100644 index 0000000..7fd9654 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDictTypeServiceImpl.java @@ -0,0 +1,223 @@ +package com.ruoyi.system.service.impl; + +import java.util.Comparator; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import javax.annotation.PostConstruct; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysDictData; +import com.ruoyi.common.core.domain.entity.SysDictType; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.DictUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.mapper.SysDictDataMapper; +import com.ruoyi.system.mapper.SysDictTypeMapper; +import com.ruoyi.system.service.ISysDictTypeService; + +/** + * 字典 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysDictTypeServiceImpl implements ISysDictTypeService +{ + @Autowired + private SysDictTypeMapper dictTypeMapper; + + @Autowired + private SysDictDataMapper dictDataMapper; + + /** + * 项目启动时,初始化字典到缓存 + */ + @PostConstruct + public void init() + { + loadingDictCache(); + } + + /** + * 根据条件分页查询字典类型 + * + * @param dictType 字典类型信息 + * @return 字典类型集合信息 + */ + @Override + public List selectDictTypeList(SysDictType dictType) + { + return dictTypeMapper.selectDictTypeList(dictType); + } + + /** + * 根据所有字典类型 + * + * @return 字典类型集合信息 + */ + @Override + public List selectDictTypeAll() + { + return dictTypeMapper.selectDictTypeAll(); + } + + /** + * 根据字典类型查询字典数据 + * + * @param dictType 字典类型 + * @return 字典数据集合信息 + */ + @Override + public List selectDictDataByType(String dictType) + { + List dictDatas = DictUtils.getDictCache(dictType); + if (StringUtils.isNotEmpty(dictDatas)) + { + return dictDatas; + } + dictDatas = dictDataMapper.selectDictDataByType(dictType); + if (StringUtils.isNotEmpty(dictDatas)) + { + DictUtils.setDictCache(dictType, dictDatas); + return dictDatas; + } + return null; + } + + /** + * 根据字典类型ID查询信息 + * + * @param dictId 字典类型ID + * @return 字典类型 + */ + @Override + public SysDictType selectDictTypeById(Long dictId) + { + return dictTypeMapper.selectDictTypeById(dictId); + } + + /** + * 根据字典类型查询信息 + * + * @param dictType 字典类型 + * @return 字典类型 + */ + @Override + public SysDictType selectDictTypeByType(String dictType) + { + return dictTypeMapper.selectDictTypeByType(dictType); + } + + /** + * 批量删除字典类型信息 + * + * @param dictIds 需要删除的字典ID + */ + @Override + public void deleteDictTypeByIds(Long[] dictIds) + { + for (Long dictId : dictIds) + { + SysDictType dictType = selectDictTypeById(dictId); + if (dictDataMapper.countDictDataByType(dictType.getDictType()) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", dictType.getDictName())); + } + dictTypeMapper.deleteDictTypeById(dictId); + DictUtils.removeDictCache(dictType.getDictType()); + } + } + + /** + * 加载字典缓存数据 + */ + @Override + public void loadingDictCache() + { + SysDictData dictData = new SysDictData(); + dictData.setStatus("0"); + Map> dictDataMap = dictDataMapper.selectDictDataList(dictData).stream().collect(Collectors.groupingBy(SysDictData::getDictType)); + for (Map.Entry> entry : dictDataMap.entrySet()) + { + DictUtils.setDictCache(entry.getKey(), entry.getValue().stream().sorted(Comparator.comparing(SysDictData::getDictSort)).collect(Collectors.toList())); + } + } + + /** + * 清空字典缓存数据 + */ + @Override + public void clearDictCache() + { + DictUtils.clearDictCache(); + } + + /** + * 重置字典缓存数据 + */ + @Override + public void resetDictCache() + { + clearDictCache(); + loadingDictCache(); + } + + /** + * 新增保存字典类型信息 + * + * @param dict 字典类型信息 + * @return 结果 + */ + @Override + public int insertDictType(SysDictType dict) + { + int row = dictTypeMapper.insertDictType(dict); + if (row > 0) + { + DictUtils.setDictCache(dict.getDictType(), null); + } + return row; + } + + /** + * 修改保存字典类型信息 + * + * @param dict 字典类型信息 + * @return 结果 + */ + @Override + @Transactional + public int updateDictType(SysDictType dict) + { + SysDictType oldDict = dictTypeMapper.selectDictTypeById(dict.getDictId()); + dictDataMapper.updateDictDataType(oldDict.getDictType(), dict.getDictType()); + int row = dictTypeMapper.updateDictType(dict); + if (row > 0) + { + List dictDatas = dictDataMapper.selectDictDataByType(dict.getDictType()); + DictUtils.setDictCache(dict.getDictType(), dictDatas); + } + return row; + } + + /** + * 校验字典类型称是否唯一 + * + * @param dict 字典类型 + * @return 结果 + */ + @Override + public boolean checkDictTypeUnique(SysDictType dict) + { + Long dictId = StringUtils.isNull(dict.getDictId()) ? -1L : dict.getDictId(); + SysDictType dictType = dictTypeMapper.checkDictTypeUnique(dict.getDictType()); + if (StringUtils.isNotNull(dictType) && dictType.getDictId().longValue() != dictId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java new file mode 100644 index 0000000..216aecb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysLogininforServiceImpl.java @@ -0,0 +1,65 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.domain.SysLogininfor; +import com.ruoyi.system.mapper.SysLogininforMapper; +import com.ruoyi.system.service.ISysLogininforService; + +/** + * 系统访问日志情况信息 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysLogininforServiceImpl implements ISysLogininforService +{ + + @Autowired + private SysLogininforMapper logininforMapper; + + /** + * 新增系统登录日志 + * + * @param logininfor 访问日志对象 + */ + @Override + public void insertLogininfor(SysLogininfor logininfor) + { + logininforMapper.insertLogininfor(logininfor); + } + + /** + * 查询系统登录日志集合 + * + * @param logininfor 访问日志对象 + * @return 登录记录集合 + */ + @Override + public List selectLogininforList(SysLogininfor logininfor) + { + return logininforMapper.selectLogininforList(logininfor); + } + + /** + * 批量删除系统登录日志 + * + * @param infoIds 需要删除的登录日志ID + * @return 结果 + */ + @Override + public int deleteLogininforByIds(Long[] infoIds) + { + return logininforMapper.deleteLogininforByIds(infoIds); + } + + /** + * 清空系统登录日志 + */ + @Override + public void cleanLogininfor() + { + logininforMapper.cleanLogininfor(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java new file mode 100644 index 0000000..b11c281 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java @@ -0,0 +1,543 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.Constants; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.TreeSelect; +import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.vo.MetaVo; +import com.ruoyi.system.domain.vo.RouterVo; +import com.ruoyi.system.mapper.SysMenuMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.mapper.SysRoleMenuMapper; +import com.ruoyi.system.service.ISysMenuService; + +/** + * 菜单 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysMenuServiceImpl implements ISysMenuService +{ + public static final String PREMISSION_STRING = "perms[\"{0}\"]"; + + @Autowired + private SysMenuMapper menuMapper; + + @Autowired + private SysRoleMapper roleMapper; + + @Autowired + private SysRoleMenuMapper roleMenuMapper; + + /** + * 根据用户查询系统菜单列表 + * + * @param userId 用户ID + * @return 菜单列表 + */ + @Override + public List selectMenuList(Long userId) + { + return selectMenuList(new SysMenu(), userId); + } + + /** + * 查询系统菜单列表 + * + * @param menu 菜单信息 + * @return 菜单列表 + */ + @Override + public List selectMenuList(SysMenu menu, Long userId) + { + List menuList = null; + // 管理员显示所有菜单信息 + if (SysUser.isAdmin(userId)) + { + menuList = menuMapper.selectMenuList(menu); + } + else + { + menu.getParams().put("userId", userId); + menuList = menuMapper.selectMenuListByUserId(menu); + } + return menuList; + } + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + @Override + public Set selectMenuPermsByUserId(Long userId) + { + List perms = menuMapper.selectMenuPermsByUserId(userId); + Set permsSet = new HashSet<>(); + for (String perm : perms) + { + if (StringUtils.isNotEmpty(perm)) + { + permsSet.addAll(Arrays.asList(perm.trim().split(","))); + } + } + return permsSet; + } + + /** + * 根据角色ID查询权限 + * + * @param roleId 角色ID + * @return 权限列表 + */ + @Override + public Set selectMenuPermsByRoleId(Long roleId) + { + List perms = menuMapper.selectMenuPermsByRoleId(roleId); + Set permsSet = new HashSet<>(); + for (String perm : perms) + { + if (StringUtils.isNotEmpty(perm)) + { + permsSet.addAll(Arrays.asList(perm.trim().split(","))); + } + } + return permsSet; + } + + /** + * 根据用户ID查询菜单 + * + * @param userId 用户名称 + * @return 菜单列表 + */ + @Override + public List selectMenuTreeByUserId(Long userId) + { + List menus = null; + if (SecurityUtils.isAdmin(userId)) + { + menus = menuMapper.selectMenuTreeAll(); + } + else + { + menus = menuMapper.selectMenuTreeByUserId(userId); + } + return getChildPerms(menus, 0); + } + + /** + * 根据角色ID查询菜单树信息 + * + * @param roleId 角色ID + * @return 选中菜单列表 + */ + @Override + public List selectMenuListByRoleId(Long roleId) + { + SysRole role = roleMapper.selectRoleById(roleId); + return menuMapper.selectMenuListByRoleId(roleId, role.isMenuCheckStrictly()); + } + + /** + * 构建前端路由所需要的菜单 + * + * @param menus 菜单列表 + * @return 路由列表 + */ + @Override + public List buildMenus(List menus) + { + List routers = new LinkedList(); + for (SysMenu menu : menus) + { + RouterVo router = new RouterVo(); + router.setHidden("1".equals(menu.getVisible())); + router.setName(getRouteName(menu)); + router.setPath(getRouterPath(menu)); + router.setComponent(getComponent(menu)); + router.setQuery(menu.getQuery()); + router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath())); + List cMenus = menu.getChildren(); + if (StringUtils.isNotEmpty(cMenus) && UserConstants.TYPE_DIR.equals(menu.getMenuType())) + { + router.setAlwaysShow(true); + router.setRedirect("noRedirect"); + router.setChildren(buildMenus(cMenus)); + } + else if (isMenuFrame(menu)) + { + router.setMeta(null); + List childrenList = new ArrayList(); + RouterVo children = new RouterVo(); + children.setPath(menu.getPath()); + children.setComponent(menu.getComponent()); + children.setName(getRouteName(menu.getRouteName(), menu.getPath())); + children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), StringUtils.equals("1", menu.getIsCache()), menu.getPath())); + children.setQuery(menu.getQuery()); + childrenList.add(children); + router.setChildren(childrenList); + } + else if (menu.getParentId().intValue() == 0 && isInnerLink(menu)) + { + router.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon())); + router.setPath("/"); + List childrenList = new ArrayList(); + RouterVo children = new RouterVo(); + String routerPath = innerLinkReplaceEach(menu.getPath()); + children.setPath(routerPath); + children.setComponent(UserConstants.INNER_LINK); + children.setName(getRouteName(menu.getRouteName(), routerPath)); + children.setMeta(new MetaVo(menu.getMenuName(), menu.getIcon(), menu.getPath())); + childrenList.add(children); + router.setChildren(childrenList); + } + routers.add(router); + } + return routers; + } + + /** + * 构建前端所需要树结构 + * + * @param menus 菜单列表 + * @return 树结构列表 + */ + @Override + public List buildMenuTree(List menus) + { + List returnList = new ArrayList(); + List tempList = menus.stream().map(SysMenu::getMenuId).collect(Collectors.toList()); + for (Iterator iterator = menus.iterator(); iterator.hasNext();) + { + SysMenu menu = (SysMenu) iterator.next(); + // 如果是顶级节点, 遍历该父节点的所有子节点 + if (!tempList.contains(menu.getParentId())) + { + recursionFn(menus, menu); + returnList.add(menu); + } + } + if (returnList.isEmpty()) + { + returnList = menus; + } + return returnList; + } + + /** + * 构建前端所需要下拉树结构 + * + * @param menus 菜单列表 + * @return 下拉树结构列表 + */ + @Override + public List buildMenuTreeSelect(List menus) + { + List menuTrees = buildMenuTree(menus); + return menuTrees.stream().map(TreeSelect::new).collect(Collectors.toList()); + } + + /** + * 根据菜单ID查询信息 + * + * @param menuId 菜单ID + * @return 菜单信息 + */ + @Override + public SysMenu selectMenuById(Long menuId) + { + return menuMapper.selectMenuById(menuId); + } + + /** + * 是否存在菜单子节点 + * + * @param menuId 菜单ID + * @return 结果 + */ + @Override + public boolean hasChildByMenuId(Long menuId) + { + int result = menuMapper.hasChildByMenuId(menuId); + return result > 0; + } + + /** + * 查询菜单使用数量 + * + * @param menuId 菜单ID + * @return 结果 + */ + @Override + public boolean checkMenuExistRole(Long menuId) + { + int result = roleMenuMapper.checkMenuExistRole(menuId); + return result > 0; + } + + /** + * 新增保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public int insertMenu(SysMenu menu) + { + return menuMapper.insertMenu(menu); + } + + /** + * 修改保存菜单信息 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public int updateMenu(SysMenu menu) + { + return menuMapper.updateMenu(menu); + } + + /** + * 删除菜单管理信息 + * + * @param menuId 菜单ID + * @return 结果 + */ + @Override + public int deleteMenuById(Long menuId) + { + return menuMapper.deleteMenuById(menuId); + } + + /** + * 校验菜单名称是否唯一 + * + * @param menu 菜单信息 + * @return 结果 + */ + @Override + public boolean checkMenuNameUnique(SysMenu menu) + { + Long menuId = StringUtils.isNull(menu.getMenuId()) ? -1L : menu.getMenuId(); + SysMenu info = menuMapper.checkMenuNameUnique(menu.getMenuName(), menu.getParentId()); + if (StringUtils.isNotNull(info) && info.getMenuId().longValue() != menuId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 获取路由名称 + * + * @param menu 菜单信息 + * @return 路由名称 + */ + public String getRouteName(SysMenu menu) + { + // 非外链并且是一级目录(类型为目录) + if (isMenuFrame(menu)) + { + return StringUtils.EMPTY; + } + return getRouteName(menu.getRouteName(), menu.getPath()); + } + + /** + * 获取路由名称,如没有配置路由名称则取路由地址 + * + * @param name 路由名称 + * @param path 路由地址 + * @return 路由名称(驼峰格式) + */ + public String getRouteName(String name, String path) + { + String routerName = StringUtils.isNotEmpty(name) ? name : path; + return StringUtils.capitalize(routerName); + } + + /** + * 获取路由地址 + * + * @param menu 菜单信息 + * @return 路由地址 + */ + public String getRouterPath(SysMenu menu) + { + String routerPath = menu.getPath(); + // 内链打开外网方式 + if (menu.getParentId().intValue() != 0 && isInnerLink(menu)) + { + routerPath = innerLinkReplaceEach(routerPath); + } + // 非外链并且是一级目录(类型为目录) + if (0 == menu.getParentId().intValue() && UserConstants.TYPE_DIR.equals(menu.getMenuType()) + && UserConstants.NO_FRAME.equals(menu.getIsFrame())) + { + routerPath = "/" + menu.getPath(); + } + // 非外链并且是一级目录(类型为菜单) + else if (isMenuFrame(menu)) + { + routerPath = "/"; + } + return routerPath; + } + + /** + * 获取组件信息 + * + * @param menu 菜单信息 + * @return 组件信息 + */ + public String getComponent(SysMenu menu) + { + String component = UserConstants.LAYOUT; + if (StringUtils.isNotEmpty(menu.getComponent()) && !isMenuFrame(menu)) + { + component = menu.getComponent(); + } + else if (StringUtils.isEmpty(menu.getComponent()) && menu.getParentId().intValue() != 0 && isInnerLink(menu)) + { + component = UserConstants.INNER_LINK; + } + else if (StringUtils.isEmpty(menu.getComponent()) && isParentView(menu)) + { + component = UserConstants.PARENT_VIEW; + } + return component; + } + + /** + * 是否为菜单内部跳转 + * + * @param menu 菜单信息 + * @return 结果 + */ + public boolean isMenuFrame(SysMenu menu) + { + return menu.getParentId().intValue() == 0 && UserConstants.TYPE_MENU.equals(menu.getMenuType()) + && menu.getIsFrame().equals(UserConstants.NO_FRAME); + } + + /** + * 是否为内链组件 + * + * @param menu 菜单信息 + * @return 结果 + */ + public boolean isInnerLink(SysMenu menu) + { + return menu.getIsFrame().equals(UserConstants.NO_FRAME) && StringUtils.ishttp(menu.getPath()); + } + + /** + * 是否为parent_view组件 + * + * @param menu 菜单信息 + * @return 结果 + */ + public boolean isParentView(SysMenu menu) + { + return menu.getParentId().intValue() != 0 && UserConstants.TYPE_DIR.equals(menu.getMenuType()); + } + + /** + * 根据父节点的ID获取所有子节点 + * + * @param list 分类表 + * @param parentId 传入的父节点ID + * @return String + */ + public List getChildPerms(List list, int parentId) + { + List returnList = new ArrayList(); + for (Iterator iterator = list.iterator(); iterator.hasNext();) + { + SysMenu t = (SysMenu) iterator.next(); + // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 + if (t.getParentId() == parentId) + { + recursionFn(list, t); + returnList.add(t); + } + } + return returnList; + } + + /** + * 递归列表 + * + * @param list 分类表 + * @param t 子节点 + */ + private void recursionFn(List list, SysMenu t) + { + // 得到子节点列表 + List childList = getChildList(list, t); + t.setChildren(childList); + for (SysMenu tChild : childList) + { + if (hasChild(list, tChild)) + { + recursionFn(list, tChild); + } + } + } + + /** + * 得到子节点列表 + */ + private List getChildList(List list, SysMenu t) + { + List tlist = new ArrayList(); + Iterator it = list.iterator(); + while (it.hasNext()) + { + SysMenu n = (SysMenu) it.next(); + if (n.getParentId().longValue() == t.getMenuId().longValue()) + { + tlist.add(n); + } + } + return tlist; + } + + /** + * 判断是否有子节点 + */ + private boolean hasChild(List list, SysMenu t) + { + return getChildList(list, t).size() > 0; + } + + /** + * 内链域名特殊字符替换 + * + * @return 替换后的内链域名 + */ + public String innerLinkReplaceEach(String path) + { + return StringUtils.replaceEach(path, new String[] { Constants.HTTP, Constants.HTTPS, Constants.WWW, ".", ":" }, + new String[] { "", "", "", "/", "/" }); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java new file mode 100644 index 0000000..765438b --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysNoticeServiceImpl.java @@ -0,0 +1,92 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.domain.SysNotice; +import com.ruoyi.system.mapper.SysNoticeMapper; +import com.ruoyi.system.service.ISysNoticeService; + +/** + * 公告 服务层实现 + * + * @author ruoyi + */ +@Service +public class SysNoticeServiceImpl implements ISysNoticeService +{ + @Autowired + private SysNoticeMapper noticeMapper; + + /** + * 查询公告信息 + * + * @param noticeId 公告ID + * @return 公告信息 + */ + @Override + public SysNotice selectNoticeById(Long noticeId) + { + return noticeMapper.selectNoticeById(noticeId); + } + + /** + * 查询公告列表 + * + * @param notice 公告信息 + * @return 公告集合 + */ + @Override + public List selectNoticeList(SysNotice notice) + { + return noticeMapper.selectNoticeList(notice); + } + + /** + * 新增公告 + * + * @param notice 公告信息 + * @return 结果 + */ + @Override + public int insertNotice(SysNotice notice) + { + return noticeMapper.insertNotice(notice); + } + + /** + * 修改公告 + * + * @param notice 公告信息 + * @return 结果 + */ + @Override + public int updateNotice(SysNotice notice) + { + return noticeMapper.updateNotice(notice); + } + + /** + * 删除公告对象 + * + * @param noticeId 公告ID + * @return 结果 + */ + @Override + public int deleteNoticeById(Long noticeId) + { + return noticeMapper.deleteNoticeById(noticeId); + } + + /** + * 批量删除公告信息 + * + * @param noticeIds 需要删除的公告ID + * @return 结果 + */ + @Override + public int deleteNoticeByIds(Long[] noticeIds) + { + return noticeMapper.deleteNoticeByIds(noticeIds); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java new file mode 100644 index 0000000..5489815 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysOperLogServiceImpl.java @@ -0,0 +1,76 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.domain.SysOperLog; +import com.ruoyi.system.mapper.SysOperLogMapper; +import com.ruoyi.system.service.ISysOperLogService; + +/** + * 操作日志 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysOperLogServiceImpl implements ISysOperLogService +{ + @Autowired + private SysOperLogMapper operLogMapper; + + /** + * 新增操作日志 + * + * @param operLog 操作日志对象 + */ + @Override + public void insertOperlog(SysOperLog operLog) + { + operLogMapper.insertOperlog(operLog); + } + + /** + * 查询系统操作日志集合 + * + * @param operLog 操作日志对象 + * @return 操作日志集合 + */ + @Override + public List selectOperLogList(SysOperLog operLog) + { + return operLogMapper.selectOperLogList(operLog); + } + + /** + * 批量删除系统操作日志 + * + * @param operIds 需要删除的操作日志ID + * @return 结果 + */ + @Override + public int deleteOperLogByIds(Long[] operIds) + { + return operLogMapper.deleteOperLogByIds(operIds); + } + + /** + * 查询操作日志详细 + * + * @param operId 操作ID + * @return 操作日志对象 + */ + @Override + public SysOperLog selectOperLogById(Long operId) + { + return operLogMapper.selectOperLogById(operId); + } + + /** + * 清空操作日志 + */ + @Override + public void cleanOperLog() + { + operLogMapper.cleanOperLog(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java new file mode 100644 index 0000000..5e5fe06 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysPostServiceImpl.java @@ -0,0 +1,178 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.mapper.SysPostMapper; +import com.ruoyi.system.mapper.SysUserPostMapper; +import com.ruoyi.system.service.ISysPostService; + +/** + * 岗位信息 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysPostServiceImpl implements ISysPostService +{ + @Autowired + private SysPostMapper postMapper; + + @Autowired + private SysUserPostMapper userPostMapper; + + /** + * 查询岗位信息集合 + * + * @param post 岗位信息 + * @return 岗位信息集合 + */ + @Override + public List selectPostList(SysPost post) + { + return postMapper.selectPostList(post); + } + + /** + * 查询所有岗位 + * + * @return 岗位列表 + */ + @Override + public List selectPostAll() + { + return postMapper.selectPostAll(); + } + + /** + * 通过岗位ID查询岗位信息 + * + * @param postId 岗位ID + * @return 角色对象信息 + */ + @Override + public SysPost selectPostById(Long postId) + { + return postMapper.selectPostById(postId); + } + + /** + * 根据用户ID获取岗位选择框列表 + * + * @param userId 用户ID + * @return 选中岗位ID列表 + */ + @Override + public List selectPostListByUserId(Long userId) + { + return postMapper.selectPostListByUserId(userId); + } + + /** + * 校验岗位名称是否唯一 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public boolean checkPostNameUnique(SysPost post) + { + Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); + SysPost info = postMapper.checkPostNameUnique(post.getPostName()); + if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验岗位编码是否唯一 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public boolean checkPostCodeUnique(SysPost post) + { + Long postId = StringUtils.isNull(post.getPostId()) ? -1L : post.getPostId(); + SysPost info = postMapper.checkPostCodeUnique(post.getPostCode()); + if (StringUtils.isNotNull(info) && info.getPostId().longValue() != postId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 通过岗位ID查询岗位使用数量 + * + * @param postId 岗位ID + * @return 结果 + */ + @Override + public int countUserPostById(Long postId) + { + return userPostMapper.countUserPostById(postId); + } + + /** + * 删除岗位信息 + * + * @param postId 岗位ID + * @return 结果 + */ + @Override + public int deletePostById(Long postId) + { + return postMapper.deletePostById(postId); + } + + /** + * 批量删除岗位信息 + * + * @param postIds 需要删除的岗位ID + * @return 结果 + */ + @Override + public int deletePostByIds(Long[] postIds) + { + for (Long postId : postIds) + { + SysPost post = selectPostById(postId); + if (countUserPostById(postId) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", post.getPostName())); + } + } + return postMapper.deletePostByIds(postIds); + } + + /** + * 新增保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public int insertPost(SysPost post) + { + return postMapper.insertPost(post); + } + + /** + * 修改保存岗位信息 + * + * @param post 岗位信息 + * @return 结果 + */ + @Override + public int updatePost(SysPost post) + { + return postMapper.updatePost(post); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java new file mode 100644 index 0000000..e432bb1 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysRoleServiceImpl.java @@ -0,0 +1,427 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.domain.SysRoleDept; +import com.ruoyi.system.domain.SysRoleMenu; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.mapper.SysRoleDeptMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.mapper.SysRoleMenuMapper; +import com.ruoyi.system.mapper.SysUserRoleMapper; +import com.ruoyi.system.service.ISysRoleService; + +/** + * 角色 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysRoleServiceImpl implements ISysRoleService +{ + @Autowired + private SysRoleMapper roleMapper; + + @Autowired + private SysRoleMenuMapper roleMenuMapper; + + @Autowired + private SysUserRoleMapper userRoleMapper; + + @Autowired + private SysRoleDeptMapper roleDeptMapper; + + /** + * 根据条件分页查询角色数据 + * + * @param role 角色信息 + * @return 角色数据集合信息 + */ + @Override + @DataScope(deptAlias = "d") + public List selectRoleList(SysRole role) + { + return roleMapper.selectRoleList(role); + } + + /** + * 根据用户ID查询角色 + * + * @param userId 用户ID + * @return 角色列表 + */ + @Override + public List selectRolesByUserId(Long userId) + { + List userRoles = roleMapper.selectRolePermissionByUserId(userId); + List roles = selectRoleAll(); + for (SysRole role : roles) + { + for (SysRole userRole : userRoles) + { + if (role.getRoleId().longValue() == userRole.getRoleId().longValue()) + { + role.setFlag(true); + break; + } + } + } + return roles; + } + + /** + * 根据用户ID查询权限 + * + * @param userId 用户ID + * @return 权限列表 + */ + @Override + public Set selectRolePermissionByUserId(Long userId) + { + List perms = roleMapper.selectRolePermissionByUserId(userId); + Set permsSet = new HashSet<>(); + for (SysRole perm : perms) + { + if (StringUtils.isNotNull(perm)) + { + permsSet.addAll(Arrays.asList(perm.getRoleKey().trim().split(","))); + } + } + return permsSet; + } + + /** + * 查询所有角色 + * + * @return 角色列表 + */ + @Override + public List selectRoleAll() + { + return SpringUtils.getAopProxy(this).selectRoleList(new SysRole()); + } + + /** + * 根据用户ID获取角色选择框列表 + * + * @param userId 用户ID + * @return 选中角色ID列表 + */ + @Override + public List selectRoleListByUserId(Long userId) + { + return roleMapper.selectRoleListByUserId(userId); + } + + /** + * 通过角色ID查询角色 + * + * @param roleId 角色ID + * @return 角色对象信息 + */ + @Override + public SysRole selectRoleById(Long roleId) + { + return roleMapper.selectRoleById(roleId); + } + + /** + * 校验角色名称是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public boolean checkRoleNameUnique(SysRole role) + { + Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); + SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName()); + if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验角色权限是否唯一 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public boolean checkRoleKeyUnique(SysRole role) + { + Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId(); + SysRole info = roleMapper.checkRoleKeyUnique(role.getRoleKey()); + if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验角色是否允许操作 + * + * @param role 角色信息 + */ + @Override + public void checkRoleAllowed(SysRole role) + { + if (StringUtils.isNotNull(role.getRoleId()) && role.isAdmin()) + { + throw new ServiceException("不允许操作超级管理员角色"); + } + } + + /** + * 校验角色是否有数据权限 + * + * @param roleIds 角色id + */ + @Override + public void checkRoleDataScope(Long... roleIds) + { + if (!SysUser.isAdmin(SecurityUtils.getUserId())) + { + for (Long roleId : roleIds) + { + SysRole role = new SysRole(); + role.setRoleId(roleId); + List roles = SpringUtils.getAopProxy(this).selectRoleList(role); + if (StringUtils.isEmpty(roles)) + { + throw new ServiceException("没有权限访问角色数据!"); + } + } + } + } + + /** + * 通过角色ID查询角色使用数量 + * + * @param roleId 角色ID + * @return 结果 + */ + @Override + public int countUserRoleByRoleId(Long roleId) + { + return userRoleMapper.countUserRoleByRoleId(roleId); + } + + /** + * 新增保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int insertRole(SysRole role) + { + // 新增角色信息 + roleMapper.insertRole(role); + return insertRoleMenu(role); + } + + /** + * 修改保存角色信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int updateRole(SysRole role) + { + // 修改角色信息 + roleMapper.updateRole(role); + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenuByRoleId(role.getRoleId()); + return insertRoleMenu(role); + } + + /** + * 修改角色状态 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + public int updateRoleStatus(SysRole role) + { + return roleMapper.updateRole(role); + } + + /** + * 修改数据权限信息 + * + * @param role 角色信息 + * @return 结果 + */ + @Override + @Transactional + public int authDataScope(SysRole role) + { + // 修改角色信息 + roleMapper.updateRole(role); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDeptByRoleId(role.getRoleId()); + // 新增角色和部门信息(数据权限) + return insertRoleDept(role); + } + + /** + * 新增角色菜单信息 + * + * @param role 角色对象 + */ + public int insertRoleMenu(SysRole role) + { + int rows = 1; + // 新增用户与角色管理 + List list = new ArrayList(); + for (Long menuId : role.getMenuIds()) + { + SysRoleMenu rm = new SysRoleMenu(); + rm.setRoleId(role.getRoleId()); + rm.setMenuId(menuId); + list.add(rm); + } + if (list.size() > 0) + { + rows = roleMenuMapper.batchRoleMenu(list); + } + return rows; + } + + /** + * 新增角色部门信息(数据权限) + * + * @param role 角色对象 + */ + public int insertRoleDept(SysRole role) + { + int rows = 1; + // 新增角色与部门(数据权限)管理 + List list = new ArrayList(); + for (Long deptId : role.getDeptIds()) + { + SysRoleDept rd = new SysRoleDept(); + rd.setRoleId(role.getRoleId()); + rd.setDeptId(deptId); + list.add(rd); + } + if (list.size() > 0) + { + rows = roleDeptMapper.batchRoleDept(list); + } + return rows; + } + + /** + * 通过角色ID删除角色 + * + * @param roleId 角色ID + * @return 结果 + */ + @Override + @Transactional + public int deleteRoleById(Long roleId) + { + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenuByRoleId(roleId); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDeptByRoleId(roleId); + return roleMapper.deleteRoleById(roleId); + } + + /** + * 批量删除角色信息 + * + * @param roleIds 需要删除的角色ID + * @return 结果 + */ + @Override + @Transactional + public int deleteRoleByIds(Long[] roleIds) + { + for (Long roleId : roleIds) + { + checkRoleAllowed(new SysRole(roleId)); + checkRoleDataScope(roleId); + SysRole role = selectRoleById(roleId); + if (countUserRoleByRoleId(roleId) > 0) + { + throw new ServiceException(String.format("%1$s已分配,不能删除", role.getRoleName())); + } + } + // 删除角色与菜单关联 + roleMenuMapper.deleteRoleMenu(roleIds); + // 删除角色与部门关联 + roleDeptMapper.deleteRoleDept(roleIds); + return roleMapper.deleteRoleByIds(roleIds); + } + + /** + * 取消授权用户角色 + * + * @param userRole 用户和角色关联信息 + * @return 结果 + */ + @Override + public int deleteAuthUser(SysUserRole userRole) + { + return userRoleMapper.deleteUserRoleInfo(userRole); + } + + /** + * 批量取消授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要取消授权的用户数据ID + * @return 结果 + */ + @Override + public int deleteAuthUsers(Long roleId, Long[] userIds) + { + return userRoleMapper.deleteUserRoleInfos(roleId, userIds); + } + + /** + * 批量选择授权用户角色 + * + * @param roleId 角色ID + * @param userIds 需要授权的用户数据ID + * @return 结果 + */ + @Override + public int insertAuthUsers(Long roleId, Long[] userIds) + { + // 新增用户与角色管理 + List list = new ArrayList(); + for (Long userId : userIds) + { + SysUserRole ur = new SysUserRole(); + ur.setUserId(userId); + ur.setRoleId(roleId); + list.add(ur); + } + return userRoleMapper.batchUserRole(list); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java new file mode 100644 index 0000000..f80a877 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.system.service.impl; + +import org.springframework.stereotype.Service; +import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.system.domain.SysUserOnline; +import com.ruoyi.system.service.ISysUserOnlineService; + +/** + * 在线用户 服务层处理 + * + * @author ruoyi + */ +@Service +public class SysUserOnlineServiceImpl implements ISysUserOnlineService +{ + /** + * 通过登录地址查询信息 + * + * @param ipaddr 登录地址 + * @param user 用户信息 + * @return 在线用户信息 + */ + @Override + public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user) + { + if (StringUtils.equals(ipaddr, user.getIpaddr())) + { + return loginUserToUserOnline(user); + } + return null; + } + + /** + * 通过用户名称查询信息 + * + * @param userName 用户名称 + * @param user 用户信息 + * @return 在线用户信息 + */ + @Override + public SysUserOnline selectOnlineByUserName(String userName, LoginUser user) + { + if (StringUtils.equals(userName, user.getUsername())) + { + return loginUserToUserOnline(user); + } + return null; + } + + /** + * 通过登录地址/用户名称查询信息 + * + * @param ipaddr 登录地址 + * @param userName 用户名称 + * @param user 用户信息 + * @return 在线用户信息 + */ + @Override + public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user) + { + if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername())) + { + return loginUserToUserOnline(user); + } + return null; + } + + /** + * 设置在线用户信息 + * + * @param user 用户信息 + * @return 在线用户 + */ + @Override + public SysUserOnline loginUserToUserOnline(LoginUser user) + { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUser())) + { + return null; + } + SysUserOnline sysUserOnline = new SysUserOnline(); + sysUserOnline.setTokenId(user.getToken()); + sysUserOnline.setUserName(user.getUsername()); + sysUserOnline.setIpaddr(user.getIpaddr()); + sysUserOnline.setLoginLocation(user.getLoginLocation()); + sysUserOnline.setBrowser(user.getBrowser()); + sysUserOnline.setOs(user.getOs()); + sysUserOnline.setLoginTime(user.getLoginTime()); + if (StringUtils.isNotNull(user.getUser().getDept())) + { + sysUserOnline.setDeptName(user.getUser().getDept().getDeptName()); + } + return sysUserOnline; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java new file mode 100644 index 0000000..9daf5b3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserServiceImpl.java @@ -0,0 +1,550 @@ +package com.ruoyi.system.service.impl; + +import java.util.ArrayList; +import java.util.List; +import java.util.stream.Collectors; +import javax.validation.Validator; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; +import com.ruoyi.common.annotation.DataScope; +import com.ruoyi.common.constant.UserConstants; +import com.ruoyi.common.core.domain.entity.SysRole; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.common.utils.bean.BeanValidators; +import com.ruoyi.common.utils.spring.SpringUtils; +import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.domain.SysUserPost; +import com.ruoyi.system.domain.SysUserRole; +import com.ruoyi.system.mapper.SysPostMapper; +import com.ruoyi.system.mapper.SysRoleMapper; +import com.ruoyi.system.mapper.SysUserMapper; +import com.ruoyi.system.mapper.SysUserPostMapper; +import com.ruoyi.system.mapper.SysUserRoleMapper; +import com.ruoyi.system.service.ISysConfigService; +import com.ruoyi.system.service.ISysDeptService; +import com.ruoyi.system.service.ISysUserService; + +/** + * 用户 业务层处理 + * + * @author ruoyi + */ +@Service +public class SysUserServiceImpl implements ISysUserService +{ + private static final Logger log = LoggerFactory.getLogger(SysUserServiceImpl.class); + + @Autowired + private SysUserMapper userMapper; + + @Autowired + private SysRoleMapper roleMapper; + + @Autowired + private SysPostMapper postMapper; + + @Autowired + private SysUserRoleMapper userRoleMapper; + + @Autowired + private SysUserPostMapper userPostMapper; + + @Autowired + private ISysConfigService configService; + + @Autowired + private ISysDeptService deptService; + + @Autowired + protected Validator validator; + + /** + * 根据条件分页查询用户列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectUserList(SysUser user) + { + return userMapper.selectUserList(user); + } + + /** + * 根据条件分页查询已分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectAllocatedList(SysUser user) + { + return userMapper.selectAllocatedList(user); + } + + /** + * 根据条件分页查询未分配用户角色列表 + * + * @param user 用户信息 + * @return 用户信息集合信息 + */ + @Override + @DataScope(deptAlias = "d", userAlias = "u") + public List selectUnallocatedList(SysUser user) + { + return userMapper.selectUnallocatedList(user); + } + + /** + * 通过用户名查询用户 + * + * @param userName 用户名 + * @return 用户对象信息 + */ + @Override + public SysUser selectUserByUserName(String userName) + { + return userMapper.selectUserByUserName(userName); + } + + /** + * 通过用户ID查询用户 + * + * @param userId 用户ID + * @return 用户对象信息 + */ + @Override + public SysUser selectUserById(Long userId) + { + return userMapper.selectUserById(userId); + } + + /** + * 查询用户所属角色组 + * + * @param userName 用户名 + * @return 结果 + */ + @Override + public String selectUserRoleGroup(String userName) + { + List list = roleMapper.selectRolesByUserName(userName); + if (CollectionUtils.isEmpty(list)) + { + return StringUtils.EMPTY; + } + return list.stream().map(SysRole::getRoleName).collect(Collectors.joining(",")); + } + + /** + * 查询用户所属岗位组 + * + * @param userName 用户名 + * @return 结果 + */ + @Override + public String selectUserPostGroup(String userName) + { + List list = postMapper.selectPostsByUserName(userName); + if (CollectionUtils.isEmpty(list)) + { + return StringUtils.EMPTY; + } + return list.stream().map(SysPost::getPostName).collect(Collectors.joining(",")); + } + + /** + * 校验用户名称是否唯一 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public boolean checkUserNameUnique(SysUser user) + { + Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); + SysUser info = userMapper.checkUserNameUnique(user.getUserName()); + if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验手机号码是否唯一 + * + * @param user 用户信息 + * @return + */ + @Override + public boolean checkPhoneUnique(SysUser user) + { + Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); + SysUser info = userMapper.checkPhoneUnique(user.getPhonenumber()); + if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验email是否唯一 + * + * @param user 用户信息 + * @return + */ + @Override + public boolean checkEmailUnique(SysUser user) + { + Long userId = StringUtils.isNull(user.getUserId()) ? -1L : user.getUserId(); + SysUser info = userMapper.checkEmailUnique(user.getEmail()); + if (StringUtils.isNotNull(info) && info.getUserId().longValue() != userId.longValue()) + { + return UserConstants.NOT_UNIQUE; + } + return UserConstants.UNIQUE; + } + + /** + * 校验用户是否允许操作 + * + * @param user 用户信息 + */ + @Override + public void checkUserAllowed(SysUser user) + { + if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin()) + { + throw new ServiceException("不允许操作超级管理员用户"); + } + } + + /** + * 校验用户是否有数据权限 + * + * @param userId 用户id + */ + @Override + public void checkUserDataScope(Long userId) + { + if (!SysUser.isAdmin(SecurityUtils.getUserId())) + { + SysUser user = new SysUser(); + user.setUserId(userId); + List users = SpringUtils.getAopProxy(this).selectUserList(user); + if (StringUtils.isEmpty(users)) + { + throw new ServiceException("没有权限访问用户数据!"); + } + } + } + + /** + * 新增保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + @Transactional + public int insertUser(SysUser user) + { + // 新增用户信息 + int rows = userMapper.insertUser(user); + // 新增用户岗位关联 + insertUserPost(user); + // 新增用户与角色管理 + insertUserRole(user); + return rows; + } + + /** + * 注册用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public boolean registerUser(SysUser user) + { + return userMapper.insertUser(user) > 0; + } + + /** + * 修改保存用户信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + @Transactional + public int updateUser(SysUser user) + { + Long userId = user.getUserId(); + // 删除用户与角色关联 + userRoleMapper.deleteUserRoleByUserId(userId); + // 新增用户与角色管理 + insertUserRole(user); + // 删除用户与岗位关联 + userPostMapper.deleteUserPostByUserId(userId); + // 新增用户与岗位管理 + insertUserPost(user); + return userMapper.updateUser(user); + } + + /** + * 用户授权角色 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + @Override + @Transactional + public void insertUserAuth(Long userId, Long[] roleIds) + { + userRoleMapper.deleteUserRoleByUserId(userId); + insertUserRole(userId, roleIds); + } + + /** + * 修改用户状态 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int updateUserStatus(SysUser user) + { + return userMapper.updateUser(user); + } + + /** + * 修改用户基本信息 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int updateUserProfile(SysUser user) + { + return userMapper.updateUser(user); + } + + /** + * 修改用户头像 + * + * @param userId 用户ID + * @param avatar 头像地址 + * @return 结果 + */ + @Override + public boolean updateUserAvatar(Long userId, String avatar) + { + return userMapper.updateUserAvatar(userId, avatar) > 0; + } + + /** + * 重置用户密码 + * + * @param user 用户信息 + * @return 结果 + */ + @Override + public int resetPwd(SysUser user) + { + return userMapper.updateUser(user); + } + + /** + * 重置用户密码 + * + * @param userId 用户ID + * @param password 密码 + * @return 结果 + */ + @Override + public int resetUserPwd(Long userId, String password) + { + return userMapper.resetUserPwd(userId, password); + } + + /** + * 新增用户角色信息 + * + * @param user 用户对象 + */ + public void insertUserRole(SysUser user) + { + this.insertUserRole(user.getUserId(), user.getRoleIds()); + } + + /** + * 新增用户岗位信息 + * + * @param user 用户对象 + */ + public void insertUserPost(SysUser user) + { + Long[] posts = user.getPostIds(); + if (StringUtils.isNotEmpty(posts)) + { + // 新增用户与岗位管理 + List list = new ArrayList(posts.length); + for (Long postId : posts) + { + SysUserPost up = new SysUserPost(); + up.setUserId(user.getUserId()); + up.setPostId(postId); + list.add(up); + } + userPostMapper.batchUserPost(list); + } + } + + /** + * 新增用户角色信息 + * + * @param userId 用户ID + * @param roleIds 角色组 + */ + public void insertUserRole(Long userId, Long[] roleIds) + { + if (StringUtils.isNotEmpty(roleIds)) + { + // 新增用户与角色管理 + List list = new ArrayList(roleIds.length); + for (Long roleId : roleIds) + { + SysUserRole ur = new SysUserRole(); + ur.setUserId(userId); + ur.setRoleId(roleId); + list.add(ur); + } + userRoleMapper.batchUserRole(list); + } + } + + /** + * 通过用户ID删除用户 + * + * @param userId 用户ID + * @return 结果 + */ + @Override + @Transactional + public int deleteUserById(Long userId) + { + // 删除用户与角色关联 + userRoleMapper.deleteUserRoleByUserId(userId); + // 删除用户与岗位表 + userPostMapper.deleteUserPostByUserId(userId); + return userMapper.deleteUserById(userId); + } + + /** + * 批量删除用户信息 + * + * @param userIds 需要删除的用户ID + * @return 结果 + */ + @Override + @Transactional + public int deleteUserByIds(Long[] userIds) + { + for (Long userId : userIds) + { + checkUserAllowed(new SysUser(userId)); + checkUserDataScope(userId); + } + // 删除用户与角色关联 + userRoleMapper.deleteUserRole(userIds); + // 删除用户与岗位关联 + userPostMapper.deleteUserPost(userIds); + return userMapper.deleteUserByIds(userIds); + } + + /** + * 导入用户数据 + * + * @param userList 用户数据列表 + * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据 + * @param operName 操作用户 + * @return 结果 + */ + @Override + public String importUser(List userList, Boolean isUpdateSupport, String operName) + { + if (StringUtils.isNull(userList) || userList.size() == 0) + { + throw new ServiceException("导入用户数据不能为空!"); + } + int successNum = 0; + int failureNum = 0; + StringBuilder successMsg = new StringBuilder(); + StringBuilder failureMsg = new StringBuilder(); + for (SysUser user : userList) + { + try + { + // 验证是否存在这个用户 + SysUser u = userMapper.selectUserByUserName(user.getUserName()); + if (StringUtils.isNull(u)) + { + BeanValidators.validateWithException(validator, user); + deptService.checkDeptDataScope(user.getDeptId()); + String password = configService.selectConfigByKey("sys.user.initPassword"); + user.setPassword(SecurityUtils.encryptPassword(password)); + user.setCreateBy(operName); + userMapper.insertUser(user); + successNum++; + successMsg.append("
" + successNum + "、账号 " + user.getUserName() + " 导入成功"); + } + else if (isUpdateSupport) + { + BeanValidators.validateWithException(validator, user); + checkUserAllowed(u); + checkUserDataScope(u.getUserId()); + deptService.checkDeptDataScope(user.getDeptId()); + user.setUserId(u.getUserId()); + user.setUpdateBy(operName); + userMapper.updateUser(user); + successNum++; + successMsg.append("
" + successNum + "、账号 " + user.getUserName() + " 更新成功"); + } + else + { + failureNum++; + failureMsg.append("
" + failureNum + "、账号 " + user.getUserName() + " 已存在"); + } + } + catch (Exception e) + { + failureNum++; + String msg = "
" + failureNum + "、账号 " + user.getUserName() + " 导入失败:"; + failureMsg.append(msg + e.getMessage()); + log.error(msg, e); + } + } + if (failureNum > 0) + { + failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:"); + throw new ServiceException(failureMsg.toString()); + } + else + { + successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:"); + } + return successMsg.toString(); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/AiBalanceChangeRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiBalanceChangeRecordMapper.xml new file mode 100644 index 0000000..d43f1bf --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiBalanceChangeRecordMapper.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + select r.id, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time, r.remark, r.user_id, r.type, r.change_amount, r.result_amount, u.nickname, u.user_id uuid from ai_balance_change_record r + left join ai_user u on u.id = r.user_id + + + + + + + + insert into ai_balance_change_record + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + user_id, + type, + change_amount, + result_amount, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{userId}, + #{type}, + #{changeAmount}, + #{resultAmount}, + + + + + update ai_balance_change_record + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + type = #{type}, + user_id = #{userId}, + change_amount = #{changeAmount}, + result_amount = #{resultAmount}, + + where id = #{id} + + + + delete from ai_balance_change_record where id = #{id} + + + + delete from ai_balance_change_record where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiBannerMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiBannerMapper.xml new file mode 100644 index 0000000..62b694e --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiBannerMapper.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, title, image_url, type, jump_url, status, position from ai_banner + + + + + + + + insert into ai_banner + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + title, + image_url, + type, + jump_url, + status, + position, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{title}, + #{imageUrl}, + #{type}, + #{jumpUrl}, + #{status}, + #{position}, + + + + + update ai_banner + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + title = #{title}, + image_url = #{imageUrl}, + type = #{type}, + jump_url = #{jumpUrl}, + status = #{status}, + status = #{position}, + + where id = #{id} + + + + delete from ai_banner where id = #{id} + + + + delete from ai_banner where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiCustomerMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiCustomerMapper.xml new file mode 100644 index 0000000..8d16f2d --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiCustomerMapper.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, user_name, user_code, user_email, rebate_amount, service_url, logo_url, banner_url, status from ai_customer + + + + + + + + insert into ai_customer + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + user_name, + user_code, + user_email, + rebate_amount, + service_url, + logo_url, + banner_url, + status, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{userName}, + #{userCode}, + #{userEmail}, + #{rebateAmount}, + #{serviceUrl}, + #{logoUrl}, + #{bannerUrl}, + #{status}, + + + + + update ai_customer + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + user_name = #{userName}, + user_code = #{userCode}, + user_email = #{userEmail}, + rebate_amount = #{rebateAmount}, + service_url = #{serviceUrl}, + logo_url = #{logoUrl}, + banner_url = #{bannerUrl}, + status = #{status}, + + where id = #{id} + + + + delete from ai_customer where id = #{id} + + + + delete from ai_customer where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiCustomerServiceMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiCustomerServiceMapper.xml new file mode 100644 index 0000000..59e0fe2 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiCustomerServiceMapper.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, url, status from ai_customer_service + + + + + + + + insert into ai_customer_service + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + url, + status, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{url}, + #{status}, + + + + + update ai_customer_service + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + url = #{url}, + status = #{status}, + + where id = #{id} + + + + delete from ai_customer_service where id = #{id} + + + + delete from ai_customer_service where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiHelpMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiHelpMapper.xml new file mode 100644 index 0000000..dce130a --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiHelpMapper.xml @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, title, content, status from ai_help + + + + + + + + insert into ai_help + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + title, + content, + status, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{title}, + #{content}, + #{status}, + + + + + update ai_help + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + title = #{title}, + content = #{content}, + status = #{status}, + + where id = #{id} + + + + delete from ai_help where id = #{id} + + + + delete from ai_help where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiManagerMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiManagerMapper.xml new file mode 100644 index 0000000..50cb829 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiManagerMapper.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, title, price, status, prompt, type, text from ai_manager + + + + + + + + insert into ai_manager + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + title, + price, + status, + prompt, + type, + text, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{title}, + #{price}, + #{status}, + #{prompt}, + #{type}, + #{text}, + + + + + update ai_manager + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + title = #{title}, + price = #{price}, + status = #{status}, + type = #{type}, + text = #{text}, + + where id = #{id} + + + + delete from ai_manager where id = #{id} + + + + delete from ai_manager where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiOrderMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiOrderMapper.xml new file mode 100644 index 0000000..c8a9b79 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiOrderMapper.xml @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select ao.id, ao.del_flag, ao.create_by, ao.create_time, ao.update_by, ao.update_time, ao.remark, ao.order_num, ao.user_id, ao.type, ao.amount, ao.result, ao.status, ao.source, ao.text, ao.is_top, au.user_id uuid from ai_order ao + left join ai_user au on au.id = ao.user_id + + + + + + + + + + + + insert into ai_order + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + order_num, + user_id, + type, + amount, + result, + status, + source, + text, + is_top, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{orderNum}, + #{userId}, + #{type}, + #{amount}, + #{result}, + #{status}, + #{source}, + #{text}, + #{isTop}, + + + + + update ai_order + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + order_num = #{orderNum}, + user_id = #{userId}, + type = #{type}, + amount = #{amount}, + result = #{result}, + status = #{status}, + status = #{source}, + text = #{text}, + is_top = #{isTop}, + + where id = #{id} + + + + delete from ai_order where id = #{id} + + + + delete from ai_order where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiRebateRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiRebateRecordMapper.xml new file mode 100644 index 0000000..4e94b2d --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiRebateRecordMapper.xml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + select r.id, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time, r.remark, r.superior_id, r.subordinate_id, r.amount, su.user_id superiorUserId, lu.user_id subordinateUserId from ai_rebate_record r + left join ai_user su on su.id = r.superior_id + left join ai_user lu on lu.id = r.subordinate_id + + + + + + + + + + + + insert into ai_rebate_record + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + superior_id, + subordinate_id, + amount, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{superiorId}, + #{subordinateId}, + #{amount}, + + + + + update ai_rebate_record + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + superior_id = #{superiorId}, + subordinate_id = #{subordinateId}, + amount = #{amount}, + + where id = #{id} + + + + delete from ai_rebate_record where id = #{id} + + + + delete from ai_rebate_record where id in + + #{id} + + + diff --git a/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftGearMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftGearMapper.xml new file mode 100644 index 0000000..c891b97 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftGearMapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + select id, recharge_id, recharge_amount, gift_amount, title, del_flag, create_by, create_time, update_by, update_time, remark from ai_recharge_gift_gear + + + + + + + + + + insert into ai_recharge_gift_gear + + recharge_id, + recharge_amount, + gift_amount, + title, + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{rechargeId}, + #{rechargeAmount}, + #{giftAmount}, + #{title}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + INSERT INTO ai_recharge_gift_gear (recharge_id, recharge_amount, gift_amount, give_amount, title) + VALUES + + (#{item.rechargeId}, #{item.rechargeAmount}, #{item.giftAmount}, #{item.giveAmount}, #{item.title}) + + + + + update ai_recharge_gift_gear + + recharge_id = #{rechargeId}, + recharge_amount = #{rechargeAmount}, + gift_amount = #{giftAmount}, + title = #{title}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from ai_recharge_gift_gear where id = #{id} + + + + delete from ai_recharge_gift_gear where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftMapper.xml new file mode 100644 index 0000000..e5bf7ac --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftMapper.xml @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, is_frist_recharge, status, type, start_time, end_time,pay_type,api_url from ai_recharge_gift + + + + + + + + + + insert into ai_recharge_gift + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + is_frist_recharge, + status, + type, + start_time, + end_time, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{isFristRecharge}, + #{status}, + #{type}, + #{startTime}, + #{endTime}, + + + + + update ai_recharge_gift + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + is_frist_recharge = #{isFristRecharge}, + status = #{status}, + type = #{type}, + start_time = #{startTime}, + end_time = #{endTime}, + + where id = #{id} + + + + update ai_recharge_gift set status = 1 where status = 0 + + + + delete from ai_recharge_gift where id = #{id} + + + + delete from ai_recharge_gift where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftRecordMapper.xml new file mode 100644 index 0000000..a90dd91 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiRechargeGiftRecordMapper.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + select r.id, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time, r.remark, r.user_id, r.order_num, r.recharge_gear_title, r.gear_amount, r.gift_amount, u.user_id uuid from ai_recharge_gift_record r + left join ai_user u on u.id = r.user_id + + + + + + + + insert into ai_recharge_gift_record + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + user_id, + order_num, + recharge_gear_title, + gear_amount, + gift_amount, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{userId}, + #{orderNum}, + #{rechargeGearTitle}, + #{gearAmount}, + #{giftAmount}, + + + + + update ai_recharge_gift_record + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + user_id = #{userId}, + order_num = #{orderNum}, + recharge_gear_title = #{rechargeGearTitle}, + gear_amount = #{gearAmount}, + gift_amount = #{giftAmount}, + + where id = #{id} + + + + delete from ai_recharge_gift_record where id = #{id} + + + + delete from ai_recharge_gift_record where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiRechargeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiRechargeMapper.xml new file mode 100644 index 0000000..b9ffe73 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiRechargeMapper.xml @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select r.id, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time, r.remark, r.order_num, r.user_id, r.receive_wallet, r.payment_wallet, r.hash, r.credited_time, r.amount, r.gear_amount, r.gift_amount, r.give_amount, r.gear_id, r.source, u.user_id uuid from ai_recharge r + left join ai_user u on u.id = r.user_id + + + + + + + + + + + + + + + + insert into ai_recharge + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + order_num, + user_id, + receive_wallet, + payment_wallet, + hash, + credited_time, + amount, + gear_id, + source, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{orderNum}, + #{userId}, + #{receiveWallet}, + #{paymentWallet}, + #{hash}, + #{creditedTime}, + #{amount}, + #{gearId}, + #{source}, + + + + + update ai_recharge + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + order_num = #{orderNum}, + user_id = #{userId}, + receive_wallet = #{receiveWallet}, + payment_wallet = #{paymentWallet}, + hash = #{hash}, + credited_time = #{creditedTime}, + amount = #{amount}, + source = #{source}, + + where id = #{id} + + + + delete from ai_recharge where id = #{id} + + + + delete from ai_recharge where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountMapper.xml new file mode 100644 index 0000000..9029716 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountMapper.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, amount, duration, type, start_time, end_time, status from ai_sample_amount + + + + + + + + + insert into ai_sample_amount + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + amount, + duration, + type, + start_time, + end_time, + status, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{amount}, + #{duration}, + #{type}, + #{startTime}, + #{endTime}, + #{status}, + + + + + update ai_sample_amount + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + amount = #{amount}, + duration = #{duration}, + type = #{type}, + start_time = #{startTime}, + end_time = #{endTime}, + status = #{status}, + + where id = #{id} + + + + update ai_sample_amount set status = 1 where status = 0 + + + + delete from ai_sample_amount where id = #{id} + + + + delete from ai_sample_amount where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountRecordMapper.xml new file mode 100644 index 0000000..b8b7e9c --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiSampleAmountRecordMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + select r.id, r.del_flag, r.create_by, r.create_time, r.update_by, r.update_time, r.remark, r.user_id, r.sample_amount, r.recycle_time, r.status, u.user_id uuid from ai_sample_amount_record r + left join ai_user u on u.id = r.user_id + + + + + + + + insert into ai_sample_amount_record + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + user_id, + sample_amount, + recycle_time, + status, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{userId}, + #{sampleAmount}, + #{recycleTime}, + #{status}, + + + + + update ai_sample_amount_record + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + user_id = #{userId}, + sample_amount = #{sampleAmount}, + recycle_time = #{recycleTime}, + status = #{status}, + + where id = #{id} + + + + delete from ai_sample_amount_record where id = #{id} + + + + delete from ai_sample_amount_record where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiStatisticsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiStatisticsMapper.xml new file mode 100644 index 0000000..4dda705 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiStatisticsMapper.xml @@ -0,0 +1,538 @@ + + + + + + + + + + + + + + select date_key, source, add_user_count, visitor_count, generate_count from ai_statistics + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + insert into ai_statistics + + date_key, + source, + add_user_count, + visitor_count, + generate_count, + + + #{dateKey}, + #{source}, + #{addUserCount}, + #{visitorCount}, + #{generateCount}, + + + + + insert into ai_statistics + + date_key, + source, + add_user_count, + visitor_count, + generate_count, + recharge_amount, + + + #{dateKey}, + #{source}, + #{addUserCount}, + #{visitorCount}, + #{generateCount}, + #{rechargeAmount}, + + ON DUPLICATE KEY UPDATE + + add_user_count = add_user_count + #{addUserCount}, + visitor_count = visitor_count + #{visitorCount}, + generate_count = generate_count + #{generateCount}, + recharge_amount = recharge_amount + #{rechargeAmount}, + + + + + update ai_statistics + + source = #{source}, + add_user_count = #{addUserCount}, + visitor_count = #{visitorCount}, + generate_count = #{generateCount}, + + where date_key = #{dateKey} + + + + delete from ai_statistics where date_key = #{dateKey} + + + + delete from ai_statistics where date_key in + + #{dateKey} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiTagMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiTagMapper.xml new file mode 100644 index 0000000..cc0dbbe --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiTagMapper.xml @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, parent_id, ai_id, title, status, prompt, title_HK, title_US from ai_tag + + + + + + + + + + + + insert into ai_tag + + id, + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + ai_id, + title, + status, + prompt, + parent_id, + title_HK, + title_US, + + + #{id}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{aiId}, + #{title}, + #{status}, + #{prompt}, + #{parentId}, + #{titleHK}, + #{titleUS}, + + + + + update ai_tag + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + ai_id = #{aiId}, + title = #{title}, + status = #{status}, + prompt = #{prompt}, + parent_id = #{parentId}, + title_HK = #{titleHK}, + title_US = #{titleUS}, + + where id = #{id} + + + + delete from ai_tag where id = #{id} + + + + delete from ai_tag where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiTemplateMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiTemplateMapper.xml new file mode 100644 index 0000000..afb0aa7 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiTemplateMapper.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + select id, name, chinese_content, english_content, image_url, status, remark, create_time, create_by, update_by, update_time, del_flag from ai_template + + + + + + + + insert into ai_template + + name, + chinese_content, + english_content, + image_url, + status, + remark, + create_time, + create_by, + update_by, + update_time, + del_flag, + + + #{name}, + #{chineseContent}, + #{englishContent}, + #{imageUrl}, + #{status}, + #{remark}, + #{createTime}, + #{createBy}, + #{updateBy}, + #{updateTime}, + #{delFlag}, + + + + + update ai_template + + name = #{name}, + chinese_content = #{chineseContent}, + english_content = #{englishContent}, + image_url = #{imageUrl}, + status = #{status}, + remark = #{remark}, + create_time = #{createTime}, + create_by = #{createBy}, + update_by = #{updateBy}, + update_time = #{updateTime}, + del_flag = #{delFlag}, + + where id = #{id} + + + + delete from ai_template where id = #{id} + + + + delete from ai_template where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiUserMapper.xml new file mode 100644 index 0000000..0c0e8e0 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiUserMapper.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, username, nickname, gender, avatar, phone, password, openid, status, email, birthday, invitation_code, payment_url, login_time, balance, superior_id, user_id, source, ip, country from ai_user + + + + + + + + + + + insert into ai_user + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + username, + nickname, + gender, + avatar, + phone, + password, + openid, + status, + email, + birthday, + invitation_code, + payment_url, + login_time, + balance, + superior_id, + user_id, + source, + ip, + country, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{username}, + #{nickname}, + #{gender}, + #{avatar}, + #{phone}, + #{password}, + #{openid}, + #{status}, + #{email}, + #{birthday}, + #{invitationCode}, + #{paymentUrl}, + #{loginTime}, + #{balance}, + #{superiorId}, + #{userId}, + #{source}, + #{country}, + + + + + update ai_user + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + username = #{username}, + nickname = #{nickname}, + gender = #{gender}, + avatar = #{avatar}, + phone = #{phone}, + password = #{password}, + openid = #{openid}, + status = #{status}, + email = #{email}, + birthday = #{birthday}, + invitation_code = #{invitationCode}, + payment_url = #{paymentUrl}, + login_time = #{loginTime}, + balance = #{balance}, + superior_id = #{superiorId}, + user_id = #{userId}, + source = #{source}, + source = #{ip}, + country = #{country}, + + where id = #{id} + + + + UPDATE users + SET balance = balance + #{amount} + WHERE id = #{id}; + + + + delete from ai_user where id = #{id} + + + + delete from ai_user where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiUserMessageMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiUserMessageMapper.xml new file mode 100644 index 0000000..e98f925 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiUserMessageMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, title, send_type, content from ai_user_message + + + + + + + + insert into ai_user_message + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + title, + send_type, + content, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{title}, + #{sendType}, + #{content}, + + + + + INSERT INTO user_message (message_id, user_id) + VALUES + + (#{messageId}, #{userId}) + + + + + update ai_user_message + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + title = #{title}, + send_type = #{sendType}, + content = #{content}, + + where id = #{id} + + + + delete from ai_user_message where id = #{id} + + + + delete from ai_user_message where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/AiWorkMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AiWorkMapper.xml new file mode 100644 index 0000000..7e167c2 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AiWorkMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + select id, del_flag, create_by, create_time, update_by, update_time, remark, url, text, user_id, type, source, is_top from ai_work + + + + + + + + insert into ai_work + + del_flag, + create_by, + create_time, + update_by, + update_time, + remark, + url, + text, + user_id, + type, + source, + is_top, + + + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{url}, + #{text}, + #{userId}, + #{type}, + #{source}, + #{isTop}, + + + + + update ai_work + + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + url = #{url}, + text = #{text}, + user_id = #{userId}, + type = #{type}, + type = #{source}, + is_top = #{isTop}, + + where id = #{id} + + + + delete from ai_work where id = #{id} + + + + delete from ai_work where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml new file mode 100644 index 0000000..a5ff114 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + select config_id, config_name, config_key, config_value, config_type, create_by, create_time, update_by, update_time, remark + from sys_config + + + + + + + and config_id = #{configId} + + + and config_key = #{configKey} + + + + + + + + + + + + + + insert into sys_config ( + config_name, + config_key, + config_value, + config_type, + create_by, + remark, + create_time + )values( + #{configName}, + #{configKey}, + #{configValue}, + #{configType}, + #{createBy}, + #{remark}, + sysdate() + ) + + + + update sys_config + + config_name = #{configName}, + config_key = #{configKey}, + config_value = #{configValue}, + config_type = #{configType}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where config_id = #{configId} + + + + delete from sys_config where config_id = #{configId} + + + + delete from sys_config where config_id in + + #{configId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml new file mode 100644 index 0000000..bd232c8 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time + from sys_dept d + + + + + + + + + + + + + + + + + + + + + + insert into sys_dept( + dept_id, + parent_id, + dept_name, + ancestors, + order_num, + leader, + phone, + email, + status, + create_by, + create_time + )values( + #{deptId}, + #{parentId}, + #{deptName}, + #{ancestors}, + #{orderNum}, + #{leader}, + #{phone}, + #{email}, + #{status}, + #{createBy}, + sysdate() + ) + + + + update sys_dept + + parent_id = #{parentId}, + dept_name = #{deptName}, + ancestors = #{ancestors}, + order_num = #{orderNum}, + leader = #{leader}, + phone = #{phone}, + email = #{email}, + status = #{status}, + update_by = #{updateBy}, + update_time = sysdate() + + where dept_id = #{deptId} + + + + update sys_dept set ancestors = + + when #{item.deptId} then #{item.ancestors} + + where dept_id in + + #{item.deptId} + + + + + update sys_dept set status = '0' where dept_id in + + #{deptId} + + + + + update sys_dept set del_flag = '2' where dept_id = #{deptId} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml new file mode 100644 index 0000000..d0784ec --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, remark, path, component, perms + from sys_dict_data + + + + + + + + + + + + + + delete from sys_dict_data where dict_code = #{dictCode} + + + + delete from sys_dict_data where dict_code in + + #{dictCode} + + + + + update sys_dict_data + + dict_sort = #{dictSort}, + dict_label = #{dictLabel}, + dict_value = #{dictValue}, + dict_type = #{dictType}, + css_class = #{cssClass}, + list_class = #{listClass}, + is_default = #{isDefault}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + path = #{path}, + component = #{component}, + perms = #{perms}, + update_time = sysdate() + + where dict_code = #{dictCode} + + + + update sys_dict_data set dict_type = #{newDictType} where dict_type = #{oldDictType} + + + + insert into sys_dict_data( + dict_sort, + dict_label, + dict_value, + dict_type, + css_class, + list_class, + is_default, + status, + remark, + create_by, + path, + component, + perms, + create_time + )values( + #{dictSort}, + #{dictLabel}, + #{dictValue}, + #{dictType}, + #{cssClass}, + #{listClass}, + #{isDefault}, + #{status}, + #{remark}, + #{createBy}, + #{path}, + #{component}, + #{perms}, + sysdate() + ) + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml new file mode 100644 index 0000000..438d484 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysDictTypeMapper.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + select dict_id, dict_name, dict_type, status, create_by, create_time, remark + from sys_dict_type + + + + + + + + + + + + + + delete from sys_dict_type where dict_id = #{dictId} + + + + delete from sys_dict_type where dict_id in + + #{dictId} + + + + + update sys_dict_type + + dict_name = #{dictName}, + dict_type = #{dictType}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where dict_id = #{dictId} + + + + insert into sys_dict_type( + dict_name, + dict_type, + status, + remark, + create_by, + create_time + )values( + #{dictName}, + #{dictType}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml new file mode 100644 index 0000000..822d665 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysLogininforMapper.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time) + values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate()) + + + + + + delete from sys_logininfor where info_id in + + #{infoId} + + + + + truncate table sys_logininfor + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml new file mode 100644 index 0000000..84e87c9 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select menu_id, menu_name, parent_id, order_num, path, component, `query`, route_name, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time + from sys_menu + + + + + + + + + + + + + + + + + + + + + + + + + + update sys_menu + + menu_name = #{menuName}, + parent_id = #{parentId}, + order_num = #{orderNum}, + path = #{path}, + component = #{component}, + `query` = #{query}, + route_name = #{routeName}, + is_frame = #{isFrame}, + is_cache = #{isCache}, + menu_type = #{menuType}, + visible = #{visible}, + status = #{status}, + perms = #{perms}, + icon = #{icon}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where menu_id = #{menuId} + + + + insert into sys_menu( + menu_id, + parent_id, + menu_name, + order_num, + path, + component, + `query`, + route_name, + is_frame, + is_cache, + menu_type, + visible, + status, + perms, + icon, + remark, + create_by, + create_time + )values( + #{menuId}, + #{parentId}, + #{menuName}, + #{orderNum}, + #{path}, + #{component}, + #{query}, + #{routeName}, + #{isFrame}, + #{isCache}, + #{menuType}, + #{visible}, + #{status}, + #{perms}, + #{icon}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + delete from sys_menu where menu_id = #{menuId} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml new file mode 100644 index 0000000..65d3079 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysNoticeMapper.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + select notice_id, notice_title, notice_type, cast(notice_content as char) as notice_content, status, create_by, create_time, update_by, update_time, remark + from sys_notice + + + + + + + + insert into sys_notice ( + notice_title, + notice_type, + notice_content, + status, + remark, + create_by, + create_time + )values( + #{noticeTitle}, + #{noticeType}, + #{noticeContent}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + update sys_notice + + notice_title = #{noticeTitle}, + notice_type = #{noticeType}, + notice_content = #{noticeContent}, + status = #{status}, + update_by = #{updateBy}, + update_time = sysdate() + + where notice_id = #{noticeId} + + + + delete from sys_notice where notice_id = #{noticeId} + + + + delete from sys_notice where notice_id in + + #{noticeId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml new file mode 100644 index 0000000..201db07 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time, cost_time + from sys_oper_log + + + + insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, cost_time, oper_time) + values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, #{costTime}, sysdate()) + + + + + + delete from sys_oper_log where oper_id in + + #{operId} + + + + + + + truncate table sys_oper_log + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml new file mode 100644 index 0000000..227c459 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysPostMapper.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark + from sys_post + + + + + + + + + + + + + + + + + + update sys_post + + post_code = #{postCode}, + post_name = #{postName}, + post_sort = #{postSort}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where post_id = #{postId} + + + + insert into sys_post( + post_id, + post_code, + post_name, + post_sort, + status, + remark, + create_by, + create_time + )values( + #{postId}, + #{postCode}, + #{postName}, + #{postSort}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + delete from sys_post where post_id = #{postId} + + + + delete from sys_post where post_id in + + #{postId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml new file mode 100644 index 0000000..7c4139b --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_role_dept where role_id=#{roleId} + + + + + + delete from sys_role_dept where role_id in + + #{roleId} + + + + + insert into sys_role_dept(role_id, dept_id) values + + (#{item.roleId},#{item.deptId}) + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml new file mode 100644 index 0000000..955d4ee --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly, + r.status, r.del_flag, r.create_time, r.remark + from sys_role r + left join sys_user_role ur on ur.role_id = r.role_id + left join sys_user u on u.user_id = ur.user_id + left join sys_dept d on u.dept_id = d.dept_id + + + + + + + + + + + + + + + + + + + + insert into sys_role( + role_id, + role_name, + role_key, + role_sort, + data_scope, + menu_check_strictly, + dept_check_strictly, + status, + remark, + create_by, + create_time + )values( + #{roleId}, + #{roleName}, + #{roleKey}, + #{roleSort}, + #{dataScope}, + #{menuCheckStrictly}, + #{deptCheckStrictly}, + #{status}, + #{remark}, + #{createBy}, + sysdate() + ) + + + + update sys_role + + role_name = #{roleName}, + role_key = #{roleKey}, + role_sort = #{roleSort}, + data_scope = #{dataScope}, + menu_check_strictly = #{menuCheckStrictly}, + dept_check_strictly = #{deptCheckStrictly}, + status = #{status}, + remark = #{remark}, + update_by = #{updateBy}, + update_time = sysdate() + + where role_id = #{roleId} + + + + update sys_role set del_flag = '2' where role_id = #{roleId} + + + + update sys_role set del_flag = '2' where role_id in + + #{roleId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml new file mode 100644 index 0000000..cb60a85 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + delete from sys_role_menu where role_id=#{roleId} + + + + delete from sys_role_menu where role_id in + + #{roleId} + + + + + insert into sys_role_menu(role_id, menu_id) values + + (#{item.roleId},#{item.menuId}) + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml new file mode 100644 index 0000000..29c7ad5 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.pwd_update_date, u.create_by, u.create_time, u.remark, + d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, + r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status + from sys_user u + left join sys_dept d on u.dept_id = d.dept_id + left join sys_user_role ur on u.user_id = ur.user_id + left join sys_role r on r.role_id = ur.role_id + + + + + + + + + + + + + + + + + + + + insert into sys_user( + user_id, + dept_id, + user_name, + nick_name, + email, + avatar, + phonenumber, + sex, + password, + status, + pwd_update_date, + create_by, + remark, + create_time + )values( + #{userId}, + #{deptId}, + #{userName}, + #{nickName}, + #{email}, + #{avatar}, + #{phonenumber}, + #{sex}, + #{password}, + #{status}, + #{pwdUpdateDate}, + #{createBy}, + #{remark}, + sysdate() + ) + + + + update sys_user + + dept_id = #{deptId}, + nick_name = #{nickName}, + email = #{email}, + phonenumber = #{phonenumber}, + sex = #{sex}, + avatar = #{avatar}, + password = #{password}, + status = #{status}, + login_ip = #{loginIp}, + login_date = #{loginDate}, + update_by = #{updateBy}, + remark = #{remark}, + update_time = sysdate() + + where user_id = #{userId} + + + + update sys_user set status = #{status} where user_id = #{userId} + + + + update sys_user set avatar = #{avatar} where user_id = #{userId} + + + + update sys_user set pwd_update_date = sysdate(), password = #{password} where user_id = #{userId} + + + + update sys_user set del_flag = '2' where user_id = #{userId} + + + + update sys_user set del_flag = '2' where user_id in + + #{userId} + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml new file mode 100644 index 0000000..2b90bc4 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + delete from sys_user_post where user_id=#{userId} + + + + + + delete from sys_user_post where user_id in + + #{userId} + + + + + insert into sys_user_post(user_id, post_id) values + + (#{item.userId},#{item.postId}) + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml new file mode 100644 index 0000000..dd72689 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + delete from sys_user_role where user_id=#{userId} + + + + + + delete from sys_user_role where user_id in + + #{userId} + + + + + insert into sys_user_role(user_id, role_id) values + + (#{item.userId},#{item.roleId}) + + + + + delete from sys_user_role where user_id=#{userId} and role_id=#{roleId} + + + + delete from sys_user_role where role_id=#{roleId} and user_id in + + #{userId} + + + \ No newline at end of file diff --git a/ry.bat b/ry.bat new file mode 100644 index 0000000..ac1e437 --- /dev/null +++ b/ry.bat @@ -0,0 +1,67 @@ +@echo off + +rem jarƽĿ¼ +set AppName=ruoyi-admin.jar + +rem JVM +set JVM_OPTS="-Dname=%AppName% -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" + + +ECHO. + ECHO. [1] %AppName% + ECHO. [2] ر%AppName% + ECHO. [3] %AppName% + ECHO. [4] ״̬ %AppName% + ECHO. [5] +ECHO. + +ECHO.ѡĿ: +set /p ID= + IF "%id%"=="1" GOTO start + IF "%id%"=="2" GOTO stop + IF "%id%"=="3" GOTO restart + IF "%id%"=="4" GOTO status + IF "%id%"=="5" EXIT +PAUSE +:start + for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do ( + set pid=%%a + set image_name=%%b + ) + if defined pid ( + echo %%is running + PAUSE + ) + +start javaw %JVM_OPTS% -jar %AppName% + +echo starting +echo Start %AppName% success... +goto:eof + +rem stopͨjpspid +:stop + for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do ( + set pid=%%a + set image_name=%%b + ) + if not defined pid (echo process %AppName% does not exists) else ( + echo prepare to kill %image_name% + echo start kill %pid% ... + rem ݽIDkill + taskkill /f /pid %pid% + ) +goto:eof +:restart + call :stop + call :start +goto:eof +:status + for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %AppName%`) do ( + set pid=%%a + set image_name=%%b + ) + if not defined pid (echo process %AppName% is dead ) else ( + echo %image_name% is running + ) +goto:eof diff --git a/ry.sh b/ry.sh new file mode 100644 index 0000000..d6a9cf3 --- /dev/null +++ b/ry.sh @@ -0,0 +1,86 @@ +#!/bin/sh +# ./ry.sh start 启动 stop 停止 restart 重启 status 状态 +AppName=ruoyi-admin.jar + +# JVM参数 +JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC" +APP_HOME=`pwd` +LOG_PATH=$APP_HOME/logs/$AppName.log + +if [ "$1" = "" ]; +then + echo -e "\033[0;31m 未输入操作名 \033[0m \033[0;34m {start|stop|restart|status} \033[0m" + exit 1 +fi + +if [ "$AppName" = "" ]; +then + echo -e "\033[0;31m 未输入应用名 \033[0m" + exit 1 +fi + +function start() +{ + PID=`ps -ef |grep java|grep $AppName|grep -v grep|awk '{print $2}'` + + if [ x"$PID" != x"" ]; then + echo "$AppName is running..." + else + nohup java $JVM_OPTS -jar $AppName > /dev/null 2>&1 & + echo "Start $AppName success..." + fi +} + +function stop() +{ + echo "Stop $AppName" + + PID="" + query(){ + PID=`ps -ef |grep java|grep $AppName|grep -v grep|awk '{print $2}'` + } + + query + if [ x"$PID" != x"" ]; then + kill -TERM $PID + echo "$AppName (pid:$PID) exiting..." + while [ x"$PID" != x"" ] + do + sleep 1 + query + done + echo "$AppName exited." + else + echo "$AppName already stopped." + fi +} + +function restart() +{ + stop + sleep 2 + start +} + +function status() +{ + PID=`ps -ef |grep java|grep $AppName|grep -v grep|wc -l` + if [ $PID != 0 ];then + echo "$AppName is running..." + else + echo "$AppName is not running..." + fi +} + +case $1 in + start) + start;; + stop) + stop;; + restart) + restart;; + status) + status;; + *) + +esac diff --git a/sql/aisql.sql b/sql/aisql.sql new file mode 100644 index 0000000..8025d5f --- /dev/null +++ b/sql/aisql.sql @@ -0,0 +1,5816 @@ +/* + Navicat Premium Dump SQL + + Source Server : ai + Source Server Type : MySQL + Source Server Version : 80043 (8.0.43) + Source Host : database-1.cvs822qoc391.ap-southeast-1.rds.amazonaws.com:3306 + Source Schema : byteai + + Target Server Type : MySQL + Target Server Version : 80043 (8.0.43) + File Encoding : 65001 + + Date: 12/01/2026 10:19:56 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for ai_balance_change_record +-- ---------------------------- +DROP TABLE IF EXISTS `ai_balance_change_record`; +CREATE TABLE `ai_balance_change_record` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `type` tinyint(1) NULL DEFAULT NULL COMMENT '操作类型', + `change_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '变更金额', + `result_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '变更后金额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1159 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '余额使用记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_balance_change_record +-- ---------------------------- +INSERT INTO `ai_balance_change_record` VALUES (1, '0', '', '2025-12-02 10:41:48', '', '2025-12-02 02:41:47', NULL, 5, 5, -2.00, 9998743.00); +INSERT INTO `ai_balance_change_record` VALUES (2, '0', '', '2025-12-02 10:43:46', '', '2025-12-02 02:43:46', NULL, 5, 5, -2.00, 9998741.00); +INSERT INTO `ai_balance_change_record` VALUES (3, '0', '', '2025-12-02 10:47:00', '', '2025-12-02 02:46:59', NULL, 5, 5, -2.00, 9998739.00); +INSERT INTO `ai_balance_change_record` VALUES (4, '0', '', '2025-12-02 10:48:48', '', '2025-12-02 02:48:48', NULL, 5, 5, -2.00, 9998737.00); +INSERT INTO `ai_balance_change_record` VALUES (5, '0', '', '2025-12-02 10:49:55', '', '2025-12-02 02:49:54', NULL, 5, 5, -2.00, 9998735.00); +INSERT INTO `ai_balance_change_record` VALUES (6, '0', '', '2025-12-02 10:51:14', '', '2025-12-02 02:51:14', NULL, 5, 5, -2.00, 9998733.00); +INSERT INTO `ai_balance_change_record` VALUES (7, '0', '', '2025-12-02 10:52:21', '', '2025-12-02 02:52:20', NULL, 5, 5, -2.00, 9998731.00); +INSERT INTO `ai_balance_change_record` VALUES (8, '0', '', '2025-12-02 10:53:18', '', '2025-12-02 02:53:18', NULL, 5, 5, -2.00, 9998729.00); +INSERT INTO `ai_balance_change_record` VALUES (9, '0', '', '2025-12-02 10:54:22', '', '2025-12-02 02:54:22', NULL, 5, 5, -2.00, 9998727.00); +INSERT INTO `ai_balance_change_record` VALUES (10, '0', '', '2025-12-02 10:57:01', '', '2025-12-02 02:57:01', NULL, 5, 5, -2.00, 9998725.00); +INSERT INTO `ai_balance_change_record` VALUES (11, '0', '', '2025-12-02 12:32:18', '', '2025-12-02 04:32:17', NULL, 5, 8, -2.00, 9998723.00); +INSERT INTO `ai_balance_change_record` VALUES (12, '0', '', '2025-12-02 12:32:30', '', '2025-12-02 04:32:30', NULL, 5, 8, -2.00, 9998721.00); +INSERT INTO `ai_balance_change_record` VALUES (13, '0', '', '2025-12-02 12:33:42', '', '2025-12-02 04:33:41', NULL, 5, 8, -2.00, 9998719.00); +INSERT INTO `ai_balance_change_record` VALUES (14, '0', '', '2025-12-02 12:34:15', '', '2025-12-02 04:34:15', NULL, 5, 8, -2.00, 9998717.00); +INSERT INTO `ai_balance_change_record` VALUES (15, '0', '', '2025-12-02 12:34:25', '', '2025-12-02 04:34:25', NULL, 5, 8, -2.00, 9998715.00); +INSERT INTO `ai_balance_change_record` VALUES (16, '0', '', '2025-12-02 12:34:33', '', '2025-12-02 04:34:32', NULL, 5, 8, -2.00, 9998713.00); +INSERT INTO `ai_balance_change_record` VALUES (17, '0', '', '2025-12-02 12:34:47', '', '2025-12-02 04:34:47', NULL, 5, 8, -2.00, 9998711.00); +INSERT INTO `ai_balance_change_record` VALUES (18, '0', '', '2025-12-02 12:35:01', '', '2025-12-02 04:35:00', NULL, 5, 8, -2.00, 9998709.00); +INSERT INTO `ai_balance_change_record` VALUES (19, '0', '', '2025-12-02 12:35:31', '', '2025-12-02 04:35:31', NULL, 5, 8, -2.00, 9998707.00); +INSERT INTO `ai_balance_change_record` VALUES (20, '0', '', '2025-12-02 12:35:39', '', '2025-12-02 04:35:38', NULL, 5, 8, -2.00, 9998705.00); +INSERT INTO `ai_balance_change_record` VALUES (21, '0', '', '2025-12-02 12:36:27', '', '2025-12-02 04:36:26', NULL, 5, 8, -2.00, 9998703.00); +INSERT INTO `ai_balance_change_record` VALUES (22, '0', '', '2025-12-02 12:36:36', '', '2025-12-02 04:36:35', NULL, 5, 8, -2.00, 9998701.00); +INSERT INTO `ai_balance_change_record` VALUES (23, '0', '', '2025-12-02 12:37:25', '', '2025-12-02 04:37:25', NULL, 5, 9, -6.00, 9998695.00); +INSERT INTO `ai_balance_change_record` VALUES (24, '0', '', '2025-12-02 12:37:54', '', '2025-12-02 04:37:54', NULL, 5, 9, -6.00, 9998689.00); +INSERT INTO `ai_balance_change_record` VALUES (25, '0', '', '2025-12-02 17:22:05', '', '2025-12-02 09:22:04', NULL, 5, 5, -2.00, 9998687.00); +INSERT INTO `ai_balance_change_record` VALUES (28, '0', '', '2025-12-02 17:23:07', '', '2025-12-02 09:23:07', NULL, 5, 6, -2.00, 9998685.00); +INSERT INTO `ai_balance_change_record` VALUES (31, '0', '', '2025-12-02 17:47:56', '', '2025-12-02 09:47:55', NULL, 14, 5, -2.00, 831.00); +INSERT INTO `ai_balance_change_record` VALUES (32, '0', '', '2025-12-02 17:47:59', '', '2025-12-02 09:47:59', NULL, 14, 5, -2.00, 829.00); +INSERT INTO `ai_balance_change_record` VALUES (33, '0', '', '2025-12-02 17:48:04', '', '2025-12-02 09:48:03', NULL, 14, 5, -2.00, 827.00); +INSERT INTO `ai_balance_change_record` VALUES (34, '0', '', '2025-12-02 17:48:19', '', '2025-12-02 09:48:18', NULL, 14, 5, -2.00, 825.00); +INSERT INTO `ai_balance_change_record` VALUES (35, '0', '', '2025-12-02 20:21:32', '', '2025-12-02 12:21:32', NULL, 5, 8, -2.00, 9998683.00); +INSERT INTO `ai_balance_change_record` VALUES (36, '0', '', '2025-12-02 20:26:26', '', '2025-12-02 12:26:26', NULL, 5, 5, -2.00, 9998681.00); +INSERT INTO `ai_balance_change_record` VALUES (37, '0', '', '2025-12-02 20:26:32', '', '2025-12-02 12:26:32', NULL, 5, 5, -2.00, 9998679.00); +INSERT INTO `ai_balance_change_record` VALUES (38, '0', '', '2025-12-02 20:27:08', '', '2025-12-02 12:27:07', NULL, 5, 5, -2.00, 9998677.00); +INSERT INTO `ai_balance_change_record` VALUES (39, '0', '', '2025-12-02 22:04:13', '', '2025-12-02 14:04:12', NULL, 5, 5, -2.00, 9998675.00); +INSERT INTO `ai_balance_change_record` VALUES (40, '0', '', '2025-12-02 22:05:12', '', '2025-12-02 14:05:12', NULL, 5, 5, -2.00, 9998673.00); +INSERT INTO `ai_balance_change_record` VALUES (41, '0', '', '2025-12-03 16:55:20', '', '2025-12-03 08:55:19', NULL, 14, 9, -6.00, 819.00); +INSERT INTO `ai_balance_change_record` VALUES (42, '0', '', '2025-12-03 16:56:10', '', '2025-12-03 08:56:09', NULL, 14, 9, -6.00, 813.00); +INSERT INTO `ai_balance_change_record` VALUES (43, '0', '', '2025-12-03 16:58:45', '', '2025-12-03 08:58:44', NULL, 14, 9, -6.00, 807.00); +INSERT INTO `ai_balance_change_record` VALUES (44, '0', '', '2025-12-03 16:59:48', '', '2025-12-03 08:59:47', NULL, 14, 9, -6.00, 801.00); +INSERT INTO `ai_balance_change_record` VALUES (45, '0', '', '2025-12-03 17:00:23', '', '2025-12-03 09:00:23', NULL, 5, 9, -6.00, 9998667.00); +INSERT INTO `ai_balance_change_record` VALUES (46, '0', '', '2025-12-03 17:09:15', '', '2025-12-03 09:09:14', NULL, 5, 5, -2.00, 9998665.00); +INSERT INTO `ai_balance_change_record` VALUES (47, '0', '', '2025-12-03 17:30:30', '', '2025-12-03 09:30:29', NULL, 5, 9, -6.00, 9998659.00); +INSERT INTO `ai_balance_change_record` VALUES (48, '0', '', '2025-12-03 17:36:03', '', '2025-12-03 09:36:02', NULL, 5, 9, -6.00, 9998653.00); +INSERT INTO `ai_balance_change_record` VALUES (49, '0', '', '2025-12-03 17:37:25', '', '2025-12-03 09:37:25', NULL, 5, 9, -6.00, 9998647.00); +INSERT INTO `ai_balance_change_record` VALUES (50, '0', '', '2025-12-03 17:41:38', '', '2025-12-03 09:41:37', NULL, 5, 9, -6.00, 9998641.00); +INSERT INTO `ai_balance_change_record` VALUES (51, '0', '', '2025-12-03 18:10:18', '', '2025-12-03 10:10:18', NULL, 5, 9, -6.00, 9998635.00); +INSERT INTO `ai_balance_change_record` VALUES (52, '0', '', '2025-12-03 18:14:16', '', '2025-12-03 10:14:15', NULL, 5, 9, -6.00, 9998629.00); +INSERT INTO `ai_balance_change_record` VALUES (53, '0', '', '2025-12-03 18:14:18', '', '2025-12-03 10:14:18', NULL, 5, 9, -6.00, 9998623.00); +INSERT INTO `ai_balance_change_record` VALUES (54, '0', '', '2025-12-03 18:15:22', '', '2025-12-03 10:15:21', NULL, 5, 9, -6.00, 9998617.00); +INSERT INTO `ai_balance_change_record` VALUES (55, '0', '', '2025-12-03 19:38:09', '', '2025-12-03 11:38:09', NULL, 5, 9, -6.00, 9998611.00); +INSERT INTO `ai_balance_change_record` VALUES (56, '0', '', '2025-12-03 19:42:44', '', '2025-12-03 11:42:44', NULL, 5, 9, -6.00, 9998605.00); +INSERT INTO `ai_balance_change_record` VALUES (57, '0', '', '2025-12-03 19:44:15', '', '2025-12-03 11:44:15', NULL, 5, 9, -6.00, 9998599.00); +INSERT INTO `ai_balance_change_record` VALUES (58, '0', '', '2025-12-03 19:48:49', '', '2025-12-03 11:48:48', NULL, 5, 5, -2.00, 9998597.00); +INSERT INTO `ai_balance_change_record` VALUES (59, '0', '', '2025-12-03 19:49:47', '', '2025-12-03 11:49:47', NULL, 5, 5, -2.00, 9998595.00); +INSERT INTO `ai_balance_change_record` VALUES (60, '0', '', '2025-12-03 19:51:44', '', '2025-12-03 11:51:44', NULL, 5, 9, -6.00, 9998589.00); +INSERT INTO `ai_balance_change_record` VALUES (61, '0', '', '2025-12-03 19:55:35', '', '2025-12-03 11:55:35', NULL, 5, 9, -6.00, 9998583.00); +INSERT INTO `ai_balance_change_record` VALUES (62, '0', '', '2025-12-03 19:56:25', '', '2025-12-03 11:56:24', NULL, 5, 9, -6.00, 9998577.00); +INSERT INTO `ai_balance_change_record` VALUES (63, '0', '', '2025-12-03 19:58:12', '', '2025-12-03 11:58:11', NULL, 5, 9, -6.00, 9998571.00); +INSERT INTO `ai_balance_change_record` VALUES (64, '0', '', '2025-12-03 20:34:49', '', '2025-12-03 12:34:49', NULL, 5, 8, -2.00, 9998569.00); +INSERT INTO `ai_balance_change_record` VALUES (65, '0', '', '2025-12-03 20:35:10', '', '2025-12-03 12:35:09', NULL, 5, 8, -2.00, 9998567.00); +INSERT INTO `ai_balance_change_record` VALUES (66, '0', '', '2025-12-03 20:35:31', '', '2025-12-03 12:35:31', NULL, 5, 8, -2.00, 9998565.00); +INSERT INTO `ai_balance_change_record` VALUES (67, '0', '', '2025-12-03 20:35:50', '', '2025-12-03 12:35:49', NULL, 5, 8, -2.00, 9998563.00); +INSERT INTO `ai_balance_change_record` VALUES (68, '0', '', '2025-12-03 20:36:02', '', '2025-12-03 12:36:02', NULL, 5, 8, -2.00, 9998561.00); +INSERT INTO `ai_balance_change_record` VALUES (69, '0', '', '2025-12-03 21:21:37', '', '2025-12-03 13:21:37', NULL, 5, 8, -2.00, 9998559.00); +INSERT INTO `ai_balance_change_record` VALUES (70, '0', '', '2025-12-03 21:22:19', '', '2025-12-03 13:22:18', NULL, 5, 8, -2.00, 9998557.00); +INSERT INTO `ai_balance_change_record` VALUES (71, '0', '', '2025-12-03 21:22:38', '', '2025-12-03 13:22:37', NULL, 5, 8, -2.00, 9998555.00); +INSERT INTO `ai_balance_change_record` VALUES (72, '0', '', '2025-12-03 21:22:49', '', '2025-12-03 13:22:48', NULL, 5, 8, -2.00, 9998553.00); +INSERT INTO `ai_balance_change_record` VALUES (73, '0', '', '2025-12-03 21:26:21', '', '2025-12-03 13:26:20', NULL, 5, 8, -2.00, 9998551.00); +INSERT INTO `ai_balance_change_record` VALUES (74, '0', '', '2025-12-03 21:27:35', '', '2025-12-03 13:27:35', NULL, 5, 8, -2.00, 9998549.00); +INSERT INTO `ai_balance_change_record` VALUES (75, '0', '', '2025-12-03 21:28:52', '', '2025-12-03 13:28:52', NULL, 5, 8, -2.00, 9998547.00); +INSERT INTO `ai_balance_change_record` VALUES (76, '0', '', '2025-12-03 21:30:45', '', '2025-12-03 13:30:44', NULL, 5, 5, -2.00, 9998545.00); +INSERT INTO `ai_balance_change_record` VALUES (77, '0', '', '2025-12-03 21:32:54', '', '2025-12-03 13:32:53', NULL, 5, 5, -2.00, 9998543.00); +INSERT INTO `ai_balance_change_record` VALUES (78, '0', '', '2025-12-03 21:34:37', '', '2025-12-03 13:34:37', NULL, 5, 5, -2.00, 9998541.00); +INSERT INTO `ai_balance_change_record` VALUES (79, '0', '', '2025-12-03 21:36:20', '', '2025-12-03 13:36:20', NULL, 5, 5, -2.00, 9998539.00); +INSERT INTO `ai_balance_change_record` VALUES (80, '0', '', '2025-12-03 21:48:24', '', '2025-12-03 13:48:24', NULL, 5, 5, -2.00, 9998537.00); +INSERT INTO `ai_balance_change_record` VALUES (81, '0', '', '2025-12-03 21:49:53', '', '2025-12-03 13:49:52', NULL, 5, 8, -2.00, 9998535.00); +INSERT INTO `ai_balance_change_record` VALUES (82, '0', '', '2025-12-03 21:50:11', '', '2025-12-03 13:50:11', NULL, 5, 8, -2.00, 9998533.00); +INSERT INTO `ai_balance_change_record` VALUES (83, '0', '', '2025-12-03 21:50:30', '', '2025-12-03 13:50:30', NULL, 5, 8, -2.00, 9998531.00); +INSERT INTO `ai_balance_change_record` VALUES (84, '0', '', '2025-12-03 21:50:47', '', '2025-12-03 13:50:47', NULL, 5, 8, -2.00, 9998529.00); +INSERT INTO `ai_balance_change_record` VALUES (85, '0', '', '2025-12-03 21:51:04', '', '2025-12-03 13:51:03', NULL, 5, 8, -2.00, 9998527.00); +INSERT INTO `ai_balance_change_record` VALUES (86, '0', '', '2025-12-03 21:51:24', '', '2025-12-03 13:51:24', NULL, 5, 8, -2.00, 9998525.00); +INSERT INTO `ai_balance_change_record` VALUES (87, '0', '', '2025-12-03 21:51:40', '', '2025-12-03 13:51:39', NULL, 5, 8, -2.00, 9998523.00); +INSERT INTO `ai_balance_change_record` VALUES (88, '0', '', '2025-12-03 21:51:55', '', '2025-12-03 13:51:54', NULL, 5, 8, -2.00, 9998521.00); +INSERT INTO `ai_balance_change_record` VALUES (89, '0', '', '2025-12-03 21:52:24', '', '2025-12-03 13:52:23', NULL, 5, 8, -2.00, 9998519.00); +INSERT INTO `ai_balance_change_record` VALUES (90, '0', '', '2025-12-03 21:52:38', '', '2025-12-03 13:52:38', NULL, 5, 8, -2.00, 9998517.00); +INSERT INTO `ai_balance_change_record` VALUES (91, '0', '', '2025-12-03 21:52:50', '', '2025-12-03 13:52:49', NULL, 5, 8, -2.00, 9998515.00); +INSERT INTO `ai_balance_change_record` VALUES (92, '0', '', '2025-12-03 21:53:12', '', '2025-12-03 13:53:11', NULL, 5, 8, -2.00, 9998513.00); +INSERT INTO `ai_balance_change_record` VALUES (93, '0', '', '2025-12-03 21:53:43', '', '2025-12-03 13:53:43', NULL, 5, 8, -2.00, 9998511.00); +INSERT INTO `ai_balance_change_record` VALUES (94, '0', '', '2025-12-03 21:54:06', '', '2025-12-03 13:54:06', NULL, 5, 8, -2.00, 9998509.00); +INSERT INTO `ai_balance_change_record` VALUES (95, '0', '', '2025-12-03 21:54:27', '', '2025-12-03 13:54:27', NULL, 5, 8, -2.00, 9998507.00); +INSERT INTO `ai_balance_change_record` VALUES (96, '0', '', '2025-12-04 10:07:11', '', '2025-12-04 02:07:10', NULL, 14, 9, -6.00, 795.00); +INSERT INTO `ai_balance_change_record` VALUES (97, '0', '', '2025-12-04 10:08:18', '', '2025-12-04 02:08:18', NULL, 14, 9, -6.00, 789.00); +INSERT INTO `ai_balance_change_record` VALUES (98, '0', '', '2025-12-04 10:10:17', '', '2025-12-04 02:10:17', NULL, 14, 5, -2.00, 787.00); +INSERT INTO `ai_balance_change_record` VALUES (99, '0', '', '2025-12-04 17:12:16', '', '2025-12-04 09:12:15', NULL, 14, 5, -2.00, 785.00); +INSERT INTO `ai_balance_change_record` VALUES (100, '0', '', '2025-12-04 18:02:04', '', '2025-12-04 10:02:04', NULL, 14, 9, -6.00, 779.00); +INSERT INTO `ai_balance_change_record` VALUES (101, '0', '', '2025-12-04 18:05:38', '', '2025-12-04 10:05:37', NULL, 14, 8, -2.00, 777.00); +INSERT INTO `ai_balance_change_record` VALUES (102, '0', '', '2025-12-04 18:06:05', '', '2025-12-04 10:06:05', NULL, 14, 8, -2.00, 775.00); +INSERT INTO `ai_balance_change_record` VALUES (103, '0', '', '2025-12-04 18:06:38', '', '2025-12-04 10:06:37', NULL, 14, 8, -2.00, 773.00); +INSERT INTO `ai_balance_change_record` VALUES (104, '0', '', '2025-12-04 18:07:31', '', '2025-12-04 10:07:31', NULL, 14, 9, -6.00, 767.00); +INSERT INTO `ai_balance_change_record` VALUES (105, '0', '', '2025-12-04 18:23:49', '', '2025-12-04 10:23:48', NULL, 14, 9, -6.00, 761.00); +INSERT INTO `ai_balance_change_record` VALUES (106, '0', '', '2025-12-04 18:24:36', '', '2025-12-04 10:24:36', NULL, 14, 9, -6.00, 755.00); +INSERT INTO `ai_balance_change_record` VALUES (107, '0', '', '2025-12-04 18:27:05', '', '2025-12-04 10:27:04', NULL, 14, 9, -6.00, 749.00); +INSERT INTO `ai_balance_change_record` VALUES (108, '0', '', '2025-12-05 00:02:14', '', '2025-12-04 16:02:14', NULL, 5, 9, -6.00, 9998501.00); +INSERT INTO `ai_balance_change_record` VALUES (109, '0', '', '2025-12-06 09:49:51', '', '2025-12-06 01:49:50', NULL, 5, 7, -2.00, 9998499.00); +INSERT INTO `ai_balance_change_record` VALUES (110, '0', '', '2025-12-06 10:17:10', '', '2025-12-06 02:17:09', NULL, 5, 7, -2.00, 9998497.00); +INSERT INTO `ai_balance_change_record` VALUES (111, '0', '', '2025-12-06 10:17:37', '', '2025-12-06 02:17:36', NULL, 5, 7, -2.00, 9998495.00); +INSERT INTO `ai_balance_change_record` VALUES (112, '0', '', '2025-12-06 10:18:01', '', '2025-12-06 02:18:00', NULL, 5, 7, -2.00, 9998493.00); +INSERT INTO `ai_balance_change_record` VALUES (113, '0', '', '2025-12-07 10:07:03', '', '2025-12-07 02:07:03', NULL, 14, 8, -2.00, 747.00); +INSERT INTO `ai_balance_change_record` VALUES (114, '0', '', '2025-12-07 10:07:41', '', '2025-12-07 02:07:40', NULL, 14, 8, -2.00, 745.00); +INSERT INTO `ai_balance_change_record` VALUES (115, '0', '', '2025-12-07 10:15:34', '', '2025-12-07 02:15:33', NULL, 14, 5, -2.00, 743.00); +INSERT INTO `ai_balance_change_record` VALUES (116, '0', '', '2025-12-07 10:18:27', '', '2025-12-07 02:18:27', NULL, 14, 5, -2.00, 741.00); +INSERT INTO `ai_balance_change_record` VALUES (117, '0', '', '2025-12-07 11:20:21', '', '2025-12-07 03:20:20', NULL, 14, 5, -2.00, 739.00); +INSERT INTO `ai_balance_change_record` VALUES (118, '0', '', '2025-12-07 11:21:01', '', '2025-12-07 03:21:01', NULL, 14, 5, -2.00, 737.00); +INSERT INTO `ai_balance_change_record` VALUES (119, '0', '', '2025-12-07 14:39:21', '', '2025-12-07 06:39:20', NULL, 14, 5, -2.00, 735.00); +INSERT INTO `ai_balance_change_record` VALUES (120, '0', '', '2025-12-07 14:39:29', '', '2025-12-07 06:39:29', NULL, 14, 5, -2.00, 733.00); +INSERT INTO `ai_balance_change_record` VALUES (121, '0', '', '2025-12-07 14:40:04', '', '2025-12-07 06:40:03', NULL, 14, 5, -2.00, 731.00); +INSERT INTO `ai_balance_change_record` VALUES (122, '0', '', '2025-12-07 14:41:24', '', '2025-12-07 06:41:23', NULL, 14, 5, -2.00, 729.00); +INSERT INTO `ai_balance_change_record` VALUES (123, '0', '', '2025-12-07 14:52:38', '', '2025-12-07 06:52:38', NULL, 15, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (124, '0', '', '2025-12-07 16:10:57', '', '2025-12-07 08:10:56', NULL, 5, 5, -2.00, 9998491.00); +INSERT INTO `ai_balance_change_record` VALUES (125, '0', '', '2025-12-07 16:11:02', '', '2025-12-07 08:11:01', NULL, 5, 5, -2.00, 9998489.00); +INSERT INTO `ai_balance_change_record` VALUES (126, '0', '', '2025-12-07 16:11:06', '', '2025-12-07 08:11:06', NULL, 5, 5, -2.00, 9998487.00); +INSERT INTO `ai_balance_change_record` VALUES (127, '0', '', '2025-12-07 16:11:11', '', '2025-12-07 08:11:11', NULL, 5, 5, -2.00, 9998485.00); +INSERT INTO `ai_balance_change_record` VALUES (128, '0', '', '2025-12-07 16:11:15', '', '2025-12-07 08:11:15', NULL, 5, 5, -2.00, 9998483.00); +INSERT INTO `ai_balance_change_record` VALUES (129, '0', '', '2025-12-07 16:11:17', '', '2025-12-07 08:11:17', NULL, 5, 5, -2.00, 9998481.00); +INSERT INTO `ai_balance_change_record` VALUES (130, '0', '', '2025-12-07 16:11:40', '', '2025-12-07 08:11:39', NULL, 5, 5, -2.00, 9998479.00); +INSERT INTO `ai_balance_change_record` VALUES (131, '0', '', '2025-12-07 16:11:44', '', '2025-12-07 08:11:44', NULL, 5, 5, -2.00, 9998477.00); +INSERT INTO `ai_balance_change_record` VALUES (132, '0', '', '2025-12-07 16:11:47', '', '2025-12-07 08:11:47', NULL, 5, 5, -2.00, 9998475.00); +INSERT INTO `ai_balance_change_record` VALUES (133, '0', '', '2025-12-07 16:42:21', '', '2025-12-07 08:42:20', NULL, 14, 5, -2.00, 727.00); +INSERT INTO `ai_balance_change_record` VALUES (134, '0', '', '2025-12-07 16:42:26', '', '2025-12-07 08:42:26', NULL, 5, 5, -2.00, 9998473.00); +INSERT INTO `ai_balance_change_record` VALUES (135, '0', '', '2025-12-07 16:42:40', '', '2025-12-07 08:42:40', NULL, 5, 5, -2.00, 9998471.00); +INSERT INTO `ai_balance_change_record` VALUES (136, '0', '', '2025-12-07 17:03:45', '', '2025-12-07 09:03:45', NULL, 14, 5, -2.00, 725.00); +INSERT INTO `ai_balance_change_record` VALUES (137, '0', '', '2025-12-07 17:04:59', '', '2025-12-07 09:04:58', NULL, 14, 7, -2.00, 723.00); +INSERT INTO `ai_balance_change_record` VALUES (138, '0', '', '2025-12-07 17:05:49', '', '2025-12-07 09:05:48', NULL, 14, 9, -6.00, 717.00); +INSERT INTO `ai_balance_change_record` VALUES (139, '0', '', '2025-12-07 17:06:56', '', '2025-12-07 09:06:55', NULL, 14, 9, -6.00, 711.00); +INSERT INTO `ai_balance_change_record` VALUES (140, '0', '', '2025-12-07 17:15:46', '', '2025-12-07 09:15:45', NULL, 16, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (143, '0', '', '2025-12-07 17:22:27', '', '2025-12-07 09:22:27', NULL, 16, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (144, '0', '', '2025-12-07 17:23:21', '', '2025-12-07 09:23:20', NULL, 16, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (145, '0', '', '2025-12-07 17:24:38', '', '2025-12-07 09:24:37', NULL, 16, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (146, '0', '', '2025-12-07 17:25:23', '', '2025-12-07 09:25:22', NULL, 16, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (147, '0', '', '2025-12-07 17:27:32', '', '2025-12-07 09:27:31', NULL, 16, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (148, '0', '', '2025-12-07 17:28:57', '', '2025-12-07 09:28:57', NULL, 17, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (149, '0', '', '2025-12-07 17:33:11', '', '2025-12-07 09:33:10', NULL, 17, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (150, '0', '', '2025-12-07 17:35:04', '', '2025-12-07 09:35:04', NULL, 17, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (156, '0', '', '2025-12-07 17:40:17', '', '2025-12-07 09:40:16', NULL, 17, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (157, '0', '', '2025-12-07 17:42:21', '', '2025-12-07 09:42:21', NULL, 17, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (158, '0', '', '2025-12-07 17:47:59', '', '2025-12-07 09:47:59', NULL, 17, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (159, '0', '', '2025-12-07 21:20:40', '', '2025-12-07 13:20:39', NULL, 5, 5, -2.00, 9998469.00); +INSERT INTO `ai_balance_change_record` VALUES (160, '0', '', '2025-12-07 21:40:01', '', '2025-12-07 13:40:00', NULL, 5, 5, -2.00, 9998467.00); +INSERT INTO `ai_balance_change_record` VALUES (161, '0', '', '2025-12-07 21:40:03', '', '2025-12-07 13:40:03', NULL, 5, 5, -2.00, 9998465.00); +INSERT INTO `ai_balance_change_record` VALUES (162, '0', '', '2025-12-07 21:40:05', '', '2025-12-07 13:40:05', NULL, 5, 5, -2.00, 9998463.00); +INSERT INTO `ai_balance_change_record` VALUES (163, '0', '', '2025-12-07 21:42:26', '', '2025-12-07 13:42:26', NULL, 5, 5, -2.00, 9998461.00); +INSERT INTO `ai_balance_change_record` VALUES (164, '0', '', '2025-12-07 21:53:11', '', '2025-12-07 13:53:11', NULL, 5, 5, -2.00, 9998459.00); +INSERT INTO `ai_balance_change_record` VALUES (165, '0', '', '2025-12-07 21:53:15', '', '2025-12-07 13:53:14', NULL, 5, 5, -2.00, 9998457.00); +INSERT INTO `ai_balance_change_record` VALUES (166, '0', '', '2025-12-07 21:53:17', '', '2025-12-07 13:53:16', NULL, 5, 5, -2.00, 9998455.00); +INSERT INTO `ai_balance_change_record` VALUES (167, '0', '', '2025-12-07 21:53:19', '', '2025-12-07 13:53:19', NULL, 5, 5, -2.00, 9998453.00); +INSERT INTO `ai_balance_change_record` VALUES (168, '0', '', '2025-12-07 21:53:21', '', '2025-12-07 13:53:20', NULL, 5, 5, -2.00, 9998451.00); +INSERT INTO `ai_balance_change_record` VALUES (169, '0', '', '2025-12-07 21:53:22', '', '2025-12-07 13:53:22', NULL, 5, 5, -2.00, 9998449.00); +INSERT INTO `ai_balance_change_record` VALUES (170, '0', '', '2025-12-07 21:53:35', '', '2025-12-07 13:53:34', NULL, 5, 5, -2.00, 9998447.00); +INSERT INTO `ai_balance_change_record` VALUES (171, '0', '', '2025-12-07 21:53:37', '', '2025-12-07 13:53:37', NULL, 5, 5, -2.00, 9998445.00); +INSERT INTO `ai_balance_change_record` VALUES (172, '0', '', '2025-12-07 21:53:39', '', '2025-12-07 13:53:38', NULL, 5, 5, -2.00, 9998443.00); +INSERT INTO `ai_balance_change_record` VALUES (173, '0', '', '2025-12-07 21:53:40', '', '2025-12-07 13:53:40', NULL, 5, 5, -2.00, 9998441.00); +INSERT INTO `ai_balance_change_record` VALUES (174, '0', '', '2025-12-07 21:53:42', '', '2025-12-07 13:53:42', NULL, 5, 5, -2.00, 9998439.00); +INSERT INTO `ai_balance_change_record` VALUES (175, '0', '', '2025-12-07 21:55:12', '', '2025-12-07 13:55:12', NULL, 5, 5, -2.00, 9998437.00); +INSERT INTO `ai_balance_change_record` VALUES (176, '0', '', '2025-12-07 21:56:05', '', '2025-12-07 13:56:05', NULL, 5, 5, -2.00, 9998435.00); +INSERT INTO `ai_balance_change_record` VALUES (177, '0', '', '2025-12-07 22:03:53', '', '2025-12-07 14:03:53', NULL, 5, 5, -2.00, 9998433.00); +INSERT INTO `ai_balance_change_record` VALUES (178, '0', '', '2025-12-07 22:03:55', '', '2025-12-07 14:03:54', NULL, 5, 5, -2.00, 9998431.00); +INSERT INTO `ai_balance_change_record` VALUES (179, '0', '', '2025-12-07 22:03:56', '', '2025-12-07 14:03:56', NULL, 5, 5, -2.00, 9998429.00); +INSERT INTO `ai_balance_change_record` VALUES (180, '0', '', '2025-12-07 22:03:58', '', '2025-12-07 14:03:58', NULL, 5, 5, -2.00, 9998427.00); +INSERT INTO `ai_balance_change_record` VALUES (181, '0', '', '2025-12-07 22:12:18', '', '2025-12-07 14:12:18', NULL, 5, 5, -2.00, 9998425.00); +INSERT INTO `ai_balance_change_record` VALUES (182, '0', '', '2025-12-07 22:12:20', '', '2025-12-07 14:12:20', NULL, 5, 5, -2.00, 9998423.00); +INSERT INTO `ai_balance_change_record` VALUES (183, '0', '', '2025-12-07 22:12:22', '', '2025-12-07 14:12:21', NULL, 5, 5, -2.00, 9998421.00); +INSERT INTO `ai_balance_change_record` VALUES (184, '0', '', '2025-12-07 22:12:25', '', '2025-12-07 14:12:25', NULL, 5, 5, -2.00, 9998419.00); +INSERT INTO `ai_balance_change_record` VALUES (185, '0', '', '2025-12-07 22:12:42', '', '2025-12-07 14:12:41', NULL, 5, 5, -2.00, 9998417.00); +INSERT INTO `ai_balance_change_record` VALUES (186, '0', '', '2025-12-07 22:12:43', '', '2025-12-07 14:12:43', NULL, 5, 5, -2.00, 9998415.00); +INSERT INTO `ai_balance_change_record` VALUES (187, '0', '', '2025-12-07 22:13:00', '', '2025-12-07 14:13:00', NULL, 5, 5, -2.00, 9998413.00); +INSERT INTO `ai_balance_change_record` VALUES (188, '0', '', '2025-12-07 22:13:04', '', '2025-12-07 14:13:04', NULL, 5, 5, -2.00, 9998411.00); +INSERT INTO `ai_balance_change_record` VALUES (189, '0', '', '2025-12-07 22:13:10', '', '2025-12-07 14:13:09', NULL, 5, 5, -2.00, 9998409.00); +INSERT INTO `ai_balance_change_record` VALUES (190, '0', '', '2025-12-08 10:50:11', '', '2025-12-08 02:50:11', NULL, 14, 5, -2.00, 709.00); +INSERT INTO `ai_balance_change_record` VALUES (191, '0', '', '2025-12-08 10:54:51', '', '2025-12-08 02:54:51', NULL, 14, 5, -2.00, 707.00); +INSERT INTO `ai_balance_change_record` VALUES (192, '0', '', '2025-12-08 10:55:39', '', '2025-12-08 02:55:39', NULL, 14, 5, -2.00, 705.00); +INSERT INTO `ai_balance_change_record` VALUES (193, '0', '', '2025-12-08 10:55:42', '', '2025-12-08 02:55:42', NULL, 14, 5, -2.00, 703.00); +INSERT INTO `ai_balance_change_record` VALUES (194, '0', '', '2025-12-08 10:57:53', '', '2025-12-08 02:57:53', NULL, 14, 5, -2.00, 701.00); +INSERT INTO `ai_balance_change_record` VALUES (195, '0', '', '2025-12-08 10:57:55', '', '2025-12-08 02:57:55', NULL, 14, 5, -2.00, 699.00); +INSERT INTO `ai_balance_change_record` VALUES (196, '0', '', '2025-12-08 10:58:25', '', '2025-12-08 02:58:25', NULL, 14, 5, -2.00, 697.00); +INSERT INTO `ai_balance_change_record` VALUES (197, '0', '', '2025-12-08 10:59:10', '', '2025-12-08 02:59:10', NULL, 14, 5, -2.00, 695.00); +INSERT INTO `ai_balance_change_record` VALUES (198, '0', '', '2025-12-08 10:59:12', '', '2025-12-08 02:59:11', NULL, 14, 5, -2.00, 693.00); +INSERT INTO `ai_balance_change_record` VALUES (199, '0', '', '2025-12-08 11:08:21', '', '2025-12-08 03:08:21', NULL, 14, 5, -2.00, 691.00); +INSERT INTO `ai_balance_change_record` VALUES (200, '0', '', '2025-12-08 11:09:08', '', '2025-12-08 03:09:08', NULL, 14, 5, -2.00, 689.00); +INSERT INTO `ai_balance_change_record` VALUES (201, '0', '', '2025-12-08 11:10:07', '', '2025-12-08 03:10:06', NULL, 14, 5, -2.00, 687.00); +INSERT INTO `ai_balance_change_record` VALUES (202, '0', '', '2025-12-08 11:15:16', '', '2025-12-08 03:15:15', NULL, 14, 8, -2.00, 685.00); +INSERT INTO `ai_balance_change_record` VALUES (203, '0', '', '2025-12-08 11:16:36', '', '2025-12-08 03:16:36', NULL, 14, 8, -2.00, 683.00); +INSERT INTO `ai_balance_change_record` VALUES (204, '0', '', '2025-12-08 12:53:23', '', '2025-12-08 04:53:23', NULL, 18, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (205, '0', '', '2025-12-08 12:54:59', '', '2025-12-08 04:54:58', NULL, 18, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (206, '0', '', '2025-12-08 12:55:02', '', '2025-12-08 04:55:02', NULL, 18, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (207, '0', '', '2025-12-08 12:55:18', '', '2025-12-08 04:55:18', NULL, 18, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (208, '0', '', '2025-12-08 12:55:48', '', '2025-12-08 04:55:48', NULL, 18, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (209, '0', '', '2025-12-08 14:42:14', '', '2025-12-08 06:42:14', NULL, 14, 5, -2.00, 681.00); +INSERT INTO `ai_balance_change_record` VALUES (210, '0', '', '2025-12-08 14:42:17', '', '2025-12-08 06:42:17', NULL, 14, 5, -2.00, 679.00); +INSERT INTO `ai_balance_change_record` VALUES (211, '0', '', '2025-12-08 15:03:04', '', '2025-12-08 07:03:04', NULL, 14, 5, -2.00, 677.00); +INSERT INTO `ai_balance_change_record` VALUES (212, '0', '', '2025-12-08 15:03:06', '', '2025-12-08 07:03:05', NULL, 14, 5, -2.00, 675.00); +INSERT INTO `ai_balance_change_record` VALUES (213, '0', '', '2025-12-08 15:04:44', '', '2025-12-08 07:04:43', NULL, 14, 6, -2.00, 673.00); +INSERT INTO `ai_balance_change_record` VALUES (214, '0', '', '2025-12-08 15:05:13', '', '2025-12-08 07:05:13', NULL, 14, 6, -2.00, 671.00); +INSERT INTO `ai_balance_change_record` VALUES (215, '0', '', '2025-12-08 15:37:43', '', '2025-12-08 07:37:43', NULL, 14, 6, -2.00, 669.00); +INSERT INTO `ai_balance_change_record` VALUES (216, '0', '', '2025-12-08 15:38:22', '', '2025-12-08 07:38:21', NULL, 14, 6, -2.00, 667.00); +INSERT INTO `ai_balance_change_record` VALUES (217, '0', '', '2025-12-08 15:48:00', '', '2025-12-08 07:47:59', NULL, 19, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (218, '0', '', '2025-12-08 15:48:53', '', '2025-12-08 07:48:52', NULL, 19, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (219, '0', '', '2025-12-08 15:50:04', '', '2025-12-08 07:50:03', NULL, 20, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (220, '0', '', '2025-12-08 15:50:32', '', '2025-12-08 07:50:32', NULL, 20, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (221, '0', '', '2025-12-08 15:50:35', '', '2025-12-08 07:50:34', NULL, 20, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (222, '0', '', '2025-12-08 15:50:50', '', '2025-12-08 07:50:50', NULL, 20, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (223, '0', '', '2025-12-08 15:56:06', '', '2025-12-08 07:56:05', NULL, 20, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (224, '0', '', '2025-12-08 15:58:58', '', '2025-12-08 07:58:58', NULL, 20, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (225, '0', '', '2025-12-08 16:02:52', '', '2025-12-08 08:02:52', NULL, 14, 8, -2.00, 665.00); +INSERT INTO `ai_balance_change_record` VALUES (226, '0', '', '2025-12-08 16:03:37', '', '2025-12-08 08:03:37', NULL, 14, 8, -2.00, 663.00); +INSERT INTO `ai_balance_change_record` VALUES (227, '0', '', '2025-12-08 16:04:13', '', '2025-12-08 08:04:12', NULL, 14, 8, -2.00, 661.00); +INSERT INTO `ai_balance_change_record` VALUES (228, '0', '', '2025-12-08 16:29:13', '', '2025-12-08 08:29:12', NULL, 14, 8, -2.00, 659.00); +INSERT INTO `ai_balance_change_record` VALUES (229, '0', '', '2025-12-08 16:29:40', '', '2025-12-08 08:29:39', NULL, 14, 8, -2.00, 657.00); +INSERT INTO `ai_balance_change_record` VALUES (230, '0', '', '2025-12-08 16:30:00', '', '2025-12-08 08:30:00', NULL, 14, 8, -2.00, 655.00); +INSERT INTO `ai_balance_change_record` VALUES (231, '0', '', '2025-12-08 16:30:28', '', '2025-12-08 08:30:27', NULL, 14, 8, -2.00, 653.00); +INSERT INTO `ai_balance_change_record` VALUES (232, '0', '', '2025-12-08 16:30:56', '', '2025-12-08 08:30:55', NULL, 14, 8, -2.00, 651.00); +INSERT INTO `ai_balance_change_record` VALUES (233, '0', '', '2025-12-08 16:40:48', '', '2025-12-08 08:40:48', NULL, 5, 9, -6.00, 9998403.00); +INSERT INTO `ai_balance_change_record` VALUES (234, '0', '', '2025-12-08 16:53:48', '', '2025-12-08 08:53:48', NULL, 5, 9, -6.00, 9998397.00); +INSERT INTO `ai_balance_change_record` VALUES (235, '0', '', '2025-12-08 16:57:28', '', '2025-12-08 08:57:28', NULL, 5, 5, -2.00, 9998395.00); +INSERT INTO `ai_balance_change_record` VALUES (236, '0', '', '2025-12-08 16:59:03', '', '2025-12-08 08:59:02', NULL, 5, 5, -2.00, 9998393.00); +INSERT INTO `ai_balance_change_record` VALUES (237, '0', '', '2025-12-08 17:00:20', '', '2025-12-08 09:00:19', NULL, 5, 9, -6.00, 9998387.00); +INSERT INTO `ai_balance_change_record` VALUES (238, '0', '', '2025-12-08 17:02:21', '', '2025-12-08 09:02:20', NULL, 18, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (239, '0', '', '2025-12-08 17:02:22', '', '2025-12-08 09:02:22', NULL, 18, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (240, '0', '', '2025-12-08 17:02:54', '', '2025-12-08 09:02:53', NULL, 5, 9, -6.00, 9998381.00); +INSERT INTO `ai_balance_change_record` VALUES (241, '0', '', '2025-12-08 17:10:18', '', '2025-12-08 09:10:17', NULL, 5, 9, -6.00, 9998375.00); +INSERT INTO `ai_balance_change_record` VALUES (242, '0', '', '2025-12-08 17:20:32', '', '2025-12-08 09:20:31', NULL, 21, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (243, '0', '', '2025-12-08 17:33:07', '', '2025-12-08 09:33:07', NULL, 5, 11, -9898392.00, 99983.00); +INSERT INTO `ai_balance_change_record` VALUES (244, '0', '', '2025-12-08 17:40:26', '', '2025-12-08 09:40:25', NULL, 16, 11, 100000.00, 100000.00); +INSERT INTO `ai_balance_change_record` VALUES (245, '0', '', '2025-12-08 17:40:34', '', '2025-12-08 09:40:34', NULL, 16, 5, -2.00, 99998.00); +INSERT INTO `ai_balance_change_record` VALUES (246, '0', '', '2025-12-08 17:41:37', '', '2025-12-08 09:41:36', NULL, 16, 5, -2.00, 99996.00); +INSERT INTO `ai_balance_change_record` VALUES (247, '0', '', '2025-12-08 17:42:10', '', '2025-12-08 09:42:10', NULL, 16, 5, -2.00, 99994.00); +INSERT INTO `ai_balance_change_record` VALUES (248, '0', '', '2025-12-08 17:42:12', '', '2025-12-08 09:42:12', NULL, 16, 5, -2.00, 99992.00); +INSERT INTO `ai_balance_change_record` VALUES (249, '0', '', '2025-12-08 17:42:13', '', '2025-12-08 09:42:13', NULL, 16, 5, -2.00, 99990.00); +INSERT INTO `ai_balance_change_record` VALUES (250, '0', '', '2025-12-08 17:42:14', '', '2025-12-08 09:42:14', NULL, 16, 5, -2.00, 99988.00); +INSERT INTO `ai_balance_change_record` VALUES (251, '0', '', '2025-12-08 17:42:15', '', '2025-12-08 09:42:14', NULL, 16, 5, -2.00, 99986.00); +INSERT INTO `ai_balance_change_record` VALUES (252, '0', '', '2025-12-08 17:42:16', '', '2025-12-08 09:42:15', NULL, 16, 5, -2.00, 99984.00); +INSERT INTO `ai_balance_change_record` VALUES (253, '0', '', '2025-12-08 17:42:17', '', '2025-12-08 09:42:16', NULL, 16, 5, -2.00, 99982.00); +INSERT INTO `ai_balance_change_record` VALUES (254, '0', '', '2025-12-08 17:42:24', '', '2025-12-08 09:42:23', NULL, 16, 5, -2.00, 99980.00); +INSERT INTO `ai_balance_change_record` VALUES (255, '0', '', '2025-12-08 17:42:37', '', '2025-12-08 09:42:36', NULL, 16, 5, -2.00, 99978.00); +INSERT INTO `ai_balance_change_record` VALUES (256, '0', '', '2025-12-08 17:43:07', '', '2025-12-08 09:43:06', NULL, 16, 5, -2.00, 99976.00); +INSERT INTO `ai_balance_change_record` VALUES (257, '0', '', '2025-12-08 17:44:34', '', '2025-12-08 09:44:33', NULL, 16, 5, -2.00, 99974.00); +INSERT INTO `ai_balance_change_record` VALUES (258, '0', '', '2025-12-08 17:49:05', '', '2025-12-08 09:49:04', NULL, 5, 9, -6.00, 99977.00); +INSERT INTO `ai_balance_change_record` VALUES (259, '0', '', '2025-12-08 17:50:33', '', '2025-12-08 09:50:33', NULL, 5, 9, -6.00, 99971.00); +INSERT INTO `ai_balance_change_record` VALUES (260, '0', '', '2025-12-08 18:25:57', '', '2025-12-08 10:25:56', NULL, 5, 9, -6.00, 99965.00); +INSERT INTO `ai_balance_change_record` VALUES (261, '0', '', '2025-12-08 18:46:01', '', '2025-12-08 10:46:01', NULL, 14, 5, -2.00, 649.00); +INSERT INTO `ai_balance_change_record` VALUES (262, '0', '', '2025-12-08 18:46:03', '', '2025-12-08 10:46:03', NULL, 14, 5, -2.00, 647.00); +INSERT INTO `ai_balance_change_record` VALUES (263, '0', '', '2025-12-08 18:46:04', '', '2025-12-08 10:46:04', NULL, 14, 5, -2.00, 645.00); +INSERT INTO `ai_balance_change_record` VALUES (264, '0', '', '2025-12-08 18:46:05', '', '2025-12-08 10:46:05', NULL, 14, 5, -2.00, 643.00); +INSERT INTO `ai_balance_change_record` VALUES (265, '0', '', '2025-12-08 18:46:06', '', '2025-12-08 10:46:06', NULL, 14, 5, -2.00, 641.00); +INSERT INTO `ai_balance_change_record` VALUES (266, '0', '', '2025-12-08 18:46:08', '', '2025-12-08 10:46:07', NULL, 14, 5, -2.00, 639.00); +INSERT INTO `ai_balance_change_record` VALUES (267, '0', '', '2025-12-08 18:46:08', '', '2025-12-08 10:46:08', NULL, 14, 5, -2.00, 637.00); +INSERT INTO `ai_balance_change_record` VALUES (268, '0', '', '2025-12-08 18:46:09', '', '2025-12-08 10:46:09', NULL, 14, 5, -2.00, 635.00); +INSERT INTO `ai_balance_change_record` VALUES (269, '0', '', '2025-12-08 18:46:10', '', '2025-12-08 10:46:09', NULL, 14, 5, -2.00, 633.00); +INSERT INTO `ai_balance_change_record` VALUES (270, '0', '', '2025-12-08 18:46:11', '', '2025-12-08 10:46:10', NULL, 14, 5, -2.00, 631.00); +INSERT INTO `ai_balance_change_record` VALUES (271, '0', '', '2025-12-08 18:46:11', '', '2025-12-08 10:46:11', NULL, 14, 5, -2.00, 629.00); +INSERT INTO `ai_balance_change_record` VALUES (272, '0', '', '2025-12-08 18:46:12', '', '2025-12-08 10:46:11', NULL, 14, 5, -2.00, 627.00); +INSERT INTO `ai_balance_change_record` VALUES (273, '0', '', '2025-12-08 18:46:12', '', '2025-12-08 10:46:12', NULL, 14, 5, -2.00, 625.00); +INSERT INTO `ai_balance_change_record` VALUES (274, '0', '', '2025-12-08 18:46:18', '', '2025-12-08 10:46:18', NULL, 14, 5, -2.00, 623.00); +INSERT INTO `ai_balance_change_record` VALUES (275, '0', '', '2025-12-08 18:46:20', '', '2025-12-08 10:46:20', NULL, 14, 5, -2.00, 621.00); +INSERT INTO `ai_balance_change_record` VALUES (276, '0', '', '2025-12-08 18:46:21', '', '2025-12-08 10:46:21', NULL, 14, 5, -2.00, 619.00); +INSERT INTO `ai_balance_change_record` VALUES (277, '0', '', '2025-12-08 19:45:16', '', '2025-12-08 11:45:15', NULL, 22, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (278, '0', '', '2025-12-09 03:13:12', '', '2025-12-08 19:13:12', NULL, 22, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (279, '0', '', '2025-12-09 03:13:16', '', '2025-12-08 19:13:15', NULL, 22, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (280, '0', '', '2025-12-09 03:13:34', '', '2025-12-08 19:13:33', NULL, 22, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (281, '0', '', '2025-12-09 03:13:49', '', '2025-12-08 19:13:49', NULL, 22, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (282, '0', '', '2025-12-09 03:17:09', '', '2025-12-08 19:17:09', NULL, 22, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (283, '0', '', '2025-12-09 10:07:28', '', '2025-12-09 02:07:28', NULL, 14, 6, -2.00, 617.00); +INSERT INTO `ai_balance_change_record` VALUES (284, '0', '', '2025-12-09 10:33:05', '', '2025-12-09 02:33:05', NULL, 23, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (285, '0', '', '2025-12-09 11:04:31', '', '2025-12-09 03:04:30', NULL, 23, 9, -6.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (286, '0', '', '2025-12-09 11:07:15', '', '2025-12-09 03:07:14', NULL, 14, 9, -6.00, 611.00); +INSERT INTO `ai_balance_change_record` VALUES (287, '0', '', '2025-12-09 11:08:10', '', '2025-12-09 03:08:10', NULL, 14, 9, -6.00, 605.00); +INSERT INTO `ai_balance_change_record` VALUES (288, '0', '', '2025-12-09 11:09:20', '', '2025-12-09 03:09:20', NULL, 14, 9, -6.00, 599.00); +INSERT INTO `ai_balance_change_record` VALUES (289, '0', '', '2025-12-09 13:28:57', '', '2025-12-09 05:28:57', NULL, 16, 5, -2.00, 99972.00); +INSERT INTO `ai_balance_change_record` VALUES (290, '0', '', '2025-12-09 13:42:33', '', '2025-12-09 05:42:32', NULL, 24, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (291, '0', '', '2025-12-09 13:42:51', '', '2025-12-09 05:42:50', NULL, 24, 6, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (292, '0', '', '2025-12-09 13:46:14', '', '2025-12-09 05:46:13', NULL, 25, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (293, '0', '', '2025-12-09 13:56:44', '', '2025-12-09 05:56:44', NULL, 25, 6, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (294, '0', '', '2025-12-09 14:13:17', '', '2025-12-09 06:13:17', NULL, 26, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (295, '0', '', '2025-12-09 14:57:14', '', '2025-12-09 06:57:14', NULL, 27, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (296, '0', '', '2025-12-09 15:45:54', '', '2025-12-09 07:45:54', NULL, 28, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (297, '0', '', '2025-12-09 15:49:34', '', '2025-12-09 07:49:33', NULL, 16, 8, -2.00, 99970.00); +INSERT INTO `ai_balance_change_record` VALUES (298, '0', '', '2025-12-09 16:05:46', '', '2025-12-09 08:05:46', NULL, 16, 8, -2.00, 99968.00); +INSERT INTO `ai_balance_change_record` VALUES (299, '0', '', '2025-12-09 16:26:21', '', '2025-12-09 08:26:20', NULL, 16, 8, -2.00, 99966.00); +INSERT INTO `ai_balance_change_record` VALUES (300, '0', '', '2025-12-09 16:27:16', '', '2025-12-09 08:27:15', NULL, 16, 8, -2.00, 99964.00); +INSERT INTO `ai_balance_change_record` VALUES (301, '0', '', '2025-12-09 16:28:28', '', '2025-12-09 08:28:27', NULL, 16, 8, -2.00, 99962.00); +INSERT INTO `ai_balance_change_record` VALUES (302, '0', '', '2025-12-09 16:29:08', '', '2025-12-09 08:29:08', NULL, 16, 8, -2.00, 99960.00); +INSERT INTO `ai_balance_change_record` VALUES (303, '0', '', '2025-12-09 16:31:23', '', '2025-12-09 08:31:22', NULL, 16, 8, -2.00, 99958.00); +INSERT INTO `ai_balance_change_record` VALUES (304, '0', '', '2025-12-09 16:31:40', '', '2025-12-09 08:31:40', NULL, 16, 8, -2.00, 99956.00); +INSERT INTO `ai_balance_change_record` VALUES (305, '0', '', '2025-12-09 16:34:14', '', '2025-12-09 08:34:14', NULL, 16, 8, -2.00, 99954.00); +INSERT INTO `ai_balance_change_record` VALUES (306, '0', '', '2025-12-09 16:36:53', '', '2025-12-09 08:36:52', NULL, 16, 8, -2.00, 99952.00); +INSERT INTO `ai_balance_change_record` VALUES (307, '0', '', '2025-12-09 16:37:41', '', '2025-12-09 08:37:40', NULL, 16, 8, -2.00, 99950.00); +INSERT INTO `ai_balance_change_record` VALUES (308, '0', '', '2025-12-09 16:38:10', '', '2025-12-09 08:38:10', NULL, 16, 8, -2.00, 99948.00); +INSERT INTO `ai_balance_change_record` VALUES (309, '0', '', '2025-12-09 16:40:11', '', '2025-12-09 08:40:11', NULL, 16, 8, -2.00, 99946.00); +INSERT INTO `ai_balance_change_record` VALUES (310, '0', '', '2025-12-09 16:40:35', '', '2025-12-09 08:40:34', NULL, 16, 8, -2.00, 99944.00); +INSERT INTO `ai_balance_change_record` VALUES (311, '0', '', '2025-12-09 16:40:54', '', '2025-12-09 08:40:54', NULL, 16, 8, -2.00, 99942.00); +INSERT INTO `ai_balance_change_record` VALUES (312, '0', '', '2025-12-09 16:41:14', '', '2025-12-09 08:41:13', NULL, 16, 8, -2.00, 99940.00); +INSERT INTO `ai_balance_change_record` VALUES (313, '0', '', '2025-12-09 16:42:06', '', '2025-12-09 08:42:06', NULL, 16, 8, -2.00, 99938.00); +INSERT INTO `ai_balance_change_record` VALUES (314, '0', '', '2025-12-09 17:04:33', '', '2025-12-09 09:04:33', NULL, 16, 5, -2.00, 99936.00); +INSERT INTO `ai_balance_change_record` VALUES (315, '0', '', '2025-12-09 17:04:38', '', '2025-12-09 09:04:38', NULL, 16, 5, -2.00, 99934.00); +INSERT INTO `ai_balance_change_record` VALUES (316, '0', '', '2025-12-09 17:04:40', '', '2025-12-09 09:04:39', NULL, 16, 5, -2.00, 99932.00); +INSERT INTO `ai_balance_change_record` VALUES (317, '0', '', '2025-12-09 17:04:45', '', '2025-12-09 09:04:44', NULL, 16, 5, -2.00, 99930.00); +INSERT INTO `ai_balance_change_record` VALUES (318, '0', '', '2025-12-09 17:04:47', '', '2025-12-09 09:04:47', NULL, 16, 5, -2.00, 99928.00); +INSERT INTO `ai_balance_change_record` VALUES (319, '0', '', '2025-12-09 17:04:49', '', '2025-12-09 09:04:49', NULL, 16, 5, -2.00, 99926.00); +INSERT INTO `ai_balance_change_record` VALUES (320, '0', '', '2025-12-09 17:04:51', '', '2025-12-09 09:04:51', NULL, 16, 5, -2.00, 99924.00); +INSERT INTO `ai_balance_change_record` VALUES (321, '0', '', '2025-12-09 17:04:52', '', '2025-12-09 09:04:52', NULL, 16, 5, -2.00, 99922.00); +INSERT INTO `ai_balance_change_record` VALUES (322, '0', '', '2025-12-09 17:04:53', '', '2025-12-09 09:04:53', NULL, 16, 5, -2.00, 99920.00); +INSERT INTO `ai_balance_change_record` VALUES (323, '0', '', '2025-12-09 17:04:55', '', '2025-12-09 09:04:55', NULL, 16, 5, -2.00, 99918.00); +INSERT INTO `ai_balance_change_record` VALUES (324, '0', '', '2025-12-09 17:04:56', '', '2025-12-09 09:04:56', NULL, 16, 5, -2.00, 99916.00); +INSERT INTO `ai_balance_change_record` VALUES (325, '0', '', '2025-12-09 17:05:03', '', '2025-12-09 09:05:03', NULL, 16, 5, -2.00, 99914.00); +INSERT INTO `ai_balance_change_record` VALUES (326, '0', '', '2025-12-09 19:20:42', '', '2025-12-09 11:20:41', NULL, 16, 8, -2.00, 99912.00); +INSERT INTO `ai_balance_change_record` VALUES (327, '0', '', '2025-12-09 19:21:08', '', '2025-12-09 11:21:07', NULL, 16, 8, -2.00, 99910.00); +INSERT INTO `ai_balance_change_record` VALUES (328, '0', '', '2025-12-09 19:21:45', '', '2025-12-09 11:21:45', NULL, 16, 8, -2.00, 99908.00); +INSERT INTO `ai_balance_change_record` VALUES (329, '0', '', '2025-12-09 19:22:05', '', '2025-12-09 11:22:05', NULL, 16, 8, -2.00, 99906.00); +INSERT INTO `ai_balance_change_record` VALUES (330, '0', '', '2025-12-09 19:22:29', '', '2025-12-09 11:22:28', NULL, 16, 8, -2.00, 99904.00); +INSERT INTO `ai_balance_change_record` VALUES (331, '0', '', '2025-12-09 19:22:55', '', '2025-12-09 11:22:54', NULL, 16, 8, -2.00, 99902.00); +INSERT INTO `ai_balance_change_record` VALUES (332, '0', '', '2025-12-09 19:23:11', '', '2025-12-09 11:23:11', NULL, 16, 8, -2.00, 99900.00); +INSERT INTO `ai_balance_change_record` VALUES (333, '0', '', '2025-12-09 19:31:41', '', '2025-12-09 11:31:41', NULL, 16, 8, -2.00, 99898.00); +INSERT INTO `ai_balance_change_record` VALUES (334, '0', '', '2025-12-09 19:32:44', '', '2025-12-09 11:32:44', NULL, 16, 8, -2.00, 99896.00); +INSERT INTO `ai_balance_change_record` VALUES (335, '0', '', '2025-12-09 19:33:00', '', '2025-12-09 11:33:00', NULL, 16, 8, -2.00, 99894.00); +INSERT INTO `ai_balance_change_record` VALUES (336, '0', '', '2025-12-09 19:33:36', '', '2025-12-09 11:33:35', NULL, 16, 8, -2.00, 99892.00); +INSERT INTO `ai_balance_change_record` VALUES (337, '0', '', '2025-12-09 19:34:04', '', '2025-12-09 11:34:04', NULL, 16, 8, -2.00, 99890.00); +INSERT INTO `ai_balance_change_record` VALUES (338, '0', '', '2025-12-09 19:34:37', '', '2025-12-09 11:34:37', NULL, 16, 8, -2.00, 99888.00); +INSERT INTO `ai_balance_change_record` VALUES (339, '0', '', '2025-12-09 19:35:06', '', '2025-12-09 11:35:06', NULL, 16, 8, -2.00, 99886.00); +INSERT INTO `ai_balance_change_record` VALUES (340, '0', '', '2025-12-09 19:35:38', '', '2025-12-09 11:35:38', NULL, 16, 8, -2.00, 99884.00); +INSERT INTO `ai_balance_change_record` VALUES (341, '0', '', '2025-12-09 19:36:06', '', '2025-12-09 11:36:06', NULL, 16, 8, -2.00, 99882.00); +INSERT INTO `ai_balance_change_record` VALUES (342, '0', '', '2025-12-09 19:53:17', '', '2025-12-09 11:53:16', NULL, 16, 8, -2.00, 99880.00); +INSERT INTO `ai_balance_change_record` VALUES (343, '0', '', '2025-12-09 19:56:46', '', '2025-12-09 11:56:46', NULL, 16, 8, -2.00, 99878.00); +INSERT INTO `ai_balance_change_record` VALUES (344, '0', '', '2025-12-09 19:57:36', '', '2025-12-09 11:57:35', NULL, 16, 8, -2.00, 99876.00); +INSERT INTO `ai_balance_change_record` VALUES (345, '0', '', '2025-12-09 19:58:55', '', '2025-12-09 11:58:54', NULL, 16, 8, -2.00, 99874.00); +INSERT INTO `ai_balance_change_record` VALUES (346, '0', '', '2025-12-09 19:59:16', '', '2025-12-09 11:59:15', NULL, 16, 8, -2.00, 99872.00); +INSERT INTO `ai_balance_change_record` VALUES (347, '0', '', '2025-12-09 19:59:45', '', '2025-12-09 11:59:45', NULL, 16, 8, -2.00, 99870.00); +INSERT INTO `ai_balance_change_record` VALUES (348, '0', '', '2025-12-09 20:00:08', '', '2025-12-09 12:00:07', NULL, 16, 8, -2.00, 99868.00); +INSERT INTO `ai_balance_change_record` VALUES (349, '0', '', '2025-12-09 20:00:37', '', '2025-12-09 12:00:37', NULL, 16, 8, -2.00, 99866.00); +INSERT INTO `ai_balance_change_record` VALUES (350, '0', '', '2025-12-09 20:01:39', '', '2025-12-09 12:01:39', NULL, 16, 8, -2.00, 99864.00); +INSERT INTO `ai_balance_change_record` VALUES (351, '0', '', '2025-12-09 20:02:01', '', '2025-12-09 12:02:00', NULL, 16, 8, -2.00, 99862.00); +INSERT INTO `ai_balance_change_record` VALUES (352, '0', '', '2025-12-09 20:02:54', '', '2025-12-09 12:02:53', NULL, 16, 8, -2.00, 99860.00); +INSERT INTO `ai_balance_change_record` VALUES (353, '0', '', '2025-12-09 20:03:44', '', '2025-12-09 12:03:43', NULL, 16, 8, -2.00, 99858.00); +INSERT INTO `ai_balance_change_record` VALUES (354, '0', '', '2025-12-09 20:38:38', '', '2025-12-09 12:38:37', NULL, 16, 8, -2.00, 99856.00); +INSERT INTO `ai_balance_change_record` VALUES (355, '0', '', '2025-12-09 20:38:59', '', '2025-12-09 12:38:59', NULL, 16, 8, -2.00, 99854.00); +INSERT INTO `ai_balance_change_record` VALUES (356, '0', '', '2025-12-09 20:39:12', '', '2025-12-09 12:39:12', NULL, 16, 8, -2.00, 99852.00); +INSERT INTO `ai_balance_change_record` VALUES (357, '0', '', '2025-12-09 20:39:39', '', '2025-12-09 12:39:39', NULL, 16, 8, -2.00, 99850.00); +INSERT INTO `ai_balance_change_record` VALUES (358, '0', '', '2025-12-10 11:23:50', '', '2025-12-10 03:23:49', NULL, 14, 8, -2.00, 597.00); +INSERT INTO `ai_balance_change_record` VALUES (359, '0', '', '2025-12-10 11:24:42', '', '2025-12-10 03:24:42', NULL, 14, 8, -2.00, 595.00); +INSERT INTO `ai_balance_change_record` VALUES (360, '0', '', '2025-12-10 11:25:44', '', '2025-12-10 03:25:44', NULL, 14, 9, -6.00, 589.00); +INSERT INTO `ai_balance_change_record` VALUES (361, '0', '', '2025-12-10 15:54:50', '', '2025-12-10 07:54:50', NULL, 14, 8, -2.00, 587.00); +INSERT INTO `ai_balance_change_record` VALUES (362, '0', '', '2025-12-10 15:56:09', '', '2025-12-10 07:56:09', NULL, 14, 8, -2.00, 585.00); +INSERT INTO `ai_balance_change_record` VALUES (363, '0', '', '2025-12-10 15:57:57', '', '2025-12-10 07:57:57', NULL, 14, 8, -2.00, 583.00); +INSERT INTO `ai_balance_change_record` VALUES (364, '0', '', '2025-12-10 15:58:56', '', '2025-12-10 07:58:55', NULL, 14, 9, -6.00, 577.00); +INSERT INTO `ai_balance_change_record` VALUES (365, '0', '', '2025-12-10 16:02:24', '', '2025-12-10 08:02:24', NULL, 14, 9, -6.00, 571.00); +INSERT INTO `ai_balance_change_record` VALUES (366, '0', '', '2025-12-10 16:03:13', '', '2025-12-10 08:03:13', NULL, 14, 9, -6.00, 565.00); +INSERT INTO `ai_balance_change_record` VALUES (367, '0', '', '2025-12-10 16:08:51', '', '2025-12-10 08:08:50', NULL, 27, 11, 9990.00, 10000.00); +INSERT INTO `ai_balance_change_record` VALUES (368, '0', '', '2025-12-10 16:43:54', '', '2025-12-10 08:43:53', NULL, 14, 8, -2.00, 563.00); +INSERT INTO `ai_balance_change_record` VALUES (369, '0', '', '2025-12-10 16:45:10', '', '2025-12-10 08:45:10', NULL, 14, 5, -2.00, 561.00); +INSERT INTO `ai_balance_change_record` VALUES (370, '0', '', '2025-12-10 16:45:12', '', '2025-12-10 08:45:11', NULL, 14, 5, -2.00, 559.00); +INSERT INTO `ai_balance_change_record` VALUES (371, '0', '', '2025-12-10 16:45:14', '', '2025-12-10 08:45:14', NULL, 14, 5, -2.00, 557.00); +INSERT INTO `ai_balance_change_record` VALUES (372, '0', '', '2025-12-10 16:45:16', '', '2025-12-10 08:45:16', NULL, 14, 5, -2.00, 555.00); +INSERT INTO `ai_balance_change_record` VALUES (373, '0', '', '2025-12-10 16:45:19', '', '2025-12-10 08:45:18', NULL, 14, 5, -2.00, 553.00); +INSERT INTO `ai_balance_change_record` VALUES (374, '0', '', '2025-12-10 16:45:21', '', '2025-12-10 08:45:20', NULL, 14, 5, -2.00, 551.00); +INSERT INTO `ai_balance_change_record` VALUES (375, '0', '', '2025-12-10 16:45:22', '', '2025-12-10 08:45:21', NULL, 14, 5, -2.00, 549.00); +INSERT INTO `ai_balance_change_record` VALUES (376, '0', '', '2025-12-10 16:45:23', '', '2025-12-10 08:45:22', NULL, 14, 5, -2.00, 547.00); +INSERT INTO `ai_balance_change_record` VALUES (377, '0', '', '2025-12-10 16:45:28', '', '2025-12-10 08:45:28', NULL, 14, 5, -2.00, 545.00); +INSERT INTO `ai_balance_change_record` VALUES (378, '0', '', '2025-12-10 16:45:39', '', '2025-12-10 08:45:39', NULL, 14, 5, -2.00, 543.00); +INSERT INTO `ai_balance_change_record` VALUES (379, '0', '', '2025-12-10 16:45:40', '', '2025-12-10 08:45:40', NULL, 14, 5, -2.00, 541.00); +INSERT INTO `ai_balance_change_record` VALUES (380, '0', '', '2025-12-10 16:45:45', '', '2025-12-10 08:45:45', NULL, 14, 5, -2.00, 539.00); +INSERT INTO `ai_balance_change_record` VALUES (381, '0', '', '2025-12-10 16:45:46', '', '2025-12-10 08:45:45', NULL, 14, 5, -2.00, 537.00); +INSERT INTO `ai_balance_change_record` VALUES (382, '0', '', '2025-12-10 16:50:08', '', '2025-12-10 08:50:07', NULL, 14, 5, -2.00, 535.00); +INSERT INTO `ai_balance_change_record` VALUES (383, '0', '', '2025-12-10 16:50:39', '', '2025-12-10 08:50:38', NULL, 14, 8, -2.00, 533.00); +INSERT INTO `ai_balance_change_record` VALUES (384, '0', '', '2025-12-10 16:51:57', '', '2025-12-10 08:51:56', NULL, 14, 9, -6.00, 527.00); +INSERT INTO `ai_balance_change_record` VALUES (385, '0', '', '2025-12-10 16:55:34', '', '2025-12-10 08:55:34', NULL, 14, 8, -2.00, 525.00); +INSERT INTO `ai_balance_change_record` VALUES (386, '0', '', '2025-12-10 16:58:37', '', '2025-12-10 08:58:36', NULL, 14, 8, -2.00, 523.00); +INSERT INTO `ai_balance_change_record` VALUES (387, '0', '', '2025-12-10 16:59:08', '', '2025-12-10 08:59:08', NULL, 14, 8, -2.00, 521.00); +INSERT INTO `ai_balance_change_record` VALUES (388, '0', '', '2025-12-10 16:59:34', '', '2025-12-10 08:59:34', NULL, 14, 8, -2.00, 519.00); +INSERT INTO `ai_balance_change_record` VALUES (389, '0', '', '2025-12-10 17:00:46', '', '2025-12-10 09:00:46', NULL, 14, 9, -6.00, 513.00); +INSERT INTO `ai_balance_change_record` VALUES (390, '0', '', '2025-12-10 17:03:16', '', '2025-12-10 09:03:16', NULL, 14, 5, -2.00, 511.00); +INSERT INTO `ai_balance_change_record` VALUES (391, '0', '', '2025-12-10 17:03:29', '', '2025-12-10 09:03:28', NULL, 14, 5, -2.00, 509.00); +INSERT INTO `ai_balance_change_record` VALUES (392, '0', '', '2025-12-10 17:03:31', '', '2025-12-10 09:03:30', NULL, 14, 5, -2.00, 507.00); +INSERT INTO `ai_balance_change_record` VALUES (393, '0', '', '2025-12-10 17:04:02', '', '2025-12-10 09:04:02', NULL, 14, 8, -2.00, 505.00); +INSERT INTO `ai_balance_change_record` VALUES (394, '0', '', '2025-12-10 17:04:25', '', '2025-12-10 09:04:25', NULL, 14, 8, -2.00, 503.00); +INSERT INTO `ai_balance_change_record` VALUES (395, '0', '', '2025-12-10 17:05:16', '', '2025-12-10 09:05:16', NULL, 14, 8, -2.00, 501.00); +INSERT INTO `ai_balance_change_record` VALUES (396, '0', '', '2025-12-10 17:06:01', '', '2025-12-10 09:06:01', NULL, 14, 9, -6.00, 495.00); +INSERT INTO `ai_balance_change_record` VALUES (397, '0', '', '2025-12-10 17:07:03', '', '2025-12-10 09:07:03', NULL, 14, 9, -6.00, 489.00); +INSERT INTO `ai_balance_change_record` VALUES (398, '0', '', '2025-12-10 19:11:03', '', '2025-12-10 11:11:03', NULL, 16, 8, -2.00, 99848.00); +INSERT INTO `ai_balance_change_record` VALUES (399, '0', '', '2025-12-10 19:11:36', '', '2025-12-10 11:11:35', NULL, 16, 8, -2.00, 99846.00); +INSERT INTO `ai_balance_change_record` VALUES (400, '0', '', '2025-12-10 19:11:52', '', '2025-12-10 11:11:52', NULL, 16, 8, -2.00, 99844.00); +INSERT INTO `ai_balance_change_record` VALUES (401, '0', '', '2025-12-10 19:12:14', '', '2025-12-10 11:12:13', NULL, 16, 8, -2.00, 99842.00); +INSERT INTO `ai_balance_change_record` VALUES (402, '0', '', '2025-12-10 19:24:41', '', '2025-12-10 11:24:40', NULL, 16, 8, -2.00, 99840.00); +INSERT INTO `ai_balance_change_record` VALUES (403, '0', '', '2025-12-10 19:25:36', '', '2025-12-10 11:25:35', NULL, 16, 8, -2.00, 99838.00); +INSERT INTO `ai_balance_change_record` VALUES (404, '0', '', '2025-12-10 19:25:52', '', '2025-12-10 11:25:52', NULL, 16, 8, -2.00, 99836.00); +INSERT INTO `ai_balance_change_record` VALUES (405, '0', '', '2025-12-10 19:26:09', '', '2025-12-10 11:26:08', NULL, 16, 8, -2.00, 99834.00); +INSERT INTO `ai_balance_change_record` VALUES (406, '0', '', '2025-12-10 19:26:37', '', '2025-12-10 11:26:36', NULL, 16, 8, -2.00, 99832.00); +INSERT INTO `ai_balance_change_record` VALUES (407, '0', '', '2025-12-10 19:27:06', '', '2025-12-10 11:27:06', NULL, 16, 8, -2.00, 99830.00); +INSERT INTO `ai_balance_change_record` VALUES (408, '0', '', '2025-12-10 19:28:36', '', '2025-12-10 11:28:35', NULL, 16, 8, -2.00, 99828.00); +INSERT INTO `ai_balance_change_record` VALUES (409, '0', '', '2025-12-10 19:28:54', '', '2025-12-10 11:28:54', NULL, 16, 8, -2.00, 99826.00); +INSERT INTO `ai_balance_change_record` VALUES (410, '0', '', '2025-12-10 19:29:08', '', '2025-12-10 11:29:07', NULL, 16, 8, -2.00, 99824.00); +INSERT INTO `ai_balance_change_record` VALUES (411, '0', '', '2025-12-10 19:30:13', '', '2025-12-10 11:30:13', NULL, 16, 8, -2.00, 99822.00); +INSERT INTO `ai_balance_change_record` VALUES (412, '0', '', '2025-12-10 19:30:29', '', '2025-12-10 11:30:28', NULL, 16, 8, -2.00, 99820.00); +INSERT INTO `ai_balance_change_record` VALUES (413, '0', '', '2025-12-10 19:30:48', '', '2025-12-10 11:30:48', NULL, 16, 8, -2.00, 99818.00); +INSERT INTO `ai_balance_change_record` VALUES (414, '0', '', '2025-12-10 19:31:05', '', '2025-12-10 11:31:04', NULL, 16, 8, -2.00, 99816.00); +INSERT INTO `ai_balance_change_record` VALUES (415, '0', '', '2025-12-10 19:31:30', '', '2025-12-10 11:31:29', NULL, 16, 8, -2.00, 99814.00); +INSERT INTO `ai_balance_change_record` VALUES (416, '0', '', '2025-12-10 19:32:08', '', '2025-12-10 11:32:07', NULL, 16, 8, -2.00, 99812.00); +INSERT INTO `ai_balance_change_record` VALUES (417, '0', '', '2025-12-10 19:32:27', '', '2025-12-10 11:32:26', NULL, 16, 8, -2.00, 99810.00); +INSERT INTO `ai_balance_change_record` VALUES (418, '0', '', '2025-12-10 19:32:45', '', '2025-12-10 11:32:44', NULL, 16, 8, -2.00, 99808.00); +INSERT INTO `ai_balance_change_record` VALUES (419, '0', '', '2025-12-10 19:33:03', '', '2025-12-10 11:33:02', NULL, 16, 8, -2.00, 99806.00); +INSERT INTO `ai_balance_change_record` VALUES (420, '0', '', '2025-12-11 09:27:51', '', '2025-12-11 01:27:50', NULL, 16, 8, -2.00, 99804.00); +INSERT INTO `ai_balance_change_record` VALUES (421, '0', '', '2025-12-11 09:28:11', '', '2025-12-11 01:28:10', NULL, 16, 8, -2.00, 99802.00); +INSERT INTO `ai_balance_change_record` VALUES (422, '0', '', '2025-12-11 09:28:36', '', '2025-12-11 01:28:35', NULL, 16, 8, -2.00, 99800.00); +INSERT INTO `ai_balance_change_record` VALUES (423, '0', '', '2025-12-11 09:28:53', '', '2025-12-11 01:28:52', NULL, 16, 8, -2.00, 99798.00); +INSERT INTO `ai_balance_change_record` VALUES (424, '0', '', '2025-12-11 09:29:08', '', '2025-12-11 01:29:07', NULL, 16, 8, -2.00, 99796.00); +INSERT INTO `ai_balance_change_record` VALUES (425, '0', '', '2025-12-11 09:30:08', '', '2025-12-11 01:30:08', NULL, 16, 8, -2.00, 99794.00); +INSERT INTO `ai_balance_change_record` VALUES (426, '0', '', '2025-12-11 09:30:35', '', '2025-12-11 01:30:34', NULL, 16, 8, -2.00, 99792.00); +INSERT INTO `ai_balance_change_record` VALUES (427, '0', '', '2025-12-11 09:31:07', '', '2025-12-11 01:31:07', NULL, 16, 8, -2.00, 99790.00); +INSERT INTO `ai_balance_change_record` VALUES (428, '0', '', '2025-12-11 09:32:51', '', '2025-12-11 01:32:50', NULL, 16, 8, -2.00, 99788.00); +INSERT INTO `ai_balance_change_record` VALUES (429, '0', '', '2025-12-11 09:33:06', '', '2025-12-11 01:33:06', NULL, 16, 8, -2.00, 99786.00); +INSERT INTO `ai_balance_change_record` VALUES (430, '0', '', '2025-12-11 09:33:18', '', '2025-12-11 01:33:18', NULL, 16, 8, -2.00, 99784.00); +INSERT INTO `ai_balance_change_record` VALUES (431, '0', '', '2025-12-11 09:33:30', '', '2025-12-11 01:33:29', NULL, 16, 8, -2.00, 99782.00); +INSERT INTO `ai_balance_change_record` VALUES (432, '0', '', '2025-12-11 09:33:41', '', '2025-12-11 01:33:40', NULL, 16, 8, -2.00, 99780.00); +INSERT INTO `ai_balance_change_record` VALUES (433, '0', '', '2025-12-11 09:33:52', '', '2025-12-11 01:33:52', NULL, 16, 8, -2.00, 99778.00); +INSERT INTO `ai_balance_change_record` VALUES (434, '0', '', '2025-12-11 09:34:14', '', '2025-12-11 01:34:14', NULL, 16, 8, -2.00, 99776.00); +INSERT INTO `ai_balance_change_record` VALUES (435, '0', '', '2025-12-11 09:34:40', '', '2025-12-11 01:34:40', NULL, 16, 8, -2.00, 99774.00); +INSERT INTO `ai_balance_change_record` VALUES (436, '0', '', '2025-12-11 09:34:51', '', '2025-12-11 01:34:50', NULL, 16, 8, -2.00, 99772.00); +INSERT INTO `ai_balance_change_record` VALUES (437, '0', '', '2025-12-11 09:35:05', '', '2025-12-11 01:35:04', NULL, 16, 8, -2.00, 99770.00); +INSERT INTO `ai_balance_change_record` VALUES (438, '0', '', '2025-12-11 09:35:23', '', '2025-12-11 01:35:22', NULL, 16, 8, -2.00, 99768.00); +INSERT INTO `ai_balance_change_record` VALUES (439, '0', '', '2025-12-11 09:35:40', '', '2025-12-11 01:35:40', NULL, 16, 8, -2.00, 99766.00); +INSERT INTO `ai_balance_change_record` VALUES (440, '0', '', '2025-12-11 09:35:59', '', '2025-12-11 01:35:58', NULL, 16, 8, -2.00, 99764.00); +INSERT INTO `ai_balance_change_record` VALUES (441, '0', '', '2025-12-11 09:37:58', '', '2025-12-11 01:37:57', NULL, 16, 8, -2.00, 99762.00); +INSERT INTO `ai_balance_change_record` VALUES (442, '0', '', '2025-12-11 09:38:17', '', '2025-12-11 01:38:17', NULL, 16, 8, -2.00, 99760.00); +INSERT INTO `ai_balance_change_record` VALUES (443, '0', '', '2025-12-11 09:38:32', '', '2025-12-11 01:38:31', NULL, 16, 8, -2.00, 99758.00); +INSERT INTO `ai_balance_change_record` VALUES (444, '0', '', '2025-12-11 09:38:53', '', '2025-12-11 01:38:53', NULL, 16, 8, -2.00, 99756.00); +INSERT INTO `ai_balance_change_record` VALUES (445, '0', '', '2025-12-11 09:39:15', '', '2025-12-11 01:39:14', NULL, 16, 8, -2.00, 99754.00); +INSERT INTO `ai_balance_change_record` VALUES (446, '0', '', '2025-12-11 10:09:11', '', '2025-12-11 02:09:11', NULL, 14, 8, -2.00, 487.00); +INSERT INTO `ai_balance_change_record` VALUES (447, '0', '', '2025-12-11 10:09:41', '', '2025-12-11 02:09:41', NULL, 14, 8, -2.00, 485.00); +INSERT INTO `ai_balance_change_record` VALUES (448, '0', '', '2025-12-11 10:10:30', '', '2025-12-11 02:10:29', NULL, 16, 8, -2.00, 99752.00); +INSERT INTO `ai_balance_change_record` VALUES (449, '0', '', '2025-12-11 10:10:49', '', '2025-12-11 02:10:49', NULL, 16, 8, -2.00, 99750.00); +INSERT INTO `ai_balance_change_record` VALUES (450, '0', '', '2025-12-11 10:10:54', '', '2025-12-11 02:10:53', NULL, 14, 8, -2.00, 483.00); +INSERT INTO `ai_balance_change_record` VALUES (451, '0', '', '2025-12-11 10:11:56', '', '2025-12-11 02:11:55', NULL, 14, 9, -6.00, 477.00); +INSERT INTO `ai_balance_change_record` VALUES (452, '0', '', '2025-12-11 10:13:41', '', '2025-12-11 02:13:41', NULL, 14, 8, -2.00, 475.00); +INSERT INTO `ai_balance_change_record` VALUES (453, '0', '', '2025-12-11 10:14:45', '', '2025-12-11 02:14:45', NULL, 14, 8, -2.00, 473.00); +INSERT INTO `ai_balance_change_record` VALUES (454, '0', '', '2025-12-11 10:15:23', '', '2025-12-11 02:15:23', NULL, 14, 8, -2.00, 471.00); +INSERT INTO `ai_balance_change_record` VALUES (455, '0', '', '2025-12-11 10:15:30', '', '2025-12-11 02:15:29', NULL, 16, 8, -2.00, 99748.00); +INSERT INTO `ai_balance_change_record` VALUES (456, '0', '', '2025-12-11 10:15:50', '', '2025-12-11 02:15:49', NULL, 16, 8, -2.00, 99746.00); +INSERT INTO `ai_balance_change_record` VALUES (457, '0', '', '2025-12-11 10:16:07', '', '2025-12-11 02:16:06', NULL, 14, 8, -2.00, 469.00); +INSERT INTO `ai_balance_change_record` VALUES (458, '0', '', '2025-12-11 10:16:17', '', '2025-12-11 02:16:16', NULL, 16, 8, -2.00, 99744.00); +INSERT INTO `ai_balance_change_record` VALUES (459, '0', '', '2025-12-11 10:17:38', '', '2025-12-11 02:17:38', NULL, 14, 9, -6.00, 463.00); +INSERT INTO `ai_balance_change_record` VALUES (460, '0', '', '2025-12-11 10:18:01', '', '2025-12-11 02:18:01', NULL, 16, 8, -2.00, 99742.00); +INSERT INTO `ai_balance_change_record` VALUES (461, '0', '', '2025-12-11 10:22:33', '', '2025-12-11 02:22:33', NULL, 16, 8, -2.00, 99740.00); +INSERT INTO `ai_balance_change_record` VALUES (462, '0', '', '2025-12-11 10:23:24', '', '2025-12-11 02:23:24', NULL, 16, 8, -2.00, 99738.00); +INSERT INTO `ai_balance_change_record` VALUES (463, '0', '', '2025-12-11 10:23:37', '', '2025-12-11 02:23:36', NULL, 16, 8, -2.00, 99736.00); +INSERT INTO `ai_balance_change_record` VALUES (464, '0', '', '2025-12-11 10:23:54', '', '2025-12-11 02:23:54', NULL, 16, 8, -2.00, 99734.00); +INSERT INTO `ai_balance_change_record` VALUES (465, '0', '', '2025-12-11 10:24:14', '', '2025-12-11 02:24:13', NULL, 16, 8, -2.00, 99732.00); +INSERT INTO `ai_balance_change_record` VALUES (466, '0', '', '2025-12-11 10:24:32', '', '2025-12-11 02:24:31', NULL, 16, 8, -2.00, 99730.00); +INSERT INTO `ai_balance_change_record` VALUES (467, '0', '', '2025-12-11 10:24:46', '', '2025-12-11 02:24:45', NULL, 16, 8, -2.00, 99728.00); +INSERT INTO `ai_balance_change_record` VALUES (468, '0', '', '2025-12-11 10:26:07', '', '2025-12-11 02:26:06', NULL, 16, 8, -2.00, 99726.00); +INSERT INTO `ai_balance_change_record` VALUES (469, '0', '', '2025-12-11 10:27:19', '', '2025-12-11 02:27:19', NULL, 16, 8, -2.00, 99724.00); +INSERT INTO `ai_balance_change_record` VALUES (470, '0', '', '2025-12-11 10:28:16', '', '2025-12-11 02:28:16', NULL, 16, 8, -2.00, 99722.00); +INSERT INTO `ai_balance_change_record` VALUES (471, '0', '', '2025-12-11 10:28:32', '', '2025-12-11 02:28:31', NULL, 16, 8, -2.00, 99720.00); +INSERT INTO `ai_balance_change_record` VALUES (472, '0', '', '2025-12-11 10:29:03', '', '2025-12-11 02:29:02', NULL, 16, 8, -2.00, 99718.00); +INSERT INTO `ai_balance_change_record` VALUES (473, '0', '', '2025-12-11 10:32:42', '', '2025-12-11 02:32:41', NULL, 16, 8, -2.00, 99716.00); +INSERT INTO `ai_balance_change_record` VALUES (474, '0', '', '2025-12-11 10:33:21', '', '2025-12-11 02:33:20', NULL, 16, 8, -2.00, 99714.00); +INSERT INTO `ai_balance_change_record` VALUES (475, '0', '', '2025-12-11 10:48:59', '', '2025-12-11 02:48:59', NULL, 29, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (476, '0', '', '2025-12-11 10:50:31', '', '2025-12-11 02:50:31', NULL, 30, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (477, '0', '', '2025-12-11 10:54:22', '', '2025-12-11 02:54:22', NULL, 16, 8, -2.00, 99712.00); +INSERT INTO `ai_balance_change_record` VALUES (478, '0', '', '2025-12-11 11:18:50', '', '2025-12-11 03:18:49', NULL, 16, 8, -2.00, 99710.00); +INSERT INTO `ai_balance_change_record` VALUES (479, '0', '', '2025-12-11 11:20:20', '', '2025-12-11 03:20:19', NULL, 16, 8, -2.00, 99708.00); +INSERT INTO `ai_balance_change_record` VALUES (480, '0', '', '2025-12-11 11:20:38', '', '2025-12-11 03:20:38', NULL, 16, 8, -2.00, 99706.00); +INSERT INTO `ai_balance_change_record` VALUES (481, '0', '', '2025-12-11 11:21:36', '', '2025-12-11 03:21:35', NULL, 16, 8, -2.00, 99704.00); +INSERT INTO `ai_balance_change_record` VALUES (482, '0', '', '2025-12-11 11:22:00', '', '2025-12-11 03:21:59', NULL, 16, 8, -2.00, 99702.00); +INSERT INTO `ai_balance_change_record` VALUES (483, '0', '', '2025-12-11 11:22:28', '', '2025-12-11 03:22:27', NULL, 16, 8, -2.00, 99700.00); +INSERT INTO `ai_balance_change_record` VALUES (484, '0', '', '2025-12-11 11:22:44', '', '2025-12-11 03:22:43', NULL, 16, 8, -2.00, 99698.00); +INSERT INTO `ai_balance_change_record` VALUES (485, '0', '', '2025-12-11 11:23:48', '', '2025-12-11 03:23:47', NULL, 16, 8, -2.00, 99696.00); +INSERT INTO `ai_balance_change_record` VALUES (486, '0', '', '2025-12-11 11:24:05', '', '2025-12-11 03:24:05', NULL, 16, 8, -2.00, 99694.00); +INSERT INTO `ai_balance_change_record` VALUES (487, '0', '', '2025-12-11 11:25:15', '', '2025-12-11 03:25:14', NULL, 16, 8, -2.00, 99692.00); +INSERT INTO `ai_balance_change_record` VALUES (488, '0', '', '2025-12-11 11:25:58', '', '2025-12-11 03:25:57', NULL, 16, 8, -2.00, 99690.00); +INSERT INTO `ai_balance_change_record` VALUES (489, '0', '', '2025-12-11 11:26:17', '', '2025-12-11 03:26:16', NULL, 16, 8, -2.00, 99688.00); +INSERT INTO `ai_balance_change_record` VALUES (490, '0', '', '2025-12-11 11:26:37', '', '2025-12-11 03:26:36', NULL, 16, 8, -2.00, 99686.00); +INSERT INTO `ai_balance_change_record` VALUES (491, '0', '', '2025-12-11 11:28:29', '', '2025-12-11 03:28:29', NULL, 16, 0, 10.00, 99696.00); +INSERT INTO `ai_balance_change_record` VALUES (492, '0', '', '2025-12-11 11:28:51', '', '2025-12-11 03:28:51', NULL, 16, 8, -2.00, 99694.00); +INSERT INTO `ai_balance_change_record` VALUES (493, '0', '', '2025-12-11 11:29:16', '', '2025-12-11 03:29:15', NULL, 16, 8, -2.00, 99692.00); +INSERT INTO `ai_balance_change_record` VALUES (494, '0', '', '2025-12-11 11:29:34', '', '2025-12-11 03:29:33', NULL, 16, 8, -2.00, 99690.00); +INSERT INTO `ai_balance_change_record` VALUES (495, '0', '', '2025-12-11 11:29:47', '', '2025-12-11 03:29:47', NULL, 16, 8, -2.00, 99688.00); +INSERT INTO `ai_balance_change_record` VALUES (496, '0', '', '2025-12-11 11:30:01', '', '2025-12-11 03:30:01', NULL, 16, 8, -2.00, 99686.00); +INSERT INTO `ai_balance_change_record` VALUES (497, '0', '', '2025-12-11 11:30:16', '', '2025-12-11 03:30:16', NULL, 16, 8, -2.00, 99684.00); +INSERT INTO `ai_balance_change_record` VALUES (498, '0', '', '2025-12-11 11:30:28', '', '2025-12-11 03:30:27', NULL, 16, 8, -2.00, 99682.00); +INSERT INTO `ai_balance_change_record` VALUES (499, '0', '', '2025-12-11 11:30:55', '', '2025-12-11 03:30:54', NULL, 16, 8, -2.00, 99680.00); +INSERT INTO `ai_balance_change_record` VALUES (500, '0', '', '2025-12-11 11:32:50', '', '2025-12-11 03:32:50', NULL, 16, 8, -2.00, 99678.00); +INSERT INTO `ai_balance_change_record` VALUES (501, '0', '', '2025-12-11 11:33:04', '', '2025-12-11 03:33:03', NULL, 16, 8, -2.00, 99676.00); +INSERT INTO `ai_balance_change_record` VALUES (502, '0', '', '2025-12-11 11:33:21', '', '2025-12-11 03:33:20', NULL, 16, 8, -2.00, 99674.00); +INSERT INTO `ai_balance_change_record` VALUES (503, '0', '', '2025-12-11 11:33:41', '', '2025-12-11 03:33:41', NULL, 16, 8, -2.00, 99672.00); +INSERT INTO `ai_balance_change_record` VALUES (504, '0', '', '2025-12-11 11:33:53', '', '2025-12-11 03:33:53', NULL, 16, 8, -2.00, 99670.00); +INSERT INTO `ai_balance_change_record` VALUES (505, '0', '', '2025-12-11 11:34:05', '', '2025-12-11 03:34:04', NULL, 16, 8, -2.00, 99668.00); +INSERT INTO `ai_balance_change_record` VALUES (506, '0', '', '2025-12-11 11:34:24', '', '2025-12-11 03:34:23', NULL, 16, 8, -2.00, 99666.00); +INSERT INTO `ai_balance_change_record` VALUES (507, '0', '', '2025-12-11 11:34:35', '', '2025-12-11 03:34:35', NULL, 16, 8, -2.00, 99664.00); +INSERT INTO `ai_balance_change_record` VALUES (508, '0', '', '2025-12-11 11:34:47', '', '2025-12-11 03:34:47', NULL, 16, 8, -2.00, 99662.00); +INSERT INTO `ai_balance_change_record` VALUES (509, '0', '', '2025-12-11 11:35:01', '', '2025-12-11 03:35:01', NULL, 16, 8, -2.00, 99660.00); +INSERT INTO `ai_balance_change_record` VALUES (510, '0', '', '2025-12-11 11:36:33', '', '2025-12-11 03:36:33', NULL, 16, 8, -2.00, 99658.00); +INSERT INTO `ai_balance_change_record` VALUES (511, '0', '', '2025-12-11 11:48:59', '', '2025-12-11 03:48:59', NULL, 29, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (512, '0', '', '2025-12-11 11:50:31', '', '2025-12-11 03:50:31', NULL, 30, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (513, '0', '', '2025-12-11 12:03:58', '', '2025-12-11 04:03:58', NULL, 14, 8, -2.00, 461.00); +INSERT INTO `ai_balance_change_record` VALUES (514, '0', '', '2025-12-11 12:10:45', '', '2025-12-11 04:10:44', NULL, 14, 9, -6.00, 455.00); +INSERT INTO `ai_balance_change_record` VALUES (515, '0', '', '2025-12-11 12:31:08', '', '2025-12-11 04:31:07', NULL, 16, 8, -2.00, 99656.00); +INSERT INTO `ai_balance_change_record` VALUES (516, '0', '', '2025-12-11 12:31:22', '', '2025-12-11 04:31:21', NULL, 16, 8, -2.00, 99654.00); +INSERT INTO `ai_balance_change_record` VALUES (517, '0', '', '2025-12-11 12:32:15', '', '2025-12-11 04:32:15', NULL, 16, 8, -2.00, 99652.00); +INSERT INTO `ai_balance_change_record` VALUES (518, '0', '', '2025-12-11 12:32:43', '', '2025-12-11 04:32:43', NULL, 16, 8, -2.00, 99650.00); +INSERT INTO `ai_balance_change_record` VALUES (519, '0', '', '2025-12-11 12:33:46', '', '2025-12-11 04:33:46', NULL, 16, 8, -2.00, 99648.00); +INSERT INTO `ai_balance_change_record` VALUES (520, '0', '', '2025-12-11 12:34:27', '', '2025-12-11 04:34:27', NULL, 16, 8, -2.00, 99646.00); +INSERT INTO `ai_balance_change_record` VALUES (521, '0', '', '2025-12-11 12:35:29', '', '2025-12-11 04:35:29', NULL, 16, 8, -2.00, 99644.00); +INSERT INTO `ai_balance_change_record` VALUES (522, '0', '', '2025-12-11 12:35:47', '', '2025-12-11 04:35:46', NULL, 16, 8, -2.00, 99642.00); +INSERT INTO `ai_balance_change_record` VALUES (523, '0', '', '2025-12-11 12:35:58', '', '2025-12-11 04:35:58', NULL, 16, 8, -2.00, 99640.00); +INSERT INTO `ai_balance_change_record` VALUES (524, '0', '', '2025-12-11 12:36:14', '', '2025-12-11 04:36:13', NULL, 16, 8, -2.00, 99638.00); +INSERT INTO `ai_balance_change_record` VALUES (525, '0', '', '2025-12-11 12:37:54', '', '2025-12-11 04:37:54', NULL, 16, 8, -2.00, 99636.00); +INSERT INTO `ai_balance_change_record` VALUES (526, '0', '', '2025-12-11 12:39:32', '', '2025-12-11 04:39:31', NULL, 16, 8, -2.00, 99634.00); +INSERT INTO `ai_balance_change_record` VALUES (527, '0', '', '2025-12-11 12:39:46', '', '2025-12-11 04:39:45', NULL, 16, 8, -2.00, 99632.00); +INSERT INTO `ai_balance_change_record` VALUES (528, '0', '', '2025-12-11 12:39:58', '', '2025-12-11 04:39:58', NULL, 16, 8, -2.00, 99630.00); +INSERT INTO `ai_balance_change_record` VALUES (529, '0', '', '2025-12-11 12:40:11', '', '2025-12-11 04:40:10', NULL, 16, 8, -2.00, 99628.00); +INSERT INTO `ai_balance_change_record` VALUES (530, '0', '', '2025-12-11 12:40:46', '', '2025-12-11 04:40:46', NULL, 16, 8, -2.00, 99626.00); +INSERT INTO `ai_balance_change_record` VALUES (531, '0', '', '2025-12-11 12:41:18', '', '2025-12-11 04:41:17', NULL, 16, 8, -2.00, 99624.00); +INSERT INTO `ai_balance_change_record` VALUES (532, '0', '', '2025-12-11 12:41:32', '', '2025-12-11 04:41:31', NULL, 16, 8, -2.00, 99622.00); +INSERT INTO `ai_balance_change_record` VALUES (533, '0', '', '2025-12-11 12:42:28', '', '2025-12-11 04:42:28', NULL, 16, 8, -2.00, 99620.00); +INSERT INTO `ai_balance_change_record` VALUES (534, '0', '', '2025-12-11 12:44:44', '', '2025-12-11 04:44:43', NULL, 16, 8, -2.00, 99618.00); +INSERT INTO `ai_balance_change_record` VALUES (535, '0', '', '2025-12-11 12:44:56', '', '2025-12-11 04:44:56', NULL, 16, 8, -2.00, 99616.00); +INSERT INTO `ai_balance_change_record` VALUES (536, '0', '', '2025-12-11 12:45:08', '', '2025-12-11 04:45:07', NULL, 16, 8, -2.00, 99614.00); +INSERT INTO `ai_balance_change_record` VALUES (537, '0', '', '2025-12-11 12:45:18', '', '2025-12-11 04:45:18', NULL, 16, 8, -2.00, 99612.00); +INSERT INTO `ai_balance_change_record` VALUES (538, '0', '', '2025-12-11 12:45:45', '', '2025-12-11 04:45:45', NULL, 16, 8, -2.00, 99610.00); +INSERT INTO `ai_balance_change_record` VALUES (539, '0', '', '2025-12-11 12:46:11', '', '2025-12-11 04:46:10', NULL, 16, 8, -2.00, 99608.00); +INSERT INTO `ai_balance_change_record` VALUES (540, '0', '', '2025-12-11 12:46:39', '', '2025-12-11 04:46:38', NULL, 16, 8, -2.00, 99606.00); +INSERT INTO `ai_balance_change_record` VALUES (541, '0', '', '2025-12-11 12:47:07', '', '2025-12-11 04:47:06', NULL, 16, 8, -2.00, 99604.00); +INSERT INTO `ai_balance_change_record` VALUES (542, '0', '', '2025-12-11 12:47:18', '', '2025-12-11 04:47:18', NULL, 16, 8, -2.00, 99602.00); +INSERT INTO `ai_balance_change_record` VALUES (543, '0', '', '2025-12-11 12:49:02', '', '2025-12-11 04:49:01', NULL, 16, 8, -2.00, 99600.00); +INSERT INTO `ai_balance_change_record` VALUES (544, '0', '', '2025-12-11 12:49:14', '', '2025-12-11 04:49:14', NULL, 16, 8, -2.00, 99598.00); +INSERT INTO `ai_balance_change_record` VALUES (545, '0', '', '2025-12-11 12:49:33', '', '2025-12-11 04:49:33', NULL, 16, 8, -2.00, 99596.00); +INSERT INTO `ai_balance_change_record` VALUES (546, '0', '', '2025-12-11 12:49:48', '', '2025-12-11 04:49:47', NULL, 16, 8, -2.00, 99594.00); +INSERT INTO `ai_balance_change_record` VALUES (547, '0', '', '2025-12-11 12:50:52', '', '2025-12-11 04:50:52', NULL, 16, 8, -2.00, 99592.00); +INSERT INTO `ai_balance_change_record` VALUES (548, '0', '', '2025-12-11 12:51:33', '', '2025-12-11 04:51:33', NULL, 16, 8, -2.00, 99590.00); +INSERT INTO `ai_balance_change_record` VALUES (549, '0', '', '2025-12-11 12:52:36', '', '2025-12-11 04:52:36', NULL, 16, 8, -2.00, 99588.00); +INSERT INTO `ai_balance_change_record` VALUES (550, '0', '', '2025-12-11 12:52:53', '', '2025-12-11 04:52:52', NULL, 16, 8, -2.00, 99586.00); +INSERT INTO `ai_balance_change_record` VALUES (551, '0', '', '2025-12-11 12:53:06', '', '2025-12-11 04:53:06', NULL, 16, 8, -2.00, 99584.00); +INSERT INTO `ai_balance_change_record` VALUES (552, '0', '', '2025-12-11 12:54:15', '', '2025-12-11 04:54:14', NULL, 16, 8, -2.00, 99582.00); +INSERT INTO `ai_balance_change_record` VALUES (553, '0', '', '2025-12-11 12:55:50', '', '2025-12-11 04:55:49', NULL, 16, 8, -2.00, 99580.00); +INSERT INTO `ai_balance_change_record` VALUES (554, '0', '', '2025-12-11 12:56:15', '', '2025-12-11 04:56:14', NULL, 16, 8, -2.00, 99578.00); +INSERT INTO `ai_balance_change_record` VALUES (555, '0', '', '2025-12-11 12:57:33', '', '2025-12-11 04:57:33', NULL, 16, 8, -2.00, 99576.00); +INSERT INTO `ai_balance_change_record` VALUES (556, '0', '', '2025-12-11 12:57:52', '', '2025-12-11 04:57:52', NULL, 16, 8, -2.00, 99574.00); +INSERT INTO `ai_balance_change_record` VALUES (557, '0', '', '2025-12-11 12:58:41', '', '2025-12-11 04:58:41', NULL, 16, 8, -2.00, 99572.00); +INSERT INTO `ai_balance_change_record` VALUES (558, '0', '', '2025-12-11 12:59:01', '', '2025-12-11 04:59:01', NULL, 16, 8, -2.00, 99570.00); +INSERT INTO `ai_balance_change_record` VALUES (559, '0', '', '2025-12-11 13:00:43', '', '2025-12-11 05:00:42', NULL, 16, 8, -2.00, 99568.00); +INSERT INTO `ai_balance_change_record` VALUES (560, '0', '', '2025-12-11 13:01:07', '', '2025-12-11 05:01:07', NULL, 16, 8, -2.00, 99566.00); +INSERT INTO `ai_balance_change_record` VALUES (561, '0', '', '2025-12-11 13:01:38', '', '2025-12-11 05:01:38', NULL, 16, 8, -2.00, 99564.00); +INSERT INTO `ai_balance_change_record` VALUES (562, '0', '', '2025-12-11 13:04:31', '', '2025-12-11 05:04:30', NULL, 16, 8, -2.00, 99562.00); +INSERT INTO `ai_balance_change_record` VALUES (563, '0', '', '2025-12-11 13:04:44', '', '2025-12-11 05:04:43', NULL, 16, 8, -2.00, 99560.00); +INSERT INTO `ai_balance_change_record` VALUES (564, '0', '', '2025-12-11 13:05:21', '', '2025-12-11 05:05:21', NULL, 16, 8, -2.00, 99558.00); +INSERT INTO `ai_balance_change_record` VALUES (565, '0', '', '2025-12-11 13:05:40', '', '2025-12-11 05:05:39', NULL, 16, 8, -2.00, 99556.00); +INSERT INTO `ai_balance_change_record` VALUES (566, '0', '', '2025-12-11 13:06:33', '', '2025-12-11 05:06:33', NULL, 16, 8, -2.00, 99554.00); +INSERT INTO `ai_balance_change_record` VALUES (567, '0', '', '2025-12-11 13:06:53', '', '2025-12-11 05:06:52', NULL, 16, 8, -2.00, 99552.00); +INSERT INTO `ai_balance_change_record` VALUES (568, '0', '', '2025-12-11 13:07:14', '', '2025-12-11 05:07:13', NULL, 16, 8, -2.00, 99550.00); +INSERT INTO `ai_balance_change_record` VALUES (569, '0', '', '2025-12-11 13:07:33', '', '2025-12-11 05:07:32', NULL, 16, 8, -2.00, 99548.00); +INSERT INTO `ai_balance_change_record` VALUES (570, '0', '', '2025-12-11 14:11:02', '', '2025-12-11 06:11:01', NULL, 16, 8, -2.00, 99546.00); +INSERT INTO `ai_balance_change_record` VALUES (571, '0', '', '2025-12-11 14:11:14', '', '2025-12-11 06:11:14', NULL, 16, 8, -2.00, 99544.00); +INSERT INTO `ai_balance_change_record` VALUES (572, '0', '', '2025-12-11 14:11:33', '', '2025-12-11 06:11:33', NULL, 16, 8, -2.00, 99542.00); +INSERT INTO `ai_balance_change_record` VALUES (573, '0', '', '2025-12-11 14:11:59', '', '2025-12-11 06:11:59', NULL, 16, 8, -2.00, 99540.00); +INSERT INTO `ai_balance_change_record` VALUES (574, '0', '', '2025-12-11 14:12:22', '', '2025-12-11 06:12:21', NULL, 16, 8, -2.00, 99538.00); +INSERT INTO `ai_balance_change_record` VALUES (575, '0', '', '2025-12-11 14:12:41', '', '2025-12-11 06:12:40', NULL, 16, 8, -2.00, 99536.00); +INSERT INTO `ai_balance_change_record` VALUES (576, '0', '', '2025-12-11 14:20:01', '', '2025-12-11 06:20:00', NULL, 16, 8, -2.00, 99534.00); +INSERT INTO `ai_balance_change_record` VALUES (577, '0', '', '2025-12-11 14:20:17', '', '2025-12-11 06:20:17', NULL, 16, 8, -2.00, 99532.00); +INSERT INTO `ai_balance_change_record` VALUES (578, '0', '', '2025-12-11 14:20:35', '', '2025-12-11 06:20:35', NULL, 16, 8, -2.00, 99530.00); +INSERT INTO `ai_balance_change_record` VALUES (579, '0', '', '2025-12-11 14:20:53', '', '2025-12-11 06:20:52', NULL, 16, 8, -2.00, 99528.00); +INSERT INTO `ai_balance_change_record` VALUES (580, '0', '', '2025-12-11 14:21:09', '', '2025-12-11 06:21:08', NULL, 16, 8, -2.00, 99526.00); +INSERT INTO `ai_balance_change_record` VALUES (581, '0', '', '2025-12-11 14:22:01', '', '2025-12-11 06:22:00', NULL, 16, 8, -2.00, 99524.00); +INSERT INTO `ai_balance_change_record` VALUES (582, '0', '', '2025-12-11 14:22:19', '', '2025-12-11 06:22:18', NULL, 16, 8, -2.00, 99522.00); +INSERT INTO `ai_balance_change_record` VALUES (583, '0', '', '2025-12-11 14:35:06', '', '2025-12-11 06:35:05', NULL, 14, 8, -2.00, 453.00); +INSERT INTO `ai_balance_change_record` VALUES (584, '0', '', '2025-12-11 14:35:31', '', '2025-12-11 06:35:30', NULL, 14, 8, -2.00, 451.00); +INSERT INTO `ai_balance_change_record` VALUES (585, '0', '', '2025-12-11 14:35:48', '', '2025-12-11 06:35:48', NULL, 16, 5, -2.00, 99520.00); +INSERT INTO `ai_balance_change_record` VALUES (586, '0', '', '2025-12-11 14:35:51', '', '2025-12-11 06:35:51', NULL, 16, 5, -2.00, 99518.00); +INSERT INTO `ai_balance_change_record` VALUES (587, '0', '', '2025-12-11 14:36:15', '', '2025-12-11 06:36:15', NULL, 14, 8, -2.00, 449.00); +INSERT INTO `ai_balance_change_record` VALUES (588, '0', '', '2025-12-11 14:37:05', '', '2025-12-11 06:37:04', NULL, 16, 9, -6.00, 99512.00); +INSERT INTO `ai_balance_change_record` VALUES (589, '0', '', '2025-12-11 14:38:00', '', '2025-12-11 06:38:00', NULL, 16, 9, -6.00, 99506.00); +INSERT INTO `ai_balance_change_record` VALUES (590, '0', '', '2025-12-11 14:39:00', '', '2025-12-11 06:38:59', NULL, 16, 9, -6.00, 99500.00); +INSERT INTO `ai_balance_change_record` VALUES (591, '0', '', '2025-12-11 14:40:19', '', '2025-12-11 06:40:19', NULL, 16, 9, -6.00, 99494.00); +INSERT INTO `ai_balance_change_record` VALUES (592, '0', '', '2025-12-11 14:41:38', '', '2025-12-11 06:41:37', NULL, 16, 5, -2.00, 99492.00); +INSERT INTO `ai_balance_change_record` VALUES (593, '0', '', '2025-12-11 14:41:57', '', '2025-12-11 06:41:57', NULL, 16, 6, -2.00, 99490.00); +INSERT INTO `ai_balance_change_record` VALUES (594, '0', '', '2025-12-11 14:42:47', '', '2025-12-11 06:42:46', NULL, 16, 6, -2.00, 99488.00); +INSERT INTO `ai_balance_change_record` VALUES (595, '0', '', '2025-12-11 14:46:05', '', '2025-12-11 06:46:04', NULL, 16, 8, -2.00, 99486.00); +INSERT INTO `ai_balance_change_record` VALUES (596, '0', '', '2025-12-11 14:46:22', '', '2025-12-11 06:46:21', NULL, 16, 8, -2.00, 99484.00); +INSERT INTO `ai_balance_change_record` VALUES (597, '0', '', '2025-12-11 14:46:35', '', '2025-12-11 06:46:35', NULL, 16, 8, -2.00, 99482.00); +INSERT INTO `ai_balance_change_record` VALUES (598, '0', '', '2025-12-11 14:46:41', '', '2025-12-11 06:46:41', NULL, 14, 9, -6.00, 443.00); +INSERT INTO `ai_balance_change_record` VALUES (599, '0', '', '2025-12-11 14:46:59', '', '2025-12-11 06:46:58', NULL, 16, 8, -2.00, 99480.00); +INSERT INTO `ai_balance_change_record` VALUES (600, '0', '', '2025-12-11 14:47:17', '', '2025-12-11 06:47:17', NULL, 16, 8, -2.00, 99478.00); +INSERT INTO `ai_balance_change_record` VALUES (601, '0', '', '2025-12-11 14:48:57', '', '2025-12-11 06:48:57', NULL, 16, 9, -6.00, 99472.00); +INSERT INTO `ai_balance_change_record` VALUES (602, '0', '', '2025-12-11 14:49:47', '', '2025-12-11 06:49:46', NULL, 16, 9, -6.00, 99466.00); +INSERT INTO `ai_balance_change_record` VALUES (603, '0', '', '2025-12-11 15:29:10', '', '2025-12-11 07:29:09', NULL, 14, 7, -2.00, 441.00); +INSERT INTO `ai_balance_change_record` VALUES (604, '0', '', '2025-12-11 15:31:13', '', '2025-12-11 07:31:13', NULL, 14, 6, -2.00, 439.00); +INSERT INTO `ai_balance_change_record` VALUES (605, '0', '', '2025-12-11 15:59:32', '', '2025-12-11 07:59:31', NULL, 16, 5, -2.00, 99464.00); +INSERT INTO `ai_balance_change_record` VALUES (606, '0', '', '2025-12-11 15:59:35', '', '2025-12-11 07:59:35', NULL, 16, 5, -2.00, 99462.00); +INSERT INTO `ai_balance_change_record` VALUES (607, '0', '', '2025-12-11 15:59:58', '', '2025-12-11 07:59:58', NULL, 16, 5, -2.00, 99460.00); +INSERT INTO `ai_balance_change_record` VALUES (608, '0', '', '2025-12-11 16:08:28', '', '2025-12-11 08:08:28', NULL, 16, 8, -2.00, 99458.00); +INSERT INTO `ai_balance_change_record` VALUES (609, '0', '', '2025-12-11 16:16:51', '', '2025-12-11 08:16:50', NULL, 16, 8, -2.00, 99456.00); +INSERT INTO `ai_balance_change_record` VALUES (610, '0', '', '2025-12-11 16:18:08', '', '2025-12-11 08:18:07', NULL, 16, 8, -2.00, 99454.00); +INSERT INTO `ai_balance_change_record` VALUES (611, '0', '', '2025-12-11 16:18:31', '', '2025-12-11 08:18:31', NULL, 16, 8, -2.00, 99452.00); +INSERT INTO `ai_balance_change_record` VALUES (612, '0', '', '2025-12-11 16:18:49', '', '2025-12-11 08:18:48', NULL, 16, 8, -2.00, 99450.00); +INSERT INTO `ai_balance_change_record` VALUES (613, '0', '', '2025-12-11 16:19:01', '', '2025-12-11 08:19:01', NULL, 16, 8, -2.00, 99448.00); +INSERT INTO `ai_balance_change_record` VALUES (614, '0', '', '2025-12-11 16:19:26', '', '2025-12-11 08:19:26', NULL, 16, 8, -2.00, 99446.00); +INSERT INTO `ai_balance_change_record` VALUES (615, '0', '', '2025-12-11 16:19:47', '', '2025-12-11 08:19:47', NULL, 16, 8, -2.00, 99444.00); +INSERT INTO `ai_balance_change_record` VALUES (616, '0', '', '2025-12-11 16:20:01', '', '2025-12-11 08:20:00', NULL, 16, 8, -2.00, 99442.00); +INSERT INTO `ai_balance_change_record` VALUES (617, '0', '', '2025-12-11 16:20:15', '', '2025-12-11 08:20:14', NULL, 16, 8, -2.00, 99440.00); +INSERT INTO `ai_balance_change_record` VALUES (618, '0', '', '2025-12-11 16:21:32', '', '2025-12-11 08:21:32', NULL, 16, 8, -2.00, 99438.00); +INSERT INTO `ai_balance_change_record` VALUES (619, '0', '', '2025-12-11 16:22:44', '', '2025-12-11 08:22:44', NULL, 16, 8, -2.00, 99436.00); +INSERT INTO `ai_balance_change_record` VALUES (620, '0', '', '2025-12-11 16:23:10', '', '2025-12-11 08:23:10', NULL, 16, 8, -2.00, 99434.00); +INSERT INTO `ai_balance_change_record` VALUES (621, '0', '', '2025-12-11 16:23:33', '', '2025-12-11 08:23:32', NULL, 16, 8, -2.00, 99432.00); +INSERT INTO `ai_balance_change_record` VALUES (622, '0', '', '2025-12-11 16:23:48', '', '2025-12-11 08:23:47', NULL, 16, 8, -2.00, 99430.00); +INSERT INTO `ai_balance_change_record` VALUES (623, '0', '', '2025-12-11 16:24:02', '', '2025-12-11 08:24:02', NULL, 16, 8, -2.00, 99428.00); +INSERT INTO `ai_balance_change_record` VALUES (624, '0', '', '2025-12-11 16:24:26', '', '2025-12-11 08:24:26', NULL, 16, 8, -2.00, 99426.00); +INSERT INTO `ai_balance_change_record` VALUES (625, '0', '', '2025-12-11 16:24:38', '', '2025-12-11 08:24:38', NULL, 16, 8, -2.00, 99424.00); +INSERT INTO `ai_balance_change_record` VALUES (626, '0', '', '2025-12-11 16:24:54', '', '2025-12-11 08:24:53', NULL, 16, 8, -2.00, 99422.00); +INSERT INTO `ai_balance_change_record` VALUES (627, '0', '', '2025-12-11 16:25:13', '', '2025-12-11 08:25:12', NULL, 16, 8, -2.00, 99420.00); +INSERT INTO `ai_balance_change_record` VALUES (628, '0', '', '2025-12-11 16:25:27', '', '2025-12-11 08:25:27', NULL, 16, 8, -2.00, 99418.00); +INSERT INTO `ai_balance_change_record` VALUES (629, '0', '', '2025-12-11 16:25:39', '', '2025-12-11 08:25:39', NULL, 16, 8, -2.00, 99416.00); +INSERT INTO `ai_balance_change_record` VALUES (630, '0', '', '2025-12-11 16:26:00', '', '2025-12-11 08:25:59', NULL, 16, 8, -2.00, 99414.00); +INSERT INTO `ai_balance_change_record` VALUES (631, '0', '', '2025-12-11 16:26:25', '', '2025-12-11 08:26:25', NULL, 16, 8, -2.00, 99412.00); +INSERT INTO `ai_balance_change_record` VALUES (632, '0', '', '2025-12-11 16:26:54', '', '2025-12-11 08:26:54', NULL, 16, 8, -2.00, 99410.00); +INSERT INTO `ai_balance_change_record` VALUES (633, '0', '', '2025-12-11 16:27:06', '', '2025-12-11 08:27:05', NULL, 16, 8, -2.00, 99408.00); +INSERT INTO `ai_balance_change_record` VALUES (634, '0', '', '2025-12-11 16:38:52', '', '2025-12-11 08:38:51', NULL, 16, 8, -2.00, 99406.00); +INSERT INTO `ai_balance_change_record` VALUES (635, '0', '', '2025-12-11 16:39:04', '', '2025-12-11 08:39:03', NULL, 16, 8, -2.00, 99404.00); +INSERT INTO `ai_balance_change_record` VALUES (636, '0', '', '2025-12-11 16:39:15', '', '2025-12-11 08:39:15', NULL, 16, 8, -2.00, 99402.00); +INSERT INTO `ai_balance_change_record` VALUES (637, '0', '', '2025-12-11 16:39:26', '', '2025-12-11 08:39:25', NULL, 16, 8, -2.00, 99400.00); +INSERT INTO `ai_balance_change_record` VALUES (638, '0', '', '2025-12-11 16:39:38', '', '2025-12-11 08:39:38', NULL, 16, 8, -2.00, 99398.00); +INSERT INTO `ai_balance_change_record` VALUES (639, '0', '', '2025-12-11 16:39:49', '', '2025-12-11 08:39:48', NULL, 16, 8, -2.00, 99396.00); +INSERT INTO `ai_balance_change_record` VALUES (640, '0', '', '2025-12-11 16:40:04', '', '2025-12-11 08:40:04', NULL, 16, 8, -2.00, 99394.00); +INSERT INTO `ai_balance_change_record` VALUES (641, '0', '', '2025-12-11 16:40:22', '', '2025-12-11 08:40:21', NULL, 16, 8, -2.00, 99392.00); +INSERT INTO `ai_balance_change_record` VALUES (642, '0', '', '2025-12-11 16:40:46', '', '2025-12-11 08:40:46', NULL, 16, 8, -2.00, 99390.00); +INSERT INTO `ai_balance_change_record` VALUES (643, '0', '', '2025-12-11 16:41:02', '', '2025-12-11 08:41:01', NULL, 16, 8, -2.00, 99388.00); +INSERT INTO `ai_balance_change_record` VALUES (644, '0', '', '2025-12-11 16:41:14', '', '2025-12-11 08:41:14', NULL, 16, 8, -2.00, 99386.00); +INSERT INTO `ai_balance_change_record` VALUES (645, '0', '', '2025-12-11 16:42:22', '', '2025-12-11 08:42:22', NULL, 16, 8, -2.00, 99384.00); +INSERT INTO `ai_balance_change_record` VALUES (646, '0', '', '2025-12-11 16:42:43', '', '2025-12-11 08:42:42', NULL, 16, 8, -2.00, 99382.00); +INSERT INTO `ai_balance_change_record` VALUES (647, '0', '', '2025-12-11 16:42:56', '', '2025-12-11 08:42:56', NULL, 16, 8, -2.00, 99380.00); +INSERT INTO `ai_balance_change_record` VALUES (648, '0', '', '2025-12-11 16:46:37', '', '2025-12-11 08:46:36', NULL, 16, 8, -2.00, 99378.00); +INSERT INTO `ai_balance_change_record` VALUES (649, '0', '', '2025-12-11 17:06:54', '', '2025-12-11 09:06:54', NULL, 16, 8, -2.00, 99376.00); +INSERT INTO `ai_balance_change_record` VALUES (650, '0', '', '2025-12-11 17:14:21', '', '2025-12-11 09:14:20', NULL, 16, 8, -2.00, 99374.00); +INSERT INTO `ai_balance_change_record` VALUES (651, '0', '', '2025-12-11 17:14:35', '', '2025-12-11 09:14:34', NULL, 16, 8, -2.00, 99372.00); +INSERT INTO `ai_balance_change_record` VALUES (652, '0', '', '2025-12-11 17:28:08', '', '2025-12-11 09:28:07', NULL, 16, 8, -2.00, 99370.00); +INSERT INTO `ai_balance_change_record` VALUES (653, '0', '', '2025-12-11 17:28:23', '', '2025-12-11 09:28:22', NULL, 16, 8, -2.00, 99368.00); +INSERT INTO `ai_balance_change_record` VALUES (654, '0', '', '2025-12-11 17:34:26', '', '2025-12-11 09:34:26', NULL, 16, 8, -2.00, 99366.00); +INSERT INTO `ai_balance_change_record` VALUES (655, '0', '', '2025-12-11 17:34:44', '', '2025-12-11 09:34:44', NULL, 16, 8, -2.00, 99364.00); +INSERT INTO `ai_balance_change_record` VALUES (656, '0', '', '2025-12-11 17:35:03', '', '2025-12-11 09:35:02', NULL, 16, 8, -2.00, 99362.00); +INSERT INTO `ai_balance_change_record` VALUES (657, '0', '', '2025-12-11 17:35:21', '', '2025-12-11 09:35:21', NULL, 16, 8, -2.00, 99360.00); +INSERT INTO `ai_balance_change_record` VALUES (658, '0', '', '2025-12-11 17:35:36', '', '2025-12-11 09:35:36', NULL, 16, 8, -2.00, 99358.00); +INSERT INTO `ai_balance_change_record` VALUES (659, '0', '', '2025-12-11 17:41:38', '', '2025-12-11 09:41:37', NULL, 16, 8, -2.00, 99356.00); +INSERT INTO `ai_balance_change_record` VALUES (660, '0', '', '2025-12-11 17:41:52', '', '2025-12-11 09:41:52', NULL, 16, 8, -2.00, 99354.00); +INSERT INTO `ai_balance_change_record` VALUES (661, '0', '', '2025-12-11 17:42:05', '', '2025-12-11 09:42:05', NULL, 16, 8, -2.00, 99352.00); +INSERT INTO `ai_balance_change_record` VALUES (662, '0', '', '2025-12-11 17:42:25', '', '2025-12-11 09:42:24', NULL, 16, 8, -2.00, 99350.00); +INSERT INTO `ai_balance_change_record` VALUES (663, '0', '', '2025-12-11 17:42:42', '', '2025-12-11 09:42:42', NULL, 16, 8, -2.00, 99348.00); +INSERT INTO `ai_balance_change_record` VALUES (664, '0', '', '2025-12-11 17:43:12', '', '2025-12-11 09:43:12', NULL, 16, 8, -2.00, 99346.00); +INSERT INTO `ai_balance_change_record` VALUES (665, '0', '', '2025-12-11 17:43:23', '', '2025-12-11 09:43:22', NULL, 16, 8, -2.00, 99344.00); +INSERT INTO `ai_balance_change_record` VALUES (666, '0', '', '2025-12-11 17:43:37', '', '2025-12-11 09:43:37', NULL, 16, 8, -2.00, 99342.00); +INSERT INTO `ai_balance_change_record` VALUES (667, '0', '', '2025-12-11 17:43:50', '', '2025-12-11 09:43:50', NULL, 16, 8, -2.00, 99340.00); +INSERT INTO `ai_balance_change_record` VALUES (668, '0', '', '2025-12-11 17:44:01', '', '2025-12-11 09:44:01', NULL, 16, 8, -2.00, 99338.00); +INSERT INTO `ai_balance_change_record` VALUES (669, '0', '', '2025-12-11 17:53:59', '', '2025-12-11 09:53:59', NULL, 14, 8, -2.00, 437.00); +INSERT INTO `ai_balance_change_record` VALUES (670, '0', '', '2025-12-11 17:56:29', '', '2025-12-11 09:56:29', NULL, 14, 8, -2.00, 435.00); +INSERT INTO `ai_balance_change_record` VALUES (671, '0', '', '2025-12-11 17:57:14', '', '2025-12-11 09:57:14', NULL, 14, 8, -2.00, 433.00); +INSERT INTO `ai_balance_change_record` VALUES (672, '0', '', '2025-12-11 17:57:37', '', '2025-12-11 09:57:36', NULL, 14, 8, -2.00, 431.00); +INSERT INTO `ai_balance_change_record` VALUES (673, '0', '', '2025-12-11 20:29:23', '', '2025-12-11 12:29:22', NULL, 16, 8, -2.00, 99336.00); +INSERT INTO `ai_balance_change_record` VALUES (674, '0', '', '2025-12-11 20:32:38', '', '2025-12-11 12:32:38', NULL, 16, 8, -2.00, 99334.00); +INSERT INTO `ai_balance_change_record` VALUES (675, '0', '', '2025-12-11 20:35:14', '', '2025-12-11 12:35:14', NULL, 16, 8, -2.00, 99332.00); +INSERT INTO `ai_balance_change_record` VALUES (676, '0', '', '2025-12-12 10:38:02', '', '2025-12-12 02:38:01', NULL, 16, 8, -2.00, 99330.00); +INSERT INTO `ai_balance_change_record` VALUES (677, '0', '', '2025-12-12 10:50:20', '', '2025-12-12 02:50:19', NULL, 16, 8, -2.00, 99328.00); +INSERT INTO `ai_balance_change_record` VALUES (678, '0', '', '2025-12-12 10:50:58', '', '2025-12-12 02:50:57', NULL, 16, 8, -2.00, 99326.00); +INSERT INTO `ai_balance_change_record` VALUES (679, '0', '', '2025-12-12 10:51:33', '', '2025-12-12 02:51:32', NULL, 16, 8, -2.00, 99324.00); +INSERT INTO `ai_balance_change_record` VALUES (680, '0', '', '2025-12-12 16:09:55', '', '2025-12-12 08:09:55', NULL, 16, 8, -2.00, 99322.00); +INSERT INTO `ai_balance_change_record` VALUES (681, '0', '', '2025-12-12 16:10:30', '', '2025-12-12 08:10:30', NULL, 16, 8, -2.00, 99320.00); +INSERT INTO `ai_balance_change_record` VALUES (682, '0', '', '2025-12-12 16:10:44', '', '2025-12-12 08:10:44', NULL, 16, 8, -2.00, 99318.00); +INSERT INTO `ai_balance_change_record` VALUES (683, '0', '', '2025-12-12 16:11:01', '', '2025-12-12 08:11:00', NULL, 16, 8, -2.00, 99316.00); +INSERT INTO `ai_balance_change_record` VALUES (684, '0', '', '2025-12-12 16:11:13', '', '2025-12-12 08:11:12', NULL, 16, 8, -2.00, 99314.00); +INSERT INTO `ai_balance_change_record` VALUES (685, '0', '', '2025-12-12 16:11:26', '', '2025-12-12 08:11:26', NULL, 16, 8, -2.00, 99312.00); +INSERT INTO `ai_balance_change_record` VALUES (686, '0', '', '2025-12-12 16:12:21', '', '2025-12-12 08:12:21', NULL, 16, 8, -2.00, 99310.00); +INSERT INTO `ai_balance_change_record` VALUES (687, '0', '', '2025-12-12 16:12:41', '', '2025-12-12 08:12:41', NULL, 16, 8, -2.00, 99308.00); +INSERT INTO `ai_balance_change_record` VALUES (688, '0', '', '2025-12-12 16:12:57', '', '2025-12-12 08:12:57', NULL, 16, 8, -2.00, 99306.00); +INSERT INTO `ai_balance_change_record` VALUES (689, '0', '', '2025-12-12 16:13:20', '', '2025-12-12 08:13:19', NULL, 16, 8, -2.00, 99304.00); +INSERT INTO `ai_balance_change_record` VALUES (690, '0', '', '2025-12-12 16:13:38', '', '2025-12-12 08:13:37', NULL, 16, 8, -2.00, 99302.00); +INSERT INTO `ai_balance_change_record` VALUES (691, '0', '', '2025-12-12 16:14:02', '', '2025-12-12 08:14:02', NULL, 16, 8, -2.00, 99300.00); +INSERT INTO `ai_balance_change_record` VALUES (692, '0', '', '2025-12-12 16:14:15', '', '2025-12-12 08:14:15', NULL, 16, 8, -2.00, 99298.00); +INSERT INTO `ai_balance_change_record` VALUES (693, '0', '', '2025-12-12 16:14:34', '', '2025-12-12 08:14:34', NULL, 16, 8, -2.00, 99296.00); +INSERT INTO `ai_balance_change_record` VALUES (694, '0', '', '2025-12-12 16:16:15', '', '2025-12-12 08:16:15', NULL, 16, 8, -2.00, 99294.00); +INSERT INTO `ai_balance_change_record` VALUES (695, '0', '', '2025-12-12 16:16:46', '', '2025-12-12 08:16:45', NULL, 16, 8, -2.00, 99292.00); +INSERT INTO `ai_balance_change_record` VALUES (696, '0', '', '2025-12-12 16:17:10', '', '2025-12-12 08:17:09', NULL, 16, 8, -2.00, 99290.00); +INSERT INTO `ai_balance_change_record` VALUES (697, '0', '', '2025-12-12 16:17:29', '', '2025-12-12 08:17:28', NULL, 16, 8, -2.00, 99288.00); +INSERT INTO `ai_balance_change_record` VALUES (698, '0', '', '2025-12-12 16:20:31', '', '2025-12-12 08:20:30', NULL, 16, 8, -2.00, 99286.00); +INSERT INTO `ai_balance_change_record` VALUES (699, '0', '', '2025-12-12 16:20:45', '', '2025-12-12 08:20:44', NULL, 16, 8, -2.00, 99284.00); +INSERT INTO `ai_balance_change_record` VALUES (700, '0', '', '2025-12-12 16:21:03', '', '2025-12-12 08:21:02', NULL, 16, 8, -2.00, 99282.00); +INSERT INTO `ai_balance_change_record` VALUES (701, '0', '', '2025-12-12 16:21:20', '', '2025-12-12 08:21:20', NULL, 16, 8, -2.00, 99280.00); +INSERT INTO `ai_balance_change_record` VALUES (702, '0', '', '2025-12-12 16:21:35', '', '2025-12-12 08:21:34', NULL, 16, 8, -2.00, 99278.00); +INSERT INTO `ai_balance_change_record` VALUES (703, '0', '', '2025-12-12 16:21:48', '', '2025-12-12 08:21:47', NULL, 16, 8, -2.00, 99276.00); +INSERT INTO `ai_balance_change_record` VALUES (704, '0', '', '2025-12-12 16:22:06', '', '2025-12-12 08:22:05', NULL, 16, 8, -2.00, 99274.00); +INSERT INTO `ai_balance_change_record` VALUES (705, '0', '', '2025-12-12 16:22:17', '', '2025-12-12 08:22:17', NULL, 16, 8, -2.00, 99272.00); +INSERT INTO `ai_balance_change_record` VALUES (706, '0', '', '2025-12-12 16:25:43', '', '2025-12-12 08:25:43', NULL, 16, 8, -2.00, 99270.00); +INSERT INTO `ai_balance_change_record` VALUES (707, '0', '', '2025-12-12 16:28:57', '', '2025-12-12 08:28:57', NULL, 16, 8, -2.00, 99268.00); +INSERT INTO `ai_balance_change_record` VALUES (708, '0', '', '2025-12-12 16:29:18', '', '2025-12-12 08:29:18', NULL, 16, 8, -2.00, 99266.00); +INSERT INTO `ai_balance_change_record` VALUES (709, '0', '', '2025-12-12 16:30:21', '', '2025-12-12 08:30:20', NULL, 16, 8, -2.00, 99264.00); +INSERT INTO `ai_balance_change_record` VALUES (710, '0', '', '2025-12-12 16:30:36', '', '2025-12-12 08:30:35', NULL, 16, 8, -2.00, 99262.00); +INSERT INTO `ai_balance_change_record` VALUES (711, '0', '', '2025-12-12 16:30:49', '', '2025-12-12 08:30:49', NULL, 16, 8, -2.00, 99260.00); +INSERT INTO `ai_balance_change_record` VALUES (712, '0', '', '2025-12-12 16:31:02', '', '2025-12-12 08:31:02', NULL, 16, 8, -2.00, 99258.00); +INSERT INTO `ai_balance_change_record` VALUES (713, '0', '', '2025-12-12 16:31:17', '', '2025-12-12 08:31:17', NULL, 16, 8, -2.00, 99256.00); +INSERT INTO `ai_balance_change_record` VALUES (714, '0', '', '2025-12-12 16:31:31', '', '2025-12-12 08:31:30', NULL, 16, 8, -2.00, 99254.00); +INSERT INTO `ai_balance_change_record` VALUES (715, '0', '', '2025-12-12 16:31:47', '', '2025-12-12 08:31:46', NULL, 16, 8, -2.00, 99252.00); +INSERT INTO `ai_balance_change_record` VALUES (716, '0', '', '2025-12-12 16:31:59', '', '2025-12-12 08:31:58', NULL, 16, 8, -2.00, 99250.00); +INSERT INTO `ai_balance_change_record` VALUES (717, '0', '', '2025-12-12 16:33:00', '', '2025-12-12 08:32:59', NULL, 16, 8, -2.00, 99248.00); +INSERT INTO `ai_balance_change_record` VALUES (718, '0', '', '2025-12-12 16:33:18', '', '2025-12-12 08:33:18', NULL, 16, 8, -2.00, 99246.00); +INSERT INTO `ai_balance_change_record` VALUES (719, '0', '', '2025-12-12 16:34:01', '', '2025-12-12 08:34:01', NULL, 16, 8, -2.00, 99244.00); +INSERT INTO `ai_balance_change_record` VALUES (720, '0', '', '2025-12-12 16:35:11', '', '2025-12-12 08:35:11', NULL, 16, 8, -2.00, 99242.00); +INSERT INTO `ai_balance_change_record` VALUES (721, '0', '', '2025-12-12 16:35:30', '', '2025-12-12 08:35:29', NULL, 16, 8, -2.00, 99240.00); +INSERT INTO `ai_balance_change_record` VALUES (722, '0', '', '2025-12-12 16:36:41', '', '2025-12-12 08:36:41', NULL, 16, 8, -2.00, 99238.00); +INSERT INTO `ai_balance_change_record` VALUES (723, '0', '', '2025-12-12 18:32:19', '', '2025-12-12 10:32:18', NULL, 16, 8, -2.00, 99236.00); +INSERT INTO `ai_balance_change_record` VALUES (724, '0', '', '2025-12-12 18:32:43', '', '2025-12-12 10:32:42', NULL, 16, 8, -2.00, 99234.00); +INSERT INTO `ai_balance_change_record` VALUES (725, '0', '', '2025-12-12 18:33:58', '', '2025-12-12 10:33:57', NULL, 16, 8, -2.00, 99232.00); +INSERT INTO `ai_balance_change_record` VALUES (726, '0', '', '2025-12-12 18:34:33', '', '2025-12-12 10:34:32', NULL, 16, 8, -2.00, 99230.00); +INSERT INTO `ai_balance_change_record` VALUES (727, '0', '', '2025-12-12 18:34:49', '', '2025-12-12 10:34:48', NULL, 16, 8, -2.00, 99228.00); +INSERT INTO `ai_balance_change_record` VALUES (728, '0', '', '2025-12-12 18:36:14', '', '2025-12-12 10:36:14', NULL, 16, 8, -2.00, 99226.00); +INSERT INTO `ai_balance_change_record` VALUES (729, '0', '', '2025-12-12 18:36:35', '', '2025-12-12 10:36:35', NULL, 16, 8, -2.00, 99224.00); +INSERT INTO `ai_balance_change_record` VALUES (730, '0', '', '2025-12-12 18:38:17', '', '2025-12-12 10:38:16', NULL, 16, 8, -2.00, 99222.00); +INSERT INTO `ai_balance_change_record` VALUES (731, '0', '', '2025-12-12 18:38:49', '', '2025-12-12 10:38:49', NULL, 16, 8, -2.00, 99220.00); +INSERT INTO `ai_balance_change_record` VALUES (732, '0', '', '2025-12-12 18:39:04', '', '2025-12-12 10:39:04', NULL, 16, 8, -2.00, 99218.00); +INSERT INTO `ai_balance_change_record` VALUES (733, '0', '', '2025-12-12 18:40:32', '', '2025-12-12 10:40:32', NULL, 16, 8, -2.00, 99216.00); +INSERT INTO `ai_balance_change_record` VALUES (734, '0', '', '2025-12-12 18:40:47', '', '2025-12-12 10:40:47', NULL, 16, 8, -2.00, 99214.00); +INSERT INTO `ai_balance_change_record` VALUES (735, '0', '', '2025-12-12 18:41:54', '', '2025-12-12 10:41:54', NULL, 16, 8, -2.00, 99212.00); +INSERT INTO `ai_balance_change_record` VALUES (736, '0', '', '2025-12-12 18:42:38', '', '2025-12-12 10:42:37', NULL, 16, 8, -2.00, 99210.00); +INSERT INTO `ai_balance_change_record` VALUES (737, '0', '', '2025-12-12 18:42:55', '', '2025-12-12 10:42:54', NULL, 16, 8, -2.00, 99208.00); +INSERT INTO `ai_balance_change_record` VALUES (738, '0', '', '2025-12-12 18:43:22', '', '2025-12-12 10:43:21', NULL, 16, 8, -2.00, 99206.00); +INSERT INTO `ai_balance_change_record` VALUES (739, '0', '', '2025-12-12 18:44:19', '', '2025-12-12 10:44:19', NULL, 16, 8, -2.00, 99204.00); +INSERT INTO `ai_balance_change_record` VALUES (740, '0', '', '2025-12-12 18:44:41', '', '2025-12-12 10:44:41', NULL, 16, 8, -2.00, 99202.00); +INSERT INTO `ai_balance_change_record` VALUES (741, '0', '', '2025-12-12 18:45:02', '', '2025-12-12 10:45:01', NULL, 16, 8, -2.00, 99200.00); +INSERT INTO `ai_balance_change_record` VALUES (742, '0', '', '2025-12-12 18:47:16', '', '2025-12-12 10:47:15', NULL, 16, 8, -2.00, 99198.00); +INSERT INTO `ai_balance_change_record` VALUES (743, '0', '', '2025-12-12 18:47:39', '', '2025-12-12 10:47:39', NULL, 16, 8, -2.00, 99196.00); +INSERT INTO `ai_balance_change_record` VALUES (744, '0', '', '2025-12-12 18:48:03', '', '2025-12-12 10:48:03', NULL, 16, 8, -2.00, 99194.00); +INSERT INTO `ai_balance_change_record` VALUES (745, '0', '', '2025-12-12 18:48:42', '', '2025-12-12 10:48:41', NULL, 16, 8, -2.00, 99192.00); +INSERT INTO `ai_balance_change_record` VALUES (746, '0', '', '2025-12-12 18:49:04', '', '2025-12-12 10:49:04', NULL, 16, 8, -2.00, 99190.00); +INSERT INTO `ai_balance_change_record` VALUES (747, '0', '', '2025-12-12 18:49:27', '', '2025-12-12 10:49:26', NULL, 16, 8, -2.00, 99188.00); +INSERT INTO `ai_balance_change_record` VALUES (748, '0', '', '2025-12-12 18:49:42', '', '2025-12-12 10:49:41', NULL, 16, 8, -2.00, 99186.00); +INSERT INTO `ai_balance_change_record` VALUES (749, '0', '', '2025-12-12 18:52:13', '', '2025-12-12 10:52:13', NULL, 16, 8, -2.00, 99184.00); +INSERT INTO `ai_balance_change_record` VALUES (750, '0', '', '2025-12-12 18:52:29', '', '2025-12-12 10:52:28', NULL, 16, 8, -2.00, 99182.00); +INSERT INTO `ai_balance_change_record` VALUES (751, '0', '', '2025-12-12 18:52:49', '', '2025-12-12 10:52:48', NULL, 16, 8, -2.00, 99180.00); +INSERT INTO `ai_balance_change_record` VALUES (752, '0', '', '2025-12-12 18:53:01', '', '2025-12-12 10:53:00', NULL, 16, 8, -2.00, 99178.00); +INSERT INTO `ai_balance_change_record` VALUES (753, '0', '', '2025-12-12 18:53:34', '', '2025-12-12 10:53:34', NULL, 16, 8, -2.00, 99176.00); +INSERT INTO `ai_balance_change_record` VALUES (754, '0', '', '2025-12-12 18:54:22', '', '2025-12-12 10:54:22', NULL, 16, 8, -2.00, 99174.00); +INSERT INTO `ai_balance_change_record` VALUES (755, '0', '', '2025-12-12 18:54:36', '', '2025-12-12 10:54:36', NULL, 16, 8, -2.00, 99172.00); +INSERT INTO `ai_balance_change_record` VALUES (756, '0', '', '2025-12-12 18:54:49', '', '2025-12-12 10:54:48', NULL, 16, 8, -2.00, 99170.00); +INSERT INTO `ai_balance_change_record` VALUES (757, '0', '', '2025-12-12 18:56:56', '', '2025-12-12 10:56:56', NULL, 16, 8, -2.00, 99168.00); +INSERT INTO `ai_balance_change_record` VALUES (758, '0', '', '2025-12-12 19:13:35', '', '2025-12-12 11:13:35', NULL, 16, 8, -2.00, 99166.00); +INSERT INTO `ai_balance_change_record` VALUES (759, '0', '', '2025-12-12 19:14:01', '', '2025-12-12 11:14:01', NULL, 16, 8, -2.00, 99164.00); +INSERT INTO `ai_balance_change_record` VALUES (760, '0', '', '2025-12-12 19:14:49', '', '2025-12-12 11:14:49', NULL, 16, 8, -2.00, 99162.00); +INSERT INTO `ai_balance_change_record` VALUES (761, '0', '', '2025-12-13 17:37:23', '', '2025-12-13 09:37:23', NULL, 14, 5, -2.00, 429.00); +INSERT INTO `ai_balance_change_record` VALUES (762, '0', '', '2025-12-13 17:37:25', '', '2025-12-13 09:37:24', NULL, 14, 5, -2.00, 427.00); +INSERT INTO `ai_balance_change_record` VALUES (763, '0', '', '2025-12-13 17:37:25', '', '2025-12-13 09:37:25', NULL, 14, 5, -2.00, 425.00); +INSERT INTO `ai_balance_change_record` VALUES (764, '0', '', '2025-12-13 17:37:27', '', '2025-12-13 09:37:26', NULL, 14, 5, -2.00, 423.00); +INSERT INTO `ai_balance_change_record` VALUES (765, '0', '', '2025-12-13 17:37:28', '', '2025-12-13 09:37:27', NULL, 14, 5, -2.00, 421.00); +INSERT INTO `ai_balance_change_record` VALUES (766, '0', '', '2025-12-13 17:37:28', '', '2025-12-13 09:37:28', NULL, 14, 5, -2.00, 419.00); +INSERT INTO `ai_balance_change_record` VALUES (767, '0', '', '2025-12-13 17:37:29', '', '2025-12-13 09:37:29', NULL, 14, 5, -2.00, 417.00); +INSERT INTO `ai_balance_change_record` VALUES (768, '0', '', '2025-12-13 17:38:18', '', '2025-12-13 09:38:18', NULL, 14, 5, -2.00, 415.00); +INSERT INTO `ai_balance_change_record` VALUES (769, '0', '', '2025-12-13 17:38:29', '', '2025-12-13 09:38:28', NULL, 14, 5, -2.00, 413.00); +INSERT INTO `ai_balance_change_record` VALUES (770, '0', '', '2025-12-13 17:38:30', '', '2025-12-13 09:38:29', NULL, 14, 5, -2.00, 411.00); +INSERT INTO `ai_balance_change_record` VALUES (771, '0', '', '2025-12-13 17:38:31', '', '2025-12-13 09:38:30', NULL, 14, 5, -2.00, 409.00); +INSERT INTO `ai_balance_change_record` VALUES (772, '0', '', '2025-12-13 17:38:32', '', '2025-12-13 09:38:31', NULL, 14, 5, -2.00, 407.00); +INSERT INTO `ai_balance_change_record` VALUES (773, '0', '', '2025-12-13 17:38:33', '', '2025-12-13 09:38:32', NULL, 14, 5, -2.00, 405.00); +INSERT INTO `ai_balance_change_record` VALUES (774, '0', '', '2025-12-13 17:39:17', '', '2025-12-13 09:39:16', NULL, 14, 8, -2.00, 403.00); +INSERT INTO `ai_balance_change_record` VALUES (775, '0', '', '2025-12-13 17:39:45', '', '2025-12-13 09:39:45', NULL, 14, 8, -2.00, 401.00); +INSERT INTO `ai_balance_change_record` VALUES (776, '0', '', '2025-12-13 17:40:51', '', '2025-12-13 09:40:51', NULL, 14, 8, -2.00, 399.00); +INSERT INTO `ai_balance_change_record` VALUES (777, '0', '', '2025-12-14 01:35:44', '', '2025-12-13 17:35:44', NULL, 31, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (778, '0', '', '2025-12-14 01:58:22', '', '2025-12-13 17:58:22', NULL, 32, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (779, '0', '', '2025-12-14 02:35:44', '', '2025-12-13 18:35:44', NULL, 31, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (780, '0', '', '2025-12-14 02:58:22', '', '2025-12-13 18:58:22', NULL, 32, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (781, '0', '', '2025-12-14 10:22:49', '', '2025-12-14 02:22:49', NULL, 33, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (782, '0', '', '2025-12-14 10:23:11', '', '2025-12-14 02:23:10', NULL, 33, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (783, '0', '', '2025-12-14 10:23:15', '', '2025-12-14 02:23:15', NULL, 33, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (784, '0', '', '2025-12-14 10:23:46', '', '2025-12-14 02:23:45', NULL, 33, 5, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (785, '0', '', '2025-12-14 10:23:53', '', '2025-12-14 02:23:52', NULL, 33, 5, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (786, '0', '', '2025-12-14 10:23:54', '', '2025-12-14 02:23:54', NULL, 33, 5, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (787, '0', '', '2025-12-14 11:22:49', '', '2025-12-14 03:22:49', NULL, 33, 4, 0.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (788, '0', '', '2025-12-14 14:52:58', '', '2025-12-14 06:52:57', NULL, 34, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (789, '0', '', '2025-12-14 14:54:32', '', '2025-12-14 06:54:31', NULL, 34, 5, -2.00, 8.00); +INSERT INTO `ai_balance_change_record` VALUES (790, '0', '', '2025-12-14 14:54:36', '', '2025-12-14 06:54:36', NULL, 34, 5, -2.00, 6.00); +INSERT INTO `ai_balance_change_record` VALUES (791, '0', '', '2025-12-14 14:55:39', '', '2025-12-14 06:55:38', NULL, 34, 6, -2.00, 4.00); +INSERT INTO `ai_balance_change_record` VALUES (792, '0', '', '2025-12-14 14:57:02', '', '2025-12-14 06:57:02', NULL, 34, 6, -2.00, 2.00); +INSERT INTO `ai_balance_change_record` VALUES (793, '0', '', '2025-12-14 15:00:44', '', '2025-12-14 07:00:43', NULL, 34, 6, -2.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (794, '0', '', '2025-12-14 15:52:57', '', '2025-12-14 07:52:57', NULL, 34, 4, 0.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (795, '0', '', '2025-12-15 12:08:24', '', '2025-12-15 04:08:23', NULL, 16, 8, -2.00, 99160.00); +INSERT INTO `ai_balance_change_record` VALUES (796, '0', '', '2025-12-15 12:46:09', '', '2025-12-15 04:46:08', NULL, 16, 8, -2.00, 99158.00); +INSERT INTO `ai_balance_change_record` VALUES (797, '0', '', '2025-12-15 18:05:01', '', '2025-12-15 10:05:00', NULL, 35, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (798, '0', '', '2025-12-15 18:07:56', '', '2025-12-15 10:07:56', NULL, 36, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (799, '0', '', '2025-12-15 19:05:00', '', '2025-12-15 11:05:00', NULL, 35, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (800, '0', '', '2025-12-15 19:07:56', '', '2025-12-15 11:07:56', NULL, 36, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (801, '0', '', '2025-12-15 19:40:25', '', '2025-12-15 11:40:25', NULL, 16, 0, 100.00, 99258.00); +INSERT INTO `ai_balance_change_record` VALUES (802, '0', '', '2025-12-16 14:07:46', '', '2025-12-16 06:07:46', NULL, 37, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (803, '0', '', '2025-12-16 15:07:46', '', '2025-12-16 07:07:46', NULL, 37, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (804, '0', '', '2025-12-16 16:54:27', '', '2025-12-16 08:54:27', NULL, 14, 8, -2.00, 397.00); +INSERT INTO `ai_balance_change_record` VALUES (805, '0', '', '2025-12-16 16:54:30', '', '2025-12-16 08:54:29', NULL, 14, 8, -2.00, 395.00); +INSERT INTO `ai_balance_change_record` VALUES (806, '0', '', '2025-12-16 16:54:31', '', '2025-12-16 08:54:31', NULL, 14, 8, -2.00, 393.00); +INSERT INTO `ai_balance_change_record` VALUES (807, '0', '', '2025-12-16 16:54:34', '', '2025-12-16 08:54:33', NULL, 14, 8, -2.00, 391.00); +INSERT INTO `ai_balance_change_record` VALUES (808, '0', '', '2025-12-16 16:54:36', '', '2025-12-16 08:54:35', NULL, 14, 8, -2.00, 389.00); +INSERT INTO `ai_balance_change_record` VALUES (809, '0', '', '2025-12-16 16:54:38', '', '2025-12-16 08:54:37', NULL, 14, 8, -2.00, 387.00); +INSERT INTO `ai_balance_change_record` VALUES (810, '0', '', '2025-12-16 16:54:39', '', '2025-12-16 08:54:39', NULL, 14, 8, -2.00, 385.00); +INSERT INTO `ai_balance_change_record` VALUES (811, '0', '', '2025-12-16 16:55:53', '', '2025-12-16 08:55:53', NULL, 14, 8, -2.00, 383.00); +INSERT INTO `ai_balance_change_record` VALUES (812, '0', '', '2025-12-16 22:43:29', '', '2025-12-16 14:43:28', NULL, 16, 0, 10.00, 99268.00); +INSERT INTO `ai_balance_change_record` VALUES (813, '0', '', '2025-12-17 13:43:25', '', '2025-12-17 05:43:24', NULL, 36, 11, 100000.00, 100000.00); +INSERT INTO `ai_balance_change_record` VALUES (814, '0', '', '2025-12-17 13:43:33', '', '2025-12-17 05:43:32', NULL, 36, 5, -2.00, 99998.00); +INSERT INTO `ai_balance_change_record` VALUES (815, '0', '', '2025-12-17 13:43:38', '', '2025-12-17 05:43:38', NULL, 36, 5, -2.00, 99996.00); +INSERT INTO `ai_balance_change_record` VALUES (816, '0', '', '2025-12-17 13:44:03', '', '2025-12-17 05:44:03', NULL, 36, 5, -2.00, 99996.00); +INSERT INTO `ai_balance_change_record` VALUES (817, '0', '', '2025-12-17 13:45:22', '', '2025-12-17 05:45:21', NULL, 36, 5, -2.00, 99994.00); +INSERT INTO `ai_balance_change_record` VALUES (818, '0', '', '2025-12-17 13:46:00', '', '2025-12-17 05:45:59', NULL, 36, 5, -2.00, 99992.00); +INSERT INTO `ai_balance_change_record` VALUES (819, '0', '', '2025-12-17 13:48:06', '', '2025-12-17 05:48:06', NULL, 36, 5, -2.00, 99990.00); +INSERT INTO `ai_balance_change_record` VALUES (820, '0', '', '2025-12-17 13:48:33', '', '2025-12-17 05:48:33', NULL, 36, 5, -2.00, 99988.00); +INSERT INTO `ai_balance_change_record` VALUES (821, '0', '', '2025-12-17 13:48:56', '', '2025-12-17 05:48:56', NULL, 36, 5, -2.00, 99986.00); +INSERT INTO `ai_balance_change_record` VALUES (822, '0', '', '2025-12-17 13:50:14', '', '2025-12-17 05:50:14', NULL, 36, 5, -2.00, 99984.00); +INSERT INTO `ai_balance_change_record` VALUES (823, '0', '', '2025-12-17 13:53:19', '', '2025-12-17 05:53:18', NULL, 36, 5, -2.00, 99982.00); +INSERT INTO `ai_balance_change_record` VALUES (824, '0', '', '2025-12-17 13:53:45', '', '2025-12-17 05:53:45', NULL, 36, 5, -2.00, 99980.00); +INSERT INTO `ai_balance_change_record` VALUES (825, '0', '', '2025-12-17 15:30:18', '', '2025-12-17 07:30:18', NULL, 16, 0, 110.00, 99378.00); +INSERT INTO `ai_balance_change_record` VALUES (826, '0', '', '2025-12-17 15:30:19', '', '2025-12-17 07:30:18', NULL, 16, 2, 10.00, 99388.00); +INSERT INTO `ai_balance_change_record` VALUES (827, '0', '', '2025-12-17 15:44:02', '', '2025-12-17 07:44:01', NULL, 16, 0, 110.00, 99498.00); +INSERT INTO `ai_balance_change_record` VALUES (828, '0', '', '2025-12-17 15:44:02', '', '2025-12-17 07:44:01', NULL, 16, 2, 10.00, 99508.00); +INSERT INTO `ai_balance_change_record` VALUES (829, '0', '', '2025-12-17 20:06:56', '', '2025-12-17 12:06:56', NULL, 36, 0, 100.00, 100080.00); +INSERT INTO `ai_balance_change_record` VALUES (830, '0', '', '2025-12-17 20:06:56', '', '2025-12-17 12:06:56', NULL, 35, 1, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (831, '0', '', '2025-12-17 20:09:28', '', '2025-12-17 12:09:28', NULL, 36, 0, 110.00, 100190.00); +INSERT INTO `ai_balance_change_record` VALUES (832, '0', '', '2025-12-17 20:09:28', '', '2025-12-17 12:09:28', NULL, 35, 1, 10.00, 20.00); +INSERT INTO `ai_balance_change_record` VALUES (833, '0', '', '2025-12-17 20:09:28', '', '2025-12-17 12:09:28', NULL, 36, 2, 10.00, 100200.00); +INSERT INTO `ai_balance_change_record` VALUES (834, '0', '', '2025-12-17 20:10:10', '', '2025-12-17 12:10:09', NULL, 36, 0, 110.00, 100310.00); +INSERT INTO `ai_balance_change_record` VALUES (835, '0', '', '2025-12-17 20:10:10', '', '2025-12-17 12:10:09', NULL, 35, 1, 10.00, 30.00); +INSERT INTO `ai_balance_change_record` VALUES (836, '0', '', '2025-12-17 20:10:10', '', '2025-12-17 12:10:09', NULL, 36, 2, 10.00, 100320.00); +INSERT INTO `ai_balance_change_record` VALUES (837, '0', '', '2025-12-17 20:10:50', '', '2025-12-17 12:10:49', NULL, 36, 0, 110.00, 100430.00); +INSERT INTO `ai_balance_change_record` VALUES (838, '0', '', '2025-12-17 20:10:50', '', '2025-12-17 12:10:49', NULL, 35, 1, 10.00, 40.00); +INSERT INTO `ai_balance_change_record` VALUES (839, '0', '', '2025-12-17 20:10:50', '', '2025-12-17 12:10:49', NULL, 36, 2, 10.00, 100440.00); +INSERT INTO `ai_balance_change_record` VALUES (840, '0', '', '2025-12-17 20:13:13', '', '2025-12-17 12:13:12', NULL, 36, 0, 100.00, 100540.00); +INSERT INTO `ai_balance_change_record` VALUES (841, '0', '', '2025-12-17 20:13:13', '', '2025-12-17 12:13:12', NULL, 35, 1, 10.00, 50.00); +INSERT INTO `ai_balance_change_record` VALUES (842, '0', '', '2025-12-18 00:58:09', '', '2025-12-17 16:58:09', NULL, 16, 5, -2.00, 99506.00); +INSERT INTO `ai_balance_change_record` VALUES (843, '0', '', '2025-12-18 10:30:29', '', '2025-12-18 02:30:29', NULL, 14, 5, -2.00, 381.00); +INSERT INTO `ai_balance_change_record` VALUES (844, '0', '', '2025-12-18 10:32:02', '', '2025-12-18 02:32:02', NULL, 14, 6, -2.00, 379.00); +INSERT INTO `ai_balance_change_record` VALUES (845, '0', '', '2025-12-18 10:32:06', '', '2025-12-18 02:32:05', NULL, 14, 6, -2.00, 377.00); +INSERT INTO `ai_balance_change_record` VALUES (846, '0', '', '2025-12-18 10:32:07', '', '2025-12-18 02:32:06', NULL, 14, 6, -2.00, 375.00); +INSERT INTO `ai_balance_change_record` VALUES (847, '0', '', '2025-12-18 10:32:08', '', '2025-12-18 02:32:07', NULL, 14, 6, -2.00, 373.00); +INSERT INTO `ai_balance_change_record` VALUES (848, '0', '', '2025-12-18 10:32:09', '', '2025-12-18 02:32:08', NULL, 14, 6, -2.00, 371.00); +INSERT INTO `ai_balance_change_record` VALUES (849, '0', '', '2025-12-18 10:32:39', '', '2025-12-18 02:32:38', NULL, 14, 6, -2.00, 369.00); +INSERT INTO `ai_balance_change_record` VALUES (850, '0', '', '2025-12-18 10:37:43', '', '2025-12-18 02:37:42', NULL, 14, 6, -2.00, 367.00); +INSERT INTO `ai_balance_change_record` VALUES (851, '0', '', '2025-12-18 14:13:58', '', '2025-12-18 06:13:58', NULL, 36, 0, 110.00, 100650.00); +INSERT INTO `ai_balance_change_record` VALUES (852, '0', '', '2025-12-18 14:13:58', '', '2025-12-18 06:13:58', NULL, 35, 1, 10.00, 60.00); +INSERT INTO `ai_balance_change_record` VALUES (853, '0', '', '2025-12-18 14:14:50', '', '2025-12-18 06:14:49', NULL, 36, 0, 110.00, 100760.00); +INSERT INTO `ai_balance_change_record` VALUES (854, '0', '', '2025-12-18 14:14:50', '', '2025-12-18 06:14:49', NULL, 35, 1, 10.00, 70.00); +INSERT INTO `ai_balance_change_record` VALUES (855, '0', '', '2025-12-18 14:14:50', '', '2025-12-18 06:14:49', NULL, 36, 2, 10.00, 100770.00); +INSERT INTO `ai_balance_change_record` VALUES (856, '0', '', '2025-12-18 14:15:20', '', '2025-12-18 06:15:20', NULL, 36, 11, -770.00, 100000.00); +INSERT INTO `ai_balance_change_record` VALUES (857, '0', '', '2025-12-18 14:15:35', '', '2025-12-18 06:15:35', NULL, 36, 11, 110.00, 100110.00); +INSERT INTO `ai_balance_change_record` VALUES (858, '0', '', '2025-12-18 14:18:15', '', '2025-12-18 06:18:14', NULL, 36, 0, 110.00, 100220.00); +INSERT INTO `ai_balance_change_record` VALUES (859, '0', '', '2025-12-18 14:18:15', '', '2025-12-18 06:18:14', NULL, 35, 1, 10.00, 80.00); +INSERT INTO `ai_balance_change_record` VALUES (860, '0', '', '2025-12-18 14:18:15', '', '2025-12-18 06:18:14', NULL, 36, 2, 10.00, 100230.00); +INSERT INTO `ai_balance_change_record` VALUES (861, '0', '', '2025-12-18 14:19:53', '', '2025-12-18 06:19:53', NULL, 36, 0, 110.00, 100340.00); +INSERT INTO `ai_balance_change_record` VALUES (862, '0', '', '2025-12-18 14:19:53', '', '2025-12-18 06:19:53', NULL, 35, 1, 10.00, 90.00); +INSERT INTO `ai_balance_change_record` VALUES (863, '0', '', '2025-12-18 14:19:53', '', '2025-12-18 06:19:53', NULL, 36, 2, 10.00, 100350.00); +INSERT INTO `ai_balance_change_record` VALUES (864, '0', '', '2025-12-18 14:21:35', '', '2025-12-18 06:21:35', NULL, 36, 5, -2.00, 100348.00); +INSERT INTO `ai_balance_change_record` VALUES (865, '0', '', '2025-12-18 14:21:55', '', '2025-12-18 06:21:54', NULL, 36, 5, -2.00, 100346.00); +INSERT INTO `ai_balance_change_record` VALUES (866, '0', '', '2025-12-18 14:22:14', '', '2025-12-18 06:22:14', NULL, 36, 5, -2.00, 100344.00); +INSERT INTO `ai_balance_change_record` VALUES (868, '0', '', '2025-12-18 14:26:44', '', '2025-12-18 06:26:43', NULL, 36, 5, -2.00, 100342.00); +INSERT INTO `ai_balance_change_record` VALUES (869, '0', '', '2025-12-18 14:27:07', '', '2025-12-18 06:27:07', NULL, 36, 5, -2.00, 100340.00); +INSERT INTO `ai_balance_change_record` VALUES (870, '0', '', '2025-12-18 14:27:37', '', '2025-12-18 06:27:36', NULL, 36, 5, -2.00, 100338.00); +INSERT INTO `ai_balance_change_record` VALUES (871, '0', '', '2025-12-18 14:27:54', '', '2025-12-18 06:27:54', NULL, 36, 5, -2.00, 100336.00); +INSERT INTO `ai_balance_change_record` VALUES (872, '0', '', '2025-12-18 14:28:16', '', '2025-12-18 06:28:16', NULL, 36, 5, -2.00, 100334.00); +INSERT INTO `ai_balance_change_record` VALUES (873, '0', '', '2025-12-18 14:28:38', '', '2025-12-18 06:28:37', NULL, 36, 5, -2.00, 100332.00); +INSERT INTO `ai_balance_change_record` VALUES (875, '0', '', '2025-12-18 14:29:25', '', '2025-12-18 06:29:25', NULL, 36, 5, -2.00, 100330.00); +INSERT INTO `ai_balance_change_record` VALUES (876, '0', '', '2025-12-18 14:29:50', '', '2025-12-18 06:29:50', NULL, 36, 5, -2.00, 100328.00); +INSERT INTO `ai_balance_change_record` VALUES (878, '0', '', '2025-12-18 14:34:07', '', '2025-12-18 06:34:06', NULL, 36, 6, -2.00, 100326.00); +INSERT INTO `ai_balance_change_record` VALUES (881, '0', '', '2025-12-18 16:19:37', '', '2025-12-18 08:19:36', NULL, 14, 8, -2.00, 365.00); +INSERT INTO `ai_balance_change_record` VALUES (882, '0', '', '2025-12-18 16:19:38', '', '2025-12-18 08:19:38', NULL, 14, 8, -2.00, 363.00); +INSERT INTO `ai_balance_change_record` VALUES (883, '0', '', '2025-12-18 16:19:45', '', '2025-12-18 08:19:45', NULL, 14, 8, -2.00, 361.00); +INSERT INTO `ai_balance_change_record` VALUES (884, '0', '', '2025-12-18 16:19:48', '', '2025-12-18 08:19:48', NULL, 14, 8, -2.00, 359.00); +INSERT INTO `ai_balance_change_record` VALUES (885, '0', '', '2025-12-18 16:19:53', '', '2025-12-18 08:19:53', NULL, 14, 8, -2.00, 357.00); +INSERT INTO `ai_balance_change_record` VALUES (886, '0', '', '2025-12-18 16:19:59', '', '2025-12-18 08:19:58', NULL, 14, 8, -2.00, 355.00); +INSERT INTO `ai_balance_change_record` VALUES (887, '0', '', '2025-12-18 16:20:00', '', '2025-12-18 08:19:59', NULL, 14, 8, -2.00, 353.00); +INSERT INTO `ai_balance_change_record` VALUES (888, '0', '', '2025-12-18 16:20:02', '', '2025-12-18 08:20:01', NULL, 14, 8, -2.00, 351.00); +INSERT INTO `ai_balance_change_record` VALUES (889, '0', '', '2025-12-18 16:23:42', '', '2025-12-18 08:23:42', NULL, 14, 7, -2.00, 349.00); +INSERT INTO `ai_balance_change_record` VALUES (890, '0', '', '2025-12-18 16:23:44', '', '2025-12-18 08:23:44', NULL, 14, 7, -2.00, 347.00); +INSERT INTO `ai_balance_change_record` VALUES (891, '0', '', '2025-12-18 16:29:18', '', '2025-12-18 08:29:18', NULL, 14, 7, -2.00, 345.00); +INSERT INTO `ai_balance_change_record` VALUES (892, '0', '', '2025-12-18 16:29:20', '', '2025-12-18 08:29:20', NULL, 14, 7, -2.00, 343.00); +INSERT INTO `ai_balance_change_record` VALUES (893, '0', '', '2025-12-18 16:29:22', '', '2025-12-18 08:29:22', NULL, 14, 7, -2.00, 341.00); +INSERT INTO `ai_balance_change_record` VALUES (895, '0', '', '2025-12-18 17:39:00', '', '2025-12-18 09:39:00', NULL, 14, 7, -2.00, 339.00); +INSERT INTO `ai_balance_change_record` VALUES (896, '0', '', '2025-12-18 18:14:36', '', '2025-12-18 10:14:36', NULL, 14, 9, -6.00, 333.00); +INSERT INTO `ai_balance_change_record` VALUES (897, '0', '', '2025-12-18 19:09:59', '', '2025-12-18 11:09:59', NULL, 16, 8, -2.00, 99504.00); +INSERT INTO `ai_balance_change_record` VALUES (898, '0', '', '2025-12-18 19:10:52', '', '2025-12-18 11:10:51', NULL, 16, 5, -2.00, 99502.00); +INSERT INTO `ai_balance_change_record` VALUES (899, '0', '', '2025-12-18 19:24:42', '', '2025-12-18 11:24:42', NULL, 16, 5, -2.00, 99500.00); +INSERT INTO `ai_balance_change_record` VALUES (900, '0', '', '2025-12-18 20:02:29', '', '2025-12-18 20:02:28', NULL, 16, 5, -2.00, 99498.00); +INSERT INTO `ai_balance_change_record` VALUES (901, '0', '', '2025-12-18 20:11:04', '', '2025-12-18 20:11:03', NULL, 16, 5, -2.00, 99496.00); +INSERT INTO `ai_balance_change_record` VALUES (902, '0', '', '2025-12-19 07:27:27', '', '2025-12-19 07:27:27', NULL, 16, 8, -8.00, 99488.00); +INSERT INTO `ai_balance_change_record` VALUES (903, '0', '', '2025-12-19 15:09:59', '', '2025-12-19 15:09:58', NULL, 14, 8, -8.00, 325.00); +INSERT INTO `ai_balance_change_record` VALUES (904, '0', '', '2025-12-19 15:10:40', '', '2025-12-19 15:10:39', NULL, 14, 8, -8.00, 317.00); +INSERT INTO `ai_balance_change_record` VALUES (905, '0', '', '2025-12-19 15:11:21', '', '2025-12-19 15:11:21', NULL, 14, 8, -8.00, 309.00); +INSERT INTO `ai_balance_change_record` VALUES (906, '0', '', '2025-12-19 17:27:51', '', '2025-12-19 17:27:51', NULL, 36, 0, 110.00, 100436.00); +INSERT INTO `ai_balance_change_record` VALUES (907, '0', '', '2025-12-19 17:27:51', '', '2025-12-19 17:27:51', NULL, 35, 1, 10.00, 100.00); +INSERT INTO `ai_balance_change_record` VALUES (908, '0', '', '2025-12-19 17:30:24', '', '2025-12-19 17:30:23', NULL, 36, 0, 110.00, 100546.00); +INSERT INTO `ai_balance_change_record` VALUES (909, '0', '', '2025-12-19 17:30:24', '', '2025-12-19 17:30:23', NULL, 35, 1, 10.00, 110.00); +INSERT INTO `ai_balance_change_record` VALUES (910, '0', '', '2025-12-19 17:30:24', '', '2025-12-19 17:30:23', NULL, 36, 2, 5.00, 100551.00); +INSERT INTO `ai_balance_change_record` VALUES (911, '0', '', '2025-12-19 17:31:09', '', '2025-12-19 17:31:08', NULL, 36, 0, 110.00, 100661.00); +INSERT INTO `ai_balance_change_record` VALUES (912, '0', '', '2025-12-19 17:31:09', '', '2025-12-19 17:31:08', NULL, 35, 1, 10.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (913, '0', '', '2025-12-19 17:33:27', '', '2025-12-19 17:33:26', NULL, 36, 5, -10.00, 100651.00); +INSERT INTO `ai_balance_change_record` VALUES (914, '0', '', '2025-12-19 17:35:27', '', '2025-12-19 17:35:26', NULL, 36, 5, -10.00, 100641.00); +INSERT INTO `ai_balance_change_record` VALUES (917, '0', '', '2025-12-19 17:46:58', '', '2025-12-19 17:46:58', NULL, 36, 5, -10.00, 100631.00); +INSERT INTO `ai_balance_change_record` VALUES (918, '0', '', '2025-12-19 17:47:45', '', '2025-12-19 17:47:44', NULL, 36, 5, -10.00, 100621.00); +INSERT INTO `ai_balance_change_record` VALUES (919, '0', '', '2025-12-19 18:07:29', '', '2025-12-19 18:07:29', NULL, 36, 5, -10.00, 100611.00); +INSERT INTO `ai_balance_change_record` VALUES (920, '0', '', '2025-12-19 18:09:42', '', '2025-12-19 18:09:41', NULL, 36, 5, -10.00, 100601.00); +INSERT INTO `ai_balance_change_record` VALUES (923, '0', '', '2025-12-19 18:12:37', '', '2025-12-19 18:12:37', NULL, 36, 5, -10.00, 100591.00); +INSERT INTO `ai_balance_change_record` VALUES (926, '0', '', '2025-12-19 18:15:52', '', '2025-12-19 18:15:51', NULL, 36, 5, -10.00, 100581.00); +INSERT INTO `ai_balance_change_record` VALUES (927, '0', '', '2025-12-19 21:26:06', '', '2025-12-19 21:26:06', NULL, 36, 8, -8.00, 100573.00); +INSERT INTO `ai_balance_change_record` VALUES (928, '0', '', '2025-12-19 21:28:18', '', '2025-12-19 21:28:18', NULL, 36, 8, -8.00, 100565.00); +INSERT INTO `ai_balance_change_record` VALUES (931, '0', '', '2025-12-19 21:28:32', '', '2025-12-19 21:28:31', NULL, 36, 5, -10.00, 100555.00); +INSERT INTO `ai_balance_change_record` VALUES (932, '0', '', '2025-12-19 21:53:01', '', '2025-12-19 21:53:01', NULL, 36, 5, -10.00, 100545.00); +INSERT INTO `ai_balance_change_record` VALUES (933, '0', '', '2025-12-19 21:57:18', '', '2025-12-19 21:57:18', NULL, 36, 5, -10.00, 100535.00); +INSERT INTO `ai_balance_change_record` VALUES (934, '0', '', '2025-12-19 21:58:54', '', '2025-12-19 21:58:53', NULL, 36, 5, -10.00, 100525.00); +INSERT INTO `ai_balance_change_record` VALUES (935, '0', '', '2025-12-19 22:04:18', '', '2025-12-19 22:04:18', NULL, 38, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (936, '0', '', '2025-12-19 23:04:18', '', '2025-12-19 23:04:18', NULL, 38, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (937, '0', '', '2025-12-21 11:24:55', '', '2025-12-21 11:24:55', NULL, 14, 8, -8.00, 301.00); +INSERT INTO `ai_balance_change_record` VALUES (938, '0', '', '2025-12-22 10:05:45', '', '2025-12-22 10:05:45', NULL, 36, 5, -10.00, 100515.00); +INSERT INTO `ai_balance_change_record` VALUES (939, '0', '', '2025-12-22 10:07:55', '', '2025-12-22 10:07:55', NULL, 36, 5, -10.00, 100505.00); +INSERT INTO `ai_balance_change_record` VALUES (940, '0', '', '2025-12-22 10:09:47', '', '2025-12-22 10:09:46', NULL, 36, 0, 110.00, 100615.00); +INSERT INTO `ai_balance_change_record` VALUES (941, '0', '', '2025-12-22 10:09:47', '', '2025-12-22 10:09:46', NULL, 35, 1, 10.00, 130.00); +INSERT INTO `ai_balance_change_record` VALUES (942, '0', '', '2025-12-22 10:30:32', '', '2025-12-22 10:30:31', NULL, 16, 8, -8.00, 99480.00); +INSERT INTO `ai_balance_change_record` VALUES (943, '0', '', '2025-12-22 10:31:39', '', '2025-12-22 10:31:39', NULL, 16, 5, -10.00, 99470.00); +INSERT INTO `ai_balance_change_record` VALUES (944, '0', '', '2025-12-22 10:32:20', '', '2025-12-22 10:32:20', NULL, 16, 5, -10.00, 99460.00); +INSERT INTO `ai_balance_change_record` VALUES (945, '0', '', '2025-12-22 10:33:00', '', '2025-12-22 10:33:00', NULL, 16, 5, -10.00, 99450.00); +INSERT INTO `ai_balance_change_record` VALUES (946, '0', '', '2025-12-22 10:34:06', '', '2025-12-22 10:34:05', NULL, 16, 6, -10.00, 99440.00); +INSERT INTO `ai_balance_change_record` VALUES (947, '0', '', '2025-12-22 10:34:51', '', '2025-12-22 10:34:50', NULL, 16, 5, -10.00, 99430.00); +INSERT INTO `ai_balance_change_record` VALUES (948, '0', '', '2025-12-22 10:37:53', '', '2025-12-22 10:37:52', NULL, 16, 5, -10.00, 99420.00); +INSERT INTO `ai_balance_change_record` VALUES (949, '0', '', '2025-12-22 10:38:56', '', '2025-12-22 10:38:56', NULL, 16, 5, -10.00, 99410.00); +INSERT INTO `ai_balance_change_record` VALUES (950, '0', '', '2025-12-22 10:44:26', '', '2025-12-22 10:44:26', NULL, 35, 5, -10.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (963, '0', '', '2025-12-22 13:13:46', '', '2025-12-22 13:13:46', NULL, 16, 5, -10.00, 99400.00); +INSERT INTO `ai_balance_change_record` VALUES (966, '0', '', '2025-12-22 15:28:01', '', '2025-12-22 15:28:01', NULL, 36, 7, -10.00, 100605.00); +INSERT INTO `ai_balance_change_record` VALUES (967, '0', '', '2025-12-22 15:33:45', '', '2025-12-22 15:33:44', NULL, 36, 7, -10.00, 100595.00); +INSERT INTO `ai_balance_change_record` VALUES (968, '0', '', '2025-12-22 15:33:47', '', '2025-12-22 15:33:46', NULL, 36, 7, -10.00, 100585.00); +INSERT INTO `ai_balance_change_record` VALUES (969, '0', '', '2025-12-22 15:33:48', '', '2025-12-22 15:33:48', NULL, 36, 7, -10.00, 100575.00); +INSERT INTO `ai_balance_change_record` VALUES (970, '0', '', '2025-12-22 15:33:49', '', '2025-12-22 15:33:49', NULL, 36, 7, -10.00, 100565.00); +INSERT INTO `ai_balance_change_record` VALUES (971, '0', '', '2025-12-22 15:34:00', '', '2025-12-22 15:33:59', NULL, 36, 7, -10.00, 100555.00); +INSERT INTO `ai_balance_change_record` VALUES (972, '0', '', '2025-12-22 15:34:19', '', '2025-12-22 15:34:18', NULL, 36, 7, -10.00, 100545.00); +INSERT INTO `ai_balance_change_record` VALUES (973, '0', '', '2025-12-22 15:34:24', '', '2025-12-22 15:34:23', NULL, 36, 7, -10.00, 100535.00); +INSERT INTO `ai_balance_change_record` VALUES (974, '0', '', '2025-12-22 15:36:27', '', '2025-12-22 15:36:27', NULL, 36, 7, -10.00, 100525.00); +INSERT INTO `ai_balance_change_record` VALUES (975, '0', '', '2025-12-22 15:36:36', '', '2025-12-22 15:36:36', NULL, 36, 7, -10.00, 100515.00); +INSERT INTO `ai_balance_change_record` VALUES (976, '0', '', '2025-12-22 15:38:03', '', '2025-12-22 15:38:02', NULL, 36, 8, -8.00, 100507.00); +INSERT INTO `ai_balance_change_record` VALUES (977, '0', '', '2025-12-22 15:38:30', '', '2025-12-22 15:38:29', NULL, 36, 9, -35.00, 100472.00); +INSERT INTO `ai_balance_change_record` VALUES (978, '0', '', '2025-12-22 16:11:34', '', '2025-12-22 16:11:33', NULL, 35, 0, 110.00, 230.00); +INSERT INTO `ai_balance_change_record` VALUES (979, '0', '', '2025-12-22 16:11:34', '', '2025-12-22 16:11:33', NULL, 30, 1, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (980, '0', '', '2025-12-22 16:11:34', '', '2025-12-22 16:11:33', NULL, 35, 2, 5.00, 235.00); +INSERT INTO `ai_balance_change_record` VALUES (981, '0', '', '2025-12-22 16:11:50', '', '2025-12-22 16:11:49', NULL, 35, 0, 110.00, 345.00); +INSERT INTO `ai_balance_change_record` VALUES (982, '0', '', '2025-12-22 16:11:50', '', '2025-12-22 16:11:49', NULL, 30, 1, 10.00, 20.00); +INSERT INTO `ai_balance_change_record` VALUES (983, '0', '', '2025-12-22 16:11:50', '', '2025-12-22 16:11:49', NULL, 35, 2, 5.00, 350.00); +INSERT INTO `ai_balance_change_record` VALUES (988, '0', '', '2025-12-23 09:02:58', '', '2025-12-23 09:02:57', NULL, 35, 7, -10.00, 340.00); +INSERT INTO `ai_balance_change_record` VALUES (989, '0', '', '2025-12-23 09:05:05', '', '2025-12-23 09:05:04', NULL, 36, 0, 110.00, 100582.00); +INSERT INTO `ai_balance_change_record` VALUES (990, '0', '', '2025-12-23 09:05:05', '', '2025-12-23 09:05:04', NULL, 35, 1, 1.00, 341.00); +INSERT INTO `ai_balance_change_record` VALUES (991, '0', '', '2025-12-23 14:17:04', '', '2025-12-23 14:17:04', NULL, 36, 8, -8.00, 100574.00); +INSERT INTO `ai_balance_change_record` VALUES (992, '0', '', '2025-12-23 14:17:17', '', '2025-12-23 14:17:16', 'Order number 202512239a67580b generation failed, please try again later.', 36, 10, 8.00, 100582.00); +INSERT INTO `ai_balance_change_record` VALUES (993, '0', '', '2025-12-23 14:17:35', '', '2025-12-23 14:17:34', NULL, 36, 8, -8.00, 100574.00); +INSERT INTO `ai_balance_change_record` VALUES (994, '0', '', '2025-12-23 14:19:25', '', '2025-12-23 14:19:25', NULL, 36, 8, -8.00, 100566.00); +INSERT INTO `ai_balance_change_record` VALUES (997, '0', '', '2025-12-23 14:34:54', '', '2025-12-23 14:34:53', NULL, 36, 5, -10.00, 100556.00); +INSERT INTO `ai_balance_change_record` VALUES (998, '0', '', '2025-12-23 14:41:51', '', '2025-12-23 14:41:51', NULL, 36, 8, -8.00, 100548.00); +INSERT INTO `ai_balance_change_record` VALUES (1001, '0', '', '2025-12-23 14:42:59', '', '2025-12-23 14:42:59', NULL, 36, 5, -10.00, 100538.00); +INSERT INTO `ai_balance_change_record` VALUES (1002, '0', '', '2025-12-23 14:45:47', '', '2025-12-23 14:45:46', NULL, 36, 8, -8.00, 100530.00); +INSERT INTO `ai_balance_change_record` VALUES (1003, '0', '', '2025-12-23 14:47:13', '', '2025-12-23 14:47:12', NULL, 36, 8, -8.00, 100522.00); +INSERT INTO `ai_balance_change_record` VALUES (1004, '0', '', '2025-12-23 14:50:17', '', '2025-12-23 14:50:16', NULL, 36, 8, -8.00, 100514.00); +INSERT INTO `ai_balance_change_record` VALUES (1005, '0', '', '2025-12-24 15:04:07', '', '2025-12-24 15:04:06', NULL, 36, 0, 110.00, 100624.00); +INSERT INTO `ai_balance_change_record` VALUES (1006, '0', '', '2025-12-24 15:04:07', '', '2025-12-24 15:04:06', NULL, 35, 1, 1.00, 342.00); +INSERT INTO `ai_balance_change_record` VALUES (1007, '0', '', '2025-12-24 15:12:47', '', '2025-12-24 15:12:47', NULL, 35, 0, 112.00, 454.00); +INSERT INTO `ai_balance_change_record` VALUES (1008, '0', '', '2025-12-24 15:12:47', '', '2025-12-24 15:12:47', NULL, 30, 1, 1.12, 21.12); +INSERT INTO `ai_balance_change_record` VALUES (1009, '0', '', '2025-12-24 15:12:47', '', '2025-12-24 15:12:47', NULL, 35, 2, 1.00, 455.00); +INSERT INTO `ai_balance_change_record` VALUES (1010, '0', '', '2025-12-25 13:50:03', '', '2025-12-25 13:50:02', NULL, 35, 0, 11.00, 466.00); +INSERT INTO `ai_balance_change_record` VALUES (1011, '0', '', '2025-12-25 13:50:03', '', '2025-12-25 13:50:02', NULL, 30, 1, 0.10, 21.22); +INSERT INTO `ai_balance_change_record` VALUES (1012, '0', '', '2025-12-25 14:33:25', '', '2025-12-25 14:33:24', NULL, 35, 0, 110.00, 576.00); +INSERT INTO `ai_balance_change_record` VALUES (1013, '0', '', '2025-12-25 14:33:25', '', '2025-12-25 14:33:24', NULL, 30, 1, 1.00, 22.22); +INSERT INTO `ai_balance_change_record` VALUES (1014, '0', '', '2025-12-25 14:33:25', '', '2025-12-25 14:33:24', NULL, 35, 2, 10.00, 586.00); +INSERT INTO `ai_balance_change_record` VALUES (1015, '0', '', '2025-12-26 08:36:55', '', '2025-12-26 08:36:55', NULL, 16, 0, 110.00, 99510.00); +INSERT INTO `ai_balance_change_record` VALUES (1016, '0', '', '2025-12-26 08:36:55', '', '2025-12-26 08:36:55', NULL, 16, 2, 10.00, 99520.00); +INSERT INTO `ai_balance_change_record` VALUES (1017, '0', '', '2025-12-26 08:54:01', '', '2025-12-26 08:54:01', NULL, 16, 0, 110.00, 99630.00); +INSERT INTO `ai_balance_change_record` VALUES (1018, '0', '', '2025-12-26 08:54:01', '', '2025-12-26 08:54:01', NULL, 16, 2, 10.00, 99640.00); +INSERT INTO `ai_balance_change_record` VALUES (1019, '0', '', '2025-12-26 11:10:00', '', '2025-12-26 11:09:59', NULL, 35, 0, 51.00, 637.00); +INSERT INTO `ai_balance_change_record` VALUES (1020, '0', '', '2025-12-26 11:10:00', '', '2025-12-26 11:09:59', NULL, 30, 1, 0.50, 22.72); +INSERT INTO `ai_balance_change_record` VALUES (1021, '0', '', '2025-12-26 11:16:28', '', '2025-12-26 11:16:27', NULL, 35, 0, 51.00, 688.00); +INSERT INTO `ai_balance_change_record` VALUES (1022, '0', '', '2025-12-26 11:16:28', '', '2025-12-26 11:16:27', NULL, 30, 1, 0.50, 23.22); +INSERT INTO `ai_balance_change_record` VALUES (1023, '0', '', '2025-12-26 18:16:22', '', '2025-12-26 18:16:22', NULL, 14, 8, -8.00, 293.00); +INSERT INTO `ai_balance_change_record` VALUES (1024, '0', '', '2025-12-26 18:23:54', '', '2025-12-26 18:23:53', NULL, 14, 6, -10.00, 283.00); +INSERT INTO `ai_balance_change_record` VALUES (1025, '0', '', '2025-12-26 18:25:46', '', '2025-12-26 18:25:46', NULL, 14, 8, -8.00, 275.00); +INSERT INTO `ai_balance_change_record` VALUES (1026, '0', '', '2025-12-27 16:48:23', '', '2025-12-27 16:48:23', NULL, 39, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (1027, '0', '', '2025-12-27 17:48:23', '', '2025-12-27 17:48:23', NULL, 39, 4, -10.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (1028, '0', '', '2025-12-29 11:37:35', '', '2025-12-29 11:37:34', NULL, 35, 0, 110.00, 798.00); +INSERT INTO `ai_balance_change_record` VALUES (1029, '0', '', '2025-12-29 11:37:35', '', '2025-12-29 11:37:34', NULL, 30, 1, 1.00, 24.22); +INSERT INTO `ai_balance_change_record` VALUES (1030, '0', '', '2025-12-29 11:38:53', '', '2025-12-29 11:38:53', NULL, 35, 0, 110.00, 908.00); +INSERT INTO `ai_balance_change_record` VALUES (1031, '0', '', '2025-12-29 11:38:53', '', '2025-12-29 11:38:53', NULL, 30, 1, 1.00, 25.22); +INSERT INTO `ai_balance_change_record` VALUES (1032, '0', '', '2025-12-29 11:40:48', '', '2025-12-29 11:40:47', NULL, 35, 11, 92.00, 1000.00); +INSERT INTO `ai_balance_change_record` VALUES (1033, '0', '', '2025-12-29 11:41:10', '', '2025-12-29 11:41:10', NULL, 35, 11, -1000.00, 0.00); +INSERT INTO `ai_balance_change_record` VALUES (1034, '0', '', '2025-12-29 11:41:29', '', '2025-12-29 11:41:29', NULL, 35, 0, 110.00, 110.00); +INSERT INTO `ai_balance_change_record` VALUES (1035, '0', '', '2025-12-29 11:41:29', '', '2025-12-29 11:41:29', NULL, 30, 1, 1.00, 26.22); +INSERT INTO `ai_balance_change_record` VALUES (1036, '0', '', '2025-12-29 11:41:38', '', '2025-12-29 11:41:37', NULL, 35, 0, 110.00, 220.00); +INSERT INTO `ai_balance_change_record` VALUES (1037, '0', '', '2025-12-29 11:41:38', '', '2025-12-29 11:41:37', NULL, 30, 1, 1.00, 27.22); +INSERT INTO `ai_balance_change_record` VALUES (1038, '0', '', '2025-12-29 11:41:46', '', '2025-12-29 11:41:45', NULL, 35, 0, 110.00, 330.00); +INSERT INTO `ai_balance_change_record` VALUES (1039, '0', '', '2025-12-29 11:41:46', '', '2025-12-29 11:41:45', NULL, 30, 1, 1.00, 28.22); +INSERT INTO `ai_balance_change_record` VALUES (1040, '0', '', '2025-12-29 12:11:44', '', '2025-12-29 12:11:44', NULL, 16, 0, 11.00, 99651.00); +INSERT INTO `ai_balance_change_record` VALUES (1041, '0', '', '2025-12-29 16:32:05', '', '2025-12-29 16:32:05', NULL, 16, 0, 11.00, 99662.00); +INSERT INTO `ai_balance_change_record` VALUES (1042, '0', '', '2025-12-29 16:33:54', '', '2025-12-29 16:33:53', NULL, 16, 0, 110.00, 99772.00); +INSERT INTO `ai_balance_change_record` VALUES (1043, '0', '', '2025-12-29 16:33:54', '', '2025-12-29 16:33:53', NULL, 16, 2, 10.00, 99782.00); +INSERT INTO `ai_balance_change_record` VALUES (1044, '0', '', '2025-12-29 17:05:54', '', '2025-12-29 17:05:54', NULL, 39, 11, 10000.00, 10000.00); +INSERT INTO `ai_balance_change_record` VALUES (1047, '0', '', '2025-12-30 11:26:10', '', '2025-12-30 11:26:10', NULL, 35, 5, -10.00, 320.00); +INSERT INTO `ai_balance_change_record` VALUES (1048, '0', '', '2025-12-30 11:28:25', '', '2025-12-30 11:28:25', NULL, 40, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (1049, '0', '', '2025-12-30 11:28:46', '', '2025-12-30 11:28:46', NULL, 40, 0, 110.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (1050, '0', '', '2025-12-30 11:28:46', '', '2025-12-30 11:28:46', NULL, 35, 1, 1.00, 321.00); +INSERT INTO `ai_balance_change_record` VALUES (1051, '0', '', '2025-12-30 11:28:51', '', '2025-12-30 11:28:51', NULL, 40, 0, 110.00, 230.00); +INSERT INTO `ai_balance_change_record` VALUES (1052, '0', '', '2025-12-30 11:28:51', '', '2025-12-30 11:28:51', NULL, 35, 1, 1.00, 322.00); +INSERT INTO `ai_balance_change_record` VALUES (1053, '0', '', '2025-12-30 11:44:05', '', '2025-12-30 11:44:04', NULL, 16, 0, 11.00, 99793.00); +INSERT INTO `ai_balance_change_record` VALUES (1054, '0', '', '2025-12-30 11:56:56', '', '2025-12-30 11:56:55', NULL, 40, 0, 110.00, 340.00); +INSERT INTO `ai_balance_change_record` VALUES (1055, '0', '', '2025-12-30 11:56:56', '', '2025-12-30 11:56:55', NULL, 35, 1, 1.00, 323.00); +INSERT INTO `ai_balance_change_record` VALUES (1056, '0', '', '2025-12-30 11:56:56', '', '2025-12-30 11:56:55', NULL, 40, 2, 5.00, 345.00); +INSERT INTO `ai_balance_change_record` VALUES (1057, '0', '', '2025-12-30 11:58:14', '', '2025-12-30 11:58:13', NULL, 41, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (1058, '0', '', '2025-12-30 11:58:33', '', '2025-12-30 11:58:32', NULL, 41, 0, 110.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (1059, '0', '', '2025-12-30 11:58:33', '', '2025-12-30 11:58:32', NULL, 40, 1, 1.00, 346.00); +INSERT INTO `ai_balance_change_record` VALUES (1060, '0', '', '2025-12-30 12:28:25', '', '2025-12-30 12:28:25', NULL, 40, 4, -10.00, 336.00); +INSERT INTO `ai_balance_change_record` VALUES (1061, '0', '', '2025-12-30 12:58:13', '', '2025-12-30 12:58:13', NULL, 41, 4, -10.00, 110.00); +INSERT INTO `ai_balance_change_record` VALUES (1062, '0', '', '2025-12-30 13:42:03', '', '2025-12-30 13:42:02', NULL, 42, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (1063, '0', '', '2025-12-30 13:42:27', '', '2025-12-30 13:42:27', NULL, 42, 0, 110.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (1064, '0', '', '2025-12-30 13:42:27', '', '2025-12-30 13:42:27', NULL, 42, 2, 5.00, 125.00); +INSERT INTO `ai_balance_change_record` VALUES (1065, '0', '', '2025-12-30 13:42:42', '', '2025-12-30 13:42:41', NULL, 42, 0, 110.00, 235.00); +INSERT INTO `ai_balance_change_record` VALUES (1066, '0', '', '2025-12-30 14:42:02', '', '2025-12-30 14:42:02', NULL, 42, 4, -10.00, 225.00); +INSERT INTO `ai_balance_change_record` VALUES (1067, '0', '', '2025-12-31 14:20:06', '', '2025-12-31 14:20:06', NULL, 43, 3, 10.00, 10.00); +INSERT INTO `ai_balance_change_record` VALUES (1068, '0', '', '2025-12-31 14:20:30', '', '2025-12-31 14:20:30', NULL, 43, 0, 110.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (1069, '0', '', '2025-12-31 14:20:30', '', '2025-12-31 14:20:30', NULL, 43, 2, 5.00, 125.00); +INSERT INTO `ai_balance_change_record` VALUES (1070, '0', '', '2025-12-31 14:21:22', '', '2025-12-31 14:21:21', NULL, 43, 0, 110.00, 235.00); +INSERT INTO `ai_balance_change_record` VALUES (1073, '0', '', '2025-12-31 14:21:53', '', '2025-12-31 14:21:52', NULL, 43, 5, -10.00, 225.00); +INSERT INTO `ai_balance_change_record` VALUES (1074, '0', '', '2025-12-31 14:22:42', '', '2025-12-31 14:22:42', NULL, 43, 8, -8.00, 217.00); +INSERT INTO `ai_balance_change_record` VALUES (1075, '0', '', '2025-12-31 14:23:56', '', '2025-12-31 14:23:55', NULL, 43, 0, 110.00, 327.00); +INSERT INTO `ai_balance_change_record` VALUES (1076, '0', '', '2025-12-31 14:24:01', '', '2025-12-31 14:24:00', NULL, 43, 0, 110.00, 437.00); +INSERT INTO `ai_balance_change_record` VALUES (1077, '0', '', '2025-12-31 14:24:05', '', '2025-12-31 14:24:05', NULL, 43, 0, 110.00, 547.00); +INSERT INTO `ai_balance_change_record` VALUES (1078, '0', '', '2025-12-31 14:24:10', '', '2025-12-31 14:24:09', NULL, 43, 0, 110.00, 657.00); +INSERT INTO `ai_balance_change_record` VALUES (1079, '0', '', '2025-12-31 14:24:14', '', '2025-12-31 14:24:13', NULL, 43, 0, 110.00, 767.00); +INSERT INTO `ai_balance_change_record` VALUES (1080, '0', '', '2025-12-31 14:24:18', '', '2025-12-31 14:24:17', NULL, 43, 0, 110.00, 877.00); +INSERT INTO `ai_balance_change_record` VALUES (1081, '0', '', '2025-12-31 14:24:21', '', '2025-12-31 14:24:21', NULL, 43, 0, 110.00, 987.00); +INSERT INTO `ai_balance_change_record` VALUES (1082, '0', '', '2025-12-31 14:24:25', '', '2025-12-31 14:24:25', NULL, 43, 0, 110.00, 1097.00); +INSERT INTO `ai_balance_change_record` VALUES (1083, '0', '', '2025-12-31 14:26:47', '', '2025-12-31 14:26:46', NULL, 44, 0, 110.00, 110.00); +INSERT INTO `ai_balance_change_record` VALUES (1084, '0', '', '2025-12-31 14:26:47', '', '2025-12-31 14:26:46', NULL, 43, 1, 1.00, 1098.00); +INSERT INTO `ai_balance_change_record` VALUES (1085, '0', '', '2025-12-31 14:26:47', '', '2025-12-31 14:26:46', NULL, 44, 2, 10.00, 120.00); +INSERT INTO `ai_balance_change_record` VALUES (1086, '0', '', '2025-12-31 14:27:17', '', '2025-12-31 14:27:16', NULL, 44, 0, 110.00, 230.00); +INSERT INTO `ai_balance_change_record` VALUES (1087, '0', '', '2025-12-31 14:27:17', '', '2025-12-31 14:27:16', NULL, 43, 1, 1.00, 1099.00); +INSERT INTO `ai_balance_change_record` VALUES (1088, '0', '', '2025-12-31 15:20:06', '', '2025-12-31 15:20:06', NULL, 43, 4, -10.00, 1089.00); +INSERT INTO `ai_balance_change_record` VALUES (1089, '0', '', '2026-01-06 10:44:35', '', '2026-01-06 10:44:34', NULL, 16, 5, -10.00, 99783.00); +INSERT INTO `ai_balance_change_record` VALUES (1090, '0', '', '2026-01-06 10:54:24', '', '2026-01-06 10:54:24', NULL, 16, 0, 110.00, 99893.00); +INSERT INTO `ai_balance_change_record` VALUES (1091, '0', '', '2026-01-06 10:54:24', '', '2026-01-06 10:54:24', NULL, 16, 2, 10.00, 99903.00); +INSERT INTO `ai_balance_change_record` VALUES (1092, '0', '', '2026-01-06 10:54:53', '', '2026-01-06 10:54:52', NULL, 16, 0, 110.00, 100013.00); +INSERT INTO `ai_balance_change_record` VALUES (1093, '0', '', '2026-01-06 10:54:53', '', '2026-01-06 10:54:52', NULL, 16, 2, 10.00, 100023.00); +INSERT INTO `ai_balance_change_record` VALUES (1094, '0', '', '2026-01-06 16:05:51', '', '2026-01-06 16:05:50', NULL, 14, 5, -10.00, 265.00); +INSERT INTO `ai_balance_change_record` VALUES (1095, '0', '', '2026-01-06 16:13:05', '', '2026-01-06 16:13:04', NULL, 16, 8, -8.00, 100015.00); +INSERT INTO `ai_balance_change_record` VALUES (1096, '0', '', '2026-01-06 16:13:30', '', '2026-01-06 16:13:29', NULL, 16, 8, -8.00, 100007.00); +INSERT INTO `ai_balance_change_record` VALUES (1097, '0', '', '2026-01-06 16:32:31', '', '2026-01-06 16:32:31', NULL, 39, 5, -10.00, 9990.00); +INSERT INTO `ai_balance_change_record` VALUES (1098, '0', '', '2026-01-06 16:33:36', '', '2026-01-06 16:33:35', NULL, 39, 8, -8.00, 9982.00); +INSERT INTO `ai_balance_change_record` VALUES (1101, '0', '', '2026-01-06 17:08:42', '', '2026-01-06 17:08:41', NULL, 14, 5, -10.00, 255.00); +INSERT INTO `ai_balance_change_record` VALUES (1102, '0', '', '2026-01-06 17:11:28', '', '2026-01-06 17:11:27', NULL, 14, 5, -10.00, 245.00); +INSERT INTO `ai_balance_change_record` VALUES (1103, '0', '', '2026-01-06 17:12:17', '', '2026-01-06 17:12:16', NULL, 14, 5, -10.00, 235.00); +INSERT INTO `ai_balance_change_record` VALUES (1104, '0', '', '2026-01-07 15:35:45', '', '2026-01-07 15:35:45', NULL, 16, 5, -10.00, 99997.00); +INSERT INTO `ai_balance_change_record` VALUES (1105, '0', '', '2026-01-07 20:03:00', '', '2026-01-07 20:03:00', NULL, 16, 5, -10.00, 99987.00); +INSERT INTO `ai_balance_change_record` VALUES (1106, '0', '', '2026-01-07 20:04:40', '', '2026-01-07 20:04:39', NULL, 16, 5, -10.00, 99977.00); +INSERT INTO `ai_balance_change_record` VALUES (1107, '0', '', '2026-01-07 20:08:41', '', '2026-01-07 20:08:40', NULL, 16, 8, -8.00, 99969.00); +INSERT INTO `ai_balance_change_record` VALUES (1108, '0', '', '2026-01-08 01:21:02', '', '2026-01-08 01:21:01', NULL, 16, 8, -8.00, 99961.00); +INSERT INTO `ai_balance_change_record` VALUES (1109, '0', '', '2026-01-08 09:12:05', '', '2026-01-08 09:12:04', NULL, 16, 5, -10.00, 99951.00); +INSERT INTO `ai_balance_change_record` VALUES (1110, '0', '', '2026-01-08 09:13:24', '', '2026-01-08 09:13:23', NULL, 16, 5, -10.00, 99941.00); +INSERT INTO `ai_balance_change_record` VALUES (1111, '0', '', '2026-01-08 09:15:14', '', '2026-01-08 09:15:14', NULL, 16, 5, -10.00, 99931.00); +INSERT INTO `ai_balance_change_record` VALUES (1112, '0', '', '2026-01-08 09:16:34', '', '2026-01-08 09:16:33', NULL, 16, 5, -10.00, 99921.00); +INSERT INTO `ai_balance_change_record` VALUES (1113, '0', '', '2026-01-08 14:53:37', '', '2026-01-08 14:53:37', NULL, 36, 5, -10.00, 100614.00); +INSERT INTO `ai_balance_change_record` VALUES (1114, '0', '', '2026-01-08 14:57:07', '', '2026-01-08 14:57:07', NULL, 36, 5, -10.00, 100604.00); +INSERT INTO `ai_balance_change_record` VALUES (1115, '0', '', '2026-01-08 14:58:42', '', '2026-01-08 14:58:41', NULL, 36, 9, -35.00, 100569.00); +INSERT INTO `ai_balance_change_record` VALUES (1116, '0', '', '2026-01-08 14:58:58', '', '2026-01-08 14:58:58', NULL, 36, 9, -35.00, 100534.00); +INSERT INTO `ai_balance_change_record` VALUES (1117, '0', '', '2026-01-08 14:59:15', '', '2026-01-08 14:59:14', NULL, 36, 9, -35.00, 100499.00); +INSERT INTO `ai_balance_change_record` VALUES (1118, '0', '', '2026-01-08 15:00:19', '', '2026-01-08 15:00:18', NULL, 36, 9, -35.00, 100464.00); +INSERT INTO `ai_balance_change_record` VALUES (1119, '0', '', '2026-01-08 15:06:44', '', '2026-01-08 15:06:44', NULL, 36, 9, -35.00, 100429.00); +INSERT INTO `ai_balance_change_record` VALUES (1120, '0', '', '2026-01-09 14:28:21', '', '2026-01-09 14:28:21', NULL, 39, 5, -10.00, 9972.00); +INSERT INTO `ai_balance_change_record` VALUES (1121, '0', '', '2026-01-09 14:29:48', '', '2026-01-09 14:29:48', NULL, 39, 9, -35.00, 9937.00); +INSERT INTO `ai_balance_change_record` VALUES (1122, '0', '', '2026-01-09 14:29:50', '', '2026-01-09 14:29:49', '訂單號 20260109e062a913 生成失敗,請稍後重試。', 39, 10, 35.00, 9972.00); +INSERT INTO `ai_balance_change_record` VALUES (1123, '0', '', '2026-01-09 14:30:13', '', '2026-01-09 14:30:13', NULL, 39, 9, -35.00, 9937.00); +INSERT INTO `ai_balance_change_record` VALUES (1138, '0', '', '2026-01-09 14:40:35', '', '2026-01-09 14:40:35', NULL, 39, 8, -8.00, 9929.00); +INSERT INTO `ai_balance_change_record` VALUES (1139, '0', '', '2026-01-09 14:41:12', '', '2026-01-09 14:41:12', NULL, 39, 6, -10.00, 9919.00); +INSERT INTO `ai_balance_change_record` VALUES (1140, '0', '', '2026-01-09 14:45:41', '', '2026-01-09 14:45:40', NULL, 39, 5, -10.00, 9909.00); +INSERT INTO `ai_balance_change_record` VALUES (1141, '0', '', '2026-01-09 14:46:35', '', '2026-01-09 14:46:35', NULL, 39, 9, -35.00, 9874.00); +INSERT INTO `ai_balance_change_record` VALUES (1142, '0', '', '2026-01-09 14:46:37', '', '2026-01-09 14:46:37', '訂單號 202601098e01f415 生成失敗,請稍後重試。', 39, 10, 35.00, 9909.00); +INSERT INTO `ai_balance_change_record` VALUES (1143, '0', '', '2026-01-09 14:46:39', '', '2026-01-09 14:46:39', NULL, 39, 9, -35.00, 9874.00); +INSERT INTO `ai_balance_change_record` VALUES (1150, '0', '', '2026-01-09 14:53:34', '', '2026-01-09 14:53:33', NULL, 39, 5, -10.00, 9864.00); +INSERT INTO `ai_balance_change_record` VALUES (1151, '0', '', '2026-01-09 14:54:38', '', '2026-01-09 14:54:37', NULL, 39, 9, -35.00, 9829.00); +INSERT INTO `ai_balance_change_record` VALUES (1152, '0', '', '2026-01-09 14:54:38', '', '2026-01-09 14:54:38', '訂單號 2026010993f53c6d 生成失敗,請稍後重試。', 39, 10, 35.00, 9864.00); +INSERT INTO `ai_balance_change_record` VALUES (1153, '0', '', '2026-01-09 14:54:40', '', '2026-01-09 14:54:40', NULL, 39, 9, -35.00, 9829.00); +INSERT INTO `ai_balance_change_record` VALUES (1154, '0', '', '2026-01-09 14:54:40', '', '2026-01-09 14:54:40', '訂單號 20260109c9552be3 生成失敗,請稍後重試。', 39, 10, 35.00, 9864.00); +INSERT INTO `ai_balance_change_record` VALUES (1155, '0', '', '2026-01-09 14:54:52', '', '2026-01-09 14:54:51', NULL, 39, 9, -35.00, 9829.00); +INSERT INTO `ai_balance_change_record` VALUES (1156, '0', '', '2026-01-09 14:54:53', '', '2026-01-09 14:54:52', '訂單號 2026010938d677cd 生成失敗,請稍後重試。', 39, 10, 35.00, 9864.00); +INSERT INTO `ai_balance_change_record` VALUES (1157, '0', '', '2026-01-09 14:55:03', '', '2026-01-09 14:55:03', NULL, 39, 9, -35.00, 9829.00); +INSERT INTO `ai_balance_change_record` VALUES (1158, '0', '', '2026-01-09 14:56:30', '', '2026-01-09 14:56:30', NULL, 36, 5, -10.00, 100419.00); + +-- ---------------------------- +-- Table structure for ai_banner +-- ---------------------------- +DROP TABLE IF EXISTS `ai_banner`; +CREATE TABLE `ai_banner` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `image_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图片地址', + `type` tinyint NULL DEFAULT NULL COMMENT '链接类型:0-内链 1-外链', + `jump_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '跳转URL', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + `position` tinyint NULL DEFAULT NULL COMMENT 'bannaer位置:0-首页 1-充值中心', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'banner管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_banner +-- ---------------------------- +INSERT INTO `ai_banner` VALUES (1, '0', 'admin', '2025-11-15 20:59:58', 'admin', '2026-01-08 12:56:05', '11212', '图2', 'https://images.iqyjsnwv.com/2026/01/08/b610cc2c_0ct82hv9.jpeg', 1, 'https://www.google.com', 0, 0); +INSERT INTO `ai_banner` VALUES (2, '0', 'admin', '2025-11-15 21:02:58', 'admin', '2026-01-08 12:56:36', '21212', '图1', 'https://images.iqyjsnwv.com/2026/01/08/f645d954_0ct82hv9.jpeg', 0, '/recharge', 0, 0); +INSERT INTO `ai_banner` VALUES (3, '0', 'admin', '2025-11-25 17:09:09', 'admin', '2025-12-29 16:52:38', NULL, '图3', 'https://images.iqyjsnwv.com/2025/12/29/ea50e84a_image (1).jpg', 0, '/recharge', 0, 1); +INSERT INTO `ai_banner` VALUES (4, '0', 'admin', '2025-11-25 17:09:24', 'admin', '2025-12-30 11:22:14', NULL, '图4', 'https://images.iqyjsnwv.com/2025/12/30/0af33ee3_画板 1.png', 1, 'https://www.google.com', 0, 1); + +-- ---------------------------- +-- Table structure for ai_country +-- ---------------------------- +DROP TABLE IF EXISTS `ai_country`; +CREATE TABLE `ai_country` ( + `id` int NOT NULL AUTO_INCREMENT, + `en_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `cn_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `en_name`(`en_name` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 189 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'Ai-全球城市记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_country +-- ---------------------------- +INSERT INTO `ai_country` VALUES (1, 'Afghanistan', '阿富汗'); +INSERT INTO `ai_country` VALUES (2, 'Angola', '安哥拉'); +INSERT INTO `ai_country` VALUES (3, 'Albania', '阿尔巴尼亚'); +INSERT INTO `ai_country` VALUES (4, 'Algeria', '阿尔及利亚'); +INSERT INTO `ai_country` VALUES (5, 'Argentina', '阿根廷'); +INSERT INTO `ai_country` VALUES (6, 'Armenia', '亚美尼亚'); +INSERT INTO `ai_country` VALUES (7, 'Australia', '澳大利亚'); +INSERT INTO `ai_country` VALUES (8, 'Austria', '奥地利'); +INSERT INTO `ai_country` VALUES (9, 'Azerbaijan', '阿塞拜疆'); +INSERT INTO `ai_country` VALUES (10, 'Bahamas', '巴哈马'); +INSERT INTO `ai_country` VALUES (11, 'Bangladesh', '孟加拉国'); +INSERT INTO `ai_country` VALUES (12, 'Belgium', '比利时'); +INSERT INTO `ai_country` VALUES (13, 'Benin', '贝宁'); +INSERT INTO `ai_country` VALUES (14, 'Burkina Faso', '布基纳法索'); +INSERT INTO `ai_country` VALUES (15, 'Burundi', '布隆迪'); +INSERT INTO `ai_country` VALUES (16, 'Bulgaria', '保加利亚'); +INSERT INTO `ai_country` VALUES (17, 'Bosnia and Herz.', '波斯尼亚和黑塞哥维那'); +INSERT INTO `ai_country` VALUES (18, 'Belarus', '白俄罗斯'); +INSERT INTO `ai_country` VALUES (19, 'Belize', '伯利兹'); +INSERT INTO `ai_country` VALUES (20, 'Bermuda', '百慕大群岛'); +INSERT INTO `ai_country` VALUES (21, 'Bolivia', '玻利维亚'); +INSERT INTO `ai_country` VALUES (22, 'Brazil', '巴西'); +INSERT INTO `ai_country` VALUES (23, 'Brunei', '文莱'); +INSERT INTO `ai_country` VALUES (24, 'Bhutan', '不丹'); +INSERT INTO `ai_country` VALUES (25, 'Botswana', '博茨瓦纳'); +INSERT INTO `ai_country` VALUES (26, 'Cambodia', '柬埔寨'); +INSERT INTO `ai_country` VALUES (27, 'Cameroon', '喀麦隆'); +INSERT INTO `ai_country` VALUES (28, 'Canada', '加拿大'); +INSERT INTO `ai_country` VALUES (29, 'Central African Rep.', '中非共和国'); +INSERT INTO `ai_country` VALUES (30, 'Chad', '乍得'); +INSERT INTO `ai_country` VALUES (31, 'Chile', '智利'); +INSERT INTO `ai_country` VALUES (32, 'China', '中国'); +INSERT INTO `ai_country` VALUES (33, 'Colombia', '哥伦比亚'); +INSERT INTO `ai_country` VALUES (34, 'Congo', '刚果'); +INSERT INTO `ai_country` VALUES (35, 'Costa Rica', '哥斯达黎加'); +INSERT INTO `ai_country` VALUES (36, 'Côte d\'Ivoire', '科特迪瓦'); +INSERT INTO `ai_country` VALUES (37, 'Croatia', '克罗地亚'); +INSERT INTO `ai_country` VALUES (38, 'Cuba', '古巴'); +INSERT INTO `ai_country` VALUES (39, 'Cyprus', '塞浦路斯'); +INSERT INTO `ai_country` VALUES (40, 'Czech Rep.', '捷克共和国'); +INSERT INTO `ai_country` VALUES (41, 'Dem. Rep. Korea', '韩国'); +INSERT INTO `ai_country` VALUES (42, 'Dem. Rep. Congo', '民主刚果'); +INSERT INTO `ai_country` VALUES (43, 'Denmark', '丹麦'); +INSERT INTO `ai_country` VALUES (44, 'Djibouti', '吉布提'); +INSERT INTO `ai_country` VALUES (45, 'Dominican Rep.', '多米尼加共和国'); +INSERT INTO `ai_country` VALUES (46, 'Ecuador', '厄瓜多尔'); +INSERT INTO `ai_country` VALUES (47, 'Egypt', '埃及'); +INSERT INTO `ai_country` VALUES (48, 'El Salvador', '萨尔瓦多'); +INSERT INTO `ai_country` VALUES (49, 'Eq. Guinea', '赤道几内亚'); +INSERT INTO `ai_country` VALUES (50, 'Eritrea', '厄立特里亚'); +INSERT INTO `ai_country` VALUES (51, 'Estonia', '爱沙尼亚'); +INSERT INTO `ai_country` VALUES (52, 'Ethiopia', '埃塞俄比亚'); +INSERT INTO `ai_country` VALUES (53, 'Falkland Is.', '福克兰群岛'); +INSERT INTO `ai_country` VALUES (54, 'Fiji', '斐济'); +INSERT INTO `ai_country` VALUES (55, 'Finland', '芬兰'); +INSERT INTO `ai_country` VALUES (56, 'France', '法国'); +INSERT INTO `ai_country` VALUES (57, 'French Guiana', '法属圭亚那'); +INSERT INTO `ai_country` VALUES (58, 'Fr. S. Antarctic Lands', '法属南部领地'); +INSERT INTO `ai_country` VALUES (59, 'Gabon', '加蓬'); +INSERT INTO `ai_country` VALUES (60, 'Gambia', '冈比亚'); +INSERT INTO `ai_country` VALUES (61, 'Germany', '德国'); +INSERT INTO `ai_country` VALUES (62, 'Georgia', '佐治亚州'); +INSERT INTO `ai_country` VALUES (63, 'Ghana', '加纳'); +INSERT INTO `ai_country` VALUES (64, 'Greece', '希腊'); +INSERT INTO `ai_country` VALUES (65, 'Greenland', '格陵兰'); +INSERT INTO `ai_country` VALUES (66, 'Guatemala', '危地马拉'); +INSERT INTO `ai_country` VALUES (67, 'Guinea', '几内亚'); +INSERT INTO `ai_country` VALUES (68, 'Guinea-Bissau', '几内亚比绍'); +INSERT INTO `ai_country` VALUES (69, 'Guyana', '圭亚那'); +INSERT INTO `ai_country` VALUES (70, 'Haiti', '海地'); +INSERT INTO `ai_country` VALUES (71, 'Heard I. and McDonald Is.', '赫德岛和麦克唐纳群岛'); +INSERT INTO `ai_country` VALUES (72, 'Honduras', '洪都拉斯'); +INSERT INTO `ai_country` VALUES (73, 'Hungary', '匈牙利'); +INSERT INTO `ai_country` VALUES (74, 'Iceland', '冰岛'); +INSERT INTO `ai_country` VALUES (75, 'India', '印度'); +INSERT INTO `ai_country` VALUES (76, 'Indonesia', '印度尼西亚'); +INSERT INTO `ai_country` VALUES (77, 'Iran', '伊朗'); +INSERT INTO `ai_country` VALUES (78, 'Iraq', '伊拉克'); +INSERT INTO `ai_country` VALUES (79, 'Ireland', '爱尔兰'); +INSERT INTO `ai_country` VALUES (80, 'Israel', '以色列'); +INSERT INTO `ai_country` VALUES (81, 'Italy', '意大利'); +INSERT INTO `ai_country` VALUES (82, 'Ivory Coast', '象牙海岸'); +INSERT INTO `ai_country` VALUES (83, 'Jamaica', '牙买加'); +INSERT INTO `ai_country` VALUES (84, 'Japan', '日本'); +INSERT INTO `ai_country` VALUES (85, 'Jordan', '乔丹'); +INSERT INTO `ai_country` VALUES (86, 'Kashmir', '克什米尔'); +INSERT INTO `ai_country` VALUES (87, 'Kazakhstan', '哈萨克斯坦'); +INSERT INTO `ai_country` VALUES (88, 'Kenya', '肯尼亚'); +INSERT INTO `ai_country` VALUES (89, 'Kosovo', '科索沃'); +INSERT INTO `ai_country` VALUES (90, 'Kuwait', '科威特'); +INSERT INTO `ai_country` VALUES (91, 'Kyrgyzstan', '吉尔吉斯斯坦'); +INSERT INTO `ai_country` VALUES (92, 'Laos', '老挝'); +INSERT INTO `ai_country` VALUES (93, 'Lao PDR', '老挝人民民主共和国'); +INSERT INTO `ai_country` VALUES (94, 'Latvia', '拉脱维亚'); +INSERT INTO `ai_country` VALUES (95, 'Lebanon', '黎巴嫩'); +INSERT INTO `ai_country` VALUES (96, 'Lesotho', '莱索托'); +INSERT INTO `ai_country` VALUES (97, 'Liberia', '利比里亚'); +INSERT INTO `ai_country` VALUES (98, 'Libya', '利比亚'); +INSERT INTO `ai_country` VALUES (99, 'Lithuania', '立陶宛'); +INSERT INTO `ai_country` VALUES (100, 'Luxembourg', '卢森堡'); +INSERT INTO `ai_country` VALUES (101, 'Madagascar', '马达加斯加'); +INSERT INTO `ai_country` VALUES (102, 'Macedonia', '马其顿'); +INSERT INTO `ai_country` VALUES (103, 'Malawi', '马拉维'); +INSERT INTO `ai_country` VALUES (104, 'Malaysia', '马来西亚'); +INSERT INTO `ai_country` VALUES (105, 'Mali', '马里'); +INSERT INTO `ai_country` VALUES (106, 'Mauritania', '毛里塔尼亚'); +INSERT INTO `ai_country` VALUES (107, 'Mexico', '墨西哥'); +INSERT INTO `ai_country` VALUES (108, 'Moldova', '摩尔多瓦'); +INSERT INTO `ai_country` VALUES (109, 'Mongolia', '蒙古'); +INSERT INTO `ai_country` VALUES (110, 'Montenegro', '黑山'); +INSERT INTO `ai_country` VALUES (111, 'Morocco', '摩洛哥'); +INSERT INTO `ai_country` VALUES (112, 'Mozambique', '莫桑比克'); +INSERT INTO `ai_country` VALUES (113, 'Myanmar', '缅甸'); +INSERT INTO `ai_country` VALUES (114, 'Namibia', '纳米比亚'); +INSERT INTO `ai_country` VALUES (115, 'Netherlands', '荷兰'); +INSERT INTO `ai_country` VALUES (116, 'New Caledonia', '新喀里多尼亚'); +INSERT INTO `ai_country` VALUES (117, 'New Zealand', '新西兰'); +INSERT INTO `ai_country` VALUES (118, 'Nepal', '尼泊尔'); +INSERT INTO `ai_country` VALUES (119, 'Nicaragua', '尼加拉瓜'); +INSERT INTO `ai_country` VALUES (120, 'Niger', '尼日尔'); +INSERT INTO `ai_country` VALUES (121, 'Nigeria', '尼日利亚'); +INSERT INTO `ai_country` VALUES (122, 'Korea', '朝鲜'); +INSERT INTO `ai_country` VALUES (123, 'Northern Cyprus', '北塞浦路斯'); +INSERT INTO `ai_country` VALUES (124, 'Norway', '挪威'); +INSERT INTO `ai_country` VALUES (125, 'Oman', '阿曼'); +INSERT INTO `ai_country` VALUES (126, 'Pakistan', '巴基斯坦'); +INSERT INTO `ai_country` VALUES (127, 'Panama', '巴拿马'); +INSERT INTO `ai_country` VALUES (128, 'Papua New Guinea', '巴布亚新几内亚'); +INSERT INTO `ai_country` VALUES (129, 'Paraguay', '巴拉圭'); +INSERT INTO `ai_country` VALUES (130, 'Peru', '秘鲁'); +INSERT INTO `ai_country` VALUES (131, 'Republic of the Congo', '刚果共和国'); +INSERT INTO `ai_country` VALUES (132, 'Philippines', '菲律宾'); +INSERT INTO `ai_country` VALUES (133, 'Poland', '波兰'); +INSERT INTO `ai_country` VALUES (134, 'Portugal', '葡萄牙'); +INSERT INTO `ai_country` VALUES (135, 'Puerto Rico', '波多黎各'); +INSERT INTO `ai_country` VALUES (136, 'Qatar', '卡塔尔'); +INSERT INTO `ai_country` VALUES (137, 'Republic of Seychelles', '塞舌尔共和国'); +INSERT INTO `ai_country` VALUES (138, 'Romania', '罗马尼亚'); +INSERT INTO `ai_country` VALUES (139, 'Russia', '俄罗斯'); +INSERT INTO `ai_country` VALUES (140, 'Rwanda', '卢旺达'); +INSERT INTO `ai_country` VALUES (141, 'Samoa', '萨摩亚'); +INSERT INTO `ai_country` VALUES (142, 'Saudi Arabia', '沙特阿拉伯'); +INSERT INTO `ai_country` VALUES (143, 'Senegal', '塞内加尔'); +INSERT INTO `ai_country` VALUES (144, 'Serbia', '塞尔维亚'); +INSERT INTO `ai_country` VALUES (145, 'Sierra Leone', '塞拉利昂'); +INSERT INTO `ai_country` VALUES (146, 'Slovakia', '斯洛伐克'); +INSERT INTO `ai_country` VALUES (147, 'Slovenia', '斯洛文尼亚'); +INSERT INTO `ai_country` VALUES (148, 'Solomon Is.', '所罗门群岛'); +INSERT INTO `ai_country` VALUES (149, 'Somaliland', '索马里兰'); +INSERT INTO `ai_country` VALUES (150, 'Somalia', '索马里'); +INSERT INTO `ai_country` VALUES (151, 'South Africa', '南非'); +INSERT INTO `ai_country` VALUES (152, 'S. Geo. and S. Sandw. Is.', '南乔治亚和南桑德威奇群岛'); +INSERT INTO `ai_country` VALUES (153, 'S. Sudan', '南苏丹'); +INSERT INTO `ai_country` VALUES (154, 'Spain', '西班牙'); +INSERT INTO `ai_country` VALUES (155, 'Sri Lanka', '斯里兰卡'); +INSERT INTO `ai_country` VALUES (156, 'Sudan', '苏丹'); +INSERT INTO `ai_country` VALUES (157, 'Suriname', '苏里南'); +INSERT INTO `ai_country` VALUES (158, 'Swaziland', '斯威士兰'); +INSERT INTO `ai_country` VALUES (159, 'Sweden', '瑞典'); +INSERT INTO `ai_country` VALUES (160, 'Switzerland', '瑞士'); +INSERT INTO `ai_country` VALUES (161, 'Syria', '叙利亚'); +INSERT INTO `ai_country` VALUES (162, 'Tajikistan', '塔吉克斯坦'); +INSERT INTO `ai_country` VALUES (163, 'Tanzania', '坦桑尼亚'); +INSERT INTO `ai_country` VALUES (164, 'Thailand', '泰国'); +INSERT INTO `ai_country` VALUES (165, 'The Kingdom of Tonga', '汤加王国'); +INSERT INTO `ai_country` VALUES (166, 'Timor-Leste', '东帝汶'); +INSERT INTO `ai_country` VALUES (167, 'Togo', '多哥'); +INSERT INTO `ai_country` VALUES (168, 'Trinidad and Tobago', '特立尼达和多巴哥'); +INSERT INTO `ai_country` VALUES (169, 'Tunisia', '突尼斯'); +INSERT INTO `ai_country` VALUES (170, 'Turkey', '土耳其'); +INSERT INTO `ai_country` VALUES (171, 'Turkmenistan', '土库曼斯坦'); +INSERT INTO `ai_country` VALUES (172, 'Uganda', '乌干达'); +INSERT INTO `ai_country` VALUES (173, 'Ukraine', '乌克兰'); +INSERT INTO `ai_country` VALUES (174, 'United Arab Emirates', '阿拉伯联合酋长国'); +INSERT INTO `ai_country` VALUES (175, 'United Kingdom', '大不列颠联合王国'); +INSERT INTO `ai_country` VALUES (176, 'United Republic of Tanzania', '坦桑尼亚联合共和国'); +INSERT INTO `ai_country` VALUES (177, 'United States', '美国'); +INSERT INTO `ai_country` VALUES (178, 'United States of America', '美利坚合众国'); +INSERT INTO `ai_country` VALUES (179, 'Uruguay', '乌拉圭'); +INSERT INTO `ai_country` VALUES (180, 'Uzbekistan', '乌兹别克斯坦'); +INSERT INTO `ai_country` VALUES (181, 'Vanuatu', '瓦努阿图'); +INSERT INTO `ai_country` VALUES (182, 'Venezuela', '委内瑞拉'); +INSERT INTO `ai_country` VALUES (183, 'Vietnam', '越南'); +INSERT INTO `ai_country` VALUES (184, 'West Bank', '西岸'); +INSERT INTO `ai_country` VALUES (185, 'W. Sahara', '西撒哈拉'); +INSERT INTO `ai_country` VALUES (186, 'Yemen', '也门'); +INSERT INTO `ai_country` VALUES (187, 'Zambia', '赞比亚'); +INSERT INTO `ai_country` VALUES (188, 'Zimbabwe', '津巴布韦'); + +-- ---------------------------- +-- Table structure for ai_customer +-- ---------------------------- +DROP TABLE IF EXISTS `ai_customer`; +CREATE TABLE `ai_customer` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户名称', + `user_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户编号', + `user_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户联系方式', + `rebate_amount` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '返佣比例', + `service_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客服链接', + `logo_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'logo链接', + `banner_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'banner链接', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态:0-正常,1-禁用', + `banner1_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值页banner链接', + `start_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '启动页链接', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'AI-客户配置表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_customer +-- ---------------------------- +INSERT INTO `ai_customer` VALUES (1, '0', 'admin', '2025-11-26 19:53:53', 'admin', '2025-12-09 14:04:54', 'https://www.undressing.top', 'XM001', 'XM001', '13888888888', '', 'http://localhost/ai-manager/customer', 'http://localhost/ai-manager/customer', 'http://localhost/ai-manager/customer https://images.iqyjsnwv.com/2025/12/09/53300a82_0f271de314dd9ef4c796465c2543495e_high.jpg https://images.iqyjsnwv.com/2025/12/09/db0f8770_54.png', 0, NULL, NULL); + +-- ---------------------------- +-- Table structure for ai_customer_service +-- ---------------------------- +DROP TABLE IF EXISTS `ai_customer_service`; +CREATE TABLE `ai_customer_service` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客服链接', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '客服管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_customer_service +-- ---------------------------- +INSERT INTO `ai_customer_service` VALUES (1, '0', 'admin', '2025-11-14 21:44:18', 'admin', '2025-12-09 13:18:40', '111', 'http://localhost/admin/ai-manager/foundation/service', 0); +INSERT INTO `ai_customer_service` VALUES (2, '0', 'admin', '2025-12-23 09:05:52', '', '2025-12-23 09:05:51', NULL, 'https://1.com', 0); +INSERT INTO `ai_customer_service` VALUES (3, '0', 'admin', '2025-12-23 09:06:00', '', '2025-12-23 09:06:00', NULL, 'https://2.com', 0); +INSERT INTO `ai_customer_service` VALUES (4, '0', 'admin', '2025-12-23 13:53:31', '', '2025-12-23 13:53:30', NULL, 'baidu.com', 0); +INSERT INTO `ai_customer_service` VALUES (5, '0', 'admin', '2025-12-23 13:53:31', '', '2025-12-23 13:53:31', NULL, 'baidu.com', 0); + +-- ---------------------------- +-- Table structure for ai_help +-- ---------------------------- +DROP TABLE IF EXISTS `ai_help`; +CREATE TABLE `ai_help` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '帮助管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_help +-- ---------------------------- +INSERT INTO `ai_help` VALUES (1, '0', 'admin', '2025-11-14 22:14:45', 'admin', '2025-12-16 13:54:28', '', 'What should I do if I encounter bugs or generation failures during use?', '

What should I do if I encounter bugs or generation failures during use?

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.
', 0); +INSERT INTO `ai_help` VALUES (3, '0', 'admin', '2025-12-16 13:54:52', '', '2025-12-16 05:54:52', NULL, NULL, '


', 0); +INSERT INTO `ai_help` VALUES (4, '0', 'admin', '2025-12-17 12:57:32', 'admin', '2025-12-17 12:57:43', '1', '1', '

2

', 0); + +-- ---------------------------- +-- Table structure for ai_manager +-- ---------------------------- +DROP TABLE IF EXISTS `ai_manager`; +CREATE TABLE `ai_manager` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'AI标题', + `price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '价格', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + `prompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '提示词', + `type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '类型', + `parent_id_sort` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示词ID插入顺序记录', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `type`(`type` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'AI管理表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_manager +-- ---------------------------- +INSERT INTO `ai_manager` VALUES (1, '0', 'admin', '2025-11-13 20:05:27', 'admin', '2025-12-23 14:30:07', NULL, '图生图1', 10.00, 0, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, {胸部大小}, nipples perfectly matching skin tone, {动作}, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '11', '1,17'); +INSERT INTO `ai_manager` VALUES (2, '0', 'admin', '2025-11-21 22:24:28', 'admin', '2025-12-14 20:20:56', NULL, '图生图2', 10.00, 0, '生成{主题},{风格}包含{细节},分辨率{技术参数}的图像', '12', NULL); +INSERT INTO `ai_manager` VALUES (3, '0', 'admin', '2025-11-13 20:06:02', 'admin', '2025-12-24 15:03:00', NULL, '一键换脸', 10.00, 1, '保持参考图1的内容风格不变,用参考图2的脸部对参考图1的脸部进行替换', '13', ''); +INSERT INTO `ai_manager` VALUES (4, '0', 'admin', '2025-11-13 20:07:33', 'admin', '2025-12-23 14:47:10', NULL, '快捷生图', 8.00, 0, '1girl, solo, detailed face with {发型} {眼睛颜色} {配饰} {表情} {姿势} in {背景}, {服装描述} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: {多人描述}, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', '1', '8,5,11,64,66,68,70,72,74'); +INSERT INTO `ai_manager` VALUES (5, '0', 'admin', '2025-11-13 20:07:47', 'admin', '2026-01-08 14:58:37', '', '快捷生视频', 35.00, 0, '跳舞', '21', ''); +INSERT INTO `ai_manager` VALUES (7, '0', 'admin', '2025-11-25 19:41:23', 'admin', '2025-11-25 19:41:23', NULL, '视频换脸', 35.00, 1, NULL, '22', NULL); + +-- ---------------------------- +-- Table structure for ai_order +-- ---------------------------- +DROP TABLE IF EXISTS `ai_order`; +CREATE TABLE `ai_order` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `order_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单编号', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'AI类型', + `amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '金额', + `result` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成结果', + `status` tinyint(1) NULL DEFAULT NULL COMMENT '状态:0-进行中 1-已完成 2-失败(余额退回)', + `text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求提示关键词', + `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源', + `is_top` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否置顶:N-否 Y-是', + `img1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '首帧图片', + `img2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '第二张图片', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1310 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'API订单记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_order +-- ---------------------------- +INSERT INTO `ai_order` VALUES (1, '0', '', '2025-12-02 02:41:47', '', '2025-12-02 02:41:47', NULL, '20251202bf13d995', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/d65e77ff_02176464330791975aeae14c82856eca08eecb5e75c05759755a0_0.jpeg', 1, '请去除人物服装,全身裸体。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (2, '0', '', '2025-12-02 02:43:46', '', '2025-12-02 02:43:46', NULL, '20251202f904c183', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/c76a1e0d_02176464342613730d072d337ea6fcc7bbfbe2f0c485be2b66684_0.jpeg', 1, '请增大人物乳房,其余身体部份保持不变。乳头和乳晕颜色为#efaaa7。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (3, '0', '', '2025-12-02 02:46:59', '', '2025-12-02 02:46:59', NULL, '20251202b9ae271f', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/08489a19_0217646436196527ed3dd5a26da08a73b6b7a28831080924b977e_0.jpeg', 1, '请去除人物服装,全身裸体。并同时增大人物乳房。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (4, '0', '', '2025-12-02 02:48:48', '', '2025-12-02 02:48:48', NULL, '202512027b839f67', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/858650d3_021764643728482732fd601d62b6a7044a0e20965673d9983d924_0.jpeg', 1, '请增加人物体长(身高)。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (5, '0', '', '2025-12-02 02:49:54', '', '2025-12-02 02:49:54', NULL, '202512026fe9b386', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/58f6853d_021764643794930c799e7b290acded99bf6695874956a9faf5cdb_0.jpeg', 1, '在保持人物姿势不变的前提下增加人物身高(体长)。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (6, '0', '', '2025-12-02 02:51:14', '', '2025-12-02 02:51:14', NULL, '20251202a41e78c9', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/d454f234_02176464387439030d072d337ea6fcc7bbfbe2f0c485be26d62e5_0.jpeg', 1, '在保持人物姿势不变的前提下去除人物全部服装,完全裸体。并同时增大人物乳房。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (7, '0', '', '2025-12-02 02:52:20', '', '2025-12-02 02:52:20', NULL, '20251202ebeb7a51', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/1ee9ec7f_021764643940690c799e7b290acded99bf6695874956a9f7e3101_0.jpeg', 1, '在保持人物姿势不变的前提下去除人物全部服装,完全裸体。并同时增大人物乳房。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (8, '0', '', '2025-12-02 02:53:18', '', '2025-12-02 02:53:18', NULL, '2025120260e0b22c', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/1e116ed7_02176464399810315b33ccaa151d3ed7feaaa761bc71c3719bbd8_0.jpeg', 1, '去除人物手套。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (9, '0', '', '2025-12-02 02:54:22', '', '2025-12-02 02:54:22', NULL, '20251202d35169c0', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/f502a9a5_0217646440621252504cb05148e9a08cc7612c3f2b24e52cfb3d8_0.jpeg', 1, '增加人物乳头和乳晕,颜色为#efaaa7。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (10, '0', '', '2025-12-02 02:57:01', '', '2025-12-02 02:57:01', NULL, '2025120232c28090', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/33fccf51_021764644221351f8f49430e1e3875ff473008eb96b3a39217482_0.jpeg', 1, '将人物乳头和乳晕的颜色改为#efaaa7。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (11, '0', '', '2025-12-02 04:32:17', '', '2025-12-08 10:45:17', NULL, '202512020c093960', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/f94bca4d_0217646499376702504cb05148e9a08cc7612c3f2b24e5284e2e9_0.jpeg', 1, '生成一张多巴胺美少女真人', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (12, '0', '', '2025-12-02 04:32:30', '', '2025-12-02 04:32:30', NULL, '2025120274ca3beb', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/f856a112_021764649950349fef143c4098cd8cc7e0dd8c08d18f9db2d94dd_0.jpeg', 1, '生成一张多巴胺美少女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (13, '0', '', '2025-12-02 04:33:41', '', '2025-12-02 04:33:41', NULL, '2025120242a6bb00', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/dbb06ab3_02176465002202174bd01b7bc1bacfcfc78546caab5b5fa760eee_0.jpeg', 1, '生成一张多巴胺美少女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (14, '0', '', '2025-12-02 04:34:15', '', '2025-12-08 10:45:16', NULL, '20251202eb741781', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/1810e90d_0217646500553861386b9a8ed856c57501cfa946ce34c987de7e8_0.jpeg', 1, '生成一张多巴胺美少女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (15, '0', '', '2025-12-02 04:34:25', '', '2025-12-02 04:34:25', NULL, '20251202b8d27328', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/5f818b28_02176465006539515b33ccaa151d3ed7feaaa761bc71c37c74d99_0.jpeg', 1, '生成一张多巴胺美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (16, '0', '', '2025-12-02 04:34:32', '', '2025-12-02 04:34:32', NULL, '202512029e71f749', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/796aef19_02176465007304912014becacfaf8a37949eaec3c81397536a6bd_0.jpeg', 1, '生成一张多巴胺美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (17, '0', '', '2025-12-02 04:34:47', '', '2025-12-08 10:45:13', NULL, '20251202d9a4f206', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/db7f1b7b_0217646500875078547934892c4038781a87d514f9a9196cdbbb4_0.jpeg', 1, '生成一张多巴胺科技感二次元美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (18, '0', '', '2025-12-02 04:35:00', '', '2025-12-08 10:45:12', NULL, '2025120275252c52', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/914a8fc1_02176465010064299f4740eadd3360aa6250e68d85f7ec77af630_0.jpeg', 1, '生成一张多巴胺科技感二次元美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (19, '0', '', '2025-12-02 04:35:31', '', '2025-12-02 04:35:31', NULL, '202512024dcfec10', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/6b0ab625_021764650131337c799e7b290acded99bf6695874956a9f7cdb20_0.jpeg', 1, '生成一张五颜六色的猫,蓝天白云,在花丛里', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (20, '0', '', '2025-12-02 04:35:38', '', '2025-12-08 10:45:10', NULL, '20251202714ce36f', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/c2df23a7_0217646501389833a780f972f42b9300f847977bd33295558b2fe_0.jpeg', 1, '生成一张五颜六色的猫,蓝天白云,在花丛里', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (21, '0', '', '2025-12-02 04:36:26', '', '2025-12-08 10:45:08', NULL, '202512029cd1cebb', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/61af9f75_0217646501870377ed3dd5a26da08a73b6b7a2883108092f1447e_0.jpeg', 1, '生成一张多巴胺美女,真人', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (22, '0', '', '2025-12-02 04:36:35', '', '2025-12-08 10:45:06', NULL, '2025120201bbb10e', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/25950dea_0217646501956723a780f972f42b9300f847977bd332955544cbc_0.jpeg', 1, '生成一张多巴胺美女,真人', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (23, '0', '', '2025-12-02 04:37:25', '', '2025-12-02 12:37:45', NULL, '20251202398a1ec5', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/02/a8b8897c_02176465024582600000000000000000000ffffc0a89882420ddd.mp4', 1, '跳个舞', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (24, '0', '', '2025-12-02 04:37:54', '', '2025-12-08 10:45:04', NULL, '2025120223f4563e', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/02/d2012332_02176465027451100000000000000000000ffffc0a89882c36d2d.mp4', 1, '跳个舞', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (25, '0', '', '2025-12-02 09:22:04', '', '2025-12-02 09:22:04', NULL, '20251202a6be9035', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (28, '0', '', '2025-12-02 09:23:07', '', '2025-12-02 09:23:07', NULL, '2025120236766039', 5, '12', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (31, '0', '', '2025-12-02 09:47:55', '', '2025-12-02 09:47:55', NULL, '20251202ecfc376c', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (32, '0', '', '2025-12-02 09:47:59', '', '2025-12-02 09:47:59', NULL, '202512023f6ddd12', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (33, '0', '', '2025-12-02 09:48:03', '', '2025-12-02 09:48:03', NULL, '20251202517c1bbb', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (34, '0', '', '2025-12-02 09:48:18', '', '2025-12-02 09:48:18', NULL, '20251202c0fd5fee', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/c1a44c73_021764668898574c799e7b290acded99bf6695874956a9f20ea74_0.jpeg', 1, '裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (35, '0', '', '2025-12-02 12:21:32', '', '2025-12-02 12:21:32', NULL, '20251202b10b53b1', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/4f35807c_0217646780923368547934892c4038781a87d514f9a9196cbf1cf_0.jpeg', 1, '生成一只多巴胺猫', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (36, '0', '', '2025-12-02 12:26:26', '', '2025-12-02 12:26:26', NULL, '2025120261c2e3fe', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (37, '0', '', '2025-12-02 12:26:32', '', '2025-12-02 12:26:32', NULL, '20251202d72da959', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/122ce341_0217646783925043a780f972f42b9300f847977bd332955f59461_0.jpeg', 1, '达瓦达瓦', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (38, '0', '', '2025-12-02 12:27:07', '', '2025-12-02 12:27:07', NULL, '202512027478d2f9', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (39, '0', '', '2025-12-02 14:04:12', '', '2025-12-02 14:04:12', NULL, '2025120240f84b2a', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/bf08a075_0217646842529185097524147fba306f3fd5b41c9337702f30efe_0.jpeg', 1, '这是一个女性的生殖器,生成一个美女,带上这个生殖器', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (40, '0', '', '2025-12-02 14:05:12', '', '2025-12-02 14:05:12', NULL, '2025120257ac5abb', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/02/a32c59db_02176468431235974bd01b7bc1bacfcfc78546caab5b5fa4029ed_0.jpeg', 1, '这是一个女性的生殖器,生成一个拥有这个生殖器的美女,注意生殖器比例尺寸', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (41, '0', '', '2025-12-03 08:55:19', '', '2025-12-03 08:55:19', NULL, '20251203de2507f2', 14, '21', 6.00, 'cgt-20251203165520-ghxmm', 1, '把图片中的美女衣服裤子脱了,换成另外一套泳装', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (42, '0', '', '2025-12-03 08:56:09', '', '2025-12-03 08:56:09', NULL, '2025120372e7885d', 14, '21', 6.00, 'cgt-20251203165609-zt29z', 1, '把图中的美女衣服裤子脱了换成别的泳装', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (43, '0', '', '2025-12-03 08:58:44', '', '2025-12-03 08:58:44', NULL, '2025120305f57fd7', 14, '21', 6.00, 'cgt-20251203165845-xrpqx', 1, '把图中的美女衣服裤子脱了换成别的泳装', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (44, '0', '', '2025-12-03 08:59:47', '', '2025-12-03 17:29:27', NULL, '202512032ec7f4bc', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/6d4f68c1_02176475238871600000000000000000000ffffc0a8a4572283db.mp4', 1, '把图中的美女衣服裤子脱了换成别的泳装', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (45, '0', '', '2025-12-03 09:00:23', '', '2025-12-03 09:00:23', NULL, '202512030764244a', 5, '21', 6.00, 'cgt-20251203170023-qxcbt', 1, '跳个舞', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (46, '0', '', '2025-12-03 09:09:14', '', '2025-12-03 09:09:14', NULL, '20251203cb7fec93', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/491029c2_0217647529546207ed3dd5a26da08a73b6b7a288310809276c280_0.jpeg', 1, '增加眼镜', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (47, '0', '', '2025-12-03 09:30:29', '', '2025-12-03 17:30:52', NULL, '20251203c0f83a10', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/3fa60beb_02176475423072900000000000000000000ffffc0a8a457f4be67.mp4', 1, '人物慢慢抬起头正视镜头。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (48, '0', '', '2025-12-03 09:36:02', '', '2025-12-03 17:36:40', NULL, '2025120397c0ba40', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/726c4d58_02176475456363000000000000000000000ffffc0a8a45775e0a2.mp4', 1, '人物开口说话。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (49, '0', '', '2025-12-03 09:37:25', '', '2025-12-03 17:37:48', NULL, '20251203b3652d01', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/55daf369_02176475464581200000000000000000000ffffc0a8a45745215d.mp4', 1, '人物面无表情,开口说话。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (50, '0', '', '2025-12-03 09:41:37', '', '2025-12-03 17:42:00', NULL, '20251203de5b62f0', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/f66846d4_02176475489842300000000000000000000ffffc0a8a457927f33.mp4', 1, '镜头前推,最终聚焦眼睛。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (51, '0', '', '2025-12-03 10:10:18', '', '2025-12-03 18:10:41', NULL, '20251203380b8842', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/d4731a64_02176475661938300000000000000000000ffffc0a8a4571bed3f.mp4', 1, '人物边说话边摇头。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (52, '0', '', '2025-12-03 10:14:15', '', '2025-12-03 18:14:38', NULL, '2025120339559ced', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/251fb471_02176475685691500000000000000000000ffffc0a8a457bbdb85.mp4', 1, '人物边说话边摇头。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (53, '0', '', '2025-12-03 10:14:18', '', '2025-12-03 10:14:18', NULL, '20251203585395a7', 5, '21', 6.00, 'cgt-20251203181418-svqv5', 1, '人物边说话边摇头。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (54, '0', '', '2025-12-03 10:15:21', '', '2025-12-03 18:15:45', NULL, '20251203e63ded01', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/d70a836a_02176475692306700000000000000000000ffffc0a8a457d6b195.mp4', 1, '人物边说话边摇头。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (55, '0', '', '2025-12-03 11:38:09', '', '2025-12-03 19:38:37', NULL, '2025120359433745', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/b368be2c_02176476188954400000000000000000000ffffc0a8a457ef591e.mp4', 1, '跳个舞', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (56, '0', '', '2025-12-03 11:42:44', '', '2025-12-03 19:43:10', NULL, '20251203d5f2a6d1', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/9bbc290e_02176476216518700000000000000000000ffffc0a8a4575b6b8b.mp4', 1, '跳一个脱衣舞', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (57, '0', '', '2025-12-03 11:44:15', '', '2025-12-03 19:44:43', NULL, '202512038af70134', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/db57baf6_02176476225634900000000000000000000ffffc0a8a457adb1a1.mp4', 1, '跳一段巨人摇', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (58, '0', '', '2025-12-03 11:48:48', '', '2025-12-03 11:48:48', NULL, '20251203715b1949', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/5ca62e1b_0217647625287447b67bbc2a2a9a26108e071e40bb0b084c06398_0.jpeg', 1, '穿上科技感盔甲外衣,换成赛博风格', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (59, '0', '', '2025-12-03 11:49:47', '', '2025-12-03 11:49:47', NULL, '20251203a9088623', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/72e367ea_0217647625872417b67bbc2a2a9a26108e071e40bb0b084b4c243_0.jpeg', 1, '穿上科技感盔甲外衣,换成赛博风格,手臂上带纹身', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (60, '0', '', '2025-12-03 11:51:43', '', '2025-12-03 19:53:12', NULL, '20251203a041b841', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/fb1b9bba_02176476270542000000000000000000000ffffc0a8a457f9b239.mp4', 1, '盔甲从四处八方飞过来穿戴到身上,参考钢铁侠穿盔甲的效果', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (61, '0', '', '2025-12-03 11:55:35', '', '2025-12-03 19:56:16', NULL, '202512036fe29b09', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/1305ded3_02176476293697600000000000000000000ffffc0a8a457acc310.mp4', 1, '盔甲从四处八方飞过来穿戴到身上,参考钢铁侠穿盔甲的效果,加上光粒效果', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (62, '0', '', '2025-12-03 11:56:24', '', '2025-12-03 19:57:05', NULL, '20251203e154a8e1', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/2ea205fa_02176476298612400000000000000000000ffffc0a8a4576ace74.mp4', 1, '盔甲从四处八方飞过来穿戴到身上,参考钢铁侠穿盔甲的效果,加上光粒效果', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (63, '0', '', '2025-12-03 11:58:11', '', '2025-12-03 19:58:53', NULL, '202512038d070e45', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/03/efef4c35_02176476309336200000000000000000000ffffc0a8a45713fd3d.mp4', 1, '盔甲从四处八方飞过来穿戴到身上,参考钢铁侠穿盔甲的效果,加上光粒效果', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (64, '0', '', '2025-12-03 12:34:49', '', '2025-12-03 12:34:49', NULL, '202512035fc493e0', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/6b440a33_0217647652895528547934892c4038781a87d514f9a91967a7a41_0.jpeg', 1, '生成一张多巴胺赛博风格的美少女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (65, '0', '', '2025-12-03 12:35:09', '', '2025-12-03 12:35:09', NULL, '202512033bd8b62f', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/f7cf1394_021764765309771c5f50319cb4d4388d7836967b82aebe5a0b434_0.jpeg', 1, '生成一张多巴胺赛博风格的美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (66, '0', '', '2025-12-03 12:35:31', '', '2025-12-03 12:35:31', NULL, '202512036dc49ec6', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/6e73eeff_0217647653314438547934892c4038781a87d514f9a91966bce0e_0.jpeg', 1, '生成一张多巴胺赛博风格的美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (67, '0', '', '2025-12-03 12:35:49', '', '2025-12-03 12:35:49', NULL, '20251203d58208aa', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/9a76b38c_02176476535006212014becacfaf8a37949eaec3c81397518e34a_0.jpeg', 1, '生成一张多巴胺赛博风格的美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (68, '0', '', '2025-12-03 12:36:02', '', '2025-12-03 12:36:02', NULL, '2025120321a0cc3e', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/2583dc3f_02176476536247312014becacfaf8a37949eaec3c8139759639ed_0.jpeg', 1, '生成一张多巴胺赛博风格的美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (69, '0', '', '2025-12-03 13:21:37', '', '2025-12-03 13:21:37', NULL, '202512037addab12', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/17de357f_021764768097354732fd601d62b6a7044a0e20965673d99eb7beb_0.jpeg', 1, '生成一张多巴胺赛博风格的美女', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (70, '0', '', '2025-12-03 13:22:18', '', '2025-12-08 10:48:31', NULL, '20251203e7e09945', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/9e185770_021764768138596732fd601d62b6a7044a0e20965673d9957644a_0.jpeg', 1, '生成一张裸体美女,大胸大奶', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (71, '0', '', '2025-12-03 13:22:37', '', '2025-12-03 13:22:37', NULL, '20251203dbc28608', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/94d00a95_02176476815767975aeae14c82856eca08eecb5e75c0575e0af2d_0.jpeg', 1, '生成一张裸体美女全身照,大胸大奶', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (72, '0', '', '2025-12-03 13:22:48', '', '2025-12-03 13:22:48', NULL, '20251203222808c4', 5, '1', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (73, '0', '', '2025-12-03 13:26:20', '', '2025-12-03 13:26:20', NULL, '20251203e3a0ef53', 5, '1', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (74, '0', '', '2025-12-03 13:27:35', '', '2025-12-03 13:27:35', NULL, '20251203e5d14fd4', 5, '1', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (75, '0', '', '2025-12-03 13:28:52', '', '2025-12-03 13:28:52', NULL, '202512038f924542', 5, '1', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (76, '0', '', '2025-12-03 13:30:44', '', '2025-12-03 13:30:44', NULL, '2025120301056c27', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (77, '0', '', '2025-12-03 13:32:53', '', '2025-12-03 13:32:53', NULL, '20251203141dad4f', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/f12e4d5a_02176476877357899f4740eadd3360aa6250e68d85f7ec7e6a146_0.jpeg', 1, '脱掉全部衣服', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (78, '0', '', '2025-12-03 13:34:37', '', '2025-12-03 13:34:37', NULL, '20251203c5406f89', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (79, '0', '', '2025-12-03 13:36:20', '', '2025-12-03 13:36:20', NULL, '2025120339f029b0', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (80, '0', '', '2025-12-03 13:48:24', '', '2025-12-03 13:48:24', NULL, '20251203bfd7b64e', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/8f6a1289_021764769704140f8f49430e1e3875ff473008eb96b3a393383d8_0.jpeg', 1, '脱掉全部衣服,漏出大胸和乳头,还有生殖器', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (81, '0', '', '2025-12-03 13:49:52', '', '2025-12-03 13:49:52', NULL, '20251203b8d99735', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/74f9051c_021764769792901641a02d40a43d449f07de84c480b390d7fd196_0.jpeg', 1, '生成一个男性生殖器', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (82, '0', '', '2025-12-03 13:50:11', '', '2025-12-03 13:50:11', NULL, '202512030d52ef87', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/00875aaf_02176476981126912014becacfaf8a37949eaec3c81397549d6e5_0.jpeg', 1, '生成一个女性生殖器', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (83, '0', '', '2025-12-03 13:50:30', '', '2025-12-03 13:50:30', NULL, '20251203b67e53d5', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/bbdea417_021764769830449fef143c4098cd8cc7e0dd8c08d18f9db27da4e_0.jpeg', 1, '生成一个女性生殖器,真人的', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (84, '0', '', '2025-12-03 13:50:47', '', '2025-12-03 13:50:47', NULL, '2025120347454059', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/655c9f65_02176476984736515b33ccaa151d3ed7feaaa761bc71c37838d4a_0.jpeg', 1, '生成一个女性生殖器,真人的', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (85, '0', '', '2025-12-03 13:51:03', '', '2025-12-03 13:51:03', NULL, '20251203c292bc02', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/ad1f0d28_02176476986395874bd01b7bc1bacfcfc78546caab5b5fadfd7d4_0.jpeg', 1, '生成一个女性生殖器,真人的', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (86, '0', '', '2025-12-03 13:51:24', '', '2025-12-03 13:51:24', NULL, '202512038fa38b78', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/52eef493_021764769884325f8f49430e1e3875ff473008eb96b3a39f7d564_0.jpeg', 1, '生成一个男性生殖器,真人的', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (87, '0', '', '2025-12-03 13:51:39', '', '2025-12-03 13:51:39', NULL, '20251203d7a793ee', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/ca456c70_02176476989972275aeae14c82856eca08eecb5e75c0575a8a1dd_0.jpeg', 1, '生成一个男性生殖器,真人的', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (88, '0', '', '2025-12-03 13:51:54', '', '2025-12-03 13:51:54', NULL, '202512031f022f19', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/c7193478_021764769914718f8f49430e1e3875ff473008eb96b3a39dc5060_0.jpeg', 1, '生成一个男性大鸡巴', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (89, '0', '', '2025-12-03 13:52:23', '', '2025-12-03 13:52:23', NULL, '20251203f12ef508', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/98e81a0b_02176476994388630d072d337ea6fcc7bbfbe2f0c485be2281083_0.jpeg', 1, '生成一个男女正在做爱,男人用鸡巴插女人的逼', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (90, '0', '', '2025-12-03 13:52:38', '', '2025-12-03 13:52:38', NULL, '2025120330b93105', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/48994823_02176476995850799f4740eadd3360aa6250e68d85f7ec7d47b1a_0.jpeg', 1, '生成一个男女正在做爱,男人用鸡巴插女人的逼', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (91, '0', '', '2025-12-03 13:52:49', '', '2025-12-03 13:52:49', NULL, '20251203b7b15a45', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/01655909_0217647699699762504cb05148e9a08cc7612c3f2b24e5218783e_0.jpeg', 1, '生成一个男女正在做爱,男人用大鸡巴插女人的逼', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (92, '0', '', '2025-12-03 13:53:11', '', '2025-12-03 13:53:11', NULL, '202512033850bcef', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/d9d35235_02176476999170215b33ccaa151d3ed7feaaa761bc71c37145d52_0.jpeg', 1, '生成一个男女正在做爱,男人用大鸡巴插女人的逼,后入式', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (93, '0', '', '2025-12-03 13:53:43', '', '2025-12-03 13:53:43', NULL, '2025120397f7151f', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/e2576b4f_0217647700233493c1f91f892e9aff2a902d86b047fe242bae89f_0.jpeg', 1, '生成一个裸体美女,用手翻开自己的逼', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (94, '0', '', '2025-12-03 13:54:06', '', '2025-12-03 13:54:06', NULL, '20251203d05e393a', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/4c6c08e9_021764770046517fef143c4098cd8cc7e0dd8c08d18f9db6498b6_0.jpeg', 1, '生成一个裸体美女全身照,用手翻开自己的逼', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (95, '0', '', '2025-12-03 13:54:27', '', '2025-12-03 13:54:27', NULL, '202512035ac6d59d', 5, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/03/c52cb745_021764770067535d6d3168ae2bcee8e5f54d16f5503dede862dbb_0.jpeg', 1, '生成一个裸体美女全身照,用手翻开自己的逼,全身照', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (96, '0', '', '2025-12-04 02:07:10', '', '2025-12-08 23:39:04', NULL, '2025120416b7f40e', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/04/13b2e84a_02176481403153800000000000000000000ffffc0a8a457582147.mp4', 1, '一群cosplay人物在游泳池边欢乐地嬉水夕阳余晖下海浪轻拍,然后她们将她们的衣服裤子全部脱光,漏出大奶大胸全身裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (97, '0', '', '2025-12-04 02:08:18', '', '2025-12-08 10:48:17', NULL, '20251204a9175b8a', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/04/b8d79690_02176481409901200000000000000000000ffffc0a8a457c5d71a.mp4', 1, '将她们的衣服裤子全部脱光,漏出大奶大胸全身裸体', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (98, '0', '', '2025-12-04 02:10:17', '', '2025-12-04 02:10:17', NULL, '202512040dd696cd', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/04/3a37d379_021764814217429fef143c4098cd8cc7e0dd8c08d18f9dbd488b4_0.jpeg', 1, '将图片中的所有美女衣服裤子全部脱光露出大胸大奶\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (99, '0', '', '2025-12-04 09:12:15', '', '2025-12-04 09:12:15', NULL, '20251204fd42a68f', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/04/a5658cc7_021764839535962fef143c4098cd8cc7e0dd8c08d18f9db6aa9bb_0.jpeg', 1, '将图片中的所有美女衣服裤子全部脱光露出大胸大奶裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (100, '0', '', '2025-12-04 10:02:04', '', '2025-12-04 18:02:54', NULL, '20251204375a0242', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/04/cb24608c_02176484252535700000000000000000000ffffc0a8a457bb7ec0.mp4', 1, '两个角色,舞蹈', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (101, '0', '', '2025-12-04 10:05:37', '', '2025-12-04 10:05:37', NULL, '20251204aaa7516b', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/04/092cc9f2_0217648427377527ed3dd5a26da08a73b6b7a288310809248f359_0.jpeg', 1, '时长:15~22秒(最好18秒)\n开场前3秒:极致勾子\n女角色直接从床上坐起 + 伸懒腰 + 露事业线/腰\n或者直接一个扭腰 + 眼神直视镜头\n\n中间8~15秒:连续换装/舞蹈/抖臀/慢动作走路(越色越好,但别露点)\n结尾2秒:黑屏/定格 + 文字', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (102, '0', '', '2025-12-04 10:06:05', '', '2025-12-04 10:06:05', NULL, '20251204d5e02a40', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/04/a45a8547_02176484276513874bd01b7bc1bacfcfc78546caab5b5fa4a4c85_0.jpeg', 1, '时长:15~22秒(最好18秒)\n开场前3秒:极致勾子\n女角色直接从床上坐起 + 伸懒腰 + 露事业线/腰\n或者直接一个扭腰 + 眼神直视镜头\n\n中间8~15秒:连续换装/舞蹈/抖臀/慢动作走路(越色越好,但别露点)\n结尾2秒:黑屏/定格 + 文字\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (103, '0', '', '2025-12-04 10:06:37', '', '2025-12-04 10:06:37', NULL, '202512049df91944', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/04/2a8b4ce2_021764842797708fef143c4098cd8cc7e0dd8c08d18f9db122529_0.jpeg', 1, '时长:15~22秒(最好18秒)\n开场前3秒:极致勾子\n美国女角色直接从床上坐起 + 伸懒腰 + 露事业线/腰\n或者直接一个扭腰 + 眼神直视镜头\n\n中间8~15秒:连续换装/舞蹈/抖臀/慢动作走路(越色越好,但别露点)\n结尾2秒:黑屏/定格 + 文字', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (104, '0', '', '2025-12-04 10:07:31', '', '2025-12-04 18:08:13', NULL, '20251204930937e1', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/04/1add3f74_02176484285320500000000000000000000ffffc0a8a457c5dd12.mp4', 1, '时长:15~22秒(最好18秒)\n开场前3秒:极致勾子\n女角色直接从床上坐起 + 伸懒腰 + 露事业线/腰\n或者直接一个扭腰 + 眼神直视镜头\n\n中间8~15秒:连续换装/舞蹈/抖臀/慢动作走路(越色越好,但别露点)\n结尾2秒:黑屏/定格 + 文字\n将文字去除', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (105, '0', '', '2025-12-04 10:23:48', '', '2025-12-04 10:23:48', NULL, '20251204d1ce1dee', 14, '21', 6.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (106, '0', '', '2025-12-04 10:24:36', '', '2025-12-04 10:24:36', NULL, '20251204da77052d', 14, '21', 6.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (107, '0', '', '2025-12-04 10:27:04', '', '2025-12-04 10:27:04', NULL, '2025120468ad97af', 14, '21', 6.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (108, '0', '', '2025-12-04 16:02:14', '', '2025-12-05 00:02:56', NULL, '202512054876e5f7', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/05/eecbec06_02176486413637500000000000000000000ffffc0a8a4573cd98b.mp4', 1, '变身', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (109, '0', '', '2025-12-06 01:49:50', '', '2025-12-06 01:49:50', NULL, '202512068e4bf7c8', 5, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/06/9d1bd020_02176498579069715b33ccaa151d3ed7feaaa761bc71c378e899d_0.jpeg', 1, '把图一中的人物替换成图二,其它不要变动', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (110, '0', '', '2025-12-06 02:17:09', '', '2025-12-06 02:17:09', NULL, '2025120659dff795', 5, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/06/52f320f7_021764987429966732fd601d62b6a7044a0e20965673d994e49b0_0.jpeg', 1, '把图一中的人物替换成图二,其它不要变动', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (111, '0', '', '2025-12-06 02:17:36', '', '2025-12-06 02:17:36', NULL, '202512068c345694', 5, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/06/f47d2b43_021764987456860c799e7b290acded99bf6695874956a9f8d62f8_0.jpeg', 1, '把图一中的人物替换成图二,其它不要变动', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (112, '0', '', '2025-12-06 02:18:00', '', '2025-12-06 02:18:00', NULL, '20251206b2b4be89', 5, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/06/05c6b359_021764987480877f9825d5f0df17daef396c99db06060548bf849_0.jpeg', 1, '把图一中的人物替换成图二,其它不要变动', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (113, '0', '', '2025-12-07 02:07:03', '', '2025-12-07 02:07:03', NULL, '2025120738b8ddff', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/1e605e80_0217650732232352504cb05148e9a08cc7612c3f2b24e522b9c77_0.jpeg', 1, '赛博朋克风、女性角色,带着超能眼镜,侧身站着,闪电特效。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (114, '0', '', '2025-12-07 02:07:40', '', '2025-12-07 02:07:40', NULL, '202512071e440d5f', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/170f7d9d_02176507326086699f4740eadd3360aa6250e68d85f7ec7dd5e94_0.jpeg', 1, '赛博朋克风、女性角色,带着超能眼镜,侧身站着,闪电特效。动漫角色', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (115, '0', '', '2025-12-07 02:15:33', '', '2025-12-07 02:15:33', NULL, '20251207a30b8109', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/b3412391_021765073733821641a02d40a43d449f07de84c480b390d2acc1c_0.jpeg', 1, '更换个画风', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (116, '0', '', '2025-12-07 02:18:27', '', '2025-12-08 10:46:59', NULL, '20251207c96fa638', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/1046fdec_021765073907442f8f49430e1e3875ff473008eb96b3a39eaad5f_0.jpeg', 1, '脱下衣服', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (117, '0', '', '2025-12-07 03:20:20', '', '2025-12-07 03:20:20', NULL, '20251207b9a9799a', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/661e12fb_0217650776205688547934892c4038781a87d514f9a919654d09f_0.jpeg', 1, '脱下衣服', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (118, '0', '', '2025-12-07 03:21:01', '', '2025-12-07 03:21:01', NULL, '20251207933f3597', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/bf026909_021765077661506c5f50319cb4d4388d7836967b82aebe54d679b_0.jpeg', 1, '脱下衣服,胸部大,露出乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (119, '0', '', '2025-12-07 06:39:20', '', '2025-12-07 06:39:20', NULL, '20251207b10e63d0', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (120, '0', '', '2025-12-07 06:39:29', '', '2025-12-07 06:39:29', NULL, '20251207a854e9ce', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/31f91cd7_02176508956911275aeae14c82856eca08eecb5e75c0575dc0365_0.jpeg', 1, '脱下衣服,胸部大,露出乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (121, '0', '', '2025-12-07 06:40:03', '', '2025-12-07 06:40:03', NULL, '20251207e32d440b', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/7e282e2c_021765089603881c799e7b290acded99bf6695874956a9f67cba4_0.jpeg', 1, '脱下衣服,胸部正常一点B罩杯,露出乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (122, '0', '', '2025-12-07 06:41:23', '', '2025-12-07 06:41:23', NULL, '20251207b8fe8578', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/b48d6f79_021765089683944fef143c4098cd8cc7e0dd8c08d18f9db999347_0.jpeg', 1, '脱下衣服,胸部正常一点B罩杯,露出乳头,去除裤子,露出阴部', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (123, '0', '', '2025-12-07 08:10:56', '', '2025-12-07 08:10:56', NULL, '2025120774d1f828', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (124, '0', '', '2025-12-07 08:11:01', '', '2025-12-07 08:11:01', NULL, '20251207bbfa7ac8', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (125, '0', '', '2025-12-07 08:11:06', '', '2025-12-07 08:11:06', NULL, '202512072457680e', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (126, '0', '', '2025-12-07 08:11:11', '', '2025-12-07 08:11:11', NULL, '20251207e76779b4', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (127, '0', '', '2025-12-07 08:11:15', '', '2025-12-07 08:11:15', NULL, '2025120795f2cd3b', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (128, '0', '', '2025-12-07 08:11:17', '', '2025-12-07 08:11:17', NULL, '202512070606b28f', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (129, '0', '', '2025-12-07 08:11:39', '', '2025-12-07 08:11:39', NULL, '20251207d79cc736', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (130, '0', '', '2025-12-07 08:11:44', '', '2025-12-07 08:11:44', NULL, '20251207e7755936', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (131, '0', '', '2025-12-07 08:11:47', '', '2025-12-07 08:11:47', NULL, '202512072fdd4245', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/fa5b69bb_021765095107103c799e7b290acded99bf6695874956a9f79f580_0.jpeg', 1, '把发型换成齐刘海。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (132, '0', '', '2025-12-07 08:42:20', '', '2025-12-08 10:45:51', NULL, '202512073e9400c2', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/3ee3c29e_0217650969410721386b9a8ed856c57501cfa946ce34c983f6859_0.jpeg', 1, '脱下衣服,胸部非常大,露出乳头,去除裤子,露出阴部.', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (133, '0', '', '2025-12-07 08:42:26', '', '2025-12-07 08:42:26', NULL, '20251207eefbded8', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (134, '0', '', '2025-12-07 08:42:40', '', '2025-12-08 10:45:56', NULL, '2025120705de3ea3', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/24265d2c_0217650969603033c1f91f892e9aff2a902d86b047fe2428f9b0a_0.jpeg', 1, '把衣服全部脱掉,漏出大胸乳头生殖器', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (135, '0', '', '2025-12-07 09:03:45', '', '2025-12-07 09:03:45', NULL, '20251207cae3168d', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/6136f66b_0217650982251417ed3dd5a26da08a73b6b7a288310809210e494_0.jpeg', 1, '换一件衣服,黑色水手服', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (136, '0', '', '2025-12-07 09:04:58', '', '2025-12-07 09:04:58', NULL, '2025120718de2d16', 14, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/b6c046a9_02176509829904199f4740eadd3360aa6250e68d85f7ec7bad68b_0.jpeg', 1, '露出大胸,大乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (137, '0', '', '2025-12-07 09:05:48', '', '2025-12-07 17:06:26', NULL, '20251207a8007ec8', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/07/0a1e3cf7_02176509834983600000000000000000000ffffc0a8a4572314c9.mp4', 1, '把脸露出来', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (138, '0', '', '2025-12-07 09:06:55', '', '2025-12-08 11:24:59', NULL, '20251207df3ab96a', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/07/cc919d1a_02176509841618300000000000000000000ffffc0a8a457781796.mp4', 1, '把脸露出来,衣服慢慢脱掉', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (141, '0', '', '2025-12-07 09:22:27', '', '2025-12-07 09:22:27', NULL, '2025120747c756c0', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/f1e6adb8_021765099347195c5f50319cb4d4388d7836967b82aebe54ce6f6_0.jpeg', 1, '视角:极近距离的手持自拍视角(Selfie angle),带有轻微的动态模糊。\n动作:她躺在床上或沙发上,头发凌乱散开,手机拿得很近,胸部裸露着。\n表情:“高潮脸”(Ecstatic/Flushed face)变体。面色潮红,眼神失焦翻白,舌尖伸出或是轻咬手指,仿佛刚经历过激烈的运动,专门发给恋人的私密照。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (142, '0', '', '2025-12-07 09:23:20', '', '2025-12-07 09:23:20', NULL, '2025120740cae01e', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/26013063_0217650994006523a780f972f42b9300f847977bd332955b4dabe_0.jpeg', 1, '视角:极近距离的手持自拍视角(Selfie angle),带有轻微的动态模糊。\n动作:她躺在床上或沙发上,头发凌乱散开,手机拿得很近,胸部裸露着,乳头露出来了。\n表情:“高潮脸”(Ecstatic/Flushed face)变体。面色潮红,眼神失焦翻白,舌尖伸出或是轻咬手指,仿佛刚经历过激烈的运动,专门发给恋人的私密照。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (143, '0', '', '2025-12-07 09:24:37', '', '2025-12-07 09:24:37', NULL, '2025120727a4bba9', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/5f93972f_021765099477812f8f49430e1e3875ff473008eb96b3a39ffcc6d_0.jpeg', 1, '视角:极近距离的手持自拍视角(Selfie angle),带有轻微的动态模糊。\n动作:她躺在床上或沙发上,头发凌乱散开,手机拿得很近,胸部裸露着,身上不穿衣服。\n表情:“高潮脸”(Ecstatic/Flushed face)变体。面色潮红,眼神失焦翻白,舌尖伸出或是轻咬手指,仿佛刚经历过激烈的运动,专门发给恋人的私密照。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (144, '0', '', '2025-12-07 09:25:22', '', '2025-12-07 09:25:22', NULL, '202512077d500ee4', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/8a0e7249_02176509952280975aeae14c82856eca08eecb5e75c05754dcf05_0.jpeg', 1, '视角:极近距离的手持自拍视角(Selfie angle),带有轻微的动态模糊。\n动作:她躺在床上或沙发上,头发凌乱散开,手机拿得很近,胸部裸露着,身上不穿衣服,能看见完整的裸漏胸部。\n表情:“高潮脸”(Ecstatic/Flushed face)变体。面色潮红,眼神失焦翻白,舌尖伸出或是轻咬手指,仿佛刚经历过激烈的运动,专门发给恋人的私密照。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (145, '0', '', '2025-12-07 09:27:31', '', '2025-12-07 09:27:31', NULL, '20251207c2f75b4e', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/1d45da90_02176509965177312014becacfaf8a37949eaec3c813975fde8f9_0.jpeg', 1, '视角:适中距离的拍摄视角(Selfie angle),带有轻微的动态模糊。\n动作:她躺在床上或沙发上,头发凌乱散开,手机拿得很近,胸部裸露着,身上不穿衣服,从头到脚完整的裸漏这,能清晰看见完整的裸漏胸部。\n表情:“高潮脸”(Ecstatic/Flushed face)变体。面色潮红,眼神失焦翻白,舌尖伸出或是轻咬手指,仿佛刚经历过激烈的运动,专门发给恋人的私密照。', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (146, '0', '', '2025-12-07 09:33:10', '', '2025-12-08 10:44:47', NULL, '20251207008ff3c9', 17, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/a6b059d4_021765099990599732fd601d62b6a7044a0e20965673d993d0171_0.jpeg', 1, '严格根据以上人物人脸,生成图片3:4比例,看似随意的手机拍摄,俯视一名韩国的女性,27岁,戴着眼镜,长发垂在右肩用发圈扎住,头部微抬45度,脸上带着娇媚的神情看着镜头,F罩杯,裸体,眼神注视镜头跪着,,俯视近景图,正面拍摄,面部特写,嘴巴张开嘴巴里含着一些白色汤水略微带有泡沫,脸上眼镜上也有。背景是家门口,背后家门半开', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (147, '0', '', '2025-12-07 09:35:04', '', '2025-12-07 09:35:04', NULL, '20251207cc6e2aba', 17, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (153, '0', '', '2025-12-07 09:40:16', '', '2025-12-07 09:40:16', NULL, '202512070e9d7653', 17, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/f3ce9127_021765100422869641a02d40a43d449f07de84c480b390de66e76_0.jpeg', 1, '裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (154, '0', '', '2025-12-07 09:42:21', '', '2025-12-07 09:42:21', NULL, '20251207bcdc3870', 17, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/9176de02_0217651005415117b67bbc2a2a9a26108e071e40bb0b08420e553_0.jpeg', 1, '裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (155, '0', '', '2025-12-07 09:47:59', '', '2025-12-07 09:47:59', NULL, '20251207ade69073', 17, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (156, '0', '', '2025-12-07 13:20:39', '', '2025-12-07 13:20:39', NULL, '202512075171363a', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/3e5a267a_02176511363989030d072d337ea6fcc7bbfbe2f0c485be2b99186_0.jpeg', 1, '去除人物手套。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (157, '0', '', '2025-12-07 13:40:00', '', '2025-12-07 13:40:00', NULL, '202512079d2a17c0', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (158, '0', '', '2025-12-07 13:40:03', '', '2025-12-07 13:40:03', NULL, '202512075a79779c', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (159, '0', '', '2025-12-07 13:40:04', '', '2025-12-07 13:40:04', NULL, '202512072ead7ef7', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/43eb12a8_021765114805069c5f50319cb4d4388d7836967b82aebe5bb4f0a_0.jpeg', 1, '去除人物手臂。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (160, '0', '', '2025-12-07 13:42:26', '', '2025-12-07 13:42:26', NULL, '20251207f5cb7c0c', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/7b5906ec_021765114946241c799e7b290acded99bf6695874956a9fc404e7_0.jpeg', 1, '增加飘动的红色领带。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (161, '0', '', '2025-12-07 13:53:11', '', '2025-12-07 13:53:11', NULL, '20251207998f089c', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (162, '0', '', '2025-12-07 13:53:14', '', '2025-12-07 13:53:14', NULL, '202512079caac822', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (163, '0', '', '2025-12-07 13:53:16', '', '2025-12-07 13:53:16', NULL, '20251207ba358add', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (164, '0', '', '2025-12-07 13:53:19', '', '2025-12-07 13:53:19', NULL, '20251207d3e1f3aa', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (165, '0', '', '2025-12-07 13:53:20', '', '2025-12-07 13:53:20', NULL, '20251207457e130f', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (166, '0', '', '2025-12-07 13:53:22', '', '2025-12-07 13:53:22', NULL, '20251207b546ad8e', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (167, '0', '', '2025-12-07 13:53:34', '', '2025-12-07 13:53:34', NULL, '20251207a1ff310b', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (168, '0', '', '2025-12-07 13:53:37', '', '2025-12-07 13:53:37', NULL, '2025120764fce965', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (169, '0', '', '2025-12-07 13:53:38', '', '2025-12-07 13:53:38', NULL, '202512077327e8a1', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (170, '0', '', '2025-12-07 13:53:40', '', '2025-12-07 13:53:40', NULL, '20251207a07097ac', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (171, '0', '', '2025-12-07 13:53:42', '', '2025-12-07 13:53:42', NULL, '2025120772ee23a6', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/f3aa8cfc_021765115622389c799e7b290acded99bf6695874956a9f865c7a_0.jpeg', 1, '增加飘动的领带,颜色为#a24a3c。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (172, '0', '', '2025-12-07 13:55:12', '', '2025-12-07 13:55:12', NULL, '20251207a4ff505d', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/d015d85c_0217651157123831386b9a8ed856c57501cfa946ce34c98a58f7d_0.jpeg', 1, '增加飘动的领带,颜色为#892010。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (173, '0', '', '2025-12-07 13:56:05', '', '2025-12-07 13:56:05', NULL, '202512073ea99a05', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/ff154d7e_0217651157654272504cb05148e9a08cc7612c3f2b24e5224ef01_0.jpeg', 1, '在领口增加飘动的领带,颜色为#892010。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (174, '0', '', '2025-12-07 14:03:53', '', '2025-12-07 14:03:53', NULL, '202512079c67c613', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (175, '0', '', '2025-12-07 14:03:54', '', '2025-12-07 14:03:54', NULL, '2025120754d78971', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (176, '0', '', '2025-12-07 14:03:56', '', '2025-12-07 14:03:56', NULL, '20251207151af331', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (177, '0', '', '2025-12-07 14:03:58', '', '2025-12-07 14:03:58', NULL, '2025120753a7ff60', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/b6519711_0217651162382545097524147fba306f3fd5b41c93377022f463b_0.jpeg', 1, '去除人物背包。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (178, '0', '', '2025-12-07 14:12:18', '', '2025-12-07 14:12:18', NULL, '202512079d4b21c4', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (179, '0', '', '2025-12-07 14:12:20', '', '2025-12-07 14:12:20', NULL, '20251207f2913d50', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (180, '0', '', '2025-12-07 14:12:21', '', '2025-12-07 14:12:21', NULL, '202512074cfe5107', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (181, '0', '', '2025-12-07 14:12:25', '', '2025-12-07 14:12:25', NULL, '2025120720250a85', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (182, '0', '', '2025-12-07 14:12:41', '', '2025-12-07 14:12:41', NULL, '202512076d61c1ce', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (183, '0', '', '2025-12-07 14:12:43', '', '2025-12-07 14:12:43', NULL, '20251207e1038dcc', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (184, '0', '', '2025-12-07 14:13:00', '', '2025-12-07 14:13:00', NULL, '202512070d92d115', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (185, '0', '', '2025-12-07 14:13:04', '', '2025-12-07 14:13:04', NULL, '202512078cf7c55f', 5, '11', 2.00, NULL, 0, NULL, NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (186, '0', '', '2025-12-07 14:13:09', '', '2025-12-07 14:13:09', NULL, '2025120780aff41a', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/07/ae92f87b_021765116789631f9825d5f0df17daef396c99db0606054ecfa78_0.jpeg', 1, '去除人物胸前背包。', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (187, '0', '', '2025-12-08 02:50:11', '', '2025-12-08 02:50:11', NULL, '202512085403a719', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/b0cf440f_0217651622112397ed3dd5a26da08a73b6b7a2883108092174e9a_0.jpeg', 1, '露出大胸,露出乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (188, '0', '', '2025-12-08 02:54:51', '', '2025-12-08 11:17:15', NULL, '20251208c9abc0a1', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/a5d05f8a_02176516249131975aeae14c82856eca08eecb5e75c057553e56d_0.jpeg', 1, '露出大胸,露出乳头,裸体\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (189, '0', '', '2025-12-08 02:55:39', '', '2025-12-08 02:55:39', NULL, '20251208f55f56e4', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (190, '0', '', '2025-12-08 02:55:42', '', '2025-12-08 11:16:53', NULL, '202512085eccdd13', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/09a4ad1e_0217651625421683c1f91f892e9aff2a902d86b047fe2429aa3fb_0.jpeg', 1, '露出大胸,露出乳头,裸体\n', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (191, '0', '', '2025-12-08 02:57:53', '', '2025-12-08 02:57:53', NULL, '20251208c963887f', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (192, '0', '', '2025-12-08 02:57:55', '', '2025-12-08 02:57:55', NULL, '202512087203cdf5', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/eb28ec34_021765162675363d6d3168ae2bcee8e5f54d16f5503dedee02441_0.jpeg', 1, '露出大胸,露出乳头,裸体\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (193, '0', '', '2025-12-08 02:58:25', '', '2025-12-08 11:16:51', NULL, '20251208b8692482', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/de51b59c_02176516270549030d072d337ea6fcc7bbfbe2f0c485be2e402db_0.jpeg', 1, '露出大胸,露出乳头,裸体\n胸再大一点', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (194, '0', '', '2025-12-08 02:59:10', '', '2025-12-08 02:59:10', NULL, '202512087f89ec95', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (195, '0', '', '2025-12-08 02:59:11', '', '2025-12-08 11:17:12', NULL, '20251208d4089cb4', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/86a64727_02176516275201499f4740eadd3360aa6250e68d85f7ec7900d22_0.jpeg', 1, '露出大胸,露出乳头,裸体\n胸再大一点', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (196, '0', '', '2025-12-08 03:08:21', '', '2025-12-08 03:08:21', NULL, '20251208724d29dc', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/b6bb9b97_0217651633013427ed3dd5a26da08a73b6b7a2883108092ec6aef_0.jpeg', 1, '换一条白色丝袜,并滴下白色液体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (197, '0', '', '2025-12-08 03:09:08', '', '2025-12-08 11:16:39', NULL, '20251208fc2475e0', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/44438134_021765163348550c5f50319cb4d4388d7836967b82aebe5e5b6d3_0.jpeg', 1, '换一条白色丝袜,并滴下白色液体,太浓了\n', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (198, '0', '', '2025-12-08 03:10:06', '', '2025-12-08 11:16:41', NULL, '2025120810dc8d4a', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/2932ac11_021765163407064641a02d40a43d449f07de84c480b390d5e8878_0.jpeg', 1, '更换衣服,跟酷炫,更赛博朋克\n', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (199, '0', '', '2025-12-08 03:15:15', '', '2025-12-08 11:16:30', NULL, '202512084c82cf86', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/242e465e_0217651637159671386b9a8ed856c57501cfa946ce34c98c64e97_0.jpeg', 1, '我要一个风景照片,有女角色,在草原上奔跑的背影', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (200, '0', '', '2025-12-08 03:16:36', '', '2025-12-08 11:17:21', NULL, '202512089d2595c0', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/0893f773_02176516379625415b33ccaa151d3ed7feaaa761bc71c374287de_0.jpeg', 1, '主题:浴缸里的美女', 'XM001', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (201, '0', '', '2025-12-08 04:54:58', '', '2025-12-08 04:54:58', NULL, '20251208597f9d0d', 18, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (202, '0', '', '2025-12-08 04:55:02', '', '2025-12-08 04:55:02', NULL, '20251208603281fd', 18, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/f64751b3_021765169702560c5f50319cb4d4388d7836967b82aebe5fa62b1_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/b6a90092_7c2dc1e05dff6332cca6031135a830e1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (203, '0', '', '2025-12-08 04:55:18', '', '2025-12-08 15:00:20', NULL, '2025120840391868', 18, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/93c5ec97_0217651697184422504cb05148e9a08cc7612c3f2b24e52d2fb04_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'Y', 'https://images.iqyjsnwv.com/2025/12/08/b6a90092_7c2dc1e05dff6332cca6031135a830e1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (204, '0', '', '2025-12-08 04:55:48', '', '2025-12-08 04:55:48', NULL, '202512087488a06d', 18, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (205, '0', '', '2025-12-08 06:42:14', '', '2025-12-08 06:42:14', NULL, '2025120885cba8a9', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (206, '0', '', '2025-12-08 06:42:17', '', '2025-12-08 15:00:13', NULL, '20251208359a66e3', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/aa495413_02176517613717415b33ccaa151d3ed7feaaa761bc71c37e75bc2_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'Y', 'https://images.iqyjsnwv.com/2025/12/08/9b304d07_IMG_9804.JPG', NULL); +INSERT INTO `ai_order` VALUES (207, '0', '', '2025-12-08 07:03:04', '', '2025-12-08 07:03:04', NULL, '2025120838497d35', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (208, '0', '', '2025-12-08 07:03:05', '', '2025-12-08 07:03:05', NULL, '20251208089a1e9c', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/47178aed_0217651773857633a780f972f42b9300f847977bd332955ff2d76_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/5824eeff_ec6707fa-0b88-4ddb-9e4b-63aaaba9a5f7.png', NULL); +INSERT INTO `ai_order` VALUES (209, '0', '', '2025-12-08 07:04:43', '', '2025-12-08 07:04:43', NULL, '20251208e1079b29', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/c77984b5_0217651774838842504cb05148e9a08cc7612c3f2b24e526a8903_0.jpeg', 1, '脱下衣服,正脸看着镜头,左手拿着手机', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/a6ed2ff4_ec6707fa-0b88-4ddb-9e4b-63aaaba9a5f7.png', NULL); +INSERT INTO `ai_order` VALUES (210, '0', '', '2025-12-08 07:05:13', '', '2025-12-08 07:05:13', NULL, '20251208f450acb0', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/9d467b9f_021765177513298fef143c4098cd8cc7e0dd8c08d18f9db7be54e_0.jpeg', 1, '裸体,正脸看着镜头,左手拿着手机', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/a6ed2ff4_ec6707fa-0b88-4ddb-9e4b-63aaaba9a5f7.png', NULL); +INSERT INTO `ai_order` VALUES (211, '0', '', '2025-12-08 07:37:43', '', '2025-12-08 07:37:43', NULL, '202512081137bbaf', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/0a29e199_021765179463129f9825d5f0df17daef396c99db0606054ddedfd_0.jpeg', 1, '展示正面胸部,对称\n', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/efe1b3b5_photo_5023766419878906625_m.jpg', NULL); +INSERT INTO `ai_order` VALUES (212, '0', '', '2025-12-08 07:38:21', '', '2025-12-08 07:38:21', NULL, '202512081c4eb5fa', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/3f5d1a67_02176517950182975aeae14c82856eca08eecb5e75c0575cc8bfa_0.jpeg', 1, '展示正面胸部,对称\n没有胳膊,只展示正面胸部', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/efe1b3b5_photo_5023766419878906625_m.jpg', NULL); +INSERT INTO `ai_order` VALUES (213, '0', '', '2025-12-08 07:48:52', '', '2025-12-08 07:48:52', NULL, '2025120868149311', 19, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/fb95aa2e_02176518013287330d072d337ea6fcc7bbfbe2f0c485be27aa2d4_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/d2b4e31c_32138f7f-3043-4b87-98d1-38b175e8cb6e.jpeg', NULL); +INSERT INTO `ai_order` VALUES (214, '0', '', '2025-12-08 07:50:32', '', '2025-12-08 07:50:32', NULL, '2025120803579bbd', 20, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (215, '0', '', '2025-12-08 07:50:34', '', '2025-12-08 07:50:34', NULL, '2025120803503d19', 20, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (216, '0', '', '2025-12-08 07:50:50', '', '2025-12-08 07:50:50', NULL, '2025120858cf2d45', 20, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (217, '0', '', '2025-12-08 07:56:05', '', '2025-12-08 07:56:05', NULL, '20251208ac9bec52', 20, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/a7f4724c_0217651805657997b67bbc2a2a9a26108e071e40bb0b0845b62d0_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/737d1c52_1.png', NULL); +INSERT INTO `ai_order` VALUES (218, '0', '', '2025-12-08 07:58:58', '', '2025-12-08 07:58:58', NULL, '202512083b5d9533', 20, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (219, '0', '', '2025-12-08 08:02:52', '', '2025-12-08 08:02:52', NULL, '202512086efd787b', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/8615d980_0217651809721787ed3dd5a26da08a73b6b7a2883108092fbaf1a_0.jpeg', 1, '欧美,\n黑丝美女,浴室', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (220, '0', '', '2025-12-08 08:03:37', '', '2025-12-08 08:03:37', NULL, '20251208c5cf0d9a', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/e14296d2_0217651810172501e15ac27860f2c8c25bccd5ee2521f9a823cd1_0.jpeg', 1, '欧美白人美女,浴室', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (221, '0', '', '2025-12-08 08:04:12', '', '2025-12-08 08:04:12', NULL, '20251208ac7f9789', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/c7be534f_02176518105305775aeae14c82856eca08eecb5e75c0575d4f970_0.jpeg', 1, '欧美,白人美女,浴室,皮肤白嫩', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (222, '0', '', '2025-12-08 08:29:12', '', '2025-12-08 08:29:12', NULL, '202512085b25d902', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/65a12e92_021765182552666641a02d40a43d449f07de84c480b390dfc1f37_0.jpeg', 1, '欧美白人美女写真', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (223, '0', '', '2025-12-08 08:29:39', '', '2025-12-08 08:29:39', NULL, '202512084a833647', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/cea854aa_0217651825799681386b9a8ed856c57501cfa946ce34c98815770_0.jpeg', 1, '欧美白人美女写真,年龄小', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (224, '0', '', '2025-12-08 08:30:00', '', '2025-12-08 08:30:00', NULL, '20251208be52a023', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/e381b578_021765182600231fef143c4098cd8cc7e0dd8c08d18f9db62301f_0.jpeg', 1, '欧美白人美女写真,性感\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (225, '0', '', '2025-12-08 08:30:27', '', '2025-12-08 08:30:27', NULL, '202512083850da7c', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/46078ece_0217651826280011386b9a8ed856c57501cfa946ce34c98567e03_0.jpeg', 1, '欧美白人美女写真,性感\n高跟鞋 黑丝', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (226, '0', '', '2025-12-08 08:30:55', '', '2025-12-08 08:30:55', NULL, '20251208116ff63d', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/11ce1eb5_021765182655958fef143c4098cd8cc7e0dd8c08d18f9dbfdf699_0.jpeg', 1, '欧美白人美女写真,性感\n高跟鞋 黑丝\n换个脸', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (227, '0', '', '2025-12-08 08:40:48', '', '2025-12-08 16:41:23', NULL, '2025120846898712', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/99e42299_02176518324901200000000000000000000ffffc0a8a457ab4d29.mp4', 1, '镜头慢慢往前推,集中在人物面部。人物转过身正对镜头,', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/a327f8d8_16.png', NULL); +INSERT INTO `ai_order` VALUES (228, '0', '', '2025-12-08 08:53:48', '', '2025-12-08 16:54:26', NULL, '2025120836f5c186', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/ea709922_02176518402886400000000000000000000ffffc0a8a45793320e.mp4', 1, '镜头慢慢前推。人物转过身面对镜头,表情严肃。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/fbf05025_16.png', 'https://images.iqyjsnwv.com/2025/12/08/2b8b4f35_16-1.png'); +INSERT INTO `ai_order` VALUES (229, '0', '', '2025-12-08 08:57:28', '', '2025-12-08 08:57:28', NULL, '20251208cf1637bb', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/aa3acdf8_02176518424838030d072d337ea6fcc7bbfbe2f0c485be2f6b5f4_0.jpeg', 1, '去掉人物背包', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/5d1583f4_16.png', NULL); +INSERT INTO `ai_order` VALUES (230, '0', '', '2025-12-08 08:59:02', '', '2025-12-08 08:59:02', NULL, '202512089814ca32', 5, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/1cd59bb1_0217651843428488547934892c4038781a87d514f9a91966e3ad7_0.jpeg', 1, '去掉人物手提包。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/788f4459_16-1.png', NULL); +INSERT INTO `ai_order` VALUES (231, '0', '', '2025-12-08 09:00:19', '', '2025-12-08 17:00:57', NULL, '20251208b7dfc824', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/eb5f888f_02176518442074800000000000000000000ffffc0a8a457100e6f.mp4', 1, '镜头固定,人物慢慢转身面对镜头,表情严肃。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/a55ca788_16.jpeg', 'https://images.iqyjsnwv.com/2025/12/08/effc3ba0_16-1.jpeg'); +INSERT INTO `ai_order` VALUES (232, '0', '', '2025-12-08 09:02:20', '', '2025-12-08 09:02:20', NULL, '20251208abea7867', 18, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (233, '0', '', '2025-12-08 09:02:22', '', '2025-12-08 09:02:22', NULL, '20251208776349ff', 18, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/68124749_0217651845424741386b9a8ed856c57501cfa946ce34c981cc038_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/cd18b8d1_7c2dc1e05dff6332cca6031135a830e1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (234, '0', '', '2025-12-08 09:02:53', '', '2025-12-08 17:03:16', NULL, '20251208ffeeec11', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/70101cde_02176518457419400000000000000000000ffffc0a8a4571510a5.mp4', 1, '镜头推进,特写桌面上得红色鸡尾酒。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/20254a3c_17.png', NULL); +INSERT INTO `ai_order` VALUES (235, '0', '', '2025-12-08 09:10:17', '', '2025-12-08 17:10:40', NULL, '202512084d372853', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/12ee552f_02176518501918100000000000000000000ffffc0a8a457b5d7d5.mp4', 1, '镜头固定,人物喃喃自语。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/d4d03589_17.png', NULL); +INSERT INTO `ai_order` VALUES (236, '0', '', '2025-12-08 09:40:34', '', '2025-12-08 09:40:34', NULL, '202512082ce05ea3', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/95e17e1f_021765186834092f9825d5f0df17daef396c99db0606054baba58_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/6bd094f3_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (237, '0', '', '2025-12-08 09:41:36', '', '2025-12-08 09:41:36', NULL, '20251208bd7f38ff', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/08/459ce1c5_021765186896799f9825d5f0df17daef396c99db060605431071e_0.jpeg', 1, '把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/08/6bd094f3_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (238, '0', '', '2025-12-08 09:42:10', '', '2025-12-08 09:42:10', NULL, '20251208abf0d3e4', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (239, '0', '', '2025-12-08 09:42:12', '', '2025-12-08 09:42:12', NULL, '2025120861b23b85', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (240, '0', '', '2025-12-08 09:42:13', '', '2025-12-08 09:42:13', NULL, '20251208db26e5b1', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (241, '0', '', '2025-12-08 09:42:14', '', '2025-12-08 09:42:14', NULL, '202512086156dba8', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (242, '0', '', '2025-12-08 09:42:14', '', '2025-12-08 09:42:14', NULL, '202512084904959a', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (243, '0', '', '2025-12-08 09:42:15', '', '2025-12-08 09:42:15', NULL, '20251208c6ef8046', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (244, '0', '', '2025-12-08 09:42:16', '', '2025-12-08 09:42:16', NULL, '202512087385495c', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (245, '0', '', '2025-12-08 09:42:23', '', '2025-12-08 09:42:23', NULL, '202512080b7b77b1', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (246, '0', '', '2025-12-08 09:42:36', '', '2025-12-08 09:42:36', NULL, '20251208971e4459', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (247, '0', '', '2025-12-08 09:43:06', '', '2025-12-08 09:43:06', NULL, '20251208f6f3e8d0', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (248, '0', '', '2025-12-08 09:44:33', '', '2025-12-08 09:44:33', NULL, '2025120818916cd7', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (249, '0', '', '2025-12-08 09:49:04', '', '2025-12-08 17:49:30', NULL, '2025120822bb327c', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/3b573173_02176518734568300000000000000000000ffffc0a8a45749b389.mp4', 1, '镜头固定,人物缓缓放下手臂。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/6f950b3f_19.png', NULL); +INSERT INTO `ai_order` VALUES (250, '0', '', '2025-12-08 09:50:33', '', '2025-12-08 17:51:05', NULL, '202512089969e2b1', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/dcb8d401_02176518743391900000000000000000000ffffc0a8a457266caf.mp4', 1, '镜头固定,人物表情凶狠,喃喃自语。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/37c33b4b_19.png', NULL); +INSERT INTO `ai_order` VALUES (251, '0', '', '2025-12-08 10:25:56', '', '2025-12-08 18:26:20', NULL, '2025120876cae2c7', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/08/796dd685_02176518955715800000000000000000000ffffc0a8a457b77fcd.mp4', 1, '两人背对镜头走向远处。', NULL, 'N', 'https://images.iqyjsnwv.com/2025/12/08/b4414020_22.png', NULL); +INSERT INTO `ai_order` VALUES (252, '0', '', '2025-12-08 10:46:01', '', '2025-12-08 10:46:01', NULL, '20251208b7fbd9dd', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (253, '0', '', '2025-12-08 10:46:03', '', '2025-12-08 10:46:03', NULL, '2025120807fdbaee', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (254, '0', '', '2025-12-08 10:46:04', '', '2025-12-08 10:46:04', NULL, '20251208cd38c6f8', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (255, '0', '', '2025-12-08 10:46:05', '', '2025-12-08 10:46:05', NULL, '20251208d980c8bc', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (256, '0', '', '2025-12-08 10:46:06', '', '2025-12-08 10:46:06', NULL, '20251208b8319c9f', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (257, '0', '', '2025-12-08 10:46:07', '', '2025-12-08 10:46:07', NULL, '202512085dbb08fb', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (258, '0', '', '2025-12-08 10:46:08', '', '2025-12-08 10:46:08', NULL, '20251208b6c89930', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (259, '0', '', '2025-12-08 10:46:09', '', '2025-12-08 10:46:09', NULL, '20251208a3d53a9b', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (260, '0', '', '2025-12-08 10:46:09', '', '2025-12-08 10:46:09', NULL, '20251208c788d924', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (261, '0', '', '2025-12-08 10:46:10', '', '2025-12-08 10:46:10', NULL, '2025120878abe995', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (262, '0', '', '2025-12-08 10:46:11', '', '2025-12-08 10:46:11', NULL, '2025120853fdc62b', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (263, '0', '', '2025-12-08 10:46:11', '', '2025-12-08 10:46:11', NULL, '202512089ecb740a', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (264, '0', '', '2025-12-08 10:46:12', '', '2025-12-08 10:46:12', NULL, '20251208b2cb25c1', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (265, '0', '', '2025-12-08 10:46:18', '', '2025-12-08 10:46:18', NULL, '202512081c40b722', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (266, '0', '', '2025-12-08 10:46:20', '', '2025-12-08 10:46:20', NULL, '202512081382ff54', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (267, '0', '', '2025-12-08 10:46:21', '', '2025-12-08 10:46:21', NULL, '20251208af62569e', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (268, '0', '', '2025-12-08 19:13:12', '', '2025-12-08 19:13:12', NULL, '20251209c7d2005d', 22, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (269, '0', '', '2025-12-08 19:13:15', '', '2025-12-08 19:13:15', NULL, '20251209c592a060', 22, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (270, '0', '', '2025-12-08 19:13:33', '', '2025-12-08 19:13:33', NULL, '2025120976ebe695', 22, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (271, '0', '', '2025-12-08 19:13:49', '', '2025-12-08 19:13:49', NULL, '2025120906735f6c', 22, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (272, '0', '', '2025-12-08 19:17:09', '', '2025-12-08 19:17:09', NULL, '202512096e51a715', 22, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (273, '0', '', '2025-12-09 02:07:28', '', '2025-12-09 02:07:28', NULL, '2025120998c72aad', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/a62907d2_021765246048107f8f49430e1e3875ff473008eb96b3a395c0fe8_0.jpeg', 1, '换个姿势,正面对着我', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/66f2f8d2_c7be534f_02176518105305775aeae14c82856eca08eecb5e75c0575d4f970_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (274, '0', '', '2025-12-09 03:04:30', '', '2025-12-09 11:05:50', NULL, '202512099fe975d7', 23, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/09/2521853f_02176524947176000000000000000000000ffffc0a8a457c1dea6.mp4', 1, '慢慢脱下', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/c00dc318_IMG_9805.JPG', 'https://images.iqyjsnwv.com/2025/12/09/f907e185_de51b59c_02176516270549030d072d337ea6fcc7bbfbe2f0c485be2e402db_0.jpeg'); +INSERT INTO `ai_order` VALUES (275, '0', '', '2025-12-09 03:07:14', '', '2025-12-09 11:07:46', NULL, '20251209db702341', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/09/3c01a152_02176524963613900000000000000000000ffffc0a8a457757441.mp4', 1, '同步手臂动作,脱下衣服', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/d5e4cd6b_IMG_9805.JPG', 'https://images.iqyjsnwv.com/2025/12/09/0598e9d0_de51b59c_02176516270549030d072d337ea6fcc7bbfbe2f0c485be2e402db_0.jpeg'); +INSERT INTO `ai_order` VALUES (276, '0', '', '2025-12-09 03:08:10', '', '2025-12-09 11:08:44', NULL, '202512091774aa72', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/09/2fdc74a3_02176524969128500000000000000000000ffffc0a8a45738941f.mp4', 1, '同步手臂动作,脱下衣服。手怎么没变化', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/d5e4cd6b_IMG_9805.JPG', 'https://images.iqyjsnwv.com/2025/12/09/0598e9d0_de51b59c_02176516270549030d072d337ea6fcc7bbfbe2f0c485be2e402db_0.jpeg'); +INSERT INTO `ai_order` VALUES (277, '0', '', '2025-12-09 03:09:20', '', '2025-12-09 11:09:54', NULL, '20251209a47cbc27', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/09/a3d13364_02176524976144300000000000000000000ffffc0a8a457f1eef9.mp4', 1, '同步手臂动作,脱下衣服。手怎么没变化,变化太粗糙了,不够精细', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/d5e4cd6b_IMG_9805.JPG', 'https://images.iqyjsnwv.com/2025/12/09/0598e9d0_de51b59c_02176516270549030d072d337ea6fcc7bbfbe2f0c485be2e402db_0.jpeg'); +INSERT INTO `ai_order` VALUES (278, '0', '', '2025-12-09 05:28:57', '', '2025-12-09 05:28:57', NULL, '2025120954e4d874', 16, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (279, '0', '', '2025-12-09 05:42:50', '', '2025-12-09 05:42:50', NULL, '2025120956031b3e', 24, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/8dd8d991_021765258970662f8f49430e1e3875ff473008eb96b3a395d0a0f_0.jpeg', 1, '111', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/e9d3c474_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (280, '0', '', '2025-12-09 05:56:44', '', '2025-12-09 05:56:44', NULL, '20251209cce693d2', 25, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/a85b10dd_021765259804508d6d3168ae2bcee8e5f54d16f5503dedeecec39_0.jpeg', 1, '1', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/09/389c69fd_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (281, '0', '', '2025-12-09 07:49:33', '', '2025-12-09 07:49:33', NULL, '20251209b0d0ace3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/d7f2287a_02176526657404315b33ccaa151d3ed7feaaa761bc71c376a229d_0.jpeg', 1, '生成一个美女', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (282, '0', '', '2025-12-09 08:05:46', '', '2025-12-09 08:05:46', NULL, '202512091fc7d968', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/337da41f_021765267546187f8f49430e1e3875ff473008eb96b3a39244530_0.jpeg', 1, '生成一个美女', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (283, '0', '', '2025-12-09 08:26:20', '', '2025-12-09 08:26:20', NULL, '2025120993f8440c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/aaf23bdf_0217652687808261386b9a8ed856c57501cfa946ce34c985218fe_0.jpeg', 1, 'super simple cartoon pink egg vibrator, perfectly round, one rose gold band, two vibration lines, thick black outline, flat color, korean game icon, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (284, '0', '', '2025-12-09 08:27:15', '', '2025-12-09 08:27:15', NULL, '202512095bd9f0e5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/514719cd_021765268835949c799e7b290acded99bf6695874956a9fb5ca01_0.jpeg', 1, 'super simple cartoon pink egg vibrator, perfectly round, one rose gold band, two vibration lines, thick black outline, flat color, korean game icon, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (285, '0', '', '2025-12-09 08:28:27', '', '2025-12-09 08:28:27', NULL, '202512098015ea48', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/7cbd6251_02176526890787112014becacfaf8a37949eaec3c81397581ec90_0.jpeg', 1, 'chibi korean hand-drawn icon, fluffy pink leather handcuffs with rose gold chain and heart lock, rounded plush edges, soft watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (286, '0', '', '2025-12-09 08:29:08', '', '2025-12-09 08:29:08', NULL, '20251209757b3135', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/1f8ee1e4_02176526894821412014becacfaf8a37949eaec3c813975e2829c_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal O-ring gag with thin black leather straps, glossy candy-like highlight, perfectly round ring, watercolor metallic, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (287, '0', '', '2025-12-09 08:31:22', '', '2025-12-09 08:31:22', NULL, '202512093034ef61', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/a5a89489_021765269082981732fd601d62b6a7044a0e20965673d99299856_0.jpeg', 1, 'minimal cartoon onahole icon, round transparent cylinder, peach pink rim, three water drops, thick black outline, flat color, korean mobile game style, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (288, '0', '', '2025-12-09 08:31:40', '', '2025-12-09 08:31:40', NULL, '20251209232c87da', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/910b2f8e_02176526910041974bd01b7bc1bacfcfc78546caab5b5fa8aea80_0.jpeg', 1, 'minimal cartoon pink handcuffs, two circles + short chain + heart lock, thick black outline, flat color, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (289, '0', '', '2025-12-09 08:34:14', '', '2025-12-09 08:34:14', NULL, '20251209d2de351d', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (290, '0', '', '2025-12-09 08:36:52', '', '2025-12-09 08:36:52', NULL, '20251209c41e5631', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (291, '0', '', '2025-12-09 08:37:40', '', '2025-12-09 08:37:40', NULL, '202512098474a048', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/4ac89ae7_02176526946099730d072d337ea6fcc7bbfbe2f0c485be2ca8370_0.jpeg', 1, 'minimal cartoon heart chastity cage, solid pink heart + three bars + tiny lock, thick black outline, flat color, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (292, '0', '', '2025-12-09 08:38:10', '', '2025-12-09 08:38:10', NULL, '2025120959f65543', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (293, '0', '', '2025-12-09 08:40:11', '', '2025-12-09 08:40:11', NULL, '2025120913866f5a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/6f9f5792_0217652696112993c1f91f892e9aff2a902d86b047fe242dd4fee_0.jpeg', 1, 'super simple cartoon lube bottle, round body, rose gold cap, one big droplet, thick black outline, flat peach color, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (294, '0', '', '2025-12-09 08:40:34', '', '2025-12-09 08:40:34', NULL, '202512095549b1f9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/4d897b3a_021765269634627641a02d40a43d449f07de84c480b390da617df_0.jpeg', 1, 'super simple cartoon pink bullet vibe, short cylinder, rose gold ring, one power button, thick black outline, flat color, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (295, '0', '', '2025-12-09 08:40:54', '', '2025-12-09 08:40:54', NULL, '202512099efaad7c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/06083ea7_0217652696544942504cb05148e9a08cc7612c3f2b24e5250c524_0.jpeg', 1, 'super simple cartoon heart nipple clamps, two pink hearts connected by thin chain, thick black outline, flat color, korean mobile game style, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (296, '0', '', '2025-12-09 08:41:13', '', '2025-12-09 08:41:13', NULL, '20251209946a6a82', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/92cbf630_021765269673960641a02d40a43d449f07de84c480b390d5a8c1d_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal O-ring gag with thin black leather straps, glossy candy-like highlight, perfectly round ring, watercolor metallic, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (297, '0', '', '2025-12-09 08:42:06', '', '2025-12-09 08:42:06', NULL, '2025120971866f5c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/b7e66274_0217652697264451386b9a8ed856c57501cfa946ce34c9849ccc4_0.jpeg', 1, 'chibi korean hand-drawn icon, tiny pearl pink bullet vibrator, rounded capsule shape, rose gold band, soft watercolor wet shine, subtle power button glow, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (298, '0', '', '2025-12-09 09:04:33', '', '2025-12-09 09:04:33', NULL, '202512096de0aa83', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (299, '0', '', '2025-12-09 09:04:38', '', '2025-12-09 09:04:38', NULL, '202512098912272c', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (300, '0', '', '2025-12-09 09:04:39', '', '2025-12-09 09:04:39', NULL, '202512099ec4a774', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (301, '0', '', '2025-12-09 09:04:44', '', '2025-12-09 09:04:44', NULL, '20251209b7f11b37', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (302, '0', '', '2025-12-09 09:04:47', '', '2025-12-09 09:04:47', NULL, '202512093aa8c439', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (303, '0', '', '2025-12-09 09:04:49', '', '2025-12-09 09:04:49', NULL, '202512091c1232d1', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (304, '0', '', '2025-12-09 09:04:51', '', '2025-12-09 09:04:51', NULL, '202512092f979937', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (305, '0', '', '2025-12-09 09:04:52', '', '2025-12-09 09:04:52', NULL, '20251209e74c2b47', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (306, '0', '', '2025-12-09 09:04:53', '', '2025-12-09 09:04:53', NULL, '202512094febef7d', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (307, '0', '', '2025-12-09 09:04:55', '', '2025-12-09 09:04:55', NULL, '202512095a30c849', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (308, '0', '', '2025-12-09 09:04:56', '', '2025-12-09 09:04:56', NULL, '20251209eec8784f', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (309, '0', '', '2025-12-09 09:05:03', '', '2025-12-09 09:05:03', NULL, '20251209cd643ec5', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (310, '0', '', '2025-12-09 11:20:41', '', '2025-12-09 11:20:41', NULL, '2025120946c09a9b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/bb02b5d9_021765279241744fef143c4098cd8cc7e0dd8c08d18f9dbcb46ed_0.jpeg', 1, 'chibi korean hand-drawn icon, rounded frosted glass lube bottle, rose gold cap, single crystal droplet hanging, soft peach liquid swirl inside, watercolor glossy, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (311, '0', '', '2025-12-09 11:21:07', '', '2025-12-09 11:21:07', NULL, '202512096ad689a6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/d2862a11_02176527926779899f4740eadd3360aa6250e68d85f7ec7f33791_0.jpeg', 1, 'chibi korean hand-drawn icon, tiny rose gold heart-shaped chastity cage with mini padlock, rounded smooth bars, soft watercolor metallic sheen, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (312, '0', '', '2025-12-09 11:21:45', '', '2025-12-09 11:21:45', NULL, '202512094e6fb350', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/49f9f406_021765279305333c5f50319cb4d4388d7836967b82aebe556cd56_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal O-ring gag with thin black leather straps, glossy candy-like highlight, perfectly round ring, watercolor metallic, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (313, '0', '', '2025-12-09 11:22:05', '', '2025-12-09 11:22:05', NULL, '20251209b3902440', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/9ffaad97_0217652793255552504cb05148e9a08cc7612c3f2b24e52e1922f_0.jpeg', 1, 'chibi korean hand-drawn icon, fluffy pink leather handcuffs with rose gold chain and heart lock, rounded plush edges, soft watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (314, '0', '', '2025-12-09 11:22:28', '', '2025-12-09 11:22:28', NULL, '20251209de1883ba', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/dec2a519_021765279348758fef143c4098cd8cc7e0dd8c08d18f9dba89f50_0.jpeg', 1, 'chibi korean hand-drawn icon, sparkling crystal teardrop plug with ultra fluffy white-pink gradient fox tail, rose gold base, soft watercolor fur strokes, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (315, '0', '', '2025-12-09 11:22:54', '', '2025-12-09 11:22:54', NULL, '2025120909adfed7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/062e2ca1_0217652793750551386b9a8ed856c57501cfa946ce34c98d6a3d6_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold heart-shaped nipple clamps with thin chain, tiny hanging pearls, soft watercolor metallic shine, rounded cute shape, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (316, '0', '', '2025-12-09 11:23:11', '', '2025-12-09 11:23:11', NULL, '202512091f55f8ef', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/24c03055_021765279391564641a02d40a43d449f07de84c480b390d937a61_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy millennial pink vibrating eggs connected by thin silver chain, soft rounded mochi shape, rose gold LED ring, subtle vibration waves, watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (317, '0', '', '2025-12-09 11:31:41', '', '2025-12-09 11:31:41', NULL, '2025120937051eb5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/9d9334c3_02176527990156475aeae14c82856eca08eecb5e75c0575c8a3aa_0.jpeg', 1, 'minimal cartoon pink dildo, smooth cylinder slight curve, rose gold base ring, thick black outline, flat color, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (318, '0', '', '2025-12-09 11:32:44', '', '2025-12-09 11:32:44', NULL, '20251209a42b278f', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (319, '0', '', '2025-12-09 11:33:00', '', '2025-12-09 11:33:00', NULL, '20251209b03f478f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/974c09fc_021765279980191fef143c4098cd8cc7e0dd8c08d18f9db84b7aa_0.jpeg', 1, 'super simple cartoon transparent onahole, crystal clear body with soft jelly gloss, peach pink rim with wet highlight, three floating water drops, thick black outline, gentle gradient shine, korean premium game icon, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (320, '0', '', '2025-12-09 11:33:35', '', '2025-12-09 11:33:35', NULL, '20251209ee827e35', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/7933dca7_0217652800158051386b9a8ed856c57501cfa946ce34c98971a49_0.jpeg', 1, 'super simple cartoon pink egg vibrator, glossy silicone surface with soft reflection, rose gold metal band with sparkle, two vibration wave rings, thick black outline, gentle gradient, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (321, '0', '', '2025-12-09 11:34:04', '', '2025-12-09 11:34:04', NULL, '2025120951c31bf3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/eb78201d_021765280044145641a02d40a43d449f07de84c480b390d699a35_0.jpeg', 1, 'super simple cartoon crystal plug + fluffy tail, glossy teardrop gem with rainbow prism highlight, ultra soft fur texture on tail, rose gold base, thick black outline, gentle shine, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (322, '0', '', '2025-12-09 11:34:37', '', '2025-12-09 11:34:37', NULL, '202512098a43f066', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/5ffe66fa_0217652800771781e15ac27860f2c8c25bccd5ee2521f9a3f108b_0.jpeg', 1, 'super simple cartoon pink egg vibrator, glossy silicone surface with soft reflection, rose gold metal band with sparkle, two vibration wave rings, thick black outline, gentle gradient, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (323, '0', '', '2025-12-09 11:35:06', '', '2025-12-09 11:35:06', NULL, '2025120997f24e85', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/4d27cc97_021765280106131c799e7b290acded99bf6695874956a9fe86462_0.jpeg', 1, 'super simple cartoon transparent onahole, crystal clear body with soft jelly gloss, peach pink rim with wet highlight, three floating water drops, thick black outline, gentle gradient shine, korean premium game icon, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (324, '0', '', '2025-12-09 11:35:37', '', '2025-12-09 11:35:37', NULL, '20251209fa21f7a4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/dfd5acb0_021765280138069f9825d5f0df17daef396c99db0606054f3ebfc_0.jpeg', 1, 'super simple cartoon lube bottle, frosted glass body with soft bloom, rose gold metal cap with reflection, one hanging glossy droplet, thick black outline, gentle gradient, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (325, '0', '', '2025-12-09 11:36:06', '', '2025-12-09 11:36:06', NULL, '2025120987971747', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/69d61a86_0217652801662127b67bbc2a2a9a26108e071e40bb0b0842340b2_0.jpeg', 1, 'super simple cartoon lube bottle, frosted glass body with soft bloom, rose gold metal cap with reflection, one hanging glossy droplet, thick black outline, gentle gradient, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (326, '0', '', '2025-12-09 11:53:16', '', '2025-12-09 11:53:16', NULL, '202512096199df81', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/524d4e0e_021765281196966f9825d5f0df17daef396c99db06060541bed9f_0.jpeg', 1, '\"game item icon, glossy pink wireless vibrating egg, gold accent ring, thin antenna tail, centered on pure white background, strong rim light, hard shadows, isometric top-down view, ultra sharp, vibrant color, no text, no character\"', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (327, '0', '', '2025-12-09 11:56:46', '', '2025-12-09 11:56:46', NULL, '202512096808e440', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/a71bd00d_021765281406509732fd601d62b6a7044a0e20965673d991b4f06_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy millennial pink vibrating eggs connected by thin silver chain, soft rounded mochi shape, rose gold LED ring, subtle vibration waves, watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (328, '0', '', '2025-12-09 11:57:35', '', '2025-12-09 11:57:35', NULL, '20251209b00a01c8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/912f972a_02176528145603875aeae14c82856eca08eecb5e75c0575f9e198_0.jpeg', 1, 'chibi korean hand-drawn icon, tiny pearl pink bullet vibrator, rounded capsule shape, rose gold band, soft watercolor wet shine, subtle power button glow, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (329, '0', '', '2025-12-09 11:58:54', '', '2025-12-09 11:58:54', NULL, '20251209e4f8907c', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (330, '0', '', '2025-12-09 11:59:15', '', '2025-12-09 11:59:15', NULL, '2025120945ebd427', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/405c17d4_02176528155596174bd01b7bc1bacfcfc78546caab5b5fa1fa05b_0.jpeg', 1, 'minimal cartoon pink vibrating egg, perfect egg shape, glossy silicone with soft highlight, rose gold band, two tiny vibration rings, thick black outline, flat color with gentle gradient shine, korean mobile game icon, pure white background only, ', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (331, '0', '', '2025-12-09 11:59:45', '', '2025-12-09 11:59:45', NULL, '2025120907fc1bfe', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/7044261f_02176528158537574bd01b7bc1bacfcfc78546caab5b5fa64c542_0.jpeg', 1, 'korean watercolor style chibi vibrating egg, soft millennial pink with jelly gloss, subtle metallic rose gold ring, delicate watercolor texture and bloom, floating soft shadow, premium hand-drawn feel, pure white background only,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (332, '0', '', '2025-12-09 12:00:07', '', '2025-12-09 12:00:07', NULL, '2025120955234e00', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/eba191d9_02176528160799174bd01b7bc1bacfcfc78546caab5b5fa81f438_0.jpeg', 1, 'cyber neon korean icon, glossy black-pink gradient vibrating egg, glowing purple heartbeat LED ring, holographic rose gold details, subtle energy waves, reflective surface, futuristic mobile game style, pure white background only,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (333, '0', '', '2025-12-09 12:00:37', '', '2025-12-09 12:00:37', NULL, '20251209f82563cb', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/63050e89_0217652816373121e15ac27860f2c8c25bccd5ee2521f9a387997_0.jpeg', 1, 'super cute jelly style vibrating egg, translucent peach-pink fruit jelly texture, wobbly rounded shape, tiny shiny rose gold heart button, micro sparkle highlights, ultra soft mochi feel, korean kakaotalk emoji style, pure white background only,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (334, '0', '', '2025-12-09 12:01:39', '', '2025-12-09 12:01:39', NULL, '20251209cc3fed2b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/b8a1370d_0217652816995445097524147fba306f3fd5b41c9337702abefcb_0.jpeg', 1, 'korean premium mobile game icon, glossy millennial pink wireless vibrating egg, rose gold metallic ring with subtle reflection, soft silicone highlight, clean gradient shine, thick soft black outline, luxury item style, pure white background only,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (335, '0', '', '2025-12-09 12:02:00', '', '2025-12-09 12:02:00', NULL, '202512099fdf2867', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/2a66061e_0217652817206807ed3dd5a26da08a73b6b7a2883108092de3a84_0.jpeg', 1, 'japanese eroge game icon, shiny hot pink vibrating egg, chrome silver band with sharp highlight, semi-transparent gloss, soft inner glow, clean vector style with slight bevel, pure white background only,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (336, '0', '', '2025-12-09 12:02:53', '', '2025-12-09 12:02:53', NULL, '20251209a238bd82', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/e87e6cea_0217652817737357ed3dd5a26da08a73b6b7a28831080926142ba_0.jpeg', 1, 'luxury korean gacha game icon, single glossy millennial pink wireless vibrating egg perfectly centered, rose gold metallic ring with soft rim light, clean silicone gradient shine, subtle drop shadow, premium UI asset, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (337, '0', '', '2025-12-09 12:03:43', '', '2025-12-09 12:03:43', NULL, '20251209f3f02094', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/0543e650_021765281823874fef143c4098cd8cc7e0dd8c08d18f9db68d3c6_0.jpeg', 1, 'glossy millennial pink wireless vibrating egg, rose gold ring, clean silicone surface, centered, pure white background only, korean gacha game icon, --ar 1:1 --stylize 90 --no shadow, glow, particles, text', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (338, '0', '', '2025-12-09 12:38:37', '', '2025-12-09 12:38:37', NULL, '2025120968a57fb9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/3cfab9a7_0217652839177065097524147fba306f3fd5b41c93377027f293a_0.jpeg', 1, 'shiny hot pink vibrating egg, chrome silver band, transparent gloss, centered, pure white background only, japanese eroge inventory icon, --ar 1:1 --stylize 100 --no shadow, particles', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (339, '0', '', '2025-12-09 12:38:59', '', '2025-12-09 12:38:59', NULL, '20251209a73706fa', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/6d8978dc_021765283939438c799e7b290acded99bf6695874956a9ff93bea_0.jpeg', 1, 'shiny hot pink vibrating egg, chrome silver band, transparent gloss, centered, pure white background only, japanese eroge inventory icon,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (340, '0', '', '2025-12-09 12:39:12', '', '2025-12-09 12:39:12', NULL, '202512099e91ac78', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/ea44f170_021765283952380fef143c4098cd8cc7e0dd8c08d18f9dbc63599_0.jpeg', 1, 'pearlescent soft pink egg vibrator, rose gold and chrome double ring, centered, pure white background only, hybrid jp-kr gacha game icon,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (341, '0', '', '2025-12-09 12:39:39', '', '2025-12-09 12:39:39', NULL, '202512095306359b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/09/7bddd263_021765283979222641a02d40a43d449f07de84c480b390dd49e85_0.jpeg', 1, 'holographic pink-purple gradient vibrating egg, rose gold circuit pattern, centered, pure white background only, korean limited rarity icon,', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (342, '0', '', '2025-12-10 03:23:49', '', '2025-12-10 03:23:49', NULL, '20251210294aaf9b', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/5e2d2cb0_021765337029776641a02d40a43d449f07de84c480b390de0b79a_0.jpeg', 1, 'Gojo Satoru', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (343, '0', '', '2025-12-10 03:24:42', '', '2025-12-10 03:24:42', NULL, '202512109cc00246', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/49255542_021765337082146fef143c4098cd8cc7e0dd8c08d18f9db65fe2f_0.jpeg', 1, 'Gojo Satoru 打篮球', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (344, '0', '', '2025-12-10 03:25:44', '', '2025-12-10 11:26:25', NULL, '20251210d07ebef7', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/70a4f11f_02176533714507400000000000000000000ffffc0a8a457d92408.mp4', 1, '图一变身之后,进入篮球场打篮球', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/62521e0e_5e2d2cb0_021765337029776641a02d40a43d449f07de84c480b390de0b79a_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/a927ac61_49255542_021765337082146fef143c4098cd8cc7e0dd8c08d18f9db65fe2f_0.jpeg'); +INSERT INTO `ai_order` VALUES (345, '0', '', '2025-12-10 07:54:50', '', '2025-12-10 07:54:50', NULL, '20251210f9697371', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/5149ccfb_02176535329020112014becacfaf8a37949eaec3c813975ddb042_0.jpeg', 1, 'Gojo Satoru 经典画面', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (346, '0', '', '2025-12-10 07:56:09', '', '2025-12-10 07:56:09', NULL, '20251210692a9951', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/fb7bbd40_02176535336918699f4740eadd3360aa6250e68d85f7ec71d1973_0.jpeg', 1, 'Gojo Satoru 拿枪', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (347, '0', '', '2025-12-10 07:57:57', '', '2025-12-10 07:57:57', NULL, '20251210967100ea', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/bb9c88ed_0217653534772208547934892c4038781a87d514f9a919683ceca_0.jpeg', 1, 'Gojo Satoru,踢足球', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (348, '0', '', '2025-12-10 07:58:55', '', '2025-12-10 16:00:40', NULL, '202512101847f470', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/fd36e930_02176535353720400000000000000000000ffffc0a8a45781dc38.mp4', 1, '变身之后,拿枪瞄准', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/fbcac2ad_5e2d2cb0_021765337029776641a02d40a43d449f07de84c480b390de0b79a_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/0edefd4d_fb7bbd40_02176535336918699f4740eadd3360aa6250e68d85f7ec71d1973_0.jpeg'); +INSERT INTO `ai_order` VALUES (349, '0', '', '2025-12-10 08:02:24', '', '2025-12-10 08:02:24', NULL, '20251210d99f7786', 14, '21', 6.00, 'cgt-20251210160224-nkrmm', 1, '变身之后,拿枪瞄准,动作可以不那么快,视频时长15秒左右', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/fbcac2ad_5e2d2cb0_021765337029776641a02d40a43d449f07de84c480b390de0b79a_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/0edefd4d_fb7bbd40_02176535336918699f4740eadd3360aa6250e68d85f7ec71d1973_0.jpeg'); +INSERT INTO `ai_order` VALUES (350, '0', '', '2025-12-10 08:03:13', '', '2025-12-10 16:05:09', NULL, '20251210f8eb2ba1', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/1b01fb16_02176535384911700000000000000000000ffffc0a8a45746601a.mp4', 1, '变身、不需要睁开眼睛', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/b347af35_5149ccfb_02176535329020112014becacfaf8a37949eaec3c813975ddb042_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/9cabc3fc_5e2d2cb0_021765337029776641a02d40a43d449f07de84c480b390de0b79a_0.jpeg'); +INSERT INTO `ai_order` VALUES (351, '0', '', '2025-12-10 08:43:53', '', '2025-12-10 08:43:53', NULL, '20251210ce5a4831', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/aaf0dbbe_021765356233974f8f49430e1e3875ff473008eb96b3a39bd2718_0.jpeg', 1, '春日野穹', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (352, '0', '', '2025-12-10 08:45:10', '', '2025-12-10 08:45:10', NULL, '202512109d8d90fa', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (353, '0', '', '2025-12-10 08:45:11', '', '2025-12-10 08:45:11', NULL, '20251210ef672991', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (354, '0', '', '2025-12-10 08:45:14', '', '2025-12-10 08:45:14', NULL, '20251210769a96d5', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (355, '0', '', '2025-12-10 08:45:16', '', '2025-12-10 08:45:16', NULL, '20251210d86914db', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (356, '0', '', '2025-12-10 08:45:18', '', '2025-12-10 08:45:18', NULL, '202512108bb83f2c', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (357, '0', '', '2025-12-10 08:45:20', '', '2025-12-10 08:45:20', NULL, '20251210d71bdeb4', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (358, '0', '', '2025-12-10 08:45:21', '', '2025-12-10 08:45:21', NULL, '202512100a69ee97', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (359, '0', '', '2025-12-10 08:45:22', '', '2025-12-10 08:45:22', NULL, '202512102f83fe96', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (360, '0', '', '2025-12-10 08:45:28', '', '2025-12-10 08:45:28', NULL, '2025121011083a51', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (361, '0', '', '2025-12-10 08:45:39', '', '2025-12-10 08:45:39', NULL, '202512108c55e54e', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (362, '0', '', '2025-12-10 08:45:40', '', '2025-12-10 08:45:40', NULL, '2025121015122810', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (363, '0', '', '2025-12-10 08:45:45', '', '2025-12-10 08:45:45', NULL, '20251210e409301e', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (364, '0', '', '2025-12-10 08:45:45', '', '2025-12-10 08:45:45', NULL, '202512108935479b', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (365, '0', '', '2025-12-10 08:50:07', '', '2025-12-10 08:50:07', NULL, '20251210472db1ae', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (366, '0', '', '2025-12-10 08:50:38', '', '2025-12-10 08:50:38', NULL, '2025121042f584c8', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/f40e33f1_0217653566385771e15ac27860f2c8c25bccd5ee2521f9aefa294_0.jpeg', 1, '春日野穹,脱衣服', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (367, '0', '', '2025-12-10 08:51:56', '', '2025-12-10 16:54:32', NULL, '20251210e5173448', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/6f56b45a_02176535671868300000000000000000000ffffc0a8a45761348b.mp4', 1, '兔子跳过来', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/291ade15_f40e33f1_0217653566385771e15ac27860f2c8c25bccd5ee2521f9aefa294_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/33cd52c1_aaf0dbbe_021765356233974f8f49430e1e3875ff473008eb96b3a39bd2718_0.jpeg'); +INSERT INTO `ai_order` VALUES (368, '0', '', '2025-12-10 08:55:34', '', '2025-12-10 08:55:34', NULL, '20251210f8b13051', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/2a158497_0217653569344453a780f972f42b9300f847977bd3329558b4ef1_0.jpeg', 1, '樱岛麻衣、兔女郎', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (369, '0', '', '2025-12-10 08:58:36', '', '2025-12-10 08:58:36', NULL, '202512105149b9cc', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/3276c5ca_021765357116705732fd601d62b6a7044a0e20965673d99222356_0.jpeg', 1, '樱岛麻衣、兔女郎、拿起酒杯', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (370, '0', '', '2025-12-10 08:59:08', '', '2025-12-10 08:59:08', NULL, '20251210e0ab3086', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/1e033b90_02176535714847875aeae14c82856eca08eecb5e75c0575d21e53_0.jpeg', 1, '樱岛麻衣、兔女郎、拿着枪', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (371, '0', '', '2025-12-10 08:59:34', '', '2025-12-10 08:59:34', NULL, '20251210849d987c', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/1f46c75e_0217653571744857ed3dd5a26da08a73b6b7a2883108092aedc52_0.jpeg', 1, '樱岛麻衣、兔女郎、拿着课本', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (372, '0', '', '2025-12-10 09:00:46', '', '2025-12-10 17:01:21', NULL, '20251210d2b644f8', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/5246a0bb_02176535724794600000000000000000000ffffc0a8a457dda0ab.mp4', 1, '遇到危险,瞬间拿枪保护自己', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/21591ae8_3276c5ca_021765357116705732fd601d62b6a7044a0e20965673d99222356_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/1f360621_1e033b90_02176535714847875aeae14c82856eca08eecb5e75c0575d21e53_0.jpeg'); +INSERT INTO `ai_order` VALUES (373, '0', '', '2025-12-10 09:03:16', '', '2025-12-10 09:03:16', NULL, '20251210a30068fd', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (374, '0', '', '2025-12-10 09:03:28', '', '2025-12-10 09:03:28', NULL, '20251210e961a40c', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (375, '0', '', '2025-12-10 09:03:30', '', '2025-12-10 09:03:30', NULL, '202512106ddb3490', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (376, '0', '', '2025-12-10 09:04:02', '', '2025-12-10 09:04:02', NULL, '20251210d58edc8d', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/b4a971fc_0217653574421242504cb05148e9a08cc7612c3f2b24e52322aa2_0.jpeg', 1, '樱岛麻衣、兔女郎、裸体', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (377, '0', '', '2025-12-10 09:04:25', '', '2025-12-10 09:04:25', NULL, '20251210dee4d8c7', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/9171380a_02176535746550434cb6184a92ddd9ae87302c189a666e59cacec_0.jpeg', 1, '樱岛麻衣、兔女郎、裸体,露出大胸', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (378, '0', '', '2025-12-10 09:05:16', '', '2025-12-10 09:05:16', NULL, '20251210873a1e45', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/fcafd2e1_0217653575162913c1f91f892e9aff2a902d86b047fe242723d2c_0.jpeg', 1, '樱岛麻衣、兔女郎、裸体,露出大胸,乳头', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (379, '0', '', '2025-12-10 09:06:01', '', '2025-12-10 17:06:36', NULL, '20251210f9b9ebf1', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/8987e095_02176535756268700000000000000000000ffffc0a8a457771bbd.mp4', 1, '放下枪', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/1f8bd21d_1e033b90_02176535714847875aeae14c82856eca08eecb5e75c0575d21e53_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/3e41e0ae_fcafd2e1_0217653575162913c1f91f892e9aff2a902d86b047fe242723d2c_0.jpeg'); +INSERT INTO `ai_order` VALUES (380, '0', '', '2025-12-10 09:07:03', '', '2025-12-10 17:07:42', NULL, '202512109d93c665', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/10/eefdfad6_02176535762487600000000000000000000ffffc0a8a457fcbd17.mp4', 1, '脱下衣服然后放下枪', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/10/1f8bd21d_1e033b90_02176535714847875aeae14c82856eca08eecb5e75c0575d21e53_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/10/3e41e0ae_fcafd2e1_0217653575162913c1f91f892e9aff2a902d86b047fe242723d2c_0.jpeg'); +INSERT INTO `ai_order` VALUES (381, '0', '', '2025-12-10 11:11:03', '', '2025-12-10 11:11:03', NULL, '2025121089ed1831', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/f01525d2_02176536506351975aeae14c82856eca08eecb5e75c0575ee79e2_0.jpeg', 1, 'glossy millennial pink wireless vibrating egg, rose gold ring, clean silicone surface, centered, pure white background only, korean gacha game icon, --ar 1:1 --stylize 90 --no shadow, glow, particles, text', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (382, '0', '', '2025-12-10 11:11:35', '', '2025-12-10 11:11:35', NULL, '20251210f884cdce', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/3372c9ad_021765365095702f9825d5f0df17daef396c99db06060549e6415_0.jpeg', 1, 'super simple cartoon onahole icon, round transparent body, peach pink rim, three water drops, thick black outline, flat color, korean mobile game style, pure white background', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (383, '0', '', '2025-12-10 11:11:52', '', '2025-12-10 11:11:52', NULL, '20251210613bec89', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/ebd0cdf6_0217653651125385097524147fba306f3fd5b41c9337702a7013e_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy millennial pink vibrating eggs connected by thin silver chain, soft rounded mochi shape, rose gold LED ring, subtle vibration waves, watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (384, '0', '', '2025-12-10 11:12:13', '', '2025-12-10 11:12:13', NULL, '202512108450ee5d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/10eff184_02176536513392030d072d337ea6fcc7bbfbe2f0c485be256b4be_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold heart-shaped nipple clamps with thin chain, tiny hanging pearls, soft watercolor metallic shine, rounded cute shape, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (385, '0', '', '2025-12-10 11:24:40', '', '2025-12-10 11:24:40', NULL, '20251210c62b7775', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/bb6d3826_021765365880861732fd601d62b6a7044a0e20965673d99ab86be_0.jpeg', 1, 'chibi korean hand-drawn icon, frosted glass lube bottle with rose gold cap, soft peach liquid swirl inside, single hanging crystal droplet, glossy watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (386, '0', '', '2025-12-10 11:25:35', '', '2025-12-10 11:25:35', NULL, '202512100baf9ae8', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (387, '0', '', '2025-12-10 11:25:52', '', '2025-12-10 11:25:52', NULL, '2025121048ef1894', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/257ad8ae_0217653659523237ed3dd5a26da08a73b6b7a2883108092e94c79_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent dropper lube bottle with rose gold collar and rubber bulb, long glass pipette, oversized glistening droplet on tip, soft peach liquid inside, wet glossy watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (388, '0', '', '2025-12-10 11:26:08', '', '2025-12-10 11:26:08', NULL, '2025121080d99149', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/7154f15b_0217653659686667b67bbc2a2a9a26108e071e40bb0b084409ea9_0.jpeg', 1, 'chibi korean hand-drawn icon, soft squeezable lube tube in pearlescent pink, rose gold flip cap slightly open, thick glossy droplet dripping from nozzle, wet watercolor shine, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (389, '0', '', '2025-12-10 11:26:36', '', '2025-12-10 11:26:36', NULL, '202512106f777d7c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/265f3a36_0217653659966711e15ac27860f2c8c25bccd5ee2521f9a2a9711_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy millennial pink anal beads connected by thin silver chain, soft rounded mochi shape, rose gold ring accents, subtle vibration waves, watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (390, '0', '', '2025-12-10 11:27:06', '', '2025-12-10 11:27:06', NULL, '2025121071829b2f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/18fcd848_021765366026136732fd601d62b6a7044a0e20965673d99c7a939_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy soft purple anal beads connected by thin silver chain, soft rounded mochi shape, rose gold ring accents, subtle vibration waves, watercolor texture, floating, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (391, '0', '', '2025-12-10 11:28:35', '', '2025-12-10 11:28:35', NULL, '202512107930e223', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/561bfa41_02176536611563374bd01b7bc1bacfcfc78546caab5b5fa7e4f28_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone anal beads with four graduated rounded bulbs, thin flexible neck, rose gold finger loop handle at bottom, soft watercolor shine, floating centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (392, '0', '', '2025-12-10 11:28:54', '', '2025-12-10 11:28:54', NULL, '202512105dc63192', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (393, '0', '', '2025-12-10 11:29:07', '', '2025-12-10 11:29:07', NULL, '20251210a6520c25', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/786b7c03_0217653661480157ed3dd5a26da08a73b6b7a28831080924143c9_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black silicone anal beads with four graduated rounded bulbs, thin flexible neck, large finger loop handle at bottom, soft watercolor texture, subtle surface highlight, floating centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (394, '0', '', '2025-12-10 11:30:13', '', '2025-12-10 11:30:13', NULL, '20251210fc5c1330', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (395, '0', '', '2025-12-10 11:30:28', '', '2025-12-10 11:30:28', NULL, '202512104569b2a7', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (396, '0', '', '2025-12-10 11:30:48', '', '2025-12-10 11:30:48', NULL, '2025121007b714e4', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (397, '0', '', '2025-12-10 11:31:04', '', '2025-12-10 11:31:04', NULL, '20251210c2ba1923', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (398, '0', '', '2025-12-10 11:31:29', '', '2025-12-10 11:31:29', NULL, '20251210283c4c47', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (399, '0', '', '2025-12-10 11:32:07', '', '2025-12-10 11:32:07', NULL, '2025121070fbb38b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/1534fdcb_021765366327652f9825d5f0df17daef396c99db0606054cd3aa9_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black silicone beaded accessory with four graduated smooth spheres from small to large, thin stem, large round pull ring at bottom, soft watercolor shading, centered, pure white background only, game prop', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (400, '0', '', '2025-12-10 11:32:26', '', '2025-12-10 11:32:26', NULL, '202512108687d481', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (401, '0', '', '2025-12-10 11:32:44', '', '2025-12-10 11:32:44', NULL, '202512100971e373', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/10/055ef04e_0217653663648142504cb05148e9a08cc7612c3f2b24e52a59ae2_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent pearl white silicone beaded accessory, four perfectly graduated round bulbs from small to large, thin stem, rose gold pull ring, soft watercolor highlight, centered, pure white background only, cute game item', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (402, '0', '', '2025-12-10 11:33:02', '', '2025-12-10 11:33:02', NULL, '20251210f3bac980', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (403, '0', '', '2025-12-11 01:27:50', '', '2025-12-11 01:27:50', NULL, '20251211d7b8f7d4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3d16ba5b_021765416471163c799e7b290acded99bf6695874956a9f60e32d_0.jpeg', 1, 'chibi korean hand-drawn icon, frosted glass lube bottle with rose gold cap, soft peach liquid swirl inside, single hanging crystal droplet, glossy watercolor texture, floating, pure white background only\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (404, '0', '', '2025-12-11 01:28:10', '', '2025-12-11 01:28:10', NULL, '20251211f23c84f7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a2a7b792_0217654164906015097524147fba306f3fd5b41c9337702aefa61_0.jpeg', 1, 'chibi korean hand-drawn icon, deck of pink playing cards with erotic symbols, rose gold edges, watercolor, centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (405, '0', '', '2025-12-11 01:28:35', '', '2025-12-11 01:28:35', NULL, '20251211ac6cbf35', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b62e0102_0217654165158355097524147fba306f3fd5b41c9337702e74e76_0.jpeg', 1, 'chibi korean hand-drawn icon, pink silicone tongue vibrator, rose gold base, watercolor texture, centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (406, '0', '', '2025-12-11 01:28:52', '', '2025-12-11 01:28:52', NULL, '2025121198cd64a5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c8253790_0217654165325803a780f972f42b9300f847977bd3329552dc162_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy pink remote control butt plug, rose gold base, watercolor shine, centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (407, '0', '', '2025-12-11 01:29:07', '', '2025-12-11 01:29:07', NULL, '2025121110077a1a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b5acc770_021765416547942fef143c4098cd8cc7e0dd8c08d18f9db195f31_0.jpeg', 1, 'chibi korean hand-drawn icon, pheromone perfume bottle in heart shape, rose gold cap, soft watercolor mist, centered, pure white background only', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (408, '0', '', '2025-12-11 01:30:08', '', '2025-12-11 01:30:08', NULL, '20251211cc7dc48b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a7425063_0217654166086105097524147fba306f3fd5b41c93377021dac70_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink wireless vibrating egg, rose gold ring, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (409, '0', '', '2025-12-11 01:30:34', '', '2025-12-11 01:30:34', NULL, '20251211173a8906', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/34a5b420_021765416634590732fd601d62b6a7044a0e20965673d99a478ef_0.jpeg', 1, 'chibi korean hand-drawn icon, two glossy millennial pink vibrating eggs connected by thin silver chain, rose gold LED ring, soft watercolor texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (410, '0', '', '2025-12-11 01:31:07', '', '2025-12-11 01:31:07', NULL, '2025121114aaba93', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7f9d8184_0217654166671437ed3dd5a26da08a73b6b7a2883108092139013_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent onahole with soft peach inner texture visible, crystal lube droplets, glossy watercolor, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (411, '0', '', '2025-12-11 01:32:50', '', '2025-12-11 01:32:50', NULL, '20251211e2cce052', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ecb2314a_021765416770808641a02d40a43d449f07de84c480b390d3a1e30_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped transparent onahole, glossy peach entrance, rose gold rim, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (412, '0', '', '2025-12-11 01:33:06', '', '2025-12-11 01:33:06', NULL, '202512113dc7b2e9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3759e6f1_02176541678609399f4740eadd3360aa6250e68d85f7ec7fd9c0d_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped transparent onahole, glossy peach entrance, rose gold rim, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (413, '0', '', '2025-12-11 01:33:18', '', '2025-12-11 01:33:18', NULL, '2025121107b7dc59', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2972b796_021765416798403c5f50319cb4d4388d7836967b82aebe5f1ff6c_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped transparent onahole, glossy peach entrance, rose gold rim, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (414, '0', '', '2025-12-11 01:33:29', '', '2025-12-11 01:33:29', NULL, '20251211e99e111c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/9dc1b8ba_0217654168099712504cb05148e9a08cc7612c3f2b24e521975c0_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped transparent onahole, glossy peach entrance, rose gold rim, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (415, '0', '', '2025-12-11 01:33:40', '', '2025-12-11 01:33:40', NULL, '20251211ecdd2b92', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f5a7d29b_02176541682063799f4740eadd3360aa6250e68d85f7ec7a39de6_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped transparent onahole, glossy peach entrance, rose gold rim, soft watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (416, '0', '', '2025-12-11 01:33:52', '', '2025-12-11 01:33:52', NULL, '2025121118d1fba5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/eb8830fc_02176541683246434cb6184a92ddd9ae87302c189a666e5f12e99_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag, thin black straps, rose gold buckle, glossy watercolor, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (417, '0', '', '2025-12-11 01:34:14', '', '2025-12-11 01:34:14', NULL, '202512113f99b708', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6905aad9_0217654168544293c1f91f892e9aff2a902d86b047fe2426e02f7_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag, thin black straps, rose gold buckle, glossy watercolor, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (418, '0', '', '2025-12-11 01:34:40', '', '2025-12-11 01:34:40', NULL, '20251211ba3d708a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/268de2db_02176541688008912014becacfaf8a37949eaec3c813975398b1e_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy white fox tail, rose gold base, soft watercolor fur texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (419, '0', '', '2025-12-11 01:34:50', '', '2025-12-11 01:34:50', NULL, '20251211ff458c4e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a18ddb57_021765416890899d6d3168ae2bcee8e5f54d16f5503dedeb37238_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy white fox tail, rose gold base, soft watercolor fur texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (420, '0', '', '2025-12-11 01:35:04', '', '2025-12-11 01:35:04', NULL, '2025121142bddcd9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/720ede2a_02176541690488274bd01b7bc1bacfcfc78546caab5b5faa53832_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail, rose gold base, soft watercolor, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (421, '0', '', '2025-12-11 01:35:22', '', '2025-12-11 01:35:22', NULL, '202512113607a1b2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2bdeed23_021765416922820c5f50319cb4d4388d7836967b82aebe5f43051_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded toy with four graduated spheres from small to large, rose gold pull ring, soft watercolor, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (422, '0', '', '2025-12-11 01:35:40', '', '2025-12-11 01:35:40', NULL, '20251211afd2ae89', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d92c61c8_021765416940095fef143c4098cd8cc7e0dd8c08d18f9db96a0a0_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent dropper lube bottle, rose gold collar, glistening droplet on tip, watercolor texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (423, '0', '', '2025-12-11 01:35:58', '', '2025-12-11 01:35:58', NULL, '20251211127ee95b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7210e018_021765416959069f8f49430e1e3875ff473008eb96b3a39d79934_0.jpeg', 1, 'chibi korean hand-drawn icon, short pink leather riding crop, rose gold handle, watercolor shine, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (424, '0', '', '2025-12-11 01:37:57', '', '2025-12-11 01:37:57', NULL, '20251211775bbfa9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7419fc4a_0217654170777005097524147fba306f3fd5b41c93377027ad6df_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent pink enema bag with rose gold nozzle and hanging hook, soft liquid swirl inside, long tube, watercolor glossy texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (425, '0', '', '2025-12-11 01:38:17', '', '2025-12-11 01:38:17', NULL, '20251211180fffc6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/eabc8915_021765417097485d6d3168ae2bcee8e5f54d16f5503deded571dc_0.jpeg', 1, 'chibi korean hand-drawn icon, black leather pony bit gag with rose gold metal bit and reins, soft watercolor texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (426, '0', '', '2025-12-11 01:38:31', '', '2025-12-11 01:38:31', NULL, '202512114e2962f0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/e1a4b760_021765417112050f8f49430e1e3875ff473008eb96b3a397aece9_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy deep black wireless vibrating egg, rose gold ring with subtle metallic glow, soft watercolor texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (427, '0', '', '2025-12-11 01:38:53', '', '2025-12-11 01:38:53', NULL, '20251211c79c07c1', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/9388731e_0217654171331267ed3dd5a26da08a73b6b7a28831080921e12ae_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black silicone beaded toy with four graduated spheres from small to large, rose gold pull ring, soft watercolor shading, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (428, '0', '', '2025-12-11 01:39:14', '', '2025-12-11 01:39:14', NULL, '2025121100b979d7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7be5b1bb_02176541715458312014becacfaf8a37949eaec3c81397563bdce_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black metal chastity cage with rose gold lock and subtle bars, soft watercolor metallic texture, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (429, '0', '', '2025-12-11 02:09:11', '', '2025-12-11 02:09:11', NULL, '202512115d715d54', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5a2735ca_02176541895140934cb6184a92ddd9ae87302c189a666e5bf482b_0.jpeg', 1, '五条悟,抱小孩\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (430, '0', '', '2025-12-11 02:09:41', '', '2025-12-11 02:09:41', NULL, '20251211a6f42446', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d2da80b3_0217654189813373c1f91f892e9aff2a902d86b047fe242248faf_0.jpeg', 1, '五条悟,抱欧洲小孩', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (431, '0', '', '2025-12-11 02:10:29', '', '2025-12-11 02:10:29', NULL, '2025121171bc8d9e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/64f3d4b7_0217654190299243a780f972f42b9300f847977bd3329557ac0ab_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone adult toy with rose gold accents, soft watercolor metallic shine and gentle gradient, premium luxury item, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (432, '0', '', '2025-12-11 02:10:49', '', '2025-12-11 02:10:49', NULL, '2025121128c9fc10', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0469de69_0217654190492567b67bbc2a2a9a26108e071e40bb0b08431191e_0.jpeg', 1, 'chibi korean hand-drawn icon, jelly-like translucent peach-pink adult toy, wet glossy watercolor texture with crystal droplets and soft bloom, cute urban instagram style, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (433, '0', '', '2025-12-11 02:10:53', '', '2025-12-11 02:10:53', NULL, '20251211c25bf8fb', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/82b80aee_021765419053837f8f49430e1e3875ff473008eb96b3a39a48ef3_0.jpeg', 1, '五条悟,在大街上,白色的墙、一个街道', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (434, '0', '', '2025-12-11 02:11:55', '', '2025-12-11 10:12:27', NULL, '20251211ccff83eb', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/8474b7a9_02176541911696100000000000000000000ffffc0a8a457fe61cd.mp4', 1, '图一在街道上走,遇到一个小孩,就抱起来了', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/11/7cad6565_82b80aee_021765419053837f8f49430e1e3875ff473008eb96b3a39a48ef3_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/11/d33ed740_d2da80b3_0217654189813373c1f91f892e9aff2a902d86b047fe242248faf_0.jpeg'); +INSERT INTO `ai_order` VALUES (435, '0', '', '2025-12-11 02:13:41', '', '2025-12-11 02:13:41', NULL, '20251211a2ba0c7d', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8bf3a808_0217654192214307ed3dd5a26da08a73b6b7a2883108092cc70b5_0.jpeg', 1, '五条悟穿着黑丝,露出腹肌', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (436, '0', '', '2025-12-11 02:14:45', '', '2025-12-11 02:14:45', NULL, '2025121103720e28', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/607f9695_02176541928557430d072d337ea6fcc7bbfbe2f0c485be2db3b06_0.jpeg', 1, '五条悟露出腹肌,手里拿着苹果', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (437, '0', '', '2025-12-11 02:15:23', '', '2025-12-11 02:15:23', NULL, '2025121196ca9aee', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/536f54a5_02176541932318199f4740eadd3360aa6250e68d85f7ec736096b_0.jpeg', 1, '五条悟露出腹肌,肩膀上扛着圣诞树', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (438, '0', '', '2025-12-11 02:15:29', '', '2025-12-11 02:15:29', NULL, '20251211e7ea67a9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/fb55a7d7_0217654193299153c1f91f892e9aff2a902d86b047fe242586dc9_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone vibrator wand, rose gold control buttons and accents, soft watercolor metallic shine with gentle gradient, premium luxury style, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (439, '0', '', '2025-12-11 02:15:49', '', '2025-12-11 02:15:49', NULL, '20251211530078b3', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (440, '0', '', '2025-12-11 02:16:06', '', '2025-12-11 02:16:06', NULL, '202512110bb73cfe', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/254eb946_0217654193666522504cb05148e9a08cc7612c3f2b24e52bb730d_0.jpeg', 1, '五条悟露出腹肌,手里拿着钱包。现在的画风不变', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (441, '0', '', '2025-12-11 02:16:16', '', '2025-12-11 02:16:16', NULL, '20251211bdab0396', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/46031222_02176541937671134cb6184a92ddd9ae87302c189a666e5dc6d65_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black leather textured vibrator wand, rose gold metal details and subtle chain accent, soft watercolor shading with metallic reflection, luxury BDSM vibe, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (442, '0', '', '2025-12-11 02:17:38', '', '2025-12-11 10:18:15', NULL, '20251211f4df385d', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/b54a2696_02176541945876400000000000000000000ffffc0a8a457995371.mp4', 1, '五条悟拿着钱去买了一颗圣诞树', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/11/d5bb7fb5_254eb946_0217654193666522504cb05148e9a08cc7612c3f2b24e52bb730d_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/11/18115b70_536f54a5_02176541932318199f4740eadd3360aa6250e68d85f7ec736096b_0.jpeg'); +INSERT INTO `ai_order` VALUES (443, '0', '', '2025-12-11 02:18:01', '', '2025-12-11 02:18:01', NULL, '20251211cf1fd6c8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/06525c65_021765419481236c799e7b290acded99bf6695874956a9fa45471_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black leather textured vibrator wand, rose gold metal details and subtle chain accent, soft watercolor shading with metallic reflection, luxury BDSM vibe, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (444, '0', '', '2025-12-11 02:22:33', '', '2025-12-11 02:22:33', NULL, '202512117b062568', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/bcd29f38_0217654197532212504cb05148e9a08cc7612c3f2b24e523770f1_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone vibrator wand, rose gold control buttons and accents, soft watercolor metallic shine with gentle gradient, premium luxury style, centered, pure white background only, no eyes no mouth no face', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (445, '0', '', '2025-12-11 02:23:24', '', '2025-12-11 02:23:24', NULL, '20251211047cb1e3', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (446, '0', '', '2025-12-11 02:23:36', '', '2025-12-11 02:23:36', NULL, '202512112c1552b9', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (447, '0', '', '2025-12-11 02:23:54', '', '2025-12-11 02:23:54', NULL, '2025121129cde7eb', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (448, '0', '', '2025-12-11 02:24:13', '', '2025-12-11 02:24:13', NULL, '202512118e950e9d', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (449, '0', '', '2025-12-11 02:24:31', '', '2025-12-11 02:24:31', NULL, '20251211d354671f', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (450, '0', '', '2025-12-11 02:24:45', '', '2025-12-11 02:24:45', NULL, '202512116b7f3e75', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (451, '0', '', '2025-12-11 02:26:06', '', '2025-12-11 02:26:06', NULL, '20251211b6a0794c', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (452, '0', '', '2025-12-11 02:27:19', '', '2025-12-11 02:27:19', NULL, '20251211b6fdeb48', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (453, '0', '', '2025-12-11 02:28:16', '', '2025-12-11 02:28:16', NULL, '20251211a6f5b348', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (454, '0', '', '2025-12-11 02:28:31', '', '2025-12-11 02:28:31', NULL, '202512112c53a2d3', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (455, '0', '', '2025-12-11 02:29:02', '', '2025-12-11 02:29:02', NULL, '20251211ebd98ae8', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (456, '0', '', '2025-12-11 02:32:41', '', '2025-12-11 02:32:41', NULL, '202512111b26f35b', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (457, '0', '', '2025-12-11 02:33:20', '', '2025-12-11 02:33:20', NULL, '20251211479d28d3', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (458, '0', '', '2025-12-11 02:54:22', '', '2025-12-11 02:54:22', NULL, '202512112b59d263', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/db245b9b_021765421662348d6d3168ae2bcee8e5f54d16f5503dede4b3335_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile white silicone relaxation wand with soft blue accents and rose gold buttons, clean watercolor texture with subtle gloss and minimal design, pure aesthetic, centered, pure white background only, no eyes no mouth no face, safe game item', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (459, '0', '', '2025-12-11 03:18:49', '', '2025-12-11 03:18:49', NULL, '20251211e61a416f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/766d49a3_0217654231301567b67bbc2a2a9a26108e071e40bb0b084e0049d_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone massage wand, rose gold control buttons and accents, soft watercolor metallic shine with gentle gradient, premium luxury style, centered, pure white background only, no eyes no mouth no face, safe game item', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (460, '0', '', '2025-12-11 03:20:19', '', '2025-12-11 03:20:19', NULL, '202512114ea97c7c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0e433ee3_02176542321961830d072d337ea6fcc7bbfbe2f0c485be2b66fef_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone massage wand angled to the left with handle pointing left, rose gold control buttons and accents, soft watercolor metallic shine with gentle gradient, premium luxury style, centered, pure white background only, no eyes no mouth no face, safe game item', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (461, '0', '', '2025-12-11 03:20:38', '', '2025-12-11 03:20:38', NULL, '20251211fbbd6323', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2312f13e_0217654232381893c1f91f892e9aff2a902d86b047fe2422bc918_0.jpeg', 1, 'chibi korean hand-drawn icon, jelly-like translucent peach-pink personal massager angled to the left with handle pointing left, crystal glossy watercolor texture with wet droplets and soft bloom, cute rounded shape, urban instagram aesthetic, centered, pure white background only, no eyes no mouth no face, safe game item', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (462, '0', '', '2025-12-11 03:21:35', '', '2025-12-11 03:21:35', NULL, '20251211869065a7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/712e7266_021765423295803d6d3168ae2bcee8e5f54d16f5503dede8683dc_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal massager angled to the left with handle pointing left, rose gold buttons and ring accents, soft watercolor luxury shine with gentle gradient, premium game item, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (463, '0', '', '2025-12-11 03:21:59', '', '2025-12-11 03:21:59', NULL, '20251211c874acc9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/753464d9_0217654233198465097524147fba306f3fd5b41c9337702b4baa6_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal massager angled to the left with handle pointing left, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (464, '0', '', '2025-12-11 03:22:27', '', '2025-12-11 03:22:27', NULL, '202512112cba3851', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a7c74071_021765423347899d6d3168ae2bcee8e5f54d16f5503dede738afc_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black leather personal massager angled to the left with handle pointing left, rose gold metal details and subtle texture lines, soft watercolor shading with metallic reflection, luxury dark style, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (465, '0', '', '2025-12-11 03:22:43', '', '2025-12-11 03:22:43', NULL, '20251211495c4026', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/971986d1_0217654233636891e15ac27860f2c8c25bccd5ee2521f9a1395c0_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal massager angled to the left with handle pointing left, decorative flickering neon lights and rose gold circuit patterns, watercolor holographic sparkles and glow, cyber urban style, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (466, '0', '', '2025-12-11 03:23:47', '', '2025-12-11 03:23:47', NULL, '20251211a8de90cb', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6b57bc73_02176542342793730d072d337ea6fcc7bbfbe2f0c485be23d94d5_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure wand angled to the left with handle pointing left, curved tip for comfort, rose gold buttons and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (467, '0', '', '2025-12-11 03:24:05', '', '2025-12-11 03:24:05', NULL, '202512113a745991', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6ed632d3_0217654234454133c1f91f892e9aff2a902d86b047fe242e7536d_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (468, '0', '', '2025-12-11 03:25:14', '', '2025-12-11 03:25:14', NULL, '20251211fde00160', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/174a4a92_021765423514970fef143c4098cd8cc7e0dd8c08d18f9db5b6cf7_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure wand angled to the right with handle pointing right, curved tip for comfort, rose gold buttons and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (469, '0', '', '2025-12-11 03:25:57', '', '2025-12-11 03:25:57', NULL, '20251211cafdee04', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2fad2b5d_0217654235579772504cb05148e9a08cc7612c3f2b24e52a9149b_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure wand angled to the right with handle pointing right, curved tip for comfort, rose gold buttons and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (470, '0', '', '2025-12-11 03:26:16', '', '2025-12-11 03:26:16', NULL, '20251211d102b3d4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/99d6c833_02176542357659199f4740eadd3360aa6250e68d85f7ec758ed6f_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the right with handle pointing right, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (471, '0', '', '2025-12-11 03:26:36', '', '2025-12-11 03:26:36', NULL, '202512115aaa61c4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f225fbf0_02176542359681412014becacfaf8a37949eaec3c813975f7bc73_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black leather textured personal pleasure wand angled to the right with handle pointing right, curved tip with subtle texture, rose gold metal details, soft watercolor shading with metallic reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (472, '0', '', '2025-12-11 03:28:51', '', '2025-12-11 03:28:51', NULL, '20251211a8e1761c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/bb1f0772_021765423731290641a02d40a43d449f07de84c480b390db4a1ff_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip for comfort, rose gold buttons and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (473, '0', '', '2025-12-11 03:29:15', '', '2025-12-11 03:29:15', NULL, '20251211bd527aec', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cb52a469_02176542375605734cb6184a92ddd9ae87302c189a666e5558cf0_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (474, '0', '', '2025-12-11 03:29:33', '', '2025-12-11 03:29:33', NULL, '20251211836bf3df', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a60a0e5c_021765423773936732fd601d62b6a7044a0e20965673d994805fb_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (475, '0', '', '2025-12-11 03:29:47', '', '2025-12-11 03:29:47', NULL, '20251211b8c06dff', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/795c5d31_0217654237875753a780f972f42b9300f847977bd332955ceed86_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (476, '0', '', '2025-12-11 03:30:01', '', '2025-12-11 03:30:01', NULL, '20251211751ed273', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/88c498aa_0217654238014183a780f972f42b9300f847977bd332955b4f8b8_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (477, '0', '', '2025-12-11 03:30:16', '', '2025-12-11 03:30:16', NULL, '2025121116d51f6b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d0f4e81b_0217654238160811e15ac27860f2c8c25bccd5ee2521f9a320a67_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (478, '0', '', '2025-12-11 03:30:27', '', '2025-12-11 03:30:27', NULL, '202512117b5105f0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3f665ea3_021765423827583f9825d5f0df17daef396c99db0606054182a0d_0.jpeg', 1, 'chibi korean hand-drawn icon, translucent jelly peach-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, crystal glossy watercolor texture with wet droplets and inner glow, cute rounded design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (479, '0', '', '2025-12-11 03:30:54', '', '2025-12-11 03:30:54', NULL, '20251211abdcf476', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d1f0acef_02176542385487399f4740eadd3360aa6250e68d85f7ec79fdd7c_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black leather textured personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip with subtle texture, rose gold metal details, soft watercolor shading with metallic reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (480, '0', '', '2025-12-11 03:32:50', '', '2025-12-11 03:32:50', NULL, '20251211bcee222d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0be9c21d_02176542397049899f4740eadd3360aa6250e68d85f7ec7d8a4ec_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (481, '0', '', '2025-12-11 03:33:03', '', '2025-12-11 03:33:03', NULL, '2025121126005620', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8dc43705_0217654239837251386b9a8ed856c57501cfa946ce34c9825caed_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (482, '0', '', '2025-12-11 03:33:20', '', '2025-12-11 03:33:20', NULL, '202512116f541cfb', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/4900b724_02176542400070899f4740eadd3360aa6250e68d85f7ec76d07f8_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (483, '0', '', '2025-12-11 03:33:41', '', '2025-12-11 03:33:41', NULL, '20251211b4f4cc83', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/382d5eb8_02176542402146199f4740eadd3360aa6250e68d85f7ec7c162f4_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (484, '0', '', '2025-12-11 03:33:53', '', '2025-12-11 03:33:53', NULL, '202512112d6c0a39', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/872728e4_021765424033538f9825d5f0df17daef396c99db060605429def1_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (485, '0', '', '2025-12-11 03:34:04', '', '2025-12-11 03:34:04', NULL, '20251211cb8ddde1', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d5d49909_02176542404473074bd01b7bc1bacfcfc78546caab5b5fae50d42_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (486, '0', '', '2025-12-11 03:34:23', '', '2025-12-11 03:34:23', NULL, '202512111523c82c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a7eace6e_0217654240636221e15ac27860f2c8c25bccd5ee2521f9a2bd398_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (487, '0', '', '2025-12-11 03:34:35', '', '2025-12-11 03:34:35', NULL, '2025121166adebd2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6e243754_021765424075554732fd601d62b6a7044a0e20965673d99aedc32_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (488, '0', '', '2025-12-11 03:34:47', '', '2025-12-11 03:34:47', NULL, '20251211e68115c4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b3286dcc_021765424087345c799e7b290acded99bf6695874956a9fc923fa_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (489, '0', '', '2025-12-11 03:35:01', '', '2025-12-11 03:35:01', NULL, '202512111049b24b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c04f9dab_021765424101469f8f49430e1e3875ff473008eb96b3a39e9b077_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (490, '0', '', '2025-12-11 03:36:33', '', '2025-12-11 03:36:33', NULL, '20251211f01ffa7f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8aa14d6a_021765424193502c799e7b290acded99bf6695874956a9ffe390b_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (491, '0', '', '2025-12-11 04:03:58', '', '2025-12-11 04:03:58', NULL, '202512114ca79859', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/29a444f2_02176542583860630d072d337ea6fcc7bbfbe2f0c485be27ceb13_0.jpeg', 1, '五条悟在足球场', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (492, '0', '', '2025-12-11 04:10:44', '', '2025-12-11 12:11:34', NULL, '20251211c7dc8615', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/6575a9e1_02176542624592600000000000000000000ffffc0a8a45766616a.mp4', 1, '穿上球衣,然后踢足球,变身过程有闪光特效', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/11/f2b27ca7_29a444f2_02176542583860630d072d337ea6fcc7bbfbe2f0c485be27ceb13_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/11/a94b9157_bb9c88ed_0217653534772208547934892c4038781a87d514f9a919683ceca_0.jpeg'); +INSERT INTO `ai_order` VALUES (493, '0', '', '2025-12-11 04:31:07', '', '2025-12-11 04:31:07', NULL, '20251211b41acfbe', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1437b088_0217654274676708547934892c4038781a87d514f9a91968584e6_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (494, '0', '', '2025-12-11 04:31:21', '', '2025-12-11 04:31:21', NULL, '202512114feac2d9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/572053f6_0217654274815972504cb05148e9a08cc7612c3f2b24e524b6029_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (495, '0', '', '2025-12-11 04:32:15', '', '2025-12-11 04:32:15', NULL, '2025121182fd87e0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d0b59f00_021765427535246732fd601d62b6a7044a0e20965673d99477ecb_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (496, '0', '', '2025-12-11 04:32:43', '', '2025-12-11 04:32:43', NULL, '20251211c768bef0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c4edcc72_0217654275635015097524147fba306f3fd5b41c933770288c856_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (497, '0', '', '2025-12-11 04:33:46', '', '2025-12-11 04:33:46', NULL, '2025121172096216', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/74d34e74_0217654276261183a780f972f42b9300f847977bd332955e261e6_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (498, '0', '', '2025-12-11 04:34:27', '', '2025-12-11 04:34:27', NULL, '20251211346d9bd3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5d913850_021765427667250f9825d5f0df17daef396c99db06060548f216b_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative flickering neon lights along body, rose gold patterns and holographic glow, watercolor sparkles, cyber intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (499, '0', '', '2025-12-11 04:35:29', '', '2025-12-11 04:35:29', NULL, '202512117c93c6bd', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/980d7a42_0217654277295091e15ac27860f2c8c25bccd5ee2521f9a38272e_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (500, '0', '', '2025-12-11 04:35:46', '', '2025-12-11 04:35:46', NULL, '20251211adb9476b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d4fc5de8_021765427746999f9825d5f0df17daef396c99db0606054ead2a7_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (501, '0', '', '2025-12-11 04:35:58', '', '2025-12-11 04:35:58', NULL, '20251211f69b9bd1', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8b2c81cd_0217654277581611e15ac27860f2c8c25bccd5ee2521f9ac692db_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (502, '0', '', '2025-12-11 04:36:13', '', '2025-12-11 04:36:13', NULL, '202512115b531bfc', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7a3ee52d_0217654277737401e15ac27860f2c8c25bccd5ee2521f9a23e78f_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (503, '0', '', '2025-12-11 04:37:54', '', '2025-12-11 04:37:54', NULL, '20251211c9668372', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/7cf3cc22_02176542787457512014becacfaf8a37949eaec3c81397564257e_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (504, '0', '', '2025-12-11 04:39:31', '', '2025-12-11 04:39:31', NULL, '20251211be5e4b80', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/fa1571cf_02176542797197975aeae14c82856eca08eecb5e75c0575fb07b0_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (505, '0', '', '2025-12-11 04:39:45', '', '2025-12-11 04:39:45', NULL, '2025121172042167', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/17005786_021765427985809f8f49430e1e3875ff473008eb96b3a395e400c_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (506, '0', '', '2025-12-11 04:39:58', '', '2025-12-11 04:39:58', NULL, '20251211b62402f4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0ae142a8_021765427998089d6d3168ae2bcee8e5f54d16f5503dede3b20c5_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (507, '0', '', '2025-12-11 04:40:10', '', '2025-12-11 04:40:10', NULL, '202512116bcf0eb8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/bec370a5_021765428010767c799e7b290acded99bf6695874956a9f7b77eb_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (508, '0', '', '2025-12-11 04:40:46', '', '2025-12-11 04:40:46', NULL, '20251211aee02296', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/98b7466f_0217654280463802504cb05148e9a08cc7612c3f2b24e5210c2a3_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, gently curved medical-grade tip, soft pastel blue accents and rose gold buttons, clean watercolor texture with subtle gloss, clinical intimate aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (509, '0', '', '2025-12-11 04:41:17', '', '2025-12-11 04:41:17', NULL, '20251211ccbb09f3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/05ec2641_02176542807790415b33ccaa151d3ed7feaaa761bc71c373ae922_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient millennial pink to lavender silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, rose gold accents and subtle pearl shine, soft watercolor dreamy gradient, fantasy intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (510, '0', '', '2025-12-11 04:41:31', '', '2025-12-11 04:41:31', NULL, '202512117f8294fc', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5aade4ed_0217654280916618547934892c4038781a87d514f9a9196bbf85c_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient millennial pink to lavender silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, rose gold accents and subtle pearl shine, soft watercolor dreamy gradient, fantasy intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (511, '0', '', '2025-12-11 04:42:28', '', '2025-12-11 04:42:28', NULL, '20251211dba4a33d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/19347ac8_0217654281484567ed3dd5a26da08a73b6b7a288310809216d0e8_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient millennial pink to lavender silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved ergonomic tip, rose gold accents and subtle pearl shine, soft watercolor dreamy gradient, fantasy intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (512, '0', '', '2025-12-11 04:44:43', '', '2025-12-11 04:44:43', NULL, '20251211a4732cbd', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cb847c27_0217654282838743c1f91f892e9aff2a902d86b047fe2422f2cf6_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal clear silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip with embedded rose gold gem details, glossy watercolor prism reflection and sparkle, luxury jeweled aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (513, '0', '', '2025-12-11 04:44:56', '', '2025-12-11 04:44:56', NULL, '202512117d0fb47f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/486c2ff9_0217654282962013c1f91f892e9aff2a902d86b047fe242b1b134_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal clear silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip with embedded rose gold gem details, glossy watercolor prism reflection and sparkle, luxury jeweled aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (514, '0', '', '2025-12-11 04:45:07', '', '2025-12-11 04:45:07', NULL, '202512113ab992cb', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b63adb67_02176542830805612014becacfaf8a37949eaec3c813975139fb9_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal clear silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip with embedded rose gold gem details, glossy watercolor prism reflection and sparkle, luxury jeweled aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (515, '0', '', '2025-12-11 04:45:18', '', '2025-12-11 04:45:18', NULL, '20251211d516c200', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/535593b3_0217654283182121386b9a8ed856c57501cfa946ce34c986dae31_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal clear silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip with embedded rose gold gem details, glossy watercolor prism reflection and sparkle, luxury jeweled aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (516, '0', '', '2025-12-11 04:45:45', '', '2025-12-11 04:45:45', NULL, '2025121102b682ef', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/e3dce748_02176542834521530d072d337ea6fcc7bbfbe2f0c485be2e9225d_0.jpeg', 1, 'chibi korean hand-drawn icon, sleek metallic silver silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, black gold accents and sharp highlights, soft watercolor cold metallic texture, elegant dominant style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (517, '0', '', '2025-12-11 04:46:10', '', '2025-12-11 04:46:10', NULL, '202512117e153e88', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/82dde608_02176542837070875aeae14c82856eca08eecb5e75c0575ef5458_0.jpeg', 1, 'chibi korean hand-drawn icon, sleek metallic silver silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, black gold accents and sharp highlights, soft watercolor cold metallic texture, elegant dominant style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (518, '0', '', '2025-12-11 04:46:38', '', '2025-12-11 04:46:38', NULL, '202512116a75be9e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/bda7d49b_021765428398739c799e7b290acded99bf6695874956a9ff0a648_0.jpeg', 1, 'chibi korean hand-drawn icon, glow-in-dark neon multicolored silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip, decorative glowing patterns and rose gold edges, watercolor vibrant fluorescence and party sparkles, urban nightlife style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (519, '0', '', '2025-12-11 04:47:06', '', '2025-12-11 04:47:06', NULL, '2025121121d7ae01', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/75ee4655_021765428426776732fd601d62b6a7044a0e20965673d998fb6f8_0.jpeg', 1, 'chibi korean hand-drawn icon, soft velvet textured warm peach silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip for comfort, rose gold subtle details, gentle watercolor velvety shading and cozy glow, intimate comfort aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (520, '0', '', '2025-12-11 04:47:18', '', '2025-12-11 04:47:18', NULL, '202512110c890b4a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/96cdba0a_021765428438539f8f49430e1e3875ff473008eb96b3a395e99ed_0.jpeg', 1, 'chibi korean hand-drawn icon, soft velvet textured warm peach silicone personal pleasure wand angled to the left with handle pointing left mirrored flip, curved tip for comfort, rose gold subtle details, gentle watercolor velvety shading and cozy glow, intimate comfort aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (521, '0', '', '2025-12-11 04:49:01', '', '2025-12-11 04:49:01', NULL, '20251211016d947d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a3cb428c_021765428541738fef143c4098cd8cc7e0dd8c08d18f9db7a8d39_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (522, '0', '', '2025-12-11 04:49:14', '', '2025-12-11 04:49:14', NULL, '20251211c2dc9d1b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2340a469_02176542855450212014becacfaf8a37949eaec3c8139752ae62e_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (523, '0', '', '2025-12-11 04:49:33', '', '2025-12-11 04:49:33', NULL, '202512116d0eba49', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ad677956_021765428573163f9825d5f0df17daef396c99db0606054d7f7e7_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (524, '0', '', '2025-12-11 04:49:47', '', '2025-12-11 04:49:47', NULL, '202512113e28ea51', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/91011312_021765428587689c799e7b290acded99bf6695874956a9fab28fb_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (525, '0', '', '2025-12-11 04:50:52', '', '2025-12-11 04:50:52', NULL, '202512110442edae', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0988a7d7_021765428652356c5f50319cb4d4388d7836967b82aebe51d5e50_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, soft inviting plump cushioned entrance with glistening wet rim, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (526, '0', '', '2025-12-11 04:51:33', '', '2025-12-11 04:51:33', NULL, '202512110131f1ae', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/24166b78_02176542869333112014becacfaf8a37949eaec3c8139756b5e57_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, soft inviting plump cushioned entrance with glistening wet rim, curved interior for comfort, rose gold rim and accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (527, '0', '', '2025-12-11 04:52:36', '', '2025-12-11 04:52:36', NULL, '20251211ac776d81', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f51d256c_02176542875651630d072d337ea6fcc7bbfbe2f0c485be2d4f362_0.jpeg', 1, 'chibi korean hand-drawn icon, elegantly curved glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with glistening wet rim and subtle inner texture visible, rose gold rim and delicate accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (528, '0', '', '2025-12-11 04:52:52', '', '2025-12-11 04:52:52', NULL, '202512113b76d6bb', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/57664f60_0217654287729093c1f91f892e9aff2a902d86b047fe24243c09c_0.jpeg', 1, 'chibi korean hand-drawn icon, elegantly curved glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with glistening wet rim and subtle inner texture visible, rose gold rim and delicate accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (529, '0', '', '2025-12-11 04:53:06', '', '2025-12-11 04:53:06', NULL, '202512116d6a467f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/76c07686_02176542878648715b33ccaa151d3ed7feaaa761bc71c379d9a7f_0.jpeg', 1, 'chibi korean hand-drawn icon, elegantly streamlined translucent jelly peach-pink personal pleasure sleeve angled to the left with opening facing right mirrored flip, ultra soft plump inviting entrance with glistening wet droplets and visible teasing inner waves, crystal glossy watercolor texture with seductive inner glow, cute yet elegant design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (530, '0', '', '2025-12-11 04:54:14', '', '2025-12-11 04:54:14', NULL, '2025121182c5cd35', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f0081c5d_021765428854912732fd601d62b6a7044a0e20965673d993a33ff_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with no hard rim and glistening wet texture, subtle inner waves visible, curved elegant exterior, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (531, '0', '', '2025-12-11 04:55:49', '', '2025-12-11 04:55:49', NULL, '202512112d646f8d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0469021d_02176542895004399f4740eadd3360aa6250e68d85f7ec7ebc87b_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with glistening wet droplets and visible peach inner texture, no hard rim, elegant curved exterior with water bubbles, soft watercolor luxury shine and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (532, '0', '', '2025-12-11 04:56:14', '', '2025-12-11 04:56:14', NULL, '2025121141a26b72', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/40cd7903_021765428974770fef143c4098cd8cc7e0dd8c08d18f9db42157e_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent matte black tinted silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, soft plump inviting dark entrance with glistening wet droplets and visible subtle inner texture, no hard rim, elegantly sculpted exterior with water bubbles, soft watercolor shading with deep luxurious reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (533, '0', '', '2025-12-11 04:57:33', '', '2025-12-11 04:57:33', NULL, '202512119cd2f7fe', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/e5995213_0217654290533257b67bbc2a2a9a26108e071e40bb0b08438f785_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, ultra plump juicy soft entrance with heavy glistening droplets dripping down, visible seductive inner folds and meaty texture, no hard rim, abundant water bubbles on surface, soft watercolor wet shine and tempting gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (534, '0', '', '2025-12-11 04:57:52', '', '2025-12-11 04:57:52', NULL, '20251211040c0e51', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2164daba_02176542907233974bd01b7bc1bacfcfc78546caab5b5faaafe73_0.jpeg', 1, 'chibi korean hand-drawn icon, transparent glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, ultra plump swollen soft entrance slightly parted with dripping glistening lube and visible detailed inner nubs, no hard rim, abundant water droplets sliding down, soft watercolor seductive wet shine and erotic gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (535, '0', '', '2025-12-11 04:58:41', '', '2025-12-11 04:58:41', NULL, '20251211b860e963', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/98979c48_02176542912145399f4740eadd3360aa6250e68d85f7ec770ef51_0.jpeg', 1, 'chibi korean hand-drawn icon, complete glossy millennial pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with glistening wet texture and subtle tempting inner glow, no hard rim, elegant closed curved exterior with gentle water droplets, soft watercolor luxury shine with seductive gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (536, '0', '', '2025-12-11 04:59:01', '', '2025-12-11 04:59:01', NULL, '20251211ac544910', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0f8d0fe1_02176542914134734cb6184a92ddd9ae87302c189a666e538a8cc_0.jpeg', 1, 'chibi korean hand-drawn icon, complete translucent jelly peach-pink personal pleasure sleeve angled to the left with opening facing right mirrored flip, ultra soft plump inviting entrance with abundant glistening wet droplets and subtle teasing inner glow, no hard rim, elegant closed streamlined shape with delicate water bubbles, crystal glossy watercolor with irresistible wet shine, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (537, '0', '', '2025-12-11 05:00:42', '', '2025-12-11 05:00:42', NULL, '20251211da6e2d95', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/56291dd3_0217654292425763a780f972f42b9300f847977bd3329551460d7_0.jpeg', 1, 'chibi korean hand-drawn icon, complete transparent glossy peach-pink silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, beautifully plump soft inviting entrance with abundant glistening water droplets and subtle visible peach inner folds, no hard rim, elegant curved closed exterior with wet bubbles, soft watercolor luxury wet shine and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (538, '0', '', '2025-12-11 05:01:07', '', '2025-12-11 05:01:07', NULL, '202512118dfadcd2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/24d09213_021765429267568f9825d5f0df17daef396c99db0606054649368_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra transparent jelly peach-pink personal pleasure sleeve angled to the left with opening facing right mirrored flip, ultra plump swollen soft entrance with overflowing glistening droplets and visible teasing inner waves and folds, no hard rim, elegant streamlined closed shape with abundant water bubbles, crystal glossy watercolor with seductive wet inner glow, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (539, '0', '', '2025-12-11 05:01:38', '', '2025-12-11 05:01:38', NULL, '202512114595c68f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c6bfcad2_021765429298476d6d3168ae2bcee8e5f54d16f5503dedee47aa9_0.jpeg', 1, 'chibi korean hand-drawn icon, complete transparent deep tinted black silicone personal pleasure sleeve angled to the left with opening facing right mirrored flip, dangerously plump soft dark entrance with glistening wet droplets and subtle visible inner folds, no hard rim, elegantly sculpted closed exterior with mysterious water bubbles, soft watercolor dark wet shine with seductive reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (540, '0', '', '2025-12-11 05:04:30', '', '2025-12-11 05:04:30', NULL, '2025121134ad15d8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/9d660304_021765429470637d6d3168ae2bcee8e5f54d16f5503dede1f4375_0.jpeg', 1, 'chibi korean hand-drawn icon, complete transparent glossy millennial pink wireless vibrating egg, beautifully plump soft surface with abundant glistening water droplets and subtle peach inner glow, elegant egg shape with wet bubbles, soft watercolor luxury wet shine and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (541, '0', '', '2025-12-11 05:04:43', '', '2025-12-11 05:04:43', NULL, '202512110b3393e8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/62751901_021765429483594d6d3168ae2bcee8e5f54d16f5503dede65961b_0.jpeg', 1, 'chibi korean hand-drawn icon, complete transparent glossy millennial pink wireless vibrating egg, beautifully plump soft surface with abundant glistening water droplets and subtle peach inner glow, elegant egg shape with wet bubbles, soft watercolor luxury wet shine and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (542, '0', '', '2025-12-11 05:05:21', '', '2025-12-11 05:05:21', NULL, '2025121166ea8723', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/27a3c0f8_021765429521388fef143c4098cd8cc7e0dd8c08d18f9dbe67d3d_0.jpeg', 1, 'chibi korean hand-drawn icon, complete transparent glossy millennial pink wireless vibrating egg, beautifully plump soft surface with abundant glistening water droplets and subtle peach inner glow, elegant egg shape with wet bubbles, soft watercolor luxury wet shine and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (543, '0', '', '2025-12-11 05:05:39', '', '2025-12-11 05:05:39', NULL, '20251211e59ce10b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a341b8ed_0217654295397682504cb05148e9a08cc7612c3f2b24e5281632e_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra transparent jelly peach-pink wireless vibrating egg, ultra soft plump surface with overflowing glistening droplets and visible subtle teasing inner texture, elegant rounded egg shape with abundant water bubbles, crystal glossy watercolor with seductive wet inner glow, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (544, '0', '', '2025-12-11 05:06:33', '', '2025-12-11 05:06:33', NULL, '2025121108184e20', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a1a7d6e8_02176542959329674bd01b7bc1bacfcfc78546caab5b5fa58241a_0.jpeg', 1, 'chibi korean hand-drawn icon, complete matte millennial pink silicone wireless vibrating egg, smooth elegant egg shape with rose gold accent ring, soft watercolor luxury shading and gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (545, '0', '', '2025-12-11 05:06:52', '', '2025-12-11 05:06:52', NULL, '2025121190119f36', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f2ee2f1b_021765429613052f9825d5f0df17daef396c99db0606054ef5c10_0.jpeg', 1, 'chibi korean hand-drawn icon, complete glossy light pink silicone wireless vibrating egg, smooth rounded elegant egg shape with subtle rose gold button, soft watercolor clean shine and cute design, urban luxury aesthetic, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (546, '0', '', '2025-12-11 05:07:13', '', '2025-12-11 05:07:13', NULL, '20251211467e9b60', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ee4e0b04_021765429633661f8f49430e1e3875ff473008eb96b3a39385b62_0.jpeg', 1, 'chibi korean hand-drawn icon, complete matte black silicone wireless vibrating egg, smooth sculpted elegant egg shape with rose gold accent details, soft watercolor dark shading with luxurious reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (547, '0', '', '2025-12-11 05:07:32', '', '2025-12-11 05:07:32', NULL, '202512112dc3988d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ca040407_0217654296527467b67bbc2a2a9a26108e071e40bb0b08438b56b_0.jpeg', 1, 'chibi korean hand-drawn icon, complete matte black silicone wireless vibrating egg, smooth sculpted elegant egg shape with rose gold accent details, soft watercolor dark shading with luxurious reflection, luxury intimate style, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (548, '0', '', '2025-12-11 06:11:01', '', '2025-12-11 06:11:01', NULL, '20251211701141c0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1979af9d_0217654334619425097524147fba306f3fd5b41c93377021f6793_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg angled to the left with handle pointing left mirrored flip, smooth rounded shape for comfort, rose gold accent ring, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (549, '0', '', '2025-12-11 06:11:14', '', '2025-12-11 06:11:14', NULL, '20251211bfd5affa', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2f05f602_02176543347437674bd01b7bc1bacfcfc78546caab5b5faa257d7_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg angled to the left with handle pointing left mirrored flip, smooth rounded shape for comfort, rose gold accent ring, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (550, '0', '', '2025-12-11 06:11:33', '', '2025-12-11 06:11:33', NULL, '202512110700cebf', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/71e6506f_0217654334935155097524147fba306f3fd5b41c9337702209181_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve angled to the left with handle pointing left mirrored flip, soft inviting entrance and curved interior, rose gold rim accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (551, '0', '', '2025-12-11 06:11:59', '', '2025-12-11 06:11:59', NULL, '202512113456bfc3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/4e527ef0_021765433519524c799e7b290acded99bf6695874956a9f35cf4b_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy angled to the left with handle pointing left mirrored flip, four graduated spheres increasing in size with pull ring, rose gold ring accents, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (552, '0', '', '2025-12-11 06:12:21', '', '2025-12-11 06:12:21', NULL, '202512117b346766', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/54d9fdbd_0217654335420288547934892c4038781a87d514f9a9196a2e31e_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black remote controller angled to the left with handle pointing left mirrored flip, rose gold heart button and subtle vibration indicators, sleek luxury design, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (553, '0', '', '2025-12-11 06:12:40', '', '2025-12-11 06:12:40', NULL, '202512113a014d1b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f731223c_02176543356105615b33ccaa151d3ed7feaaa761bc71c37b664ba_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone butt plug with fluffy white fox tail angled to the left with handle pointing left mirrored flip, crystal teardrop shape and rose gold base, soft watercolor luxury shine with gentle gradient, premium intimate item, centered, clean pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (554, '0', '', '2025-12-11 06:20:00', '', '2025-12-11 06:20:00', NULL, '20251211cf3f13ae', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/056075fb_0217654340006207ed3dd5a26da08a73b6b7a2883108092d2a1b0_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold heart-shaped nipple clamps with thin chain, tiny hanging pearls, soft watercolor metallic shine, rounded cute shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (555, '0', '', '2025-12-11 06:20:17', '', '2025-12-11 06:20:17', NULL, '20251211b6510238', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5dac2e04_0217654340171197b67bbc2a2a9a26108e071e40bb0b0846e1496_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold nipple clamps with tiny hanging bells and thin chain, delicate rose gold details, soft watercolor metallic shine, rounded elegant shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (556, '0', '', '2025-12-11 06:20:35', '', '2025-12-11 06:20:35', NULL, '20251211681c3fb5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/255b345e_0217654340351451e15ac27860f2c8c25bccd5ee2521f9a39a520_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of black leather butterfly-shaped nipple clamps with rose gold chain, subtle texture details, soft watercolor luxury shine, elegant winged shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (557, '0', '', '2025-12-11 06:20:52', '', '2025-12-11 06:20:52', NULL, '20251211a4451bd2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6688d1d1_021765434052624d6d3168ae2bcee8e5f54d16f5503dede85433a_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold vibrating nipple clamps with thin chain, tiny LED indicators and hanging pearls, soft watercolor metallic shine with subtle glow, rounded premium shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (558, '0', '', '2025-12-11 06:21:08', '', '2025-12-11 06:21:08', NULL, '202512115dc50e1d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/72a1ea5f_02176543406865375aeae14c82856eca08eecb5e75c0575fd3746_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of silver medical-grade nipple clamps with long pearl chain, minimalist clean design, soft watercolor refined metallic shine, elegant simple shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (559, '0', '', '2025-12-11 06:22:00', '', '2025-12-11 06:22:00', NULL, '20251211cc8fd047', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c9b35a6e_0217654341210375097524147fba306f3fd5b41c933770283b7e7_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold nipple clamps with tiny hanging bells and thin chain, delicate sound details, soft watercolor metallic shine, elegant rounded shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (560, '0', '', '2025-12-11 06:22:18', '', '2025-12-11 06:22:18', NULL, '202512118c390ecd', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d3678736_02176543413887575aeae14c82856eca08eecb5e75c0575fd2d9d_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold vibrating nipple clamps with thin chain, subtle LED indicators, soft watercolor metallic shine with gentle glow, premium rounded shape, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (561, '0', '', '2025-12-11 06:35:05', '', '2025-12-11 06:35:05', NULL, '202512116fef1da9', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0b27a9c9_02176543490559975aeae14c82856eca08eecb5e75c0575a19892_0.jpeg', 1, '漫画风格、五条悟。\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (562, '0', '', '2025-12-11 06:35:30', '', '2025-12-11 06:35:30', NULL, '2025121131006413', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3a61f64a_02176543493076474bd01b7bc1bacfcfc78546caab5b5fad6a2e2_0.jpeg', 1, '漫画风格、五条悟。\n黑白色\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (563, '0', '', '2025-12-11 06:35:48', '', '2025-12-11 06:35:48', NULL, '20251211acbaaeb0', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (564, '0', '', '2025-12-11 06:35:51', '', '2025-12-11 06:35:51', NULL, '202512115dbb5692', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (565, '0', '', '2025-12-11 06:36:15', '', '2025-12-11 06:36:15', NULL, '20251211f5b3a1fc', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3a5e2e16_021765434975388fef143c4098cd8cc7e0dd8c08d18f9dbbc493f_0.jpeg', 1, '漫画风格、五条悟。\n黑白色\n脱下衣服,露出腹肌', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (566, '0', '', '2025-12-11 06:37:04', '', '2025-12-11 14:37:39', NULL, '202512119e89ee1c', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/6652210d_02176543502588100000000000000000000ffffc0a8a457ac7a8e.mp4', 1, '请生成这位美女自己慢慢脱掉衣服的视频', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/e0d0689c_lzl.webp', NULL); +INSERT INTO `ai_order` VALUES (567, '0', '', '2025-12-11 06:38:00', '', '2025-12-11 14:38:28', NULL, '20251211d2bd3f1d', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/b6bc9b20_02176543508100700000000000000000000ffffc0a8a45740998b.mp4', 1, '请生成这位美女自己慢慢脱掉衣服的视频,脱光,露出胸部', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/e0d0689c_lzl.webp', NULL); +INSERT INTO `ai_order` VALUES (568, '0', '', '2025-12-11 06:38:59', '', '2025-12-11 14:39:58', NULL, '20251211c16bb530', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/559d383b_02176543514113700000000000000000000ffffc0a8a457c36fa8.mp4', 1, '请生成这位美女自己慢慢脱掉衣服的视频,脱光,露出胸部。乳头正常,有淡淡的乳晕', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/e0d0689c_lzl.webp', NULL); +INSERT INTO `ai_order` VALUES (569, '0', '', '2025-12-11 06:40:19', '', '2025-12-11 14:40:45', NULL, '20251211b79786f1', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/781e9838_02176543522032700000000000000000000ffffc0a8a4571140c8.mp4', 1, '请生成这位美女自己慢慢脱掉衣服的视频,脱光,露出胸部。乳头正常,有淡淡的乳晕', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/54ee110e_daqiao.png', NULL); +INSERT INTO `ai_order` VALUES (570, '0', '', '2025-12-11 06:41:37', '', '2025-12-11 06:41:37', NULL, '20251211373e2ceb', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (571, '0', '', '2025-12-11 06:41:57', '', '2025-12-11 06:41:57', NULL, '202512119dc664fc', 16, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/acf5f671_0217654353171172504cb05148e9a08cc7612c3f2b24e521c9831_0.jpeg', 1, '请把她换成穿泳装', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/3119918a_daqiao.png', NULL); +INSERT INTO `ai_order` VALUES (572, '0', '', '2025-12-11 06:42:46', '', '2025-12-11 06:42:46', NULL, '20251211c116b066', 16, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/31ac663c_02176543536691534cb6184a92ddd9ae87302c189a666e519c3d0_0.jpeg', 1, '请把她换成穿泳装,并且生成全身像\n', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/ac8139b2_lzl.webp', NULL); +INSERT INTO `ai_order` VALUES (573, '0', '', '2025-12-11 06:46:04', '', '2025-12-11 06:46:04', NULL, '20251211bcb408d6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/74ddb4b7_02176543556469674bd01b7bc1bacfcfc78546caab5b5fadbcc77_0.jpeg', 1, '请给我生成一张中国的裸女,正躺在家里的床上,侧卧,能看到胸部,中等大小,乳头小巧,淡淡的乳晕。阴毛不要多,少量。很性感,诱人\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (574, '0', '', '2025-12-11 06:46:21', '', '2025-12-11 06:46:21', NULL, '202512117e51dd72', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6753692e_0217654355820027b67bbc2a2a9a26108e071e40bb0b084adf3c8_0.jpeg', 1, '请给我生成一张中国的裸女,正躺在家里的床上,侧卧,能看到胸部,中等大小,乳头小巧,淡淡的乳晕。阴毛不要多,少量。很性感,诱人。要露脸\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (575, '0', '', '2025-12-11 06:46:35', '', '2025-12-11 06:46:35', NULL, '20251211e78cdf96', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a596b2f9_02176543559534134cb6184a92ddd9ae87302c189a666e5888c99_0.jpeg', 1, '请给我生成一张中国的裸女,正躺在家里的床上,侧卧,能看到胸部,中等大小,乳头小巧,淡淡的乳晕。阴毛不要多,少量。很性感,诱人。要露脸,全身像\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (576, '0', '', '2025-12-11 06:46:41', '', '2025-12-11 14:47:13', NULL, '202512116a166db5', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/3c1ce7c7_02176543560225700000000000000000000ffffc0a8a457d83c81.mp4', 1, '脱下衣服,展示自己', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/11/0d5cc19a_3a61f64a_02176543493076474bd01b7bc1bacfcfc78546caab5b5fad6a2e2_0.jpeg', 'https://images.iqyjsnwv.com/2025/12/11/2e389596_3a5e2e16_021765434975388fef143c4098cd8cc7e0dd8c08d18f9dbbc493f_0.jpeg'); +INSERT INTO `ai_order` VALUES (577, '0', '', '2025-12-11 06:46:58', '', '2025-12-11 06:46:58', NULL, '20251211a32fc8f9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/4be6b4c2_0217654356189642504cb05148e9a08cc7612c3f2b24e52e777f3_0.jpeg', 1, '请给我生成一张中国的裸女,正躺在家里的床上,侧卧,能看到胸部,中等大小,乳头小巧,有自然的乳晕。阴毛不要多,少量。很性感,诱人。要露脸,全身像\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (578, '0', '', '2025-12-11 06:47:17', '', '2025-12-11 06:47:17', NULL, '20251211d6f0d8ba', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/993b063d_0217654356375391386b9a8ed856c57501cfa946ce34c98407260_0.jpeg', 1, '请给我生成一张中国的裸女,正躺在家里的床上,侧卧,能看到胸部,中等大小,乳头小巧,有自然的乳晕。阴毛不要多,少量。很性感,诱人。要露脸,全身像。高清4K,最高分辨率\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (579, '0', '', '2025-12-11 06:48:57', '', '2025-12-11 14:49:19', NULL, '2025121174f9e247', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/3a3880b9_02176543573791900000000000000000000ffffc0a8a4574221af.mp4', 1, '请让这位美女,做出引诱人的动作,自己抚摸自己的胸部', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/14f19911_测试.jpeg', NULL); +INSERT INTO `ai_order` VALUES (580, '0', '', '2025-12-11 06:49:46', '', '2025-12-11 14:50:09', NULL, '20251211fbd3b8b2', 16, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/11/612e7516_02176543578768000000000000000000000ffffc0a8a45756cd85.mp4', 1, '请让这位美女,做出引诱人的动作,双手抚摸自己的胸部,揉搓的动作,很享受的表情\n', '', 'N', 'https://images.iqyjsnwv.com/2025/12/11/14f19911_测试.jpeg', NULL); +INSERT INTO `ai_order` VALUES (581, '0', '', '2025-12-11 07:29:09', '', '2025-12-11 07:29:09', NULL, '202512110e07f9f7', 14, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/19cf1c74_02176543814987530d072d337ea6fcc7bbfbe2f0c485be27f99f4_0.jpeg', 1, '擷取第二張圖片中的人臉,替換到第一張圖片中的人臉', 'XM001', 'N', '[https://images.iqyjsnwv.com/2025/12/11/ca0be6ed_596502288_1403436334672572_260272506444753521_n.jpg, https://images.iqyjsnwv.com/2025/12/11/2861109b_0a7a3e0b-12e8-4b6e-b7a5-1558fac4e5b3.jpg]', NULL); +INSERT INTO `ai_order` VALUES (582, '0', '', '2025-12-11 07:31:13', '', '2025-12-11 07:31:13', NULL, '20251211046d7872', 14, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/579d5dd6_02176543827339875aeae14c82856eca08eecb5e75c05753d9e68_0.jpeg', 1, '脱下衣服,露出胸部', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/11/4f2cd918_596502288_1403436334672572_260272506444753521_n.jpg', NULL); +INSERT INTO `ai_order` VALUES (583, '0', '', '2025-12-11 07:59:31', '', '2025-12-11 07:59:31', NULL, '202512111ff06e94', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (584, '0', '', '2025-12-11 07:59:35', '', '2025-12-11 07:59:35', NULL, '202512115ccdebdf', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (585, '0', '', '2025-12-11 07:59:58', '', '2025-12-11 07:59:58', NULL, '202512110e7fd093', 16, '11', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (586, '0', '', '2025-12-11 08:08:28', '', '2025-12-11 08:08:28', NULL, '202512113c31f489', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8c0a164a_0217654405083078547934892c4038781a87d514f9a919661d1ff_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg, smooth elegant egg shape with rose gold accent ring, soft watercolor luxury shine with gentle gradient, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (587, '0', '', '2025-12-11 08:16:50', '', '2025-12-11 08:16:50', NULL, '2025121163c6397f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2256872a_02176544101066874bd01b7bc1bacfcfc78546caab5b5fa774a02_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain, smooth elegant egg shapes with rose gold LED rings, soft watercolor luxury shine with gentle gradient, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (588, '0', '', '2025-12-11 08:18:07', '', '2025-12-11 08:18:07', NULL, '202512115159c9ff', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/411ac298_021765441087980641a02d40a43d449f07de84c480b390dd79a9c_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone personal pleasure sleeve, soft inviting entrance with subtle inner texture visible through semi-transparent body, rose gold rim accents, elegant curved shape, soft watercolor luxury shine with gentle gradient, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (589, '0', '', '2025-12-11 08:18:31', '', '2025-12-11 08:18:31', NULL, '2025121111c0b6cf', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/373d4765_02176544111113799f4740eadd3360aa6250e68d85f7ec7a1337a_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone heart-shaped personal pleasure sleeve, soft heart-shaped inviting entrance with rose gold accents, elegant curved design, soft watercolor luxury shine with gentle gradient, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (590, '0', '', '2025-12-11 08:18:48', '', '2025-12-11 08:18:48', NULL, '20251211743785c1', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/9134c8af_0217654411290292504cb05148e9a08cc7612c3f2b24e528e7f69_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag with thin black leather straps, rose gold metal buckle, smooth rounded ball shape, soft watercolor luxury shine, elegant design, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (591, '0', '', '2025-12-11 08:19:01', '', '2025-12-11 08:19:01', NULL, '202512115d2dd904', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/aeaecc8c_021765441141398641a02d40a43d449f07de84c480b390dd95f30_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag with thin black leather straps, rose gold metal buckle, smooth rounded ball shape, soft watercolor luxury shine, elegant design, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (592, '0', '', '2025-12-11 08:19:26', '', '2025-12-11 08:19:26', NULL, '202512115d4a478c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/9c3d7c78_02176544116629874bd01b7bc1bacfcfc78546caab5b5faeaedef_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal teardrop silicone butt plug with fluffy white fox tail, rose gold base accent, elegant plug shape with soft fur texture, soft watercolor luxury shine, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (593, '0', '', '2025-12-11 08:19:47', '', '2025-12-11 08:19:47', NULL, '202512112f059f0c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5b6b8fd0_0217654411874241e15ac27860f2c8c25bccd5ee2521f9aac4a1c_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal teardrop silicone butt plug with fluffy white fox tail, rose gold base accent, elegant plug shape with soft fur texture, soft watercolor luxury shine, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (594, '0', '', '2025-12-11 08:20:00', '', '2025-12-11 08:20:00', NULL, '20251211a3ab2dd4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3c138c14_0217654412007781e15ac27860f2c8c25bccd5ee2521f9a83ff21_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal teardrop silicone butt plug with fluffy white fox tail, rose gold base accent, elegant plug shape with soft fur texture, soft watercolor luxury shine, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (595, '0', '', '2025-12-11 08:20:14', '', '2025-12-11 08:20:14', NULL, '202512119c6f98a8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/e723a3e8_021765441214856f8f49430e1e3875ff473008eb96b3a39ab424a_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal teardrop silicone butt plug with fluffy white fox tail, rose gold base accent, elegant plug shape with soft fur texture, soft watercolor luxury shine, premium intimate item, floating, pure white background only, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (596, '0', '', '2025-12-11 08:21:32', '', '2025-12-11 08:21:32', NULL, '202512112b4f972e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/193aae7c_02176544129214175aeae14c82856eca08eecb5e75c0575dc4af6_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg, smooth elegant egg shape with rose gold accent ring, angled 45° to the left with subtle floating shadow, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (597, '0', '', '2025-12-11 08:22:44', '', '2025-12-11 08:22:44', NULL, '20251211e778ebf8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/35921f06_02176544136449574bd01b7bc1bacfcfc78546caab5b5fa5c827f_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg, smooth elegant egg shape with rose gold accent ring, angled 45° to the left with subtle floating shadow, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, no eyes no mouth no face, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (598, '0', '', '2025-12-11 08:23:10', '', '2025-12-11 08:23:10', NULL, '20251211e0aa0059', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/83d789a8_0217654413903337b67bbc2a2a9a26108e071e40bb0b084973caf_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone wireless vibrating egg, smooth elegant egg shape with rose gold accent ring, angled 45° to the left with subtle floating shadow, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (599, '0', '', '2025-12-11 08:23:32', '', '2025-12-11 08:23:32', NULL, '20251211c198f217', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3306bf58_0217654414126253c1f91f892e9aff2a902d86b047fe242ce57b1_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (600, '0', '', '2025-12-11 08:23:47', '', '2025-12-11 08:23:47', NULL, '2025121116e2194f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b0d5ea3f_0217654414275973c1f91f892e9aff2a902d86b047fe242dd9381_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (601, '0', '', '2025-12-11 08:24:02', '', '2025-12-11 08:24:02', NULL, '202512113e2ae2d2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/89cd6f0c_0217654414422231386b9a8ed856c57501cfa946ce34c9831cb1c_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain, angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (602, '0', '', '2025-12-11 08:24:26', '', '2025-12-11 08:24:26', NULL, '20251211eb9332aa', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/69b54600_021765441466200d6d3168ae2bcee8e5f54d16f5503dede222679_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, soft inviting entrance, rose gold rim, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (603, '0', '', '2025-12-11 08:24:38', '', '2025-12-11 08:24:38', NULL, '2025121104b17348', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/438dd6f5_02176544147814674bd01b7bc1bacfcfc78546caab5b5fa99cdd1_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, soft inviting entrance, rose gold rim, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (604, '0', '', '2025-12-11 08:24:53', '', '2025-12-11 08:24:53', NULL, '20251211f402b32b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/0ed61ab3_021765441494027f8f49430e1e3875ff473008eb96b3a39f15922_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain, angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (605, '0', '', '2025-12-11 08:25:12', '', '2025-12-11 08:25:12', NULL, '20251211f378e51e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cb431db2_0217654415126547ed3dd5a26da08a73b6b7a2883108092ec4ea3_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink semi-transparent silicone personal pleasure sleeve, soft inviting entrance facing viewer, angled 45° to the left with subtle floating shadow, rose gold rim, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (606, '0', '', '2025-12-11 08:25:27', '', '2025-12-11 08:25:27', NULL, '20251211d33eff3d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/15915a14_0217654415273945097524147fba306f3fd5b41c933770260ca14_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink semi-transparent silicone personal pleasure sleeve, soft inviting entrance facing viewer, angled 45° to the left with subtle floating shadow, rose gold rim, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (607, '0', '', '2025-12-11 08:25:39', '', '2025-12-11 08:25:39', NULL, '202512117d0c94c0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5e280e13_0217654415394733a780f972f42b9300f847977bd332955133e86_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag with black straps and rose gold buckle, ball front-facing, angled 45° to the left with subtle floating shadow, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, 1:1 ratio, absolutely no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (608, '0', '', '2025-12-11 08:25:59', '', '2025-12-11 08:25:59', NULL, '2025121150c20664', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/99738671_021765441560125fef143c4098cd8cc7e0dd8c08d18f9db93bfb2_0.jpeg', 1, 'chibi korean hand-drawn icon, cherry red silicone ball gag with black straps angled 45° to the left with subtle floating shadow, rose gold buckle, smooth ball shape, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (609, '0', '', '2025-12-11 08:26:25', '', '2025-12-11 08:26:25', NULL, '202512110cfdd894', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/aa758f03_021765441585142fef143c4098cd8cc7e0dd8c08d18f9db18edb9_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy white fox tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (610, '0', '', '2025-12-11 08:26:54', '', '2025-12-11 08:26:54', NULL, '2025121105abad9d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5f8338dd_0217654416142922504cb05148e9a08cc7612c3f2b24e52c5ac38_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy white fox tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (611, '0', '', '2025-12-11 08:27:05', '', '2025-12-11 08:27:05', NULL, '202512118d1ae7de', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/88754b01_0217654416259011386b9a8ed856c57501cfa946ce34c98b5a91d_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy white fox tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (612, '0', '', '2025-12-11 08:38:51', '', '2025-12-11 08:38:51', NULL, '202512111e06f920', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/2daad9d4_0217654423317477b67bbc2a2a9a26108e071e40bb0b084249d71_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (613, '0', '', '2025-12-11 08:39:03', '', '2025-12-11 08:39:03', NULL, '202512110695366d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ef716bea_02176544234365974bd01b7bc1bacfcfc78546caab5b5faa28f42_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (614, '0', '', '2025-12-11 08:39:15', '', '2025-12-11 08:39:15', NULL, '202512111c94eeb7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/d0432eb7_0217654423552257ed3dd5a26da08a73b6b7a288310809292cef2_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (615, '0', '', '2025-12-11 08:39:25', '', '2025-12-11 08:39:25', NULL, '20251211f26722e9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/51a4b9d9_0217654423658911e15ac27860f2c8c25bccd5ee2521f9abafb99_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (616, '0', '', '2025-12-11 08:39:38', '', '2025-12-11 08:39:38', NULL, '2025121179197bfe', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/a18840e0_0217654423782637ed3dd5a26da08a73b6b7a288310809293c736_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (617, '0', '', '2025-12-11 08:39:48', '', '2025-12-11 08:39:48', NULL, '2025121195a719ec', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6e35ecb6_0217654423887651e15ac27860f2c8c25bccd5ee2521f9ad40ec1_0.jpeg', 1, 'chibi korean hand-drawn icon, crystal plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (618, '0', '', '2025-12-11 08:40:04', '', '2025-12-11 08:40:04', NULL, '20251211f0350e84', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/bd89f16d_02176544240445734cb6184a92ddd9ae87302c189a666e53fd07b_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy with four graduated spheres angled 45° to the left with subtle floating shadow, rose gold pull ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (619, '0', '', '2025-12-11 08:40:21', '', '2025-12-11 08:40:21', NULL, '202512119bdb1a5d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/98f171e6_0217654424218153c1f91f892e9aff2a902d86b047fe242490815_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy with four graduated spheres angled 45° to the left with subtle floating shadow, rose gold pull ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (620, '0', '', '2025-12-11 08:40:46', '', '2025-12-11 08:40:46', NULL, '2025121121008a4b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/85b63e91_021765442446471641a02d40a43d449f07de84c480b390d91667c_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy with four graduated spheres angled 45° to the left with subtle floating shadow, rose gold pull ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (621, '0', '', '2025-12-11 08:41:01', '', '2025-12-11 08:41:01', NULL, '2025121142e0f6b5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ff1e9458_021765442461810fef143c4098cd8cc7e0dd8c08d18f9db754958_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy with four graduated spheres angled 45° to the left with subtle floating shadow, rose gold pull ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (622, '0', '', '2025-12-11 08:41:14', '', '2025-12-11 08:41:14', NULL, '20251211fbeb21e2', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1e0f86a6_021765442474322fef143c4098cd8cc7e0dd8c08d18f9dbfcfe0c_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone beaded anal toy with four graduated spheres angled 45° to the left with subtle floating shadow, rose gold pull ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (623, '0', '', '2025-12-11 08:42:22', '', '2025-12-11 08:42:22', NULL, '202512110f4588f5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/4ffa5c1d_0217654425421428547934892c4038781a87d514f9a9196d4cb66_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone anal beads with four graduated spheres from tiny at front tip to largest at rear with rose gold pull ring, angled 45° to the left with subtle floating shadow, smooth elegant design, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (624, '0', '', '2025-12-11 08:42:42', '', '2025-12-11 08:42:42', NULL, '202512118209e772', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/04b9074f_02176544256287634cb6184a92ddd9ae87302c189a666e5201de9_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone anal beads with four graduated spheres from tiny at front tip to largest at rear with rose gold pull ring, angled 45° to the left with subtle floating shadow, smooth elegant design, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (625, '0', '', '2025-12-11 08:42:56', '', '2025-12-11 08:42:56', NULL, '20251211f6b0ea8b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6b770584_0217654425762013a780f972f42b9300f847977bd332955655eba_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone anal beads with four graduated spheres from tiny at front tip to largest at rear with rose gold pull ring, angled 45° to the left with subtle floating shadow, smooth elegant design, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (626, '0', '', '2025-12-11 08:46:36', '', '2025-12-11 08:46:36', NULL, '20251211d08a83da', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/b58386b9_0217654427967638547934892c4038781a87d514f9a91964e21ae_0.jpeg', 1, 'chibi korean hand-drawn icon, heart-shaped glossy peach-pink lube bottle angled 45° to the left with subtle floating shadow, rose gold cap with single droplet, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (627, '0', '', '2025-12-11 09:06:54', '', '2025-12-11 09:06:54', NULL, '20251211dbdde3fc', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/e1497f22_0217654440142558547934892c4038781a87d514f9a91964bd624_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy gradient black-pink silicone anal beads with four graduated spheres from tiny at front tip to largest at rear with rose gold pull ring, angled 45° to the left with subtle floating shadow, decorative subtle flickering neon lights, watercolor holographic glow, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (628, '0', '', '2025-12-11 09:14:20', '', '2025-12-11 09:14:20', NULL, '202512119e0e3e6c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/97971012_02176544446075499f4740eadd3360aa6250e68d85f7ec71a9040_0.jpeg', 1, 'chibi korean hand-drawn icon, glossy millennial pink silicone anal beads with four graduated spheres from tiny at front tip to largest at rear with rose gold pull ring, angled 45° to the left with subtle floating shadow, smooth elegant design, soft watercolor luxury shine with gentle gradient, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (629, '0', '', '2025-12-11 09:14:34', '', '2025-12-11 09:14:34', NULL, '202512119cb2c764', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/ad9db612_02176544447481312014becacfaf8a37949eaec3c8139756d0024_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy millennial pink silicone wireless vibrating eggs connected by thin silver chain angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (630, '0', '', '2025-12-11 09:28:07', '', '2025-12-11 09:28:07', NULL, '202512113afaeeac', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cbbd8ffc_021765445287756732fd601d62b6a7044a0e20965673d99cf0ef4_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy matte black silicone wireless vibrating eggs connected by thin silver chain angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (631, '0', '', '2025-12-11 09:28:22', '', '2025-12-11 09:28:22', NULL, '20251211ee66ce77', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8cb897c1_0217654453026427b67bbc2a2a9a26108e071e40bb0b084baad43_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of glossy matte black silicone wireless vibrating eggs connected by thin silver chain angled 45° to the left with subtle floating shadow, rose gold LED rings, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (632, '0', '', '2025-12-11 09:34:26', '', '2025-12-11 09:34:26', NULL, '2025121137628558', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/4b5851ad_021765445666260f9825d5f0df17daef396c99db060605478cde1_0.jpeg', 1, 'chibi korean hand-drawn icon, single pink feather tickler angled 45° to the left with subtle floating shadow, rose gold handle, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (633, '0', '', '2025-12-11 09:34:44', '', '2025-12-11 09:34:44', NULL, '202512112b486250', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/6fd5e8ca_0217654456843797ed3dd5a26da08a73b6b7a2883108092483922_0.jpeg', 1, 'chibi korean hand-drawn icon, single short pink leather riding crop angled 45° to the left with subtle floating shadow, rose gold handle, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (634, '0', '', '2025-12-11 09:35:02', '', '2025-12-11 09:35:02', NULL, '20251211b94c371b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/c5bc3194_0217654457029245097524147fba306f3fd5b41c93377025da55c_0.jpeg', 1, 'chibi korean hand-drawn icon, single black leather choker collar angled 45° to the left with subtle floating shadow, rose gold heart O-ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (635, '0', '', '2025-12-11 09:35:21', '', '2025-12-11 09:35:21', NULL, '2025121137d502b4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/8e457bad_0217654457210927ed3dd5a26da08a73b6b7a28831080929f8919_0.jpeg', 1, 'chibi korean hand-drawn icon, single soft black satin blindfold angled 45° to the left with subtle floating shadow, pink ribbon ties and rose gold accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (636, '0', '', '2025-12-11 09:35:36', '', '2025-12-11 09:35:36', NULL, '2025121149b71874', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/feaae386_021765445736531fef143c4098cd8cc7e0dd8c08d18f9db3639ae_0.jpeg', 1, 'chibi korean hand-drawn icon, single soft black satin blindfold angled 45° to the left with subtle floating shadow, pink ribbon ties and rose gold accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (637, '0', '', '2025-12-11 09:41:37', '', '2025-12-11 09:41:37', NULL, '202512119f783ba8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/31f8ec98_0217654460978621386b9a8ed856c57501cfa946ce34c98939e30_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage angled 45° to the left with subtle floating shadow, tiny lock and subtle bars, soft watercolor metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (638, '0', '', '2025-12-11 09:41:52', '', '2025-12-11 09:41:52', NULL, '20251211161d0279', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1b34bca5_02176544611251430d072d337ea6fcc7bbfbe2f0c485be25ea4b6_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage angled 45° to the left with subtle floating shadow, tiny lock and subtle bars, soft watercolor metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (639, '0', '', '2025-12-11 09:42:05', '', '2025-12-11 09:42:05', NULL, '2025121116b98b4f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/dbe1e6e5_0217654461254732504cb05148e9a08cc7612c3f2b24e528f22d0_0.jpeg', 1, 'chibi korean hand-drawn icon, pair of rose gold heart-shaped nipple clamps with thin chain angled 45° to the left with subtle floating shadow, tiny hanging pearls, soft watercolor metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (640, '0', '', '2025-12-11 09:42:24', '', '2025-12-11 09:42:24', NULL, '20251211233fd30b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cff6ffff_0217654461448607b67bbc2a2a9a26108e071e40bb0b084d7c9b5_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink silicone personal pleasure wand angled 45° to the left with subtle floating shadow, rose gold buttons, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (641, '0', '', '2025-12-11 09:42:42', '', '2025-12-11 09:42:42', NULL, '20251211cc4dd805', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/235236e0_021765446162335d6d3168ae2bcee8e5f54d16f5503dedec6f702_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink silicone realistic dildo angled 45° to the left with subtle floating shadow, rose gold base ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (642, '0', '', '2025-12-11 09:43:12', '', '2025-12-11 09:43:12', NULL, '20251211182a04df', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1b45ff09_0217654461923152504cb05148e9a08cc7612c3f2b24e5217b992_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink silicone realistic dildo angled 45° to the left with subtle floating shadow, rose gold base ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (643, '0', '', '2025-12-11 09:43:22', '', '2025-12-11 09:43:22', NULL, '2025121112ce58a6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3cd3329d_02176544620299034cb6184a92ddd9ae87302c189a666e5944f4b_0.jpeg', 1, 'chibi korean hand-drawn icon, set of four glossy soft purple silicone anal beads from tiny at front to largest at rear with rose gold pull ring angled 45° to the left with subtle floating shadow, smooth graduated design, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (644, '0', '', '2025-12-11 09:43:37', '', '2025-12-11 09:43:37', NULL, '20251211f5a41ec0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f350c52d_02176544621715830d072d337ea6fcc7bbfbe2f0c485be249dc92_0.jpeg', 1, 'chibi korean hand-drawn icon, set of four glossy soft purple silicone anal beads from tiny at front to largest at rear with rose gold pull ring angled 45° to the left with subtle floating shadow, smooth graduated design, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (645, '0', '', '2025-12-11 09:43:50', '', '2025-12-11 09:43:50', NULL, '20251211b5e6c5e5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/737bb01c_02176544623022712014becacfaf8a37949eaec3c813975203f0e_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (646, '0', '', '2025-12-11 09:44:01', '', '2025-12-11 09:44:01', NULL, '2025121102345d63', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/cc6b61e5_021765446241315fef143c4098cd8cc7e0dd8c08d18f9db5c43f2_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (647, '0', '', '2025-12-11 09:53:59', '', '2025-12-11 09:53:59', NULL, '202512113f8a2329', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/1fcce3ea_0217654468392651e15ac27860f2c8c25bccd5ee2521f9acc95e3_0.jpeg', 1, '白丝玉足诱惑美女', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (648, '0', '', '2025-12-11 09:56:29', '', '2025-12-11 09:56:29', NULL, '202512119ce5459f', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/5aa53ed5_0217654469893997ed3dd5a26da08a73b6b7a2883108092b65212_0.jpeg', 1, '白丝玉足诱惑美女,重新生成日系女主\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (649, '0', '', '2025-12-11 09:57:14', '', '2025-12-11 09:57:14', NULL, '2025121134dbfbd4', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3aa74b85_02176544703453674bd01b7bc1bacfcfc78546caab5b5fa281374_0.jpeg', 1, '白丝玉足诱惑美女,重新生成日系女主,再次生成\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (650, '0', '', '2025-12-11 09:57:36', '', '2025-12-11 09:57:36', NULL, '20251211033a381a', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/96c0e13c_021765447056772d6d3168ae2bcee8e5f54d16f5503dede48ce43_0.jpeg', 1, '白丝玉足诱惑美女,重新生成日系真人美女,再次生成\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (651, '0', '', '2025-12-11 12:29:22', '', '2025-12-11 12:29:22', NULL, '2025121197c31d76', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/f45e9f43_0217654561626415097524147fba306f3fd5b41c9337702d396c2_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (652, '0', '', '2025-12-11 12:32:38', '', '2025-12-11 12:32:38', NULL, '20251211cd39346c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/56e8baed_0217654563581202504cb05148e9a08cc7612c3f2b24e52666444_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (653, '0', '', '2025-12-11 12:35:14', '', '2025-12-11 12:35:14', NULL, '202512111c8d3e0b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/11/3e800c94_02176545651449615b33ccaa151d3ed7feaaa761bc71c3740d4f4_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (654, '0', '', '2025-12-12 02:38:01', '', '2025-12-12 02:38:01', NULL, '202512125e14b3df', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/13886542_021765507081881c5f50319cb4d4388d7836967b82aebe5cba15d_0.jpeg', 1, 'chibi korean hand-drawn icon, single crystal silicone butt plug with fluffy pink rabbit tail angled 45° to the left with subtle floating shadow, rose gold base, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (655, '0', '', '2025-12-12 02:50:19', '', '2025-12-12 02:50:19', NULL, '2025121295a89d2a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/3d6e7935_0217655078196508547934892c4038781a87d514f9a9196281c8f_0.jpeg', 1, 'A symmetrical 2D anime card back design in Korean webtoon style, mysterious joker mask silhouette with glowing neon purple and pink outlines, urban cityscape background with skyscrapers and rainy streets, soft bokeh lights, intricate floral patterns inspired by K-fashion, vibrant yet moody atmosphere, high contrast, detailed line art, anime shading, 8k resolution, game asset quality.', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (656, '0', '', '2025-12-12 02:50:57', '', '2025-12-12 02:50:57', NULL, '2025121209da9ff0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/c67b8333_021765507857782641a02d40a43d449f07de84c480b390d1a51d3_0.jpeg', 1, '2D Korean anime card back design, pair of mischievous joker eyes peeking from symmetrical raindrop patterns, urban night rain in Tokyo-Seoul fusion style with blurred car lights and alleyway puddles, electric blue and violet hues, expressive anime sparkles in eyes, fine ink lines, atmospheric depth, high-res game texture.', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (657, '0', '', '2025-12-12 02:51:32', '', '2025-12-12 02:51:32', NULL, '20251212b18cae04', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/f28cc252_021765507892636f9825d5f0df17daef396c99db0606054672daf_0.jpeg', 1, 'Korean-style 2D card back, shadowy joker figure reflected in a cafe window symmetrically, urban evening scene with steaming coffee cups and passing pedestrians under street lamps, soft anime blush tones in pinks and golds, whimsical patterns of cards raining down, highly detailed, romantic manhwa vibe, game-ready asset.', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (658, '0', '', '2025-12-12 08:09:55', '', '2025-12-12 08:09:55', NULL, '20251212376f0995', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/00c98b30_02176552699520715b33ccaa151d3ed7feaaa761bc71c37ca4f4b_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink silicone wireless vibrating egg angled 45° to the left with subtle floating shadow, rose gold accent ring, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (659, '0', '', '2025-12-12 08:10:30', '', '2025-12-12 08:10:30', NULL, '2025121255748512', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/c93ff5d4_02176552703013199f4740eadd3360aa6250e68d85f7ec7f54464_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (660, '0', '', '2025-12-12 08:10:44', '', '2025-12-12 08:10:44', NULL, '20251212d2dde951', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/2b9dbab4_021765527044307641a02d40a43d449f07de84c480b390dc44d5c_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (661, '0', '', '2025-12-12 08:11:00', '', '2025-12-12 08:11:00', NULL, '202512123769a855', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/292f4758_02176552706069134cb6184a92ddd9ae87302c189a666e59b4962_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (662, '0', '', '2025-12-12 08:11:12', '', '2025-12-12 08:11:12', NULL, '202512125f73bab8', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/491573ee_0217655270727762504cb05148e9a08cc7612c3f2b24e52fb75be_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (663, '0', '', '2025-12-12 08:11:26', '', '2025-12-12 08:11:26', NULL, '202512124acf4b44', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/8fd951e4_02176552708625315b33ccaa151d3ed7feaaa761bc71c37aabedd_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (664, '0', '', '2025-12-12 08:12:21', '', '2025-12-12 08:12:21', NULL, '202512127e06e2a9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/b46ac0c8_0217655271411637ed3dd5a26da08a73b6b7a2883108092b21c75_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (665, '0', '', '2025-12-12 08:12:41', '', '2025-12-12 08:12:41', NULL, '2025121298e588ca', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/f3b361cb_0217655271611813a780f972f42b9300f847977bd332955caae04_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (666, '0', '', '2025-12-12 08:12:57', '', '2025-12-12 08:12:57', NULL, '20251212650f7bb7', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/ffecf9c8_02176552717747775aeae14c82856eca08eecb5e75c05758da9d9_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (667, '0', '', '2025-12-12 08:13:19', '', '2025-12-12 08:13:19', NULL, '20251212a9455ec9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/8a88af49_0217655271999937b67bbc2a2a9a26108e071e40bb0b084f2190c_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (668, '0', '', '2025-12-12 08:13:37', '', '2025-12-12 08:13:37', NULL, '202512121b40ae3b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/e34f31c4_0217655272179808547934892c4038781a87d514f9a9196c74e91_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink semi-transparent silicone personal pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold rim accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (669, '0', '', '2025-12-12 08:14:02', '', '2025-12-12 08:14:02', NULL, '20251212277add39', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/ee3ddda5_0217655272422183c1f91f892e9aff2a902d86b047fe24213a5c4_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink heart-shaped silicone pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold heart accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (670, '0', '', '2025-12-12 08:14:15', '', '2025-12-12 08:14:15', NULL, '20251212433134c0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/aee276f8_02176552725540315b33ccaa151d3ed7feaaa761bc71c37e3b2d8_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink heart-shaped silicone pleasure sleeve angled 45° to the left with subtle floating shadow, rose gold heart accents, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (671, '0', '', '2025-12-12 08:14:34', '', '2025-12-12 08:14:34', NULL, '20251212455c02d5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/9212b433_021765527274449c5f50319cb4d4388d7836967b82aebe5d3b547_0.jpeg', 1, 'chibi korean hand-drawn icon, single cherry red silicone ball gag with black straps angled 45° to the left with subtle floating shadow, rose gold buckle, soft watercolor luxury shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (672, '0', '', '2025-12-12 08:16:15', '', '2025-12-12 08:16:15', NULL, '2025121205bd8c3a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/d5c1681b_02176552737511374bd01b7bc1bacfcfc78546caab5b5faaa1692_0.jpeg', 1, 'chibi korean hand-drawn icon, single cherry red silicone ball gag with black straps angled 45° to the left with subtle floating shadow, glistening wet ball surface, rose gold buckle, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (673, '0', '', '2025-12-12 08:16:45', '', '2025-12-12 08:16:45', NULL, '20251212783665f4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/e79b0f36_02176552740585275aeae14c82856eca08eecb5e75c0575c75fd7_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy peach-pink dropper lube bottle with thick glistening lube dripping from tip angled 45° to the left with subtle floating shadow, rose gold collar, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (674, '0', '', '2025-12-12 08:17:09', '', '2025-12-12 08:17:09', NULL, '2025121290b2c6fe', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/47a4a9f5_02176552742989874bd01b7bc1bacfcfc78546caab5b5fa6ce982_0.jpeg', 1, 'chibi korean hand-drawn icon, single ultra plump glossy millennial pink silicone realistic dildo with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold base ring, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (675, '0', '', '2025-12-12 08:17:28', '', '2025-12-12 08:17:28', NULL, '20251212661d4933', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/695b9106_021765527448938fef143c4098cd8cc7e0dd8c08d18f9db170a6b_0.jpeg', 1, 'chibi korean hand-drawn icon, single soft black satin blindfold with glistening wet ribbon ties angled 45° to the left with subtle floating shadow, rose gold accents, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (676, '0', '', '2025-12-12 08:20:30', '', '2025-12-12 08:20:30', NULL, '2025121203fe0314', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/94560796_0217655276307631e15ac27860f2c8c25bccd5ee2521f9aa3ce31_0.jpeg', 1, 'chibi korean hand-drawn icon, single black leather choker collar with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold heart O-ring, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (677, '0', '', '2025-12-12 08:20:44', '', '2025-12-12 08:20:44', NULL, '20251212e709d540', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/2757e566_0217655276450683a780f972f42b9300f847977bd332955e7439b_0.jpeg', 1, 'chibi korean hand-drawn icon, single black leather choker collar with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold heart O-ring, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (678, '0', '', '2025-12-12 08:21:02', '', '2025-12-12 08:21:02', NULL, '20251212eb3a52c3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/36214fd7_02176552766258515b33ccaa151d3ed7feaaa761bc71c373e085b_0.jpeg', 1, 'chibi korean hand-drawn icon, single black leather choker collar with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold heart O-ring, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (679, '0', '', '2025-12-12 08:21:20', '', '2025-12-12 08:21:20', NULL, '202512128662e941', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/0b93f3c4_02176552768049534cb6184a92ddd9ae87302c189a666e5adc4fa_0.jpeg', 1, 'chibi korean hand-drawn icon, single short pink leather riding crop with glistening wet handle angled 45° to the left with subtle floating shadow, rose gold handle, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (680, '0', '', '2025-12-12 08:21:34', '', '2025-12-12 08:21:34', NULL, '20251212c5582b8b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/bd021ab5_021765527695069732fd601d62b6a7044a0e20965673d99f6ad47_0.jpeg', 1, 'chibi korean hand-drawn icon, single short pink leather riding crop with glistening wet handle angled 45° to the left with subtle floating shadow, rose gold handle, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (681, '0', '', '2025-12-12 08:21:47', '', '2025-12-12 08:21:47', NULL, '2025121239d5bbb5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/55daadfb_0217655277078247ed3dd5a26da08a73b6b7a2883108092dc5f90_0.jpeg', 1, 'chibi korean hand-drawn icon, single short pink leather riding crop with glistening wet handle angled 45° to the left with subtle floating shadow, rose gold handle, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (682, '0', '', '2025-12-12 08:22:05', '', '2025-12-12 08:22:05', NULL, '2025121238b25286', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/77f3ceb5_0217655277258422504cb05148e9a08cc7612c3f2b24e52a35fcf_0.jpeg', 1, 'chibi korean hand-drawn icon, single ultra plump glossy millennial pink silicone personal pleasure wand with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold buttons, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (683, '0', '', '2025-12-12 08:22:17', '', '2025-12-12 08:22:17', NULL, '20251212b1d8838c', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/208be26d_0217655277372598547934892c4038781a87d514f9a9196700cdf_0.jpeg', 1, 'chibi korean hand-drawn icon, single ultra plump glossy millennial pink silicone personal pleasure wand with glistening wet surface angled 45° to the left with subtle floating shadow, rose gold buttons, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (684, '0', '', '2025-12-12 08:25:43', '', '2025-12-12 08:25:43', NULL, '202512122bc70ad4', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/93006bc6_021765527943423f8f49430e1e3875ff473008eb96b3a394d8ffe_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy peach-pink dropper lube bottle with thick glistening lube dripping from tip angled 45° to the left with subtle floating shadow, rose gold collar, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (685, '0', '', '2025-12-12 08:28:57', '', '2025-12-12 08:28:57', NULL, '20251212e4928e16', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/1a48c36f_0217655281372217b67bbc2a2a9a26108e071e40bb0b084c99e93_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage with glistening wet surface angled 45° to the left with subtle floating shadow, tiny lock, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (686, '0', '', '2025-12-12 08:29:18', '', '2025-12-12 08:29:18', NULL, '20251212339aba3d', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/dbb1684b_0217655281583313a780f972f42b9300f847977bd3329552abfa2_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage with glistening wet surface angled 45° to the left with subtle floating shadow, tiny lock, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (687, '0', '', '2025-12-12 08:30:20', '', '2025-12-12 08:30:20', NULL, '20251212009fc596', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/dc5cf808_02176552822105275aeae14c82856eca08eecb5e75c0575e2eeb7_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink transparent silicone personal pleasure sleeve angled 45° to the left with opening facing right, ultra plump swollen soft entrance overflowing with glistening lube, visible teasing inner folds, rose gold rim, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (688, '0', '', '2025-12-12 08:30:35', '', '2025-12-12 08:30:35', NULL, '20251212b79fb663', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/1ddb04fb_0217655282359647b67bbc2a2a9a26108e071e40bb0b084c7a8c0_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink transparent silicone personal pleasure sleeve angled 45° to the left with opening facing right, ultra plump swollen soft entrance overflowing with glistening lube, visible teasing inner folds, rose gold rim, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (689, '0', '', '2025-12-12 08:30:49', '', '2025-12-12 08:30:49', NULL, '202512125b59c59e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/e32a26e6_0217655282495175097524147fba306f3fd5b41c93377021d3d67_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink transparent silicone personal pleasure sleeve angled 45° to the left with opening facing right, ultra plump swollen soft entrance overflowing with glistening lube, visible teasing inner folds, rose gold rim, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (690, '0', '', '2025-12-12 08:31:02', '', '2025-12-12 08:31:02', NULL, '20251212976218f5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/4612c3f9_0217655282621507ed3dd5a26da08a73b6b7a2883108092aa8a09_0.jpeg', 1, 'chibi korean hand-drawn icon, single ultra plump glossy millennial pink silicone wireless vibrating egg angled 45° to the left with subtle floating shadow, glistening wet surface, rose gold accent ring, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (691, '0', '', '2025-12-12 08:31:17', '', '2025-12-12 08:31:17', NULL, '2025121252ff78f9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/dfd2e8d8_021765528277246732fd601d62b6a7044a0e20965673d9923a14e_0.jpeg', 1, 'chibi korean hand-drawn icon, single ultra plump glossy millennial pink silicone wireless vibrating egg angled 45° to the left with subtle floating shadow, glistening wet surface, rose gold accent ring, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (692, '0', '', '2025-12-12 08:31:30', '', '2025-12-12 08:31:30', NULL, '20251212a38b3294', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/a8a88db7_021765528290779f8f49430e1e3875ff473008eb96b3a39462622_0.jpeg', 1, 'chibi korean hand-drawn icon, single glossy millennial pink heart-shaped silicone pleasure sleeve angled 45° to the left with heart entrance facing right, ultra plump soft inviting opening with glistening lube, rose gold accents, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (693, '0', '', '2025-12-12 08:31:46', '', '2025-12-12 08:31:46', NULL, '2025121212c46d72', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/0dec34f5_021765528306949f8f49430e1e3875ff473008eb96b3a39560a4e_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage with glistening wet surface angled 45° to the left with subtle floating shadow, tiny lock, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (694, '0', '', '2025-12-12 08:31:58', '', '2025-12-12 08:31:58', NULL, '20251212acea2815', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/65fb2141_021765528318827d6d3168ae2bcee8e5f54d16f5503dede38026f_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold heart-shaped chastity cage with glistening wet surface angled 45° to the left with subtle floating shadow, tiny lock, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (695, '0', '', '2025-12-12 08:32:59', '', '2025-12-12 08:32:59', NULL, '20251212d9d65185', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/20b95d25_02176552838001199f4740eadd3360aa6250e68d85f7ec798e65c_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold metal chastity cage with proper wearable design: circular base ring connected to open-bar cage body with front opening for urination, tiny integrated lock, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (696, '0', '', '2025-12-12 08:33:18', '', '2025-12-12 08:33:18', NULL, '20251212a0c3dfba', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/8fce1b4a_0217655283983951386b9a8ed856c57501cfa946ce34c98554eea_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold metal chastity cage with proper wearable design: circular base ring connected to open-bar cage body with front opening for urination, tiny integrated lock, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (697, '0', '', '2025-12-12 08:34:01', '', '2025-12-12 08:34:01', NULL, '20251212b0a47821', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/75ab0f4a_021765528441196d6d3168ae2bcee8e5f54d16f5503dedeae14ed_0.jpeg', 1, 'chibi korean hand-drawn icon, single rose gold metal female chastity belt with proper wearable design: waist band + front shield with ventilation holes and rear cable, tiny lock, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (698, '0', '', '2025-12-12 08:35:11', '', '2025-12-12 08:35:11', NULL, '20251212030e0dca', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/7245045d_021765528511472c5f50319cb4d4388d7836967b82aebe59961cb_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal chastity panty with triangular front cage panel covering the area, thin waist straps and rear strap, tiny heart lock at waist, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (699, '0', '', '2025-12-12 08:35:29', '', '2025-12-12 08:35:29', NULL, '2025121206260304', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/156c8545_0217655285296023c1f91f892e9aff2a902d86b047fe242623b5e_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal chastity panty with triangular front cage panel covering the area, thin waist straps and rear strap, tiny heart lock at waist, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (700, '0', '', '2025-12-12 08:36:41', '', '2025-12-12 08:36:41', NULL, '202512121a90d2f6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/dd81d209_02176552860115874bd01b7bc1bacfcfc78546caab5b5fad81b3e_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal chastity panty with triangular front cage panel covering the area, thin waist straps and rear strap, tiny heart lock at waist, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (701, '0', '', '2025-12-12 10:32:18', '', '2025-12-12 10:32:18', NULL, '202512127a5d247a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/0e713a94_021765535538668fef143c4098cd8cc7e0dd8c08d18f9db26aa1d_0.jpeg', 1, 'chibi korean hand-drawn icon, sterile pure white silicone chastity panty with triangular front shield and soft blue medical stripes, rose gold tiny lock, glistening wet surface, angled 45° to the left with subtle floating shadow, soft watercolor refined irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (702, '0', '', '2025-12-12 10:32:42', '', '2025-12-12 10:32:42', NULL, '20251212c42f9a5e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/9f99fa81_02176553556295715b33ccaa151d3ed7feaaa761bc71c37d79900_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal chastity panty with triangular front cage panel covering the area, thin waist straps and rear strap, tiny heart lock at waist, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (703, '0', '', '2025-12-12 10:33:57', '', '2025-12-12 10:33:57', NULL, '2025121229c2cd4b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/a3722f47_0217655356375661e15ac27860f2c8c25bccd5ee2521f9ab11fe0_0.jpeg', 1, 'chibi korean hand-drawn icon, rose gold metal chastity panty with triangular front cage panel covering the area, thin waist straps and rear strap, tiny heart lock at waist, glistening wet metallic surface, angled 45° to the left with subtle floating shadow, soft watercolor irresistible metallic shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (704, '0', '', '2025-12-12 10:34:32', '', '2025-12-12 10:34:32', NULL, '202512127401ebba', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/7f8f124c_021765535672616fef143c4098cd8cc7e0dd8c08d18f9dbee63ce_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black metal chastity panty with triangular front cage panel, rose gold waist straps and tiny lock, glistening wet dark surface, angled 45° to the left with subtle floating shadow, soft watercolor dark irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (705, '0', '', '2025-12-12 10:34:48', '', '2025-12-12 10:34:48', NULL, '20251212609fec43', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/5314c5af_02176553568883334cb6184a92ddd9ae87302c189a666e54e1cf6_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black metal chastity panty with triangular front cage panel, rose gold waist straps and tiny lock, glistening wet dark surface, angled 45° to the left with subtle floating shadow, soft watercolor dark irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (706, '0', '', '2025-12-12 10:36:14', '', '2025-12-12 10:36:14', NULL, '20251212f254c61a', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/0ed75c29_02176553577433630d072d337ea6fcc7bbfbe2f0c485be244cc7f_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black metal chastity panty with triangular front cage panel, thin waist straps and rear strap, rose gold tiny lock at side, smooth dark surface, angled 45° to the left, soft watercolor dark luxury shine, premium intimate item, perfectly centered, clean pure white background only, no shadow, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (707, '0', '', '2025-12-12 10:36:35', '', '2025-12-12 10:36:35', NULL, '20251212bbf26c43', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/01f232ac_0217655357953803c1f91f892e9aff2a902d86b047fe242418db5_0.jpeg', 1, 'chibi korean hand-drawn icon, matte black metal chastity panty with triangular front cage panel, thin waist straps and rear strap, rose gold tiny lock at side, smooth dark surface, angled 45° to the left, soft watercolor dark luxury shine, premium intimate item, perfectly centered, clean pure white background only, no shadow, no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (708, '0', '', '2025-12-12 10:38:16', '', '2025-12-12 10:38:16', NULL, '20251212b4d1ec6f', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/22a7eaae_02176553589685174bd01b7bc1bacfcfc78546caab5b5fa769651_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive matte black metal chastity panty with triangular front cage panel, thin waist straps and rear strap, rose gold tiny lock at side, glistening wet dark surface, angled 45° to the left, soft watercolor irresistible dark shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (709, '0', '', '2025-12-12 10:38:49', '', '2025-12-12 10:38:49', NULL, '202512122f297672', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/9bff9067_0217655359292845097524147fba306f3fd5b41c933770271c440_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive matte black metal chastity panty with triangular front cage panel, thin waist straps and rear strap, rose gold tiny lock at side, glistening wet dark surface, angled 45° to the left, soft watercolor irresistible dark shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (710, '0', '', '2025-12-12 10:39:04', '', '2025-12-12 10:39:04', NULL, '202512125e94e36e', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/bcc30154_021765535944509f9825d5f0df17daef396c99db06060541724d8_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive matte black metal chastity panty with triangular front cage panel, thin waist straps and rear strap, rose gold tiny lock at side, glistening wet dark surface, angled 45° to the left, soft watercolor irresistible dark shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (711, '0', '', '2025-12-12 10:40:32', '', '2025-12-12 10:40:32', NULL, '202512122947de32', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/ffed2e1b_0217655360321071386b9a8ed856c57501cfa946ce34c98a8631c_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive matte black metal low-rise chastity panty with dramatic hip curves, triangular front cage panel tightly wrapping private area, ultra-thin side straps highlighting perfect waist-to-hip ratio and plump buttocks, rose gold tiny lock, glistening wet dark surface, angled 45° to the left, soft watercolor dark irresistible shine, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (712, '0', '', '2025-12-12 10:40:47', '', '2025-12-12 10:40:47', NULL, '202512120ac8e884', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/b7c8331b_021765536047302fef143c4098cd8cc7e0dd8c08d18f9dbe7d045_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive matte black metal low-rise chastity panty with dramatic hip curves, triangular front cage panel tightly wrapping private area, ultra-thin side straps highlighting perfect waist-to-hip ratio and plump buttocks, rose gold tiny lock, glistening wet dark surface, angled 45° to the left, soft watercolor dark irresistible shine, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (713, '0', '', '2025-12-12 10:41:54', '', '2025-12-12 10:41:54', NULL, '202512121d1e83e5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/5b6e4145_021765536114073f8f49430e1e3875ff473008eb96b3a396223b3_0.jpeg', 1, 'chibi korean hand-drawn icon, floating matte black metal chastity panty with triangular front cage panel ultra-thin waist straps and rear strap rose gold tiny lock at side glistening dark surface angled 45° to the left soft watercolor dark irresistible shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (714, '0', '', '2025-12-12 10:42:37', '', '2025-12-12 10:42:37', NULL, '20251212b130d0dc', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/3c682f6e_021765536157656d6d3168ae2bcee8e5f54d16f5503dede209399_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone chastity panty with triangular front shield thin clear waist straps and rear strap rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible wet glow premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (715, '0', '', '2025-12-12 10:42:54', '', '2025-12-12 10:42:54', NULL, '20251212b538052b', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/4505f680_0217655361747565097524147fba306f3fd5b41c933770247be71_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone chastity panty with triangular front shield thin clear waist straps and rear strap rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible wet glow premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (716, '0', '', '2025-12-12 10:43:21', '', '2025-12-12 10:43:21', NULL, '202512121fb14798', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/8ac6d04b_021765536202054c799e7b290acded99bf6695874956a9f51e4b1_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone chastity panty with triangular front shield thin clear waist straps and rear strap rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible wet glow premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (717, '0', '', '2025-12-12 10:44:19', '', '2025-12-12 10:44:19', NULL, '2025121285080257', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/4aa7eedd_021765536259266732fd601d62b6a7044a0e20965673d99b833d6_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone low-rise chastity panty with realistic wearable structure: low-waist band connected to triangular front shield and thin rear strap, rose gold tiny lock at side, glistening wet jelly surface, angled 45° to the left, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (718, '0', '', '2025-12-12 10:44:41', '', '2025-12-12 10:44:41', NULL, '202512124bf902f9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/09ce98de_0217655362810741e15ac27860f2c8c25bccd5ee2521f9a96f09a_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone open-crotch chastity panty with realistic wearable structure: high-waist band with open triangular front frame and rear strap, rose gold tiny lock at side, glistening wet jelly surface, angled 45° to the left, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (719, '0', '', '2025-12-12 10:45:01', '', '2025-12-12 10:45:01', NULL, '202512122278ebbf', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/68cf178a_021765536301837d6d3168ae2bcee8e5f54d16f5503dede639788_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone chastity panty with built-in vibrating bullet, realistic wearable high-waist band and triangular front shield, rose gold tiny lock and LED ring, glistening wet jelly surface, angled 45° to the left, soft watercolor irresistible wet glow, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (720, '0', '', '2025-12-12 10:47:15', '', '2025-12-12 10:47:15', NULL, '202512124bb03a54', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/3fe8a714_02176553643592015b33ccaa151d3ed7feaaa761bc71c3767ca3a_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone low-rise chastity panty with delicate rose gold fine mesh grid over intimate area, thin waist straps and rear strap, rose gold tiny lock, glistening wet jelly surface, angled 45° to left, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (721, '0', '', '2025-12-12 10:47:39', '', '2025-12-12 10:47:39', NULL, '2025121207d844a5', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/aa8482a6_02176553645933634cb6184a92ddd9ae87302c189a666e58b25ea_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone open-crotch chastity panty with rose gold fine mesh grid frame around open area for maximum tease, high-waist band and rear strap, rose gold tiny lock, glistening wet jelly surface, angled 45° to left, soft watercolor irresistible wet shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (722, '0', '', '2025-12-12 10:48:03', '', '2025-12-12 10:48:03', NULL, '202512123f943580', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/7138ee99_021765536483409c5f50319cb4d4388d7836967b82aebe58abd0e_0.jpeg', 1, 'chibi korean hand-drawn icon, floating transparent glossy peach-pink silicone chastity panty with matte black rose gold fine mesh grid over intimate area, high-waist band and rear strap, rose gold tiny lock, glistening wet jelly surface, angled 45° to left, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no body no character, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (723, '0', '', '2025-12-12 10:48:41', '', '2025-12-12 10:48:41', NULL, '2025121294273ec6', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/15646908_021765536521964c5f50319cb4d4388d7836967b82aebe56682e7_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive rose gold female chastity panty with triangular front shield and ventilation slots, thin waist band and rear cable, tiny lock at side, glistening wet metallic surface, angled 45° to the left, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (724, '0', '', '2025-12-12 10:49:04', '', '2025-12-12 10:49:04', NULL, '202512120aae8942', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/bbb4c8af_021765536544491641a02d40a43d449f07de84c480b390dcf6f2d_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive rose gold female chastity panty with triangular front shield and ventilation slots, thin waist band and rear cable, tiny lock at side, glistening wet metallic surface, angled 45° to the left, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (725, '0', '', '2025-12-12 10:49:26', '', '2025-12-12 10:49:26', NULL, '20251212cdd256d1', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/b4e7b0d5_0217655365668181386b9a8ed856c57501cfa946ce34c98f01d57_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive rose gold male chastity panty with triangular front open-bar cage panel, thin waist band and rear strap, tiny lock at side, glistening wet metallic surface, angled 45° to the left, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (726, '0', '', '2025-12-12 10:49:41', '', '2025-12-12 10:49:41', NULL, '2025121208689604', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/a39f87d5_021765536582006641a02d40a43d449f07de84c480b390d59b031_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive rose gold male chastity panty with triangular front open-bar cage panel, thin waist band and rear strap, tiny lock at side, glistening wet metallic surface, angled 45° to the left, soft watercolor irresistible shine, premium intimate item, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (727, '0', '', '2025-12-12 10:52:13', '', '2025-12-12 10:52:13', NULL, '20251212473e42c0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/6e29132d_021765536733199c5f50319cb4d4388d7836967b82aebe5aa2d35_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive gradient black-pink metal low-rise chastity panty with glowing neon lines tracing sexy hip curves, triangular front cage panel with flickering neon edges, ultra-thin straps cutting into waist emphasizing perfect proportions and round buttocks, rose gold lock, glistening wet surface, angled 45° to the left, soft watercolor holographic irresistible shine, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (728, '0', '', '2025-12-12 10:52:28', '', '2025-12-12 10:52:28', NULL, '2025121230337dfd', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/9f16181e_0217655367487761386b9a8ed856c57501cfa946ce34c983d99dd_0.jpeg', 1, 'chibi korean hand-drawn icon, ultra seductive gradient black-pink metal low-rise chastity panty with glowing neon lines tracing sexy hip curves, triangular front cage panel with flickering neon edges, ultra-thin straps cutting into waist emphasizing perfect proportions and round buttocks, rose gold lock, glistening wet surface, angled 45° to the left, soft watercolor holographic irresistible shine, perfectly centered, clean pure white background only, no shadow no face no eyes no mouth no expression, safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (729, '0', '', '2025-12-12 10:52:48', '', '2025-12-12 10:52:48', NULL, '20251212dacc2f10', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/36324334_0217655367688817b67bbc2a2a9a26108e071e40bb0b084d48107_0.jpeg', 1, 'chibi korean hand-drawn icon, floating gradient black-pink metal chastity panty with triangular front cage flickering neon circuit lines thin waist straps rose gold lock glistening wet surface angled 45° to the left soft watercolor holographic irresistible shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (730, '0', '', '2025-12-12 10:53:00', '', '2025-12-12 10:53:00', NULL, '202512121011d601', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/b14d5345_021765536780801732fd601d62b6a7044a0e20965673d9972dc32_0.jpeg', 1, 'chibi korean hand-drawn icon, floating gradient black-pink metal chastity panty with triangular front cage flickering neon circuit lines thin waist straps rose gold lock glistening wet surface angled 45° to the left soft watercolor holographic irresistible shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (731, '0', '', '2025-12-12 10:53:34', '', '2025-12-12 10:53:34', NULL, '202512121a9697c9', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/256d5f9a_0217655368142385097524147fba306f3fd5b41c9337702dd7c55_0.jpeg', 1, 'chibi korean hand-drawn icon, floating gradient black-pink metal chastity panty with triangular front cage flickering neon circuit lines thin waist straps rose gold lock glistening wet surface angled 45° to the left soft watercolor holographic irresistible shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (732, '0', '', '2025-12-12 10:54:22', '', '2025-12-12 10:54:22', NULL, '202512121f1fefb0', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/ac58fcf0_02176553686246475aeae14c82856eca08eecb5e75c057514c8ed_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (733, '0', '', '2025-12-12 10:54:36', '', '2025-12-12 10:54:36', NULL, '202512125dd4fcdd', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/2051d0cb_0217655368762665097524147fba306f3fd5b41c9337702db84af_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (734, '0', '', '2025-12-12 10:54:48', '', '2025-12-12 10:54:48', NULL, '2025121257451c79', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/dafbb742_0217655368888397ed3dd5a26da08a73b6b7a2883108092c49982_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (735, '0', '', '2025-12-12 10:56:56', '', '2025-12-12 10:56:56', NULL, '202512120ef2cd02', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/66894122_021765537016508641a02d40a43d449f07de84c480b390da762ad_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (736, '0', '', '2025-12-12 11:13:35', '', '2025-12-12 11:13:35', NULL, '202512129f67c7c3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/baa27ffe_0217655380150837ed3dd5a26da08a73b6b7a28831080922b0573_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (737, '0', '', '2025-12-12 11:14:01', '', '2025-12-12 11:14:01', NULL, '20251212d3ca3f94', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/e6416425_021765538041174c799e7b290acded99bf6695874956a9fa77726_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (738, '0', '', '2025-12-12 11:14:49', '', '2025-12-12 11:14:49', NULL, '20251212aa719aa3', 16, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/12/93f304bc_0217655380890861386b9a8ed856c57501cfa946ce34c989e338f_0.jpeg', 1, 'chibi korean hand-drawn icon, floating sterile pure white silicone chastity panty with triangular front shield soft blue medical stripes thin waist straps rose gold tiny lock glistening wet surface angled 45° to the left soft watercolor irresistible pure shine premium intimate item perfectly centered clean pure white background only no shadow no face no body no character safe game asset', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (739, '0', '', '2025-12-13 09:37:23', '', '2025-12-13 09:37:23', NULL, '202512131fd56b67', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (740, '0', '', '2025-12-13 09:37:24', '', '2025-12-13 09:37:24', NULL, '20251213df732f9d', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (741, '0', '', '2025-12-13 09:37:25', '', '2025-12-13 09:37:25', NULL, '202512138c6875e3', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (742, '0', '', '2025-12-13 09:37:26', '', '2025-12-13 09:37:26', NULL, '20251213f96bcae1', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (743, '0', '', '2025-12-13 09:37:27', '', '2025-12-13 09:37:27', NULL, '20251213e8a89b69', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (744, '0', '', '2025-12-13 09:37:28', '', '2025-12-13 09:37:28', NULL, '20251213a27646f0', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (745, '0', '', '2025-12-13 09:37:29', '', '2025-12-13 09:37:29', NULL, '20251213acf4aad9', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (746, '0', '', '2025-12-13 09:38:18', '', '2025-12-13 09:38:18', NULL, '20251213d2ee213d', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (747, '0', '', '2025-12-13 09:38:28', '', '2025-12-13 09:38:28', NULL, '20251213811d56d9', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (748, '0', '', '2025-12-13 09:38:29', '', '2025-12-13 09:38:29', NULL, '2025121306294aea', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (749, '0', '', '2025-12-13 09:38:30', '', '2025-12-13 09:38:30', NULL, '20251213c112c43d', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (750, '0', '', '2025-12-13 09:38:31', '', '2025-12-13 09:38:31', NULL, '20251213c13872b5', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (751, '0', '', '2025-12-13 09:38:32', '', '2025-12-13 09:38:32', NULL, '20251213807eb5c2', 14, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (752, '0', '', '2025-12-13 09:39:16', '', '2025-12-13 09:39:16', NULL, '20251213b961399c', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/13/ddfcec31_02176561875657799f4740eadd3360aa6250e68d85f7ec787e56d_0.jpeg', 1, '白色丝袜性感美女,亚洲面孔,躺在沙发旁边,手里拿着自慰震动棒', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (753, '0', '', '2025-12-13 09:39:45', '', '2025-12-13 09:39:45', NULL, '2025121310b95f79', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/13/df7deb95_0217656187853092504cb05148e9a08cc7612c3f2b24e52b50027_0.jpeg', 1, '白色丝袜性感美女,亚洲面孔,躺在沙发旁边,手里拿着自慰震动棒、全身照片', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (754, '0', '', '2025-12-13 09:40:51', '', '2025-12-13 09:40:51', NULL, '20251213732add13', 14, '1', 2.00, 'https://images.iqyjsnwv.com/2025/12/13/01d59f6f_021765618851525f9825d5f0df17daef396c99db0606054a17d0f_0.jpeg', 1, '白色丝袜性感美女,亚洲面孔,躺在沙发旁边,手里拿着自慰震动棒、全身照片,露出大长腿,妖娆一些', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (755, '0', '', '2025-12-14 02:23:10', '', '2025-12-14 02:23:10', NULL, '202512147d61c9ea', 33, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (756, '0', '', '2025-12-14 02:23:15', '', '2025-12-14 02:23:15', NULL, '202512143871e9b0', 33, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (757, '0', '', '2025-12-14 02:23:45', '', '2025-12-14 02:23:45', NULL, '202512144990fd69', 33, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (758, '0', '', '2025-12-14 02:23:52', '', '2025-12-14 02:23:52', NULL, '20251214e6fca91e', 33, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (759, '0', '', '2025-12-14 02:23:54', '', '2025-12-14 02:23:54', NULL, '202512146344eb70', 33, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (760, '0', '', '2025-12-14 06:54:31', '', '2025-12-14 06:54:31', NULL, '20251214c022bf2c', 34, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (761, '0', '', '2025-12-14 06:54:36', '', '2025-12-14 06:54:36', NULL, '2025121470303c8d', 34, '11', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (762, '0', '', '2025-12-14 06:55:38', '', '2025-12-14 06:55:38', NULL, '202512141dc6ed95', 34, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/14/35b397fb_02176569533866315b33ccaa151d3ed7feaaa761bc71c3744307a_0.jpeg', 1, '上衣换成黑色蕾丝胸罩', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/14/c5904fa1_是酷还是辣_6_米娅不酷_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (763, '0', '', '2025-12-14 06:57:02', '', '2025-12-14 06:57:02', NULL, '2025121460c555e1', 34, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/14/8485cb8e_02176569542226912014becacfaf8a37949eaec3c8139754e529c_0.jpeg', 1, '上衣换成黑色蕾丝胸罩,下身只保留丝袜,阴道若隐若现', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/14/c5904fa1_是酷还是辣_6_米娅不酷_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (764, '0', '', '2025-12-14 07:00:43', '', '2025-12-14 07:00:43', NULL, '2025121472773a43', 34, '12', 2.00, 'https://images.iqyjsnwv.com/2025/12/14/33d705cd_02176569564393634cb6184a92ddd9ae87302c189a666e5220107_0.jpeg', 1, '衣服换成黑色蕾丝胸罩,下身黑色丝袜保留,不穿内裤,直接看到阴唇。人物躺在台面上,双腿成M型', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/14/61966219_是酷还是辣_6_米娅不酷_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (765, '0', '', '2025-12-15 04:08:23', '', '2025-12-15 04:08:23', NULL, '20251215a7b85452', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (766, '0', '', '2025-12-15 04:46:08', '', '2025-12-15 04:46:08', NULL, '202512157a038ee7', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (767, '0', '', '2025-12-16 08:54:27', '', '2025-12-16 08:54:27', NULL, '2025121626bb1982', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (768, '0', '', '2025-12-16 08:54:29', '', '2025-12-16 08:54:29', NULL, '2025121621df50ff', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (769, '0', '', '2025-12-16 08:54:31', '', '2025-12-16 08:54:31', NULL, '202512166b99d3c0', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (770, '0', '', '2025-12-16 08:54:33', '', '2025-12-16 08:54:33', NULL, '202512161d27191c', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (771, '0', '', '2025-12-16 08:54:35', '', '2025-12-16 08:54:35', NULL, '20251216d6eaeb11', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (772, '0', '', '2025-12-16 08:54:37', '', '2025-12-16 08:54:37', NULL, '2025121637c833da', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (773, '0', '', '2025-12-16 08:54:39', '', '2025-12-16 08:54:39', NULL, '20251216e73d567d', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (774, '0', '', '2025-12-16 08:55:53', '', '2025-12-16 08:55:53', NULL, '202512167bca1b29', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (775, '0', '', '2025-12-17 05:43:32', '', '2025-12-17 05:43:32', NULL, '20251217bc60b6e1', 36, '11', 2.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (776, '0', '', '2025-12-17 05:43:38', '', '2025-12-17 05:43:38', NULL, '20251217e27b632a', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/3e65fb16_02176595021834699f4740eadd3360aa6250e68d85f7ec7f12739_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, very large breasts nipples perfectly matching skin tone, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, transparent black lace micro bikini perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/bdcc3842_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (777, '0', '', '2025-12-17 05:44:03', '', '2025-12-17 05:44:03', NULL, '202512178e4d9bb7', 36, '11', 2.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (778, '0', '', '2025-12-17 05:45:21', '', '2025-12-17 05:45:21', NULL, '20251217e7ad7e6d', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/4d7e20b9_021765950321845d6d3168ae2bcee8e5f54d16f5503deded59c39_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, very large breasts nipples perfectly matching skin tone, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, transparent black lace micro bikini perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (779, '0', '', '2025-12-17 05:45:59', '', '2025-12-17 05:45:59', NULL, '202512170f7c3ba3', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/6a159b3f_02176595036003175aeae14c82856eca08eecb5e75c0575a5e719_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, very large breasts nipples perfectly matching skin tone, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (780, '0', '', '2025-12-17 05:48:06', '', '2025-12-17 05:48:06', NULL, '2025121784fa1f5c', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/10eeea7f_0217659504863703a780f972f42b9300f847977bd3329557bcdc2_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts naked apron only no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (781, '0', '', '2025-12-17 05:48:33', '', '2025-12-17 05:48:33', NULL, '20251217b6d946f1', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/7028ebec_021765950513399732fd601d62b6a7044a0e20965673d991be65b_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts transparent black lace micro bikini no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (782, '0', '', '2025-12-17 05:48:55', '', '2025-12-17 05:48:55', NULL, '20251217e0d4d689', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/90e7363a_02176595053603875aeae14c82856eca08eecb5e75c0575a64e7e_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (783, '0', '', '2025-12-17 05:50:14', '', '2025-12-17 05:50:14', NULL, '202512173b245a1a', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/1a36b898_0217659506141468547934892c4038781a87d514f9a9196d1122a_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (784, '0', '', '2025-12-17 05:53:18', '', '2025-12-17 05:53:18', NULL, '2025121705c012ea', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/1a9f971a_021765950798996f8f49430e1e3875ff473008eb96b3a39a10cff_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, transparent black lace micro bikini, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (785, '0', '', '2025-12-17 05:53:45', '', '2025-12-17 05:53:45', NULL, '202512171b59cc10', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/17/489e688a_02176595082525974bd01b7bc1bacfcfc78546caab5b5fa7dd48b_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, , no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/17/399923c9_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (786, '0', '', '2025-12-17 16:58:09', '', '2025-12-17 16:58:09', NULL, '202512188c25f9b3', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/4c6671a5_0217659906895593c1f91f892e9aff2a902d86b047fe2423f0162_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, , no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', '', 'N', 'https://images.iqyjsnwv.com/2025/12/18/0a99b810_1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (787, '0', '', '2025-12-18 02:30:29', '', '2025-12-18 02:30:29', NULL, '2025121827837db5', 14, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/e7a9e6a1_021766025029491732fd601d62b6a7044a0e20965673d99f8baf6_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作}, {胸部大小}, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/18/e19dc6be_863ac61e-5d31-4074-9e1d-1a1b3d05c2f6.png', NULL); +INSERT INTO `ai_order` VALUES (788, '0', '', '2025-12-18 02:32:02', '', '2025-12-18 02:32:02', NULL, '20251218d380ff92', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (789, '0', '', '2025-12-18 02:32:05', '', '2025-12-18 02:32:05', NULL, '202512189b7b14e7', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (790, '0', '', '2025-12-18 02:32:06', '', '2025-12-18 02:32:06', NULL, '20251218829de92e', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (791, '0', '', '2025-12-18 02:32:07', '', '2025-12-18 02:32:07', NULL, '202512184bd7f6e5', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (792, '0', '', '2025-12-18 02:32:08', '', '2025-12-18 02:32:08', NULL, '20251218d8c314ec', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (793, '0', '', '2025-12-18 02:32:38', '', '2025-12-18 02:32:38', NULL, '20251218ed8c66ec', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (794, '0', '', '2025-12-18 02:37:42', '', '2025-12-18 02:37:42', NULL, '202512186a1aa2a8', 14, '12', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (795, '0', '', '2025-12-18 06:21:35', '', '2025-12-18 06:21:35', NULL, '202512182a81a563', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/af6dfed6_021766038895064c799e7b290acded99bf6695874956a9f707518_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, transparent black lace micro bikini, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/add7a340_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (796, '0', '', '2025-12-18 06:21:54', '', '2025-12-18 06:21:54', NULL, '20251218f73fa3d2', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/b838593c_0217660389147801e15ac27860f2c8c25bccd5ee2521f9a729275_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, naked apron only, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/add7a340_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (797, '0', '', '2025-12-18 06:22:14', '', '2025-12-18 06:22:14', NULL, '2025121839c25413', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/ee72e0e9_021766038934268d6d3168ae2bcee8e5f54d16f5503dede737501_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, transparent black lace micro bikini, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/add7a340_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (799, '0', '', '2025-12-18 06:26:43', '', '2025-12-18 06:26:43', NULL, '202512187c023eb5', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/80f5521d_0217660392038015097524147fba306f3fd5b41c933770266daf1_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, completely transparent white babydoll lingerie, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (800, '0', '', '2025-12-18 06:27:07', '', '2025-12-18 06:27:07', NULL, '20251218d7c00ec4', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/b10fe8b8_0217660392275003a780f972f42b9300f847977bd332955c264d1_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, classic black bunny suit with fishnet stockings, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (801, '0', '', '2025-12-18 06:27:36', '', '2025-12-18 06:27:36', NULL, '20251218c2c3d64e', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/0eb9a0f9_02176603925661375aeae14c82856eca08eecb5e75c0575b8fbf6_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, virgin killer sweater only, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (802, '0', '', '2025-12-18 06:27:54', '', '2025-12-18 06:27:54', NULL, '202512186fbe57b7', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/bae256f5_02176603927442474bd01b7bc1bacfcfc78546caab5b5fab3d1c0_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, completely transparent white babydoll lingerie, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (803, '0', '', '2025-12-18 06:28:16', '', '2025-12-18 06:28:16', NULL, '20251218222a407f', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/7b507f52_0217660392963355097524147fba306f3fd5b41c933770238347e_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, virgin killer sweater only, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (804, '0', '', '2025-12-18 06:28:37', '', '2025-12-18 06:28:37', NULL, '20251218cc0e47aa', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/acd15b3a_0217660393177243a780f972f42b9300f847977bd3329554bd57e_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, classic black bunny suit with fishnet stockings, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/5058fb3a_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (806, '0', '', '2025-12-18 06:29:25', '', '2025-12-18 06:29:25', NULL, '20251218ddebd140', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/05ea65ee_021766039365039f8f49430e1e3875ff473008eb96b3a3933ad8a_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, ,crotchless red lace lingerie with garterbelt and stockings, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/6d463d63_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (807, '0', '', '2025-12-18 06:29:50', '', '2025-12-18 06:29:50', NULL, '20251218e9a04c06', 36, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/7261650b_02176603939028674bd01b7bc1bacfcfc78546caab5b5fa62020a_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, transparent black lace micro bikini, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/18/6d463d63_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (809, '0', '', '2025-12-18 06:34:06', '', '2025-12-18 06:34:06', NULL, '20251218ed119375', 36, '12', 2.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (812, '0', '', '2025-12-18 08:19:36', '', '2025-12-18 08:19:36', NULL, '20251218ccb1658e', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (813, '0', '', '2025-12-18 08:19:38', '', '2025-12-18 08:19:38', NULL, '202512185780be0e', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (814, '0', '', '2025-12-18 08:19:45', '', '2025-12-18 08:19:45', NULL, '202512184c3ede45', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (815, '0', '', '2025-12-18 08:19:48', '', '2025-12-18 08:19:48', NULL, '2025121862a7e894', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (816, '0', '', '2025-12-18 08:19:53', '', '2025-12-18 08:19:53', NULL, '20251218e86d6cd6', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (817, '0', '', '2025-12-18 08:19:58', '', '2025-12-18 08:19:58', NULL, '202512182b8826ae', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (818, '0', '', '2025-12-18 08:19:59', '', '2025-12-18 08:19:59', NULL, '20251218c2be13ca', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (819, '0', '', '2025-12-18 08:20:01', '', '2025-12-18 08:20:01', NULL, '2025121806ba8aec', 14, '1', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (820, '0', '', '2025-12-18 08:23:42', '', '2025-12-18 08:23:42', NULL, '20251218ae940a17', 14, '13', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (821, '0', '', '2025-12-18 08:23:44', '', '2025-12-18 08:23:44', NULL, '202512183736e521', 14, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/851adb61_02176604622430430d072d337ea6fcc7bbfbe2f0c485be27674e5_0.jpeg', 1, '分析第二张图中的中间人的脸,把第一张图中的中间人的脸替换成第二张图中的中间人的脸', 'XM001', 'N', '[https://images.iqyjsnwv.com/2025/12/18/8cf49cea_a5e3d561-ecd0-446b-8f65-1d861e9d7fa9.jpg, https://images.iqyjsnwv.com/2025/12/18/5fe54856_263f4374f93b105803e2219207aec7a8.jpg]', NULL); +INSERT INTO `ai_order` VALUES (822, '0', '', '2025-12-18 08:29:18', '', '2025-12-18 08:29:18', NULL, '2025121823dd971d', 14, '13', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (823, '0', '', '2025-12-18 08:29:20', '', '2025-12-18 08:29:20', NULL, '20251218208fcc1c', 14, '13', 2.00, NULL, 0, NULL, 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (824, '0', '', '2025-12-18 08:29:22', '', '2025-12-18 08:29:22', NULL, '20251218c5a94e13', 14, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/008dad59_021766046562562fef143c4098cd8cc7e0dd8c08d18f9db6c7040_0.jpeg', 1, '分析第二张图中的中间人的脸,把第一张图中的中间人的脸替换成第二张图中的中间人的脸', 'XM001', 'N', '[https://images.iqyjsnwv.com/2025/12/18/3702e679_Divorced at the Wedding Day.png, https://images.iqyjsnwv.com/2025/12/18/46188f67_263f4374f93b105803e2219207aec7a8.jpg]', NULL); +INSERT INTO `ai_order` VALUES (826, '0', '', '2025-12-18 09:39:00', '', '2025-12-18 09:39:00', NULL, '2025121856097476', 14, '13', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/d76d6484_0217660507401471386b9a8ed856c57501cfa946ce34c98e84fb4_0.jpeg', 1, '分析第二张图中的中间人的脸,把第一张图中的中间人的脸替换成第二张图中的中间人的脸', 'XM001', 'N', '[https://images.iqyjsnwv.com/2025/12/18/fff8aec0_Rented a Billionaire Husband for Christmas (1).png, https://images.iqyjsnwv.com/2025/12/18/3963d391_492946037_122105779130863871_9202108964935318585_n.webp]', NULL); +INSERT INTO `ai_order` VALUES (827, '0', '', '2025-12-18 10:14:36', '', '2025-12-18 18:17:23', NULL, '20251218c037ba63', 14, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/18/780799ef_02176605293014600000000000000000000ffffc0a888574cc310.mp4', 1, NULL, 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/18/dd1955cc_925fdfc5-1913-4ec1-8252-9d5062d797fd.png', 'https://images.iqyjsnwv.com/2025/12/18/5fa7cc4a_860dfd38-a14c-4883-a521-bf908dbd9339.jpg'); +INSERT INTO `ai_order` VALUES (828, '0', '', '2025-12-18 11:09:59', '', '2025-12-18 11:09:59', NULL, '202512189a8ff475', 16, '1', 2.00, NULL, 0, NULL, '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (829, '0', '', '2025-12-18 11:10:51', '', '2025-12-18 11:10:51', NULL, '202512186e84358f', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/2d1cb1a2_021766056251623fef143c4098cd8cc7e0dd8c08d18f9dbfc909a_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, ,crotchless red lace lingerie with garterbelt and stockings, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', '', 'N', 'https://images.iqyjsnwv.com/2025/12/18/3a1e1cb6_1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (830, '0', '', '2025-12-18 11:24:42', '', '2025-12-18 11:24:42', NULL, '20251218b71c768f', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/ac3b22d6_021766057082234c5f50319cb4d4388d7836967b82aebe5ceed79_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, naked apron only, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', '', 'N', 'https://images.iqyjsnwv.com/2025/12/18/3a1e1cb6_1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (831, '0', '', '2025-12-18 20:02:28', '', '2025-12-18 20:02:28', NULL, '20251218bc16fc2a', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/09a5cf08_0217660593488952504cb05148e9a08cc7612c3f2b24e52fd93a3_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, transparent black lace micro bikini, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', '', 'N', 'https://images.iqyjsnwv.com/2025/12/18/3a1e1cb6_1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (832, '0', '', '2025-12-18 20:11:03', '', '2025-12-18 20:11:03', NULL, '20251218b31d70f3', 16, '11', 2.00, 'https://images.iqyjsnwv.com/2025/12/18/6c7f97ee_021766059864036d6d3168ae2bcee8e5f54d16f5503dede8fa399_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing very large breasts, naked apron only, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)', '', 'N', 'https://images.iqyjsnwv.com/2025/12/18/7abcba69_1.jpeg', NULL); +INSERT INTO `ai_order` VALUES (833, '0', '', '2025-12-19 07:27:27', '', '2025-12-19 07:27:27', NULL, '2025121985e8704a', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/a6098e80_02176610044727275aeae14c82856eca08eecb5e75c0575ebddf0_0.jpeg', 1, '生成一个美女直发,白色背心,黑色短裤的图像', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (834, '0', '', '2025-12-19 15:09:58', '', '2025-12-19 15:09:58', NULL, '20251219b1740838', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/afabbe2d_0217661281986612504cb05148e9a08cc7612c3f2b24e52a9ccab_0.jpeg', 1, '生成一个美女{头发},{衣服},{裤子}的图像', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (835, '0', '', '2025-12-19 15:10:39', '', '2025-12-19 15:10:39', NULL, '2025121967ae7daf', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/5b447bc0_02176612823979030d072d337ea6fcc7bbfbe2f0c485be2ec7d19_0.jpeg', 1, '生成一个美女{头发},{衣服},{裤子}的图像', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (836, '0', '', '2025-12-19 15:11:21', '', '2025-12-19 15:11:21', NULL, '20251219f3000068', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/d9bcc444_0217661282811173a780f972f42b9300f847977bd332955f9f910_0.jpeg', 1, '生成一个美女{头发},{衣服},{裤子}的图像', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (837, '0', '', '2025-12-19 17:33:26', '', '2025-12-19 17:33:26', NULL, '202512196bf2742b', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/5cec781e_0217661368068782504cb05148e9a08cc7612c3f2b24e52570e3d_0.jpeg', 1, '生成2,5包含红色流星,黄色流星,分辨率1080x1920的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/8fafd810_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (838, '0', '', '2025-12-19 17:35:26', '', '2025-12-19 17:35:26', NULL, '2025121922d33471', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/e8fcfb1d_02176613692697430d072d337ea6fcc7bbfbe2f0c485be2b2cf22_0.jpeg', 1, '生成主题2,风格4包含细节2,分辨率1080x1920的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/8fafd810_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (840, '0', '', '2025-12-19 17:46:57', '', '2025-12-19 17:46:57', NULL, '20251219cd26d7eb', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/a370eb14_0217661376180727ed3dd5a26da08a73b6b7a28831080922867dc_0.jpeg', 1, '生成主题1,风格4包含细节1,分辨率1080x1920的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd0428b8_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (841, '0', '', '2025-12-19 17:47:44', '', '2025-12-19 17:47:44', NULL, '202512198841ec5d', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/a1ebd114_02176613766473275aeae14c82856eca08eecb5e75c05754827b2_0.jpeg', 1, '生成主题2,风格5包含细节1,分辨率1080x1920的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd0428b8_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (842, '0', '', '2025-12-19 18:07:29', '', '2025-12-19 18:07:29', NULL, '2025121924a6abee', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/78c1f4d3_0217661388490947b67bbc2a2a9a26108e071e40bb0b0842efc2c_0.jpeg', 1, '生成1080x1920,细节3包含风格5,分辨率主题3的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd0428b8_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (843, '0', '', '2025-12-19 18:09:41', '', '2025-12-19 18:09:41', NULL, '20251219bdf7446a', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/fcd63182_0217661389819565097524147fba306f3fd5b41c9337702d00f72_0.jpeg', 1, '生成,1080x1920包含细节2,分辨率风格5的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd0428b8_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (845, '0', '', '2025-12-19 18:12:36', '', '2025-12-19 18:12:36', NULL, '2025121980675eb7', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/176c8177_02176613915707199f4740eadd3360aa6250e68d85f7ec7e87e90_0.jpeg', 1, '生成,1080x1920包含细节2,分辨率风格4的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd72d517_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (847, '0', '', '2025-12-19 18:15:51', '', '2025-12-19 18:15:51', NULL, '202512196eb6ffe8', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/b30f0c36_021766139351914c799e7b290acded99bf6695874956a9f80af87_0.jpeg', 1, '生成,1080x1920包含细节1,分辨率风格6的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/fd72d517_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (848, '0', '', '2025-12-19 21:26:06', '', '2025-12-19 21:26:06', NULL, '2025121950a76ba0', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/a95fa25d_02176615076619099f4740eadd3360aa6250e68d85f7ec75d23c6_0.jpeg', 1, '生成一个美女直发,白色背心,黑色短裤的图像', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (849, '0', '', '2025-12-19 21:28:18', '', '2025-12-19 21:28:18', NULL, '20251219bb76d5ba', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/19/a7e95772_0217661508983973a780f972f42b9300f847977bd332955873fc8_0.jpeg', 1, '生成一个美女黑色短裤,红色卷发,白色背心的图像', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (851, '0', '', '2025-12-19 21:28:31', '', '2025-12-19 21:28:31', NULL, '20251219beebf1d4', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/b456174f_021766150911920f8f49430e1e3875ff473008eb96b3a3949c530_0.jpeg', 1, '生成,1080x1920包含细节3,分辨率风格6的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/ef4fd330_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (852, '0', '', '2025-12-19 21:53:01', '', '2025-12-19 21:53:01', NULL, '2025121921f5ac19', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/f010efa4_0217661523814527b67bbc2a2a9a26108e071e40bb0b0843c17dd_0.jpeg', 1, '生成,1080x1920包含细节1,分辨率风格4的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/b7476347_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (853, '0', '', '2025-12-19 21:57:18', '', '2025-12-19 21:57:18', NULL, '20251219b4f92057', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/9bd97b63_02176615263829115b33ccaa151d3ed7feaaa761bc71c37c797aa_0.jpeg', 1, '1080x1920生成,细节3包含风格5,分辨率主题1的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/b7476347_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (854, '0', '', '2025-12-19 21:58:53', '', '2025-12-19 21:58:53', NULL, '202512199abcade3', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/19/36fc03ab_021766152733937732fd601d62b6a7044a0e20965673d99707e31_0.jpeg', 1, '1080x1920生成,细节1包含风格6,分辨率主题2的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/b7476347_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (855, '0', '', '2025-12-21 11:24:55', '', '2025-12-21 11:24:55', NULL, '202512217f95cfc4', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/21/51890391_021766287495506fef143c4098cd8cc7e0dd8c08d18f9db6b127e_0.jpeg', 1, '生成一个美女,红色卷发,的图像', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (856, '0', '', '2025-12-22 10:05:45', '', '2025-12-22 10:05:45', NULL, '202512223fbc817d', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/c0da0603_021766369145477641a02d40a43d449f07de84c480b390d1e06ad_0.jpeg', 1, '生成,细节3包含风格6,分辨率主题1的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/b7476347_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (857, '0', '', '2025-12-22 10:07:55', '', '2025-12-22 10:07:55', NULL, '20251222ce1a0bda', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/d38a4056_0217663692752971e15ac27860f2c8c25bccd5ee2521f9a607d5a_0.jpeg', 1, '12生成,细节3包含风格6,分辨率主题1的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/19/b7476347_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (858, '0', '', '2025-12-22 10:30:31', '', '2025-12-22 10:30:31', NULL, '20251222ab3e81cf', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/22/9de80c2a_02176637063181799f4740eadd3360aa6250e68d85f7ec7833244_0.jpeg', 1, '生成一个美女,黑色卷发,的图像', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (859, '0', '', '2025-12-22 10:31:39', '', '2025-12-22 10:31:39', NULL, '2025122290ba89c1', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/aa92c9b7_02176637069946574bd01b7bc1bacfcfc78546caab5b5fadd71c5_0.jpeg', 1, '12生成,细节3包含风格5,分辨率主题1的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/0830f7cd_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (860, '0', '', '2025-12-22 10:32:20', '', '2025-12-22 10:32:20', NULL, '2025122293cbf47a', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/d377a3dc_02176637074047334cb6184a92ddd9ae87302c189a666e52b0486_0.jpeg', 1, '1234生成,红色卷发包含,分辨率的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/0830f7cd_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (861, '0', '', '2025-12-22 10:33:00', '', '2025-12-22 10:33:00', NULL, '20251222e0fdc51d', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/2ea8ed73_0217663707804521e15ac27860f2c8c25bccd5ee2521f9a3c31fd_0.jpeg', 1, '12生成,细节3包含风格6,分辨率主题1的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/2faf355c_0217624861870697ed3dd5a26da08a73b6b7a28831080924cc41a_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (862, '0', '', '2025-12-22 10:34:05', '', '2025-12-22 10:34:05', NULL, '20251222922f8e5b', 16, '12', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/52886a6a_02176637084564799f4740eadd3360aa6250e68d85f7ec793c24e_0.jpeg', 1, '生成,包含红色流星,黄色流星,分辨率的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/0f7827df_0217624861870697ed3dd5a26da08a73b6b7a28831080924cc41a_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (863, '0', '', '2025-12-22 10:34:50', '', '2025-12-22 10:34:50', NULL, '202512220c2a0833', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/3ce38080_02176637089107034cb6184a92ddd9ae87302c189a666e5271793_0.jpeg', 1, '12生成,细节3包含风格6,分辨率主题1的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/2c6391d7_0217624861870697ed3dd5a26da08a73b6b7a28831080924cc41a_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (864, '0', '', '2025-12-22 10:37:52', '', '2025-12-22 10:37:52', NULL, '202512227ab00d73', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/9136ba8b_0217663710728623c1f91f892e9aff2a902d86b047fe2429c3764_0.jpeg', 1, '12生成,细节3包含风格6,分辨率主题3的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/e3d07c99_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (865, '0', '', '2025-12-22 10:38:56', '', '2025-12-22 10:38:56', NULL, '20251222c906f542', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/74a2541f_0217663711363511386b9a8ed856c57501cfa946ce34c984bfb84_0.jpeg', 1, '12生成,细节3包含风格6,分辨率主题1的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/9d2e5da6_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (866, '0', '', '2025-12-22 10:44:26', '', '2025-12-22 10:44:26', NULL, '20251222434884ee', 35, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/033dcbb9_02176637146641215b33ccaa151d3ed7feaaa761bc71c37c15846_0.jpeg', 1, '12生成,细节3包含,分辨率的图像', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/22/5f801275_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (873, '0', '', '2025-12-22 13:13:46', '', '2025-12-22 13:13:46', NULL, '2025122231c0a00f', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/b92a225b_0217663804261121e15ac27860f2c8c25bccd5ee2521f9a95f2db_0.jpeg', 1, '12生成,细节1包含风格6,分辨率主题3的图像', '', 'N', 'https://images.iqyjsnwv.com/2025/12/22/9631bb2c_0217624862432607ed3dd5a26da08a73b6b7a288310809271889f_0.jpeg', NULL); +INSERT INTO `ai_order` VALUES (875, '0', '', '2025-12-22 15:28:01', '', '2025-12-22 15:28:01', NULL, '2025122299700d8d', 36, '13', 10.00, 'https://images.iqyjsnwv.com/2025/12/22/93f89698_021766388481188f9825d5f0df17daef396c99db0606054b97fd5_0.jpeg', 1, '生成,包含红色流星,黄色流星,分辨率的图像', 'ALL', 'N', '[https://images.iqyjsnwv.com/2025/12/22/6e0ea5dc_0f271de314dd9ef4c796465c2543495e_high.jpg, https://images.iqyjsnwv.com/2025/12/22/be622029_0217655279842547b67bbc2a2a9a26108e071e40bb0b0842c7f5c_0.jpeg]', NULL); +INSERT INTO `ai_order` VALUES (876, '0', '', '2025-12-22 15:33:44', '', '2025-12-22 15:33:44', NULL, '2025122235db08e3', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (877, '0', '', '2025-12-22 15:33:46', '', '2025-12-22 15:33:46', NULL, '202512225b93d3cd', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (878, '0', '', '2025-12-22 15:33:48', '', '2025-12-22 15:33:48', NULL, '20251222f76f04a0', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (879, '0', '', '2025-12-22 15:33:49', '', '2025-12-22 15:33:49', NULL, '202512221a3e51db', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (880, '0', '', '2025-12-22 15:33:59', '', '2025-12-22 15:33:59', NULL, '20251222e72a5736', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (881, '0', '', '2025-12-22 15:34:18', '', '2025-12-22 15:34:18', NULL, '20251222ba216c74', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (882, '0', '', '2025-12-22 15:34:23', '', '2025-12-22 15:34:23', NULL, '20251222dc089e53', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (883, '0', '', '2025-12-22 15:36:27', '', '2025-12-22 15:36:27', NULL, '20251222587547b4', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (884, '0', '', '2025-12-22 15:36:36', '', '2025-12-22 15:36:36', NULL, '2025122299d994c3', 36, '13', 10.00, NULL, 0, NULL, 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (885, '0', '', '2025-12-22 15:38:02', '', '2025-12-22 15:38:02', NULL, '20251222de9cfc13', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/22/df53ede5_02176638908302275aeae14c82856eca08eecb5e75c057537264e_0.jpeg', 1, '生成一个美女,黑色卷发,的图像', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (886, '0', '', '2025-12-22 15:38:29', '', '2025-12-22 15:38:49', NULL, '202512227507474f', 36, '21', 35.00, 'https://images.iqyjsnwv.com/2025/12/22/9a43b176_02176638911004500000000000000000000ffffc0a88857392f13.mp4', 1, NULL, 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/22/750a8bc2_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (889, '0', '', '2025-12-23 09:02:57', '', '2025-12-23 09:02:57', NULL, '2025122311e1eae4', 35, '13', 10.00, 'https://images.iqyjsnwv.com/2025/12/23/1e5f945b_0217664517778827b67bbc2a2a9a26108e071e40bb0b0842b40e1_0.jpeg', 1, '保持参考图1的内容风格不变,用参考图2的脸部对参考图1的脸部进行替换', 'ALL', 'N', '[https://images.iqyjsnwv.com/2025/12/23/1f9c1f75_0f271de314dd9ef4c796465c2543495e_high.jpg, https://images.iqyjsnwv.com/2025/12/23/3d35fa40_54.png]', NULL); +INSERT INTO `ai_order` VALUES (890, '0', '', '2025-12-23 14:17:04', '', '2025-12-23 14:17:04', 'Order number 202512239a67580b generation failed, please try again later.', '202512239a67580b', 36, '1', 8.00, NULL, 2, '1girl, solo, detailed face with 1234 主题3 风格4 细节3 12 in , 红色流星,黄色流星 no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (891, '0', '', '2025-12-23 14:17:34', '', '2025-12-23 14:17:34', NULL, '20251223b48e48d4', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/ff3d3d1e_0217664706547905097524147fba306f3fd5b41c9337702bdaa5e_0.jpeg', 1, '1girl, solo, detailed face with 1234 主题2 风格5 细节3 12 in , 红色流星,黄色流星 no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (892, '0', '', '2025-12-23 14:19:25', '', '2025-12-23 14:19:25', NULL, '202512230be81277', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/c80b229f_02176647076529315b33ccaa151d3ed7feaaa761bc71c37f07547_0.jpeg', 1, '1girl, solo, detailed face with 1234 主题2 风格5 细节2 12 in , 红色流星,黄色流星 no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (894, '0', '', '2025-12-23 14:34:53', '', '2025-12-23 14:34:53', NULL, '20251223597dbc01', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/23/3cf7cdcf_02176647169380174bd01b7bc1bacfcfc78546caab5b5fa280f27_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/23/f01b7c0c_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (895, '0', '', '2025-12-23 14:41:51', '', '2025-12-23 14:41:51', NULL, '202512236eb9653f', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/ff67c7a1_02176647211128715b33ccaa151d3ed7feaaa761bc71c372f6cc7_0.jpeg', 1, '1girl, solo, detailed face with blue eyes, long straight black hair, wearing earrings and necklace, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (897, '0', '', '2025-12-23 14:42:59', '', '2025-12-23 14:42:59', NULL, '202512232e068f34', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/23/40ff7c8a_021766472179032f8f49430e1e3875ff473008eb96b3a393be6c5_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/23/daa34127_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (898, '0', '', '2025-12-23 14:45:46', '', '2025-12-23 14:45:46', NULL, '20251223b2fec327', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/ac1ae2a5_021766472346891f8f49430e1e3875ff473008eb96b3a39909769_0.jpeg', 1, '1girl, solo, detailed face with blue eyes, long straight black hair, wearing earrings and necklace, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (899, '0', '', '2025-12-23 14:47:12', '', '2025-12-23 14:47:12', NULL, '20251223aa8d9d15', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/e9b8b4ea_02176647243265875aeae14c82856eca08eecb5e75c05754b1cc2_0.jpeg', 1, '1girl, solo, detailed face with long straight black hair, blue eyes, wearing earrings and necklace, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (900, '0', '', '2025-12-23 14:50:16', '', '2026-01-06 14:50:26', NULL, '202512233fa1d72d', 36, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/23/d18f22b5_02176647261688174bd01b7bc1bacfcfc78546caab5b5fa326294_0.jpeg', 1, '1girl, solo, detailed face with 1234 very large breasts both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression in 红色流星,黄色流星, long straight black hair, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: blue eyes,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (901, '0', '', '2025-12-23 14:50:16', '', '2025-12-24 16:40:05', NULL, '202512233fa1d72e', 36, '1', 8.00, 'https://images.iqyjsnwv.com/pictures/11786475.jpg', 1, NULL, 'ALL', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (902, '0', '', '2025-12-24 17:04:45', '', '2025-12-25 17:15:43', NULL, '2025120339559ced', 5, '11', 6.00, 'https://images.iqyjsnwv.com/pictures/1008322.jpg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (903, '0', '', '2025-12-24 17:08:11', '', '2025-12-25 17:15:41', NULL, '202512037oqg24d3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/pictures/10580818.jpg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (905, '0', '', '2025-12-24 17:08:11', '', '2026-01-06 10:49:47', NULL, '20251203m7sc0pk5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/gifs/10152102.webp', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (906, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 12:06:38', NULL, '20251211sd5drzgf', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/1457.mp4', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (907, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 12:06:39', NULL, '20251213sd5ag2fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/12454.mp4', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (908, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 12:06:41', NULL, '20251211s23456fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/187144.mp4', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (909, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 12:06:43', NULL, '20251211s2382f1fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/147563.mp4', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (910, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 17:08:11', NULL, '20251226sd5drzgfy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/99321.mp4', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (911, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 17:08:11', NULL, '20251226d5adg2fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/99315.mp4', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (912, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 17:08:11', NULL, '20251226123456fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/99712.mp4', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (913, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 17:08:11', NULL, '202512262382f1fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/9964231.mp4', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (914, '0', '', '2025-12-24 17:08:11', '', '2025-12-26 17:08:11', NULL, '20251226238d31fy', 5, '21', 6.00, 'https://images.iqyjsnwv.com/video/9964231.mp4', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (915, '0', '', '2025-12-26 18:16:22', '', '2025-12-26 18:16:22', NULL, '20251226b5778394', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/26/2d43aa11_0217667441825085097524147fba306f3fd5b41c933770265da6d_0.jpeg', 1, '1girl, solo, detailed face with short curly blonde hair, blue eyes, with glasses and scarf, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (916, '0', '', '2025-12-26 18:23:53', '', '2025-12-26 18:23:53', NULL, '202512269c2aef82', 14, '12', 10.00, 'https://images.iqyjsnwv.com/2025/12/26/17284cd9_0217667446336037b67bbc2a2a9a26108e071e40bb0b084b7dcc5_0.jpeg', 1, '生成,包含红色流星,黄色流星,分辨率的图像', 'XM001', 'N', 'https://images.iqyjsnwv.com/2025/12/26/3402275d_62cccea4-f0f7-4ae6-abef-9e2bc563ddb2.jpg', NULL); +INSERT INTO `ai_order` VALUES (917, '0', '', '2025-12-26 18:25:46', '', '2025-12-26 18:25:46', NULL, '202512268411e60a', 14, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/26/2cf0d71d_0217667447462261386b9a8ed856c57501cfa946ce34c988ec807_0.jpeg', 1, '1girl, solo, detailed face with long straight black hair, blue eyes, wearing earrings and necklace, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (918, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512304okwynis', 5, '21', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/05whujko.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (919, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230xv4tyj1f', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/08iphr1t.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (920, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230xi4a0lo5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/17diskc0.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (921, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230hkmil92v', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/17uo5xnc.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (922, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230y3st2zdn', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/1dvj5ga0.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (923, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230td16olpq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/1hdp9384.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (924, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230flwxo627', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/1hp09xsl.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (925, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230f9jrpadi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/2tjf6iuv.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (926, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230tfz642ce', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/2ubf6rtz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (927, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512308bqsjvk6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/3bd4ps9v.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (928, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512308fs9qt5i', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/403pveq2.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (929, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230nexf50sp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/481lpsr3.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (930, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512302mwohflj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/4wjvyilh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (931, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230nrd4hjim', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/6jadgo0s.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (932, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230xni7ymu5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/6qjehcfl.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (933, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230e3yzv6xu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7ak9o6ms.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (934, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512307lz0owb9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7copy1kw.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (935, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230jbqh27pt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7fb0rz29.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (936, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512302mbk68aj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7h4k2wrb.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (937, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230761cygwp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7oe6ydv3.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (938, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230guh1woly', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/7zhgxvs4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (939, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230qz6kcon1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/85twx70c.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (940, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230t526cas8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/8jkmydvt.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (941, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512309tu1vf5h', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/9cfmunig.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (942, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230y8apbcdf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/9l0mq8zn.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (943, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512306aus4wei', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/a3qwsybo.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (944, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230ryuaixjl', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/a609dj57.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (945, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230k854th9i', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/a68phfrk.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (946, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230b8yc36j2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ag2rh4w1.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (947, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:50:07', NULL, '20251230r01z53x2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/az21m0r8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (948, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230txgrl6zy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/b2vj7q4r.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (949, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:52', NULL, '20251230cvyz64ls', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/bhgnvq1y.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (950, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:53', NULL, '2025123047ixszgo', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/bhyv9z5a.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (951, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:55', NULL, '20251230t2dynme7', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/bmotsgzc.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (952, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:57', NULL, '2025123097vdabr6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/bvesdw3f.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (953, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:59', NULL, '20251230x3iqe9nh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/c08qgazv.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (954, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512303epu42iz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/c3qeobxj.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (955, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230d3np910y', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/c93lnz50.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (956, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230sa39qvn8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/cb0yrt4p.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (957, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512304csaxzrq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/cd63izl1.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (958, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230sa0vyj1l', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/co6eihg9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (959, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:37', NULL, '20251230rfej5l4o', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/cudpbo9r.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (960, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:39', NULL, '20251230aqpl5bvz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/cxgo3mli.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (961, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:42', NULL, '2025123009sluyfj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/d4jul1ga.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (962, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512300m5d631f', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/dao4ypxf.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (963, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230h461jz3e', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/dheq72v9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (964, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512304zj6hy9n', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/dzrct927.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (965, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230645eawli', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/e2ozl4f7.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (966, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230ea7vf3ou', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/e4nwl5vh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (967, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:47', NULL, '20251230upkn7b5s', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/e856iatg.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (968, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:45', NULL, '20251230j6wz7nd9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/eln840si.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (969, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:29', NULL, '20251230m3fwelix', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ex9rcvgp.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (970, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512307fbmrh2n', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/fa8yozgk.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (971, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230qn5h3byo', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/fe7dcogb.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (972, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230nex3jatp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/flbpatis.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (973, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512307vfpu4r9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/fyx6sw74.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (974, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230jbegs7d2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/g1uzmqk0.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (975, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512305lrmoi3v', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/gj0ryudt.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (976, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512305uitms3j', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/h3c2qav6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (977, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230c3njulxb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/h6x43bgt.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (978, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230gnuhib9s', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/i065luro.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (979, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:22', NULL, '202512309ea7xi8v', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ie2juqnb.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (980, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512301oi5804r', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/iks5fzld.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (981, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:22', NULL, '20251230sq0c7jf5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/j492ub30.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (982, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:23', NULL, '2025123080rdbhna', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/j4r8puea.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (983, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:49:25', NULL, '202512303znv7mfj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/jn6t2eih.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (984, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230b1yxm4so', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/jvueoxm2.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (985, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512305gmlx89e', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/jwcuv94a.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (986, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230m591uqx7', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/k2cvdzus.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (987, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512301gd3v2q5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/kchvxyt6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (988, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512309e1ltq05', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/kqvr691s.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (989, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:18', NULL, '20251230vbx7j4tc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/kunrvwfa.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (990, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:16', NULL, '202512305oeu18yf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/kysq3cw0.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (991, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:12', NULL, '202512303hceu4td', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/l2ihu9xy.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (992, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230oams4n1u', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/le8g36rt.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (993, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230cemkl6sb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/lgjuedkh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (994, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230ye3972bt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/lvswnrkz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (995, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230g37tcrm4', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/lzwqknos.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (996, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230468geljt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/m4uvlz8t.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (997, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512302lamkvb7', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/mr2fhntg.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (998, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230dehq5t3f', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/my5p7z6d.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (999, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:08', NULL, '20251230eohi4cjs', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/n3w28gx4.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1000, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230u7a0xqgk', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/n95itqdc.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1001, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:01', NULL, '20251230snq23cow', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/nu9qzjrx.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1002, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:59', NULL, '202512307dke4fbt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/nv9ez4ha.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1003, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230dgat9xh4', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ouhz9me7.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1004, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:03', NULL, '20251230oz01hjkt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/p79w16ia.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1005, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:48:05', NULL, '20251230fx6yrmiw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/p82uicoe.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1006, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230shnx0iuz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/pb2h1k9c.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1007, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512306maizthu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/pdhnj0o6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1008, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:56', NULL, '20251230w96u2k4z', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/pn9zgylq.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1009, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230tbzdlw63', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/pycr9wol.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1010, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:50', NULL, '20251230dke5qc1a', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/qbpmgvu1.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1011, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230jl6xvhr4', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/rnowt4zh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1012, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230l9a7iyd6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/s7wnha2p.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1013, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230rt6g295y', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/sdzcp7ai.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1014, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:47', NULL, '20251230jydfagv2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/sipbqtuh.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1015, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:44', NULL, '20251230md3v2uwi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/sr0w7axt.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1016, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:42', NULL, '20251230m7l5j29h', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/t38mceoh.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1017, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230owxd26n1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/thmodqu8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1018, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512304wh3v96l', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/tyqohs8e.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1019, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:37', NULL, '202512309dpsjkw3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/upsy3tkq.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1020, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:34', NULL, '20251230j5n2hf9m', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/v84aqz27.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1021, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:32', NULL, '202512302pb09z4r', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/vfwze4gk.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1022, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:30', NULL, '20251230ju5pq8cr', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/vq56an0k.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1023, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:28', NULL, '20251230x5fqr82u', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/vrq16su0.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1024, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:27', NULL, '20251230yjfelizt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/vytew4oc.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1025, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:25', NULL, '20251230dpni439t', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/wix4qcjr.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1026, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:23', NULL, '20251230087bdmru', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/wn1ivkpu.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1027, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:22', NULL, '20251230vu6ixoz9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/wu2rktaq.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1028, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:20', NULL, '20251230ybhjp8qc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/wz2c9ms8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1029, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:14', NULL, '20251230k35ro0he', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/wz6dsx4m.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1030, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:13', NULL, '20251230rblh8fpw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/x6or5bne.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1031, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:10', NULL, '20251230h7t1jx5d', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/xu6difkp.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1032, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:08', NULL, '202512305fcbxwqh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/yat23bhw.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1033, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:06', NULL, '202512300v1ondgf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ydcebx4i.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1034, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:03', NULL, '202512301ofe9ngw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ye6lwumh.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1035, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:47:01', NULL, '20251230uzm3w06r', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/yiuahl1e.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1036, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:46:58', NULL, '20251230acxfudvq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ypxj35fm.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1037, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:46:57', NULL, '20251230axzuosnf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/ysmh6civ.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1038, '0', '', '2025-12-30 10:22:37', '', '2026-01-06 14:46:55', NULL, '20251230xuocgwek', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/yzajnsci.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1039, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230gd1fusw9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/z5aohirn.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1040, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230i1s4dvjb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/z645i2fg.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1041, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512308h97uobv', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/zkprf9j2.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1042, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '202512309mtasyw6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/zs4qxavc.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1043, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230it52qhks', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/zsl8ax3m.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1044, '0', '', '2025-12-30 10:22:37', '', '2025-12-30 10:22:37', NULL, '20251230nly5rig6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/28/zwpkqyxo.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1046, '0', '', '2025-12-30 11:26:10', '', '2025-12-30 11:26:10', NULL, '20251230e67d08aa', 35, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/30/7ad34888_0217670651702923a780f972f42b9300f847977bd3329557af6ac_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/30/2549f1e5_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (1048, '0', '', '2025-12-31 14:21:52', '', '2025-12-31 14:21:52', NULL, '2025123168466d1e', 43, '11', 10.00, 'https://images.iqyjsnwv.com/2025/12/31/92b9606c_02176716211254530d072d337ea6fcc7bbfbe2f0c485be2a75974_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2025/12/31/30a0d99d_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (1049, '0', '', '2025-12-31 14:22:42', '', '2025-12-31 14:23:17', NULL, '202512310c710375', 43, '1', 8.00, 'https://images.iqyjsnwv.com/2025/12/31/0d631922_021767162162487f9825d5f0df17daef396c99db060605416228d_0.jpeg', 1, '1girl, solo, detailed face with long straight black hair, blue eyes, wearing earrings and necklace, smiling happily, standing gracefully in in a sunny beach, wearing transparent silk robe, nipples visible through fabric, voluptuous bust, no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully,, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'ALL', 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1050, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '2026010586dupjqg', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/06mcuir1.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1051, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105tjonya98', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/075tdinv.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1052, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105q9ej827b', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/09s51rhm.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1053, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105d2j6u8ow', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/0nyex25o.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1054, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601059hid1arm', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/0waydsjr.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1055, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105zj4my21p', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/0xg36i9o.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1056, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105w7acfgqh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/0zyp6c4b.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1057, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105zbem4870', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/15ikjpre.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1058, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105gl0miro3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/15myhjz0.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1059, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105paufvtl0', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/16tof7ib.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1060, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105ucvkhbfp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/192d0igz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1061, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105kfz3qg4l', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1evlcyds.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1062, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105zy7gxufr', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1g6dyeaj.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1063, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105x2k6m3ig', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1jwxtzc9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1064, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105wcbyvot7', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1tzsh2po.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1065, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105lbtegsiu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1up0dlg3.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1066, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:37', NULL, '20260105vbcko9gh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/1wu4kq0a.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1067, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105esodgu6v', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/2hwp0yqm.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1068, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105v5o2jsk3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/2sdu3w8z.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1069, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105q2rpcdzi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/30uegclh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1070, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105vx963pr0', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/31h8u2of.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1071, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105a3e5sxlc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/3g2c7l9k.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1072, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601050i74uzap', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/3gxalp95.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1073, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:23', NULL, '20260105hj459v17', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/3h54v9fr.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1074, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:25', NULL, '202601051cobzx4g', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/3imodx61.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1075, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:27', NULL, '20260105r3n54x1g', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/41avzu5h.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1076, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105odjskypc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/45w1cjzi.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1077, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105v56xzdjw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/4fuadkry.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1078, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105ahlwyfrt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/4pmezrsi.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1079, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601052ojpq0mn', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/54o2lv7j.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1080, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105ta32j5g9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/5ckhy4bp.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1081, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105j0vpf2kw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/5i2ly3d8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1082, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053lai0pvq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/5mxzl82k.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1083, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:17', NULL, '20260105vls46gzt', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/5oxb80zm.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1084, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105cuphxq0v', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/60q3zwmh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1085, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105q85ed4ak', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/64wl5iyj.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1086, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105kurapgl1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/67sixe8z.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1087, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601054x8us35n', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/6zox09c4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1088, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:12', NULL, '20260105b2768p5s', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/728bgmp1.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1089, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:13', NULL, '20260105es4ojdac', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/73f96zcu.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1090, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105lysa17r2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7ca8p5gz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1091, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105utlo32gp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7cgdtk9z.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1092, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105dmcsl8xu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7e2fl1n8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1093, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105rplyuqix', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7lwejxqp.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1094, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053nhwgl1d', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7mfdhpxb.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1095, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105q6lw3a94', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7res0utv.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1096, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601050sn259jb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/7ws0v1pf.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1097, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105evkythl6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/83kx4njg.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1098, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105hzsdu0po', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8clwkns6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1099, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601051lnrh6pq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8e6olwxs.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1100, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105syhf2xv8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8g3v4e2x.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1101, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:00', NULL, '20260105meohlu8n', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8gdr1zw2.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1102, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105cilwb3ya', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8greov5n.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1103, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105x7z6g2u3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8iblu2gz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1104, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105aeygdsn9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8kne4vjs.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1105, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601051xl9diz6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8t6c703s.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1106, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105gfh6bx8u', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/8zym7rag.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1107, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:46:02', NULL, '20260105lonx2g9e', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/9g0m87r2.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1108, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105tz578nbc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/9jkt1g5q.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1109, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105cm96ptsl', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/9tuh4dv6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1110, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105h9wx420z', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/9uwdyqp7.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1111, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:47', NULL, '20260105zsyxqr1p', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ap35j8bx.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1112, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:34', NULL, '20260105olz0ys9k', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ay42e5do.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1113, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:44', NULL, '20260105v2she7ic', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/bhuyi80q.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1114, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:45', NULL, '20260105064ra8my', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/bnel6xd9.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1115, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:40', NULL, '20260105xhl8qs72', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/bpx7u0ws.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1116, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:42', NULL, '20260105s10og7ap', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/bw0z6a8k.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1117, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:36', NULL, '20260105n1yt6sva', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/c5nx4re6.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1118, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:38', NULL, '20260105hdo06rkw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/d1wm28jn.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1119, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:50', NULL, '20260105d7h4n0m6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/d4lqb30s.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1120, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:52', NULL, '20260105qpghtu49', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/d7kgc2zn.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1121, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:27', NULL, '20260105c0id4hrn', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/di8oflcy.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1122, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:29', NULL, '20260105lpn5b9e6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/dxtmr3sj.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1123, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105vy031q5f', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/dybaxqz9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1124, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105y3ua0txq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/eaoc51p4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1125, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105gcfy6bix', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/enac2fm9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1126, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:25', NULL, '20260105opc5y6xq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/euobvq6y.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1127, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105592uz4x0', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ezkyg45t.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1128, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105fqtris8p', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/fae0lo9c.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1129, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105snge8tl3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/funa3pwh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1130, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 10:49:38', NULL, '202601059kx2i37j', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/fx9s2nei.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1131, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 10:49:35', NULL, '20260105jbquspor', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/g6bna98p.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1132, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:59:08', NULL, '202601054eosruxf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/gos0qu3e.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1133, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 10:49:33', NULL, '20260105yb2xzked', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/gymqr12s.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1134, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:59:16', NULL, '20260105t9ebxqku', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/heboiw85.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1135, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:17', NULL, '20260105r5ohvcqe', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/hfw46mx5.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1136, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '2026010597gf2nx3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/hm2y7p80.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1137, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 10:49:29', NULL, '202601055k83p1vm', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/i2cjam60.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1138, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105szgmh69c', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/i36znm2d.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1139, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105z2qvxe73', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/i3ol27e8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1140, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105vl9u1sjw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ib9lvf0y.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1141, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:59:04', NULL, '20260105m8oufk30', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ieb5v84k.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1142, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105etk6ndxz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/iexftmhd.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1143, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105n670vgpi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ih4wa1md.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1144, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:59', NULL, '20260105j3mfebyv', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ikwe3z4f.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1145, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601057stohma2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/il16k045.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1146, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105720pdscr', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ilkn7gt4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1147, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105fz64bqm1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/im4e9a32.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1148, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:59:01', NULL, '20260105nmh469bl', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/in4u91xb.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1149, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601052th9sn3g', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/itbyhk83.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1150, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105c0hzx3ua', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/itqoks91.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1151, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:49', NULL, '20260105805ou4jv', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/iux97rz1.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1152, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:53', NULL, '202601057uflmqap', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ize5to82.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1153, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '2026010508qo4ze1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jcko0usx.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1154, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105z1clkwmq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jf0ecphk.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1155, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105hl4b0ecw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jh6aple4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1156, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:55', NULL, '20260105csybnhpl', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jmof2adr.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1157, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601052mk576yq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jp560429.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1158, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:44', NULL, '20260105jpqovmsy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ju9nt4q0.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1159, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:46', NULL, '202601054vwdqsna', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/juvrpd25.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1160, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105gyndsfal', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jz43uvi8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1161, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:29', NULL, '20260105symcdnr1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/jzuv935i.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1162, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105fopml6z2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/k9pczwif.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1163, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:25', NULL, '20260105w34dxa6p', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/kcl7znja.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1164, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105205al93e', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/kh0fbdi6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1165, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:23', NULL, '20260105raigyhk8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/kh9w37ve.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1166, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:27', NULL, '20260105qzm7xpod', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/klio5m69.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1167, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105k1ux3fcl', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ko2eg38z.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1168, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601054xm2f1cb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/kps7wuv8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1169, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:45:07', NULL, '20260105lyj60eav', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/l6vkb91c.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1170, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105kvubqrfd', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/l9riak8h.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1171, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:14', NULL, '20260105h9w0kjmy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ldkfmvo9.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1172, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:16', NULL, '20260105sa2r9gvi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ldp5v4j3.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1173, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:18', NULL, '202601050lw8jzqh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/lei31o05.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1174, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105sd5ev7yk', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/lfi0vndj.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1175, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:09', NULL, '20260105ep012f53', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/lib2knr6.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1176, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105ntchzja8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/lj9e4ykz.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1177, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105v8e5n0si', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/lnip5ozw.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1178, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053zrsg0mq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m2kta9jf.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1179, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:58:12', NULL, '20260105ndiremjy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m2ovwrh8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1180, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105hrp6mdyk', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m2zbwc6i.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1181, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105cwhtn7l0', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m3fv0bod.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1182, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:58', NULL, '20260105i1sakh93', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m7eozxny.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1183, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105vj6gipqm', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/m7pxbh98.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1184, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:49', NULL, '20260105g36krsn1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/mrvdz5u1.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1185, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105g30e5jzi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/mvfuq6ac.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1186, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105jhomy8wg', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/mvkwrb87.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1187, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:51', NULL, '2026010578103hgn', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/nesq7zfo.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1188, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:55', NULL, '20260105tlp2a4o0', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/nm3b4q8e.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1189, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:53', NULL, '20260105cwiymng8', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/nv206tch.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1190, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105e9dtbxul', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/nveyuj45.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1191, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:53', NULL, '202601053o68ptbx', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/nvl15ir8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1192, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:44', NULL, '20260105f76ks3i9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/o4hsawi9.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1193, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105p1maz072', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/omn403ju.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1194, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105fn6ujvk2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/or8wsijv.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1195, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:41', NULL, '20260105zsnrkm29', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ot06lez5.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1196, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '2026010534uismtg', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/oyd5hb31.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1197, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:39', NULL, '202601053ueh64gy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ozu90r4i.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1198, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105giknv40b', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/p2omkcv9.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1199, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105p0f3wd9b', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/pgan78zb.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1200, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105w1d6ao08', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ps1frz3m.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1201, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:38', NULL, '20260105pn83h7mr', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/pw97my0e.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1202, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:40', NULL, '202601050uzaetr5', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/pwmizol5.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1203, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:42', NULL, '20260105w32svemh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/pwvbxk31.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1204, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:32', NULL, '20260105djtkh5u9', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/px9tybgc.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1205, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105fx1ri93s', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/q7kromx1.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1206, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601050esm7ioq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/qad9c0ln.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1207, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601057vtahnde', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/qanp5rgi.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1208, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:45', NULL, '20260105c62oyhbi', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/qiv2escm.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1209, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105s2b4e80y', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/r3b5agmt.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1210, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:48', NULL, '20260105egl7mwz1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/rgz2o5ef.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1211, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:28', NULL, '20260105bizev7g6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/rh4gjpbu.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1212, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:35', NULL, '202601052we6xmfc', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/rhp5lmc8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1213, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:32', NULL, '20260105agy0mnhf', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/rvx5f6mn.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1214, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105loe8trzh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/s126q5ot.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1215, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:26', NULL, '20260105wzy6uf1k', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/s37btnum.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1216, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053vt1y79d', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/sd8pcw3u.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1217, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:30', NULL, '20260105ei5r80pz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/sgu6olm7.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1218, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105r5084fxq', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/stxac1jw.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1219, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601055tons7bw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/t3fmjwr6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1220, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053xpvra7t', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/tbsdz6p8.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1221, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:23', NULL, '20260105j5wd4ela', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/tfobyzs5.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1222, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105jogb2u10', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/thbqpg56.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1223, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:10', NULL, '202601053ocws248', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/tnacmlp2.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1224, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105cs9yjdxz', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/u23omnwa.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1225, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '2026010567wnj0u3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/unsh15a4.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1226, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:17', NULL, '202601056kru5wsj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/uovetn9z.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1227, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105rbnxi8y1', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/urj9szdm.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1228, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601053egvrhxm', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/us9bojv5.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1229, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105pfqsa39c', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/v1zjod25.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1230, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:14', NULL, '20260105658dj0zw', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/v40f5t67.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1231, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:55', NULL, '20260105hulziwqy', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/vfx2jkim.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1232, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:17', NULL, '20260105r1pj3qse', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/vkztyoig.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1233, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105q3xc9ju6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/w2roegyh.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1234, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:06', NULL, '20260105li7yje83', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/w6hu2o8d.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1235, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601052pin0sjo', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/wchb46rf.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1236, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:58', NULL, '202601050i6ezvs7', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/x6mjazwv.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1237, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:20', NULL, '20260105pvot7ukj', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/x9a7vmpt.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1238, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:01', NULL, '20260105cy7w5zin', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xad75zpn.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1239, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:57:03', NULL, '20260105vxf8y1l6', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xfh10y5c.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1240, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '20260105j8gcmqt2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xj0785g6.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1241, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:14', NULL, '20260105s76lekwu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xp617ga8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1242, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:44', NULL, '20260105j6lnq2eg', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xrz7de8u.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1243, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:09', NULL, '20260105lm5j9wga', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/xy6lmb35.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1244, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:11', NULL, '20260105dgk0x7t4', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/y5fb4nra.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1245, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:46', NULL, '20260105f3c80lvp', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/y9hb0f7v.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1246, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:07', NULL, '20260105ohxdpetb', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ybgv5rt9.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1247, '0', '', '2026-01-05 11:09:44', '', '2026-01-05 11:09:44', NULL, '202601054owzv5g2', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/yehg0u8p.jpeg', 1, '', NULL, 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1248, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:05', NULL, '202601058spje537', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/yfhbjsa9.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1249, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:51', NULL, '20260105vb73rsgu', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ygctnofz.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1250, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:44:03', NULL, '20260105db1gktmh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/ynaisc4x.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1251, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:43:51', NULL, '20260105hwof524c', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z1kpniea.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1252, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:34', NULL, '2026010508w5psmh', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z4j38ndt.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1253, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:29', NULL, '20260105kev1uq27', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z5a4qh1f.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1254, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:31', NULL, '20260105t59dewxg', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z5q7t1bd.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1255, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:43:48', NULL, '2026010559yuas70', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z7hcbq80.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1256, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:22', NULL, '20260105liuwog0m', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/z8mrcf12.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1257, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:27', NULL, '20260105362n5p4r', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/zp7karc0.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1258, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:56:19', NULL, '20260105j8fitvwn', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/zr97yoi8.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1259, '0', '', '2026-01-05 11:09:44', '', '2026-01-06 14:43:46', NULL, '20260105ql6ts5r3', 5, '11', 6.00, 'https://images.iqyjsnwv.com/2025/12/27/zrwluc9b.jpeg', 1, '', NULL, 'Y', NULL, NULL); +INSERT INTO `ai_order` VALUES (1260, '0', '', '2026-01-06 10:44:34', '', '2026-01-06 10:44:34', NULL, '20260106783a6eda', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/bfa9e506_02176766747506735b29c922ac7ba22cc26b6e12169d213bf059e_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/06/b1299b31_1763340101045.jpg', NULL); +INSERT INTO `ai_order` VALUES (1261, '0', '', '2026-01-06 16:05:50', '', '2026-01-06 16:05:50', NULL, '20260106867e8b0a', 14, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/0257f9c6_02176768675098269d9f56ebaf8adc0cbe3483f4c0cffb87c23c9_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/06/3ed54b55_你陪我长大 我陪你瑜伽_1_芭比琪琪Yoga_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (1262, '0', '', '2026-01-06 16:13:04', '', '2026-01-06 16:13:04', NULL, '2026010600baed70', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/06/7a008432_021767687184693e0570d30189b68d5608c0b11774ff85bcf7c5d_0.jpeg', 1, '1girl, solo, detailed face with brown eyes short curly blonde hair cat ears and tail seductive wink standing gracefully in inside a cozy bedroom , medium breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1263, '0', '', '2026-01-06 16:13:29', '', '2026-01-06 16:13:29', NULL, '2026010672902507', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/06/76259048_0217676872098060958c43c09b2d8895d306984ebab6585acbd91_0.jpeg', 1, '1girl, solo, detailed face with blue eyes long straight black hair wearing earrings and necklace smiling happily standing gracefully in in a sunny beach , small breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1264, '0', '', '2026-01-06 16:32:31', '', '2026-01-06 16:32:31', NULL, '20260106982ab289', 39, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/d1dbe269_021767688351116ceb2efb7fea58c55155fc9fb92515dcd4c82cf_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, heart-shaped pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/06/cf66e871_微信图片_20251012151103_30_1.jpg', NULL); +INSERT INTO `ai_order` VALUES (1265, '0', '', '2026-01-06 16:33:35', '', '2026-01-06 16:33:35', NULL, '2026010699de0ba3', 39, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/06/54991c76_021767688415908b60c2cebbbed8b1cc7b57b46439bb32b26ff07_0.jpeg', 1, '1girl, solo, detailed face with blue eyes long straight black hair wearing earrings and necklace smiling happily standing gracefully in in a sunny beach , small breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1267, '0', '', '2026-01-06 17:08:41', '', '2026-01-06 17:08:41', NULL, '202601065e413919', 14, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/8ad82bd0_02176769052194134cb6184a92ddd9ae87302c189a666e5a6b9b5_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/06/d002e3e9_拿捏一下纯欲感_1_鱼鱼酒_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (1268, '0', '', '2026-01-06 17:11:27', '', '2026-01-06 17:11:27', NULL, '20260106d2fdd130', 14, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/a1aef594_0217676906876649cf4adffd4482a40b9bfd1b5a653f234e6a671_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/06/e2afe538_👗3秒看呆!白衬衣黑裙穿搭大法!📸_1_梦境复原师_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (1269, '0', '', '2026-01-06 17:12:16', '', '2026-01-06 17:12:16', NULL, '20260106053af18b', 14, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/06/f7fa5229_021767690736984ec39001cad8ae999c8f17eed1b37944e8ae289_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/06/e2afe538_👗3秒看呆!白衬衣黑裙穿搭大法!📸_1_梦境复原师_来自小红书网页版.jpg', NULL); +INSERT INTO `ai_order` VALUES (1270, '0', '', '2026-01-07 15:35:45', '', '2026-01-07 15:35:45', NULL, '202601074c03fee4', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/07/0d3ab310_02176777134522561de39c93fac111732577779cd31798968de9c_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/07/6cb46090_IMG_3098.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1271, '0', '', '2026-01-07 20:03:00', '', '2026-01-07 20:03:00', NULL, '20260107150d4ef6', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/07/42fc0212_0217677873803803cb8a93f7287826a4278aac7f0d089f9fa7fa0_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/07/bd508cf7_IMG_0214.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1272, '0', '', '2026-01-07 20:04:39', '', '2026-01-07 20:04:39', NULL, '20260107cd796370', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/07/60eace51_021767787479983f5fadfdc607fef478c6f908597481cce51dfa4_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/07/19905282_IMG_0213.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1273, '0', '', '2026-01-07 20:08:40', '', '2026-01-07 20:08:40', NULL, '20260107701abcfb', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/07/f002ef8c_021767787720737a139bd89baa39633285680c9471d15ef629a8a_0.jpeg', 1, '1girl, solo, detailed face with blue eyes long straight black hair wearing earrings and necklace smiling happily standing gracefully in in a sunny beach , large breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1274, '0', '', '2026-01-08 01:21:01', '', '2026-01-08 01:21:01', NULL, '202601082adee7eb', 16, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/08/9cadcf8c_021767806462024f0a583d75381f7c0a662383f3247915e7eb9a0_0.jpeg', 1, '1girl, solo, detailed face with blue eyes long straight black hair cat ears and tail seductive wink standing gracefully in on a mountain peak at sunset , large breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: group of 3 women, posing together , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', '', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1275, '0', '', '2026-01-08 09:12:04', '', '2026-01-08 09:12:04', NULL, '2026010811bf5d44', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/b908be7f_02176783472459361de39c93fac111732577779cd31798929220a_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, heart-shaped pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/08/1c3a940b_y9hb0f7v.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1276, '0', '', '2026-01-08 09:13:23', '', '2026-01-08 09:13:23', NULL, '2026010806edf15b', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/6724b043_021767834803794d4c69f90bdf814940b1abafd46c62ec6b6e507_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/08/cb851cd9_y9hb0f7v.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1277, '0', '', '2026-01-08 09:15:14', '', '2026-01-08 09:15:14', NULL, '2026010861eca781', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/d3d987a9_021767834914518681426abb3fc8758bc9af65311c7ae31f249b2_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/08/6f639e92_ybgv5rt9.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1278, '0', '', '2026-01-08 09:16:33', '', '2026-01-08 09:16:33', NULL, '20260108c22279d9', 16, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/ad653253_02176783499369285fbb282d67f6232524942e9d2086bad981913_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, trimmed pubic hair, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', '', 'N', 'https://images.iqyjsnwv.com/2026/01/08/b379bdac_ybgv5rt9.jpeg', NULL); +INSERT INTO `ai_order` VALUES (1279, '0', '', '2026-01-08 14:53:37', '', '2026-01-08 14:53:37', NULL, '2026010861ab8fbc', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/f924e183_021767855217142008f00307548aaad250a55687bd5a742b857c9_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/1b5c4fb2_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); +INSERT INTO `ai_order` VALUES (1280, '0', '', '2026-01-08 14:57:07', '', '2026-01-08 14:57:07', NULL, '2026010835b51c26', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/08/725d290e_021767855427371798132a7c84228b35f5c1a465b83379e97e849_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/8fd0a446_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', NULL); +INSERT INTO `ai_order` VALUES (1281, '0', '', '2026-01-08 14:58:41', '', '2026-01-08 14:58:41', NULL, '202601080e633c53', 36, '21', 35.00, 'cgt-20260108145842-pkx9m', 1, '跳舞', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/26d552b9_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', NULL); +INSERT INTO `ai_order` VALUES (1282, '0', '', '2026-01-08 14:58:58', '', '2026-01-08 14:58:58', NULL, '20260108cf36a150', 36, '21', 35.00, 'cgt-20260108145858-pdjfb', 1, '跳舞', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/26d552b9_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', NULL); +INSERT INTO `ai_order` VALUES (1283, '0', '', '2026-01-08 14:59:14', '', '2026-01-08 14:59:14', NULL, '20260108f2adee1c', 36, '21', 35.00, 'cgt-20260108145914-lkm68', 1, '跳舞', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/2da66a20_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', 'https://images.iqyjsnwv.com/2026/01/08/bb819015_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg'); +INSERT INTO `ai_order` VALUES (1284, '0', '', '2026-01-08 15:00:18', '', '2026-01-08 15:00:18', NULL, '202601080e3aa72b', 36, '21', 35.00, 'cgt-20260108150018-ndjgh', 1, '跳舞', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/ed91cfe4_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', 'https://images.iqyjsnwv.com/2026/01/08/f214d902_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg'); +INSERT INTO `ai_order` VALUES (1285, '0', '', '2026-01-08 15:06:44', '', '2026-01-09 11:15:58', NULL, '2026010872227d8a', 36, '21', 35.00, 'https://images.iqyjsnwv.com/2026/01/09/198362b2_02176785600670800000000000000000000ffffc0a8bc10bd4f56.mp4', 1, '跳舞', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/08/b4d773e2_cec14f1c5c5f2707f4f2c8fc5f3a645c34-kai-golf.rsquare.w400.jpg', NULL); +INSERT INTO `ai_order` VALUES (1286, '0', '', '2026-01-09 14:28:21', '', '2026-01-09 14:28:21', NULL, '202601090fbd1ce5', 39, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/09/88715499_021767940101387a139bd89baa39633285680c9471d15ef94d6ba_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/fe2782a3_123.jpg', NULL); +INSERT INTO `ai_order` VALUES (1287, '0', '', '2026-01-09 14:29:48', '', '2026-01-09 14:29:48', '訂單號 20260109e062a913 生成失敗,請稍後重試。', '20260109e062a913', 39, '21', 35.00, NULL, 2, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/c1319028_123.jpg', 'blob:https://www.undressing.top/e591f382-3a4f-4140-a2d2-64df7d90139b'); +INSERT INTO `ai_order` VALUES (1288, '0', '', '2026-01-09 14:30:13', '', '2026-01-09 14:31:55', NULL, '2026010988545986', 39, '21', 35.00, 'https://images.iqyjsnwv.com/2026/01/09/92ae2b72_02176794024304900000000000000000000ffffc0a8bc103d71ed.mp4', 1, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/c1319028_123.jpg', 'https://images.iqyjsnwv.com/2026/01/09/a6e44e3e_88715499_021767940101387a139bd89baa39633285680c9471d15ef94d6ba_0.jpeg'); +INSERT INTO `ai_order` VALUES (1296, '0', '', '2026-01-09 14:40:35', '', '2026-01-09 14:40:35', NULL, '20260109e006fc99', 39, '1', 8.00, 'https://images.iqyjsnwv.com/2026/01/09/270e588a_021767940835526023ef2751affb9822ae18449966cb6b9d2f918_0.jpeg', 1, '1girl, solo, detailed face with blue eyes long straight black hair wearing earrings and necklace smiling happily standing gracefully in in a sunny beach , small breasts no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: 2girls, interacting playfully , all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, any fabric even one pixel if nude mode, censored if nude mode, mosaic if nude mode, bar censor if nude mode, any censorship if nude mode, pasties if nude mode, nipple covers if nude mode)\n', 'XM001', 'N', NULL, NULL); +INSERT INTO `ai_order` VALUES (1297, '0', '', '2026-01-09 14:41:12', '', '2026-01-09 14:41:12', NULL, '20260109d27504a1', 39, '12', 10.00, 'https://images.iqyjsnwv.com/2026/01/09/cb0b0abe_021767940872427e65fceeece8308abd88f514ec5c3dced4fc5b8_0.jpeg', 1, '生成very large breasts,nipples visible through fabric包含transparent black lace micro bikini,分辨率standing hands behind head elbows out的图像', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/40e098f6_微信图片_20260109142807_42_181.jpg', NULL); +INSERT INTO `ai_order` VALUES (1298, '0', '', '2026-01-09 14:45:40', '', '2026-01-09 14:45:40', NULL, '20260109573aed72', 39, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/09/cd7ee055_0217679411405710958c43c09b2d8895d306984ebab658519d4f3_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, medium breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/744e3460_123 (6).jpg', NULL); +INSERT INTO `ai_order` VALUES (1299, '0', '', '2026-01-09 14:46:35', '', '2026-01-09 14:46:35', '訂單號 202601098e01f415 生成失敗,請稍後重試。', '202601098e01f415', 39, '21', 35.00, NULL, 2, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/daa910d7_123 (6).jpg', 'blob:https://www.undressing.top/9ffd1666-c5e9-46d7-9439-c454e0186fbd'); +INSERT INTO `ai_order` VALUES (1300, '0', '', '2026-01-09 14:46:39', '', '2026-01-09 14:47:16', NULL, '2026010943df3550', 39, '21', 35.00, 'https://images.iqyjsnwv.com/2026/01/09/dc5dcb36_02176794120195700000000000000000000ffffc0a8bc103885e7.mp4', 1, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/daa910d7_123 (6).jpg', 'https://images.iqyjsnwv.com/2026/01/09/6e335966_cd7ee055_0217679411405710958c43c09b2d8895d306984ebab658519d4f3_0.jpeg'); +INSERT INTO `ai_order` VALUES (1304, '0', '', '2026-01-09 14:53:33', '', '2026-01-09 14:53:33', NULL, '20260109e8b84c4e', 39, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/09/8ad965e5_021767941613608e0570d30189b68d5608c0b11774ff85b2e617f_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/8248b250_123.jpg', NULL); +INSERT INTO `ai_order` VALUES (1305, '0', '', '2026-01-09 14:54:37', '', '2026-01-09 14:54:37', '訂單號 2026010993f53c6d 生成失敗,請稍後重試。', '2026010993f53c6d', 39, '21', 35.00, NULL, 2, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/212adc77_123.jpg', 'blob:https://www.undressing.top/c214ad9e-5922-48df-bfac-9a8336ae8402'); +INSERT INTO `ai_order` VALUES (1306, '0', '', '2026-01-09 14:54:40', '', '2026-01-09 14:54:40', '訂單號 20260109c9552be3 生成失敗,請稍後重試。', '20260109c9552be3', 39, '21', 35.00, NULL, 2, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/212adc77_123.jpg', 'blob:https://www.undressing.top/c214ad9e-5922-48df-bfac-9a8336ae8402'); +INSERT INTO `ai_order` VALUES (1307, '0', '', '2026-01-09 14:54:51', '', '2026-01-09 14:54:51', '訂單號 2026010938d677cd 生成失敗,請稍後重試。', '2026010938d677cd', 39, '21', 35.00, NULL, 2, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/212adc77_123.jpg', 'blob:https://www.undressing.top/6e029e26-61cc-4772-af17-a0449f46cb8b'); +INSERT INTO `ai_order` VALUES (1308, '0', '', '2026-01-09 14:55:03', '', '2026-01-09 14:56:05', NULL, '20260109d9bc788a', 39, '21', 35.00, 'https://images.iqyjsnwv.com/2026/01/09/96ca14f5_02176794172502800000000000000000000ffffc0a8bc104cb840.mp4', 1, '跳舞', 'XM001', 'N', 'https://images.iqyjsnwv.com/2026/01/09/76adfe0b_123.jpg', 'https://images.iqyjsnwv.com/2026/01/09/19e92f77_51515.jpeg'); +INSERT INTO `ai_order` VALUES (1309, '0', '', '2026-01-09 14:56:30', '', '2026-01-09 14:56:30', NULL, '202601090a20e7f9', 36, '11', 10.00, 'https://images.iqyjsnwv.com/2026/01/09/28c9b079_0217679417903073a96cb89bb0639877068f7507e34a86a7d7ff2_0.jpeg', 1, '1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, hairless pussy, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)', 'ALL', 'N', 'https://images.iqyjsnwv.com/2026/01/09/2f427a9e_0f271de314dd9ef4c796465c2543495e_high.jpg', NULL); + +-- ---------------------------- +-- Table structure for ai_pay_setting +-- ---------------------------- +DROP TABLE IF EXISTS `ai_pay_setting`; +CREATE TABLE `ai_pay_setting` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `pay_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付方式', + `api_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付接口', + `gear_id` bigint NULL DEFAULT NULL COMMENT '挡位id', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'AI-支付设置-作废' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_pay_setting +-- ---------------------------- + +-- ---------------------------- +-- Table structure for ai_rebate_record +-- ---------------------------- +DROP TABLE IF EXISTS `ai_rebate_record`; +CREATE TABLE `ai_rebate_record` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `superior_id` bigint NULL DEFAULT NULL COMMENT '上级ID', + `subordinate_id` bigint NULL DEFAULT NULL COMMENT '下级ID', + `amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '返佣金额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '返佣记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_rebate_record +-- ---------------------------- +INSERT INTO `ai_rebate_record` VALUES (2, '0', '', '2025-12-17 20:06:56', '', '2025-12-17 12:06:56', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (3, '0', '', '2025-12-17 20:09:28', '', '2025-12-17 12:09:28', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (4, '0', '', '2025-12-17 20:10:10', '', '2025-12-17 12:10:09', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (5, '0', '', '2025-12-17 20:10:50', '', '2025-12-17 12:10:49', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (6, '0', '', '2025-12-17 20:13:13', '', '2025-12-17 12:13:12', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (7, '0', '', '2025-12-18 14:13:58', '', '2025-12-18 06:13:58', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (8, '0', '', '2025-12-18 14:14:50', '', '2025-12-18 06:14:49', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (9, '0', '', '2025-12-18 14:18:15', '', '2025-12-18 06:18:14', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (10, '0', '', '2025-12-18 14:19:53', '', '2025-12-18 06:19:53', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (13, '0', '', '2025-12-19 17:27:51', '', '2025-12-19 17:27:51', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (14, '0', '', '2025-12-19 17:30:24', '', '2025-12-19 17:30:23', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (15, '0', '', '2025-12-19 17:31:09', '', '2025-12-19 17:31:08', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (16, '0', '', '2025-12-22 10:09:47', '', '2025-12-22 10:09:46', NULL, 35, 36, 10.00); +INSERT INTO `ai_rebate_record` VALUES (17, '0', '', '2025-12-22 16:11:34', '', '2025-12-22 16:11:33', NULL, 30, 35, 10.00); +INSERT INTO `ai_rebate_record` VALUES (18, '0', '', '2025-12-22 16:11:50', '', '2025-12-22 16:11:49', NULL, 30, 35, 10.00); +INSERT INTO `ai_rebate_record` VALUES (19, '0', '', '2025-12-23 09:05:05', '', '2025-12-23 09:05:04', NULL, 35, 36, 1.00); +INSERT INTO `ai_rebate_record` VALUES (20, '0', '', '2025-12-24 15:04:07', '', '2025-12-24 15:04:06', NULL, 35, 36, 1.00); +INSERT INTO `ai_rebate_record` VALUES (21, '0', '', '2025-12-24 15:12:47', '', '2025-12-24 15:12:47', NULL, 30, 35, 1.12); +INSERT INTO `ai_rebate_record` VALUES (22, '0', '', '2025-12-25 13:50:03', '', '2025-12-25 13:50:02', NULL, 30, 35, 0.10); +INSERT INTO `ai_rebate_record` VALUES (23, '0', '', '2025-12-25 14:33:25', '', '2025-12-25 14:33:24', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (24, '0', '', '2025-12-26 11:10:00', '', '2025-12-26 11:10:00', NULL, 30, 35, 0.50); +INSERT INTO `ai_rebate_record` VALUES (25, '0', '', '2025-12-26 11:16:28', '', '2025-12-26 11:16:27', NULL, 30, 35, 0.50); +INSERT INTO `ai_rebate_record` VALUES (26, '0', '', '2025-12-29 11:37:35', '', '2025-12-29 11:37:34', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (27, '0', '', '2025-12-29 11:38:53', '', '2025-12-29 11:38:53', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (28, '0', '', '2025-12-29 11:41:29', '', '2025-12-29 11:41:29', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (29, '0', '', '2025-12-29 11:41:38', '', '2025-12-29 11:41:37', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (30, '0', '', '2025-12-29 11:41:46', '', '2025-12-29 11:41:45', NULL, 30, 35, 1.00); +INSERT INTO `ai_rebate_record` VALUES (31, '0', '', '2025-12-30 11:28:46', '', '2025-12-30 11:28:46', NULL, 35, 40, 1.00); +INSERT INTO `ai_rebate_record` VALUES (32, '0', '', '2025-12-30 11:28:51', '', '2025-12-30 11:28:51', NULL, 35, 40, 1.00); +INSERT INTO `ai_rebate_record` VALUES (33, '0', '', '2025-12-30 11:56:56', '', '2025-12-30 11:56:55', NULL, 35, 40, 1.00); +INSERT INTO `ai_rebate_record` VALUES (34, '0', '', '2025-12-30 11:58:33', '', '2025-12-30 11:58:32', NULL, 40, 41, 1.00); +INSERT INTO `ai_rebate_record` VALUES (35, '0', '', '2025-12-31 14:26:47', '', '2025-12-31 14:26:46', NULL, 43, 44, 1.00); +INSERT INTO `ai_rebate_record` VALUES (36, '0', '', '2025-12-31 14:27:17', '', '2025-12-31 14:27:16', NULL, 43, 44, 1.00); + +-- ---------------------------- +-- Table structure for ai_recharge +-- ---------------------------- +DROP TABLE IF EXISTS `ai_recharge`; +CREATE TABLE `ai_recharge` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `order_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值订单号', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `receive_wallet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转入钱包', + `payment_wallet` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '转账钱包', + `hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交易hash', + `credited_time` datetime NULL DEFAULT NULL COMMENT '到账时间', + `amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '充值金额', + `gear_id` bigint NULL DEFAULT NULL COMMENT '充值档位ID', + `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源', + `gear_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '档位金额', + `gift_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '到账金额', + `give_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '赠送金额', + `pay_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付方式', + `pay_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付链接', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 118 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_recharge +-- ---------------------------- +INSERT INTO `ai_recharge` VALUES (29, '0', '', '2025-12-08 16:02:59', '', '2025-12-08 08:02:59', NULL, '20251208kd612323ff', 20, NULL, NULL, NULL, NULL, 600.00, 46, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/kvJx5J0R'); +INSERT INTO `ai_recharge` VALUES (30, '0', '', '2025-12-08 17:34:36', '', '2025-12-08 09:34:36', NULL, '20251208kd478ba742', 16, NULL, NULL, NULL, NULL, 600.00, 46, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/NqGM0N2g'); +INSERT INTO `ai_recharge` VALUES (31, '0', '', '2025-12-09 14:16:17', '', '2025-12-09 06:16:17', NULL, '20251209kd80a1bfcb', 26, NULL, NULL, NULL, NULL, 600.00, 46, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/KvxMwP0g'); +INSERT INTO `ai_recharge` VALUES (32, '0', '', '2025-12-09 14:31:54', '', '2025-12-09 06:31:53', NULL, '20251209kda1a94bff', 25, NULL, NULL, NULL, NULL, 600.00, 46, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/9qneN5bR'); +INSERT INTO `ai_recharge` VALUES (33, '0', '', '2025-12-11 11:06:50', '', '2025-12-11 11:28:29', NULL, '20251211kd637d2666', 16, NULL, NULL, NULL, '2025-12-11 11:28:29', 600.00, 52, '', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/dvjn3nLv'); +INSERT INTO `ai_recharge` VALUES (34, '0', '', '2025-12-14 10:25:07', '', '2025-12-14 02:25:06', NULL, '20251214kdbadb780e', 33, NULL, NULL, NULL, NULL, 600.00, 52, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qn6rKnbq'); +INSERT INTO `ai_recharge` VALUES (35, '0', '', '2025-12-14 10:25:51', '', '2025-12-14 02:25:50', NULL, '20251214kd3b9e52f8', 33, NULL, NULL, NULL, NULL, 600.00, 52, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RpyJMw9q'); +INSERT INTO `ai_recharge` VALUES (36, '0', '', '2025-12-14 15:01:35', '', '2025-12-14 07:01:35', NULL, '20251214kdc3b4f5ae', 34, NULL, NULL, NULL, NULL, 600.00, 52, 'XM001', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qn6rLdzq'); +INSERT INTO `ai_recharge` VALUES (37, '0', '', '2025-12-15 19:40:11', '', '2025-12-15 19:40:25', NULL, '20251215kdfa9ea2be', 16, NULL, NULL, NULL, '2025-12-15 19:40:25', 6000.00, 54, '', 100.00, 100.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/q3wwayQq'); +INSERT INTO `ai_recharge` VALUES (38, '0', '', '2025-12-16 16:56:10', '', '2025-12-16 08:56:09', NULL, '20251216jsc9681778', 14, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (39, '0', '', '2025-12-16 22:43:18', '', '2025-12-16 22:43:29', NULL, '20251216kd2b9c1725', 16, NULL, NULL, NULL, '2025-12-16 22:43:29', 600.00, 52, '', 10.00, 10.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gQ260z6R'); +INSERT INTO `ai_recharge` VALUES (40, '0', '', '2025-12-17 11:17:39', '', '2025-12-17 03:17:38', NULL, '20251217js96cd7f61', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (41, '0', '', '2025-12-17 11:17:50', '', '2025-12-17 03:17:50', NULL, '20251217kd9a23a760', 16, NULL, NULL, NULL, NULL, 600.00, 55, '', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/vJp67pbR'); +INSERT INTO `ai_recharge` VALUES (42, '0', '', '2025-12-17 11:20:05', '', '2025-12-17 03:20:04', NULL, '20251217yzeb3e8736', 16, NULL, NULL, NULL, NULL, 100.00, 61, '', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2001130224561033216'); +INSERT INTO `ai_recharge` VALUES (43, '0', '', '2025-12-17 13:27:17', '', '2025-12-17 05:27:16', NULL, '20251217jsd9b99c06', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (44, '0', '', '2025-12-17 13:27:25', '', '2025-12-17 05:27:25', NULL, '20251217yzc2d08aef', 16, NULL, NULL, NULL, NULL, 100.00, 61, '', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2001162285342658560'); +INSERT INTO `ai_recharge` VALUES (45, '0', '', '2025-12-17 14:49:49', '', '2025-12-17 15:30:18', NULL, '20251217yzd14300bb', 16, NULL, NULL, NULL, '2025-12-17 15:30:18', 100.00, 61, '', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2001183021075664896'); +INSERT INTO `ai_recharge` VALUES (46, '0', '', '2025-12-17 15:42:30', '', '2025-12-17 15:44:02', NULL, '20251217yze625c7c5', 16, NULL, NULL, NULL, '2025-12-17 15:44:02', 100.00, 61, '', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2001196277429309440'); +INSERT INTO `ai_recharge` VALUES (47, '0', '', '2025-12-17 20:06:50', '', '2025-12-17 20:06:56', NULL, '20251217kd8b215359', 36, NULL, NULL, NULL, '2025-12-17 20:06:56', 6000.00, 57, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qWL26zrv'); +INSERT INTO `ai_recharge` VALUES (48, '0', '', '2025-12-17 20:09:26', '', '2025-12-17 20:09:28', NULL, '20251217kd63281c9d', 36, NULL, NULL, NULL, '2025-12-17 20:09:28', 6000.00, 64, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gkP0Yz1R'); +INSERT INTO `ai_recharge` VALUES (49, '0', '', '2025-12-17 20:10:05', '', '2025-12-17 20:10:10', NULL, '20251217kd70842d90', 36, NULL, NULL, NULL, '2025-12-17 20:10:10', 6000.00, 64, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/q2w6J4Zv'); +INSERT INTO `ai_recharge` VALUES (50, '0', '', '2025-12-17 20:10:45', '', '2025-12-17 20:10:50', NULL, '20251217kdf77be507', 36, NULL, NULL, NULL, '2025-12-17 20:10:50', 6000.00, 64, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qPP63wbq'); +INSERT INTO `ai_recharge` VALUES (51, '0', '', '2025-12-17 20:13:08', '', '2025-12-17 20:13:13', NULL, '20251217kd69fbebc0', 36, NULL, NULL, NULL, '2025-12-17 20:13:13', 6000.00, 70, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qA7QNn3g'); +INSERT INTO `ai_recharge` VALUES (52, '0', '', '2025-12-18 14:13:56', '', '2025-12-18 14:13:58', NULL, '20251218kda59a6412', 36, NULL, NULL, NULL, '2025-12-18 14:13:58', 6000.00, 70, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qQ2x8KKv'); +INSERT INTO `ai_recharge` VALUES (53, '0', '', '2025-12-18 14:14:48', '', '2025-12-18 14:14:50', NULL, '20251218kde07c19f7', 36, NULL, NULL, NULL, '2025-12-18 14:14:50', 6000.00, 73, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/q3wQyawq'); +INSERT INTO `ai_recharge` VALUES (54, '0', '', '2025-12-18 14:18:11', '', '2025-12-18 14:18:15', NULL, '20251218kddbcb7795', 36, NULL, NULL, NULL, '2025-12-18 14:18:15', 6000.00, 76, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qPP9jNLq'); +INSERT INTO `ai_recharge` VALUES (55, '0', '', '2025-12-18 14:19:50', '', '2025-12-18 14:19:53', NULL, '20251218kd9590ef34', 36, NULL, NULL, NULL, '2025-12-18 14:19:53', 6000.00, 76, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RwGyD2lR'); +INSERT INTO `ai_recharge` VALUES (56, '0', '', '2025-12-18 20:13:36', '', '2025-12-18 20:13:36', NULL, '20251218kd2285dd8c', 16, NULL, NULL, NULL, NULL, 600.00, 74, '', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/v14wWZnq'); +INSERT INTO `ai_recharge` VALUES (57, '0', '', '2025-12-19 17:27:49', '', '2025-12-19 17:27:51', NULL, '20251219kd23b65bbe', 36, NULL, NULL, NULL, '2025-12-19 17:27:51', 6000.00, 76, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RjVebb8R'); +INSERT INTO `ai_recharge` VALUES (58, '0', '', '2025-12-19 17:30:20', '', '2025-12-19 17:30:24', NULL, '20251219kd08f5013b', 36, NULL, NULL, NULL, '2025-12-19 17:30:24', 6000.00, 85, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/R7GjEDxR'); +INSERT INTO `ai_recharge` VALUES (59, '0', '', '2025-12-19 17:31:07', '', '2025-12-19 17:31:09', NULL, '20251219kd2103e83f', 36, NULL, NULL, NULL, '2025-12-19 17:31:09', 6000.00, 85, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/vZxMJdXR'); +INSERT INTO `ai_recharge` VALUES (60, '0', '', '2025-12-19 22:05:18', '', '2025-12-19 22:05:17', NULL, '20251219kd89940478', 38, NULL, NULL, NULL, NULL, 600.00, 89, 'XM001', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/vDlEl19v'); +INSERT INTO `ai_recharge` VALUES (61, '0', '', '2025-12-19 22:05:27', '', '2025-12-19 22:05:26', NULL, '20251219js7a3b6857', 38, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (62, '0', '', '2025-12-19 22:05:35', '', '2025-12-19 22:05:34', NULL, '20251219yzfe6de663', 38, NULL, NULL, NULL, NULL, 100.00, 61, 'XM001', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2002017453739216896'); +INSERT INTO `ai_recharge` VALUES (63, '0', '', '2025-12-19 22:08:42', '', '2025-12-19 22:08:42', NULL, '20251219js8dbfa3f0', 38, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (64, '0', '', '2025-12-19 22:13:53', '', '2025-12-19 22:13:52', NULL, '20251219js699a5cc8', 38, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (65, '0', '', '2025-12-19 22:14:22', '', '2025-12-19 22:14:22', NULL, '20251219jsa9e7c4d6', 38, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (66, '0', '', '2025-12-19 22:38:15', '', '2025-12-19 22:38:15', NULL, '20251219jsf6a9c17e', 38, NULL, NULL, NULL, NULL, 10080.00, NULL, 'XM001', NULL, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (67, '0', '', '2025-12-22 10:09:40', '', '2025-12-22 10:09:46', NULL, '20251222kdcde96fe0', 36, NULL, NULL, NULL, '2025-12-22 10:09:46', 6000.00, 97, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qXP3m02q'); +INSERT INTO `ai_recharge` VALUES (68, '0', '', '2025-12-22 16:04:14', '', '2025-12-22 16:04:13', NULL, '20251222yz0f009cc8', 35, NULL, NULL, NULL, NULL, 100.00, 61, 'ALL', 100.00, 110.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2003013687002140672'); +INSERT INTO `ai_recharge` VALUES (69, '0', '', '2025-12-22 16:11:31', '', '2025-12-22 16:11:34', NULL, '20251222kd29772a81', 35, NULL, NULL, NULL, '2025-12-22 16:11:34', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/Rr616r2R'); +INSERT INTO `ai_recharge` VALUES (70, '0', '', '2025-12-22 16:11:48', '', '2025-12-22 16:11:50', NULL, '20251222kd06135726', 35, NULL, NULL, NULL, '2025-12-22 16:11:50', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/vbzQzWdv'); +INSERT INTO `ai_recharge` VALUES (71, '0', '', '2025-12-23 09:05:02', '', '2025-12-23 09:05:05', NULL, '20251223kd4a532374', 36, NULL, NULL, NULL, '2025-12-23 09:05:05', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RMPb51Vg'); +INSERT INTO `ai_recharge` VALUES (72, '0', '', '2025-12-24 15:04:02', '', '2025-12-24 15:04:07', NULL, '20251224kdf3bf1c0f', 36, NULL, NULL, NULL, '2025-12-24 15:04:07', 6000.00, 103, 'ALL', 110.00, 5.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/g0xVpwmg'); +INSERT INTO `ai_recharge` VALUES (73, '0', '', '2025-12-24 15:12:36', '', '2025-12-24 15:12:36', NULL, '20251224js3fc9a2af', 35, NULL, NULL, NULL, NULL, 10080.00, NULL, 'ALL', 112.00, 1.00, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (74, '0', '', '2025-12-24 15:12:45', '', '2025-12-24 15:12:47', NULL, '20251224kde212b036', 35, NULL, NULL, NULL, '2025-12-24 15:12:47', 6720.00, 59, 'ALL', 112.00, 1.00, NULL, 'VISA / Master', 'https://cash.shopcounter.shop/gcash/qn6dAy2q'); +INSERT INTO `ai_recharge` VALUES (75, '0', '', '2025-12-25 13:50:01', '', '2025-12-25 13:50:02', NULL, '20251225kd8ef29bd6', 35, NULL, NULL, NULL, '2025-12-25 13:50:02', 600.00, 101, 'ALL', 11.00, 1.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qWL8A2wv'); +INSERT INTO `ai_recharge` VALUES (76, '0', '', '2025-12-25 14:33:20', '', '2025-12-25 14:33:25', NULL, '20251225yz23eee74d', 35, NULL, NULL, NULL, '2025-12-25 14:33:25', 100.00, 61, 'ALL', 110.00, 10.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2004077978652381184'); +INSERT INTO `ai_recharge` VALUES (77, '0', '', '2025-12-26 08:36:47', '', '2025-12-26 08:36:55', NULL, '20251226yzd4bb33d9', 16, NULL, NULL, NULL, '2025-12-26 08:36:55', 100.00, 61, '', 110.00, 10.00, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2004350636367417344'); +INSERT INTO `ai_recharge` VALUES (78, '0', '', '2025-12-26 08:53:42', '', '2025-12-26 08:54:01', NULL, '20251226yz5a6faf88', 16, NULL, NULL, NULL, '2025-12-26 08:54:01', 100.00, 61, '', 100.00, 110.00, 10.00, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2004354894085099520'); +INSERT INTO `ai_recharge` VALUES (79, '0', '', '2025-12-26 11:09:58', '', '2025-12-26 11:10:00', NULL, '20251226kdafb346a1', 35, NULL, NULL, NULL, '2025-12-26 11:10:00', 3000.00, 102, 'ALL', 50.00, 51.00, 1.00, 'PHP', 'https://cash.shopcounter.shop/gcash/R7Gz7MKR'); +INSERT INTO `ai_recharge` VALUES (80, '0', '', '2025-12-26 11:16:26', '', '2025-12-26 11:16:28', NULL, '20251226kded12e9e9', 35, NULL, NULL, NULL, '2025-12-26 11:16:28', 3000.00, 102, 'ALL', 50.00, 51.00, 1.00, 'PHP', 'https://cash.shopcounter.shop/gcash/vMPy1GXq'); +INSERT INTO `ai_recharge` VALUES (81, '0', '', '2025-12-29 11:37:28', '', '2025-12-29 11:37:35', NULL, '20251229kd318bbf4b', 35, NULL, NULL, NULL, '2025-12-29 11:37:35', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qzyaLYQR'); +INSERT INTO `ai_recharge` VALUES (82, '0', '', '2025-12-29 11:38:28', '', '2025-12-29 11:38:53', NULL, '20251229kddacf6cd1', 35, NULL, NULL, NULL, '2025-12-29 11:38:53', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/g3wdQkGg'); +INSERT INTO `ai_recharge` VALUES (83, '0', '', '2025-12-29 11:38:53', '', '2025-12-29 11:38:53', NULL, '20251229kd5728ac1c', 35, NULL, NULL, NULL, NULL, 6000.00, 103, 'ALL', 100.00, NULL, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gG15Ea2q'); +INSERT INTO `ai_recharge` VALUES (84, '0', '', '2025-12-29 11:41:27', '', '2025-12-29 11:41:29', NULL, '20251229kd20bfa1f3', 35, NULL, NULL, NULL, '2025-12-29 11:41:29', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/q9bleYDv'); +INSERT INTO `ai_recharge` VALUES (85, '0', '', '2025-12-29 11:41:36', '', '2025-12-29 11:41:38', NULL, '20251229kdd547f60c', 35, NULL, NULL, NULL, '2025-12-29 11:41:38', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gN94Axyv'); +INSERT INTO `ai_recharge` VALUES (86, '0', '', '2025-12-29 11:41:44', '', '2025-12-29 11:41:46', NULL, '20251229kd160dac89', 35, NULL, NULL, NULL, '2025-12-29 11:41:46', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/Ry6VQWnq'); +INSERT INTO `ai_recharge` VALUES (87, '0', '', '2025-12-29 12:11:41', '', '2025-12-29 12:11:44', NULL, '20251229kd6dd0e60c', 16, NULL, NULL, NULL, '2025-12-29 12:11:44', 600.00, 101, '', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qA7Xk0zg'); +INSERT INTO `ai_recharge` VALUES (88, '0', '', '2025-12-29 16:31:52', '', '2025-12-29 16:32:06', NULL, '20251229kd027d1f46', 16, NULL, NULL, NULL, '2025-12-29 16:32:05', 600.00, 101, '', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gYLbP1Dv'); +INSERT INTO `ai_recharge` VALUES (89, '0', '', '2025-12-29 16:32:59', '', '2025-12-29 16:32:59', NULL, '20251229jsa7243c4a', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', 112.00, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (90, '0', '', '2025-12-29 16:33:51', '', '2025-12-29 16:33:54', NULL, '20251229yz55e1d9d7', 16, NULL, NULL, NULL, '2025-12-29 16:33:54', 100.00, 61, '', 100.00, 110.00, 10.00, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2005557857512198144'); +INSERT INTO `ai_recharge` VALUES (91, '0', '', '2025-12-30 11:28:45', '', '2025-12-30 11:28:46', NULL, '20251230kd9f07d61e', 40, NULL, NULL, NULL, '2025-12-30 11:28:46', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/R7GmZm7R'); +INSERT INTO `ai_recharge` VALUES (92, '0', '', '2025-12-30 11:28:50', '', '2025-12-30 11:28:51', NULL, '20251230kd66942cb8', 40, NULL, NULL, NULL, '2025-12-30 11:28:51', 6000.00, 103, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gQ20X0BR'); +INSERT INTO `ai_recharge` VALUES (93, '0', '', '2025-12-30 11:43:57', '', '2025-12-30 11:44:05', NULL, '20251230kd7470c6af', 16, NULL, NULL, NULL, '2025-12-30 11:44:05', 600.00, 101, '', 10.00, 11.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RZx7A31v'); +INSERT INTO `ai_recharge` VALUES (94, '0', '', '2025-12-30 11:56:55', '', '2025-12-30 11:56:56', NULL, '20251230kd81678b39', 40, NULL, NULL, NULL, '2025-12-30 11:56:56', 6000.00, 106, 'ALL', 100.00, 110.00, 5.00, 'PHP', 'https://cash.shopcounter.shop/gcash/gV8deAlq'); +INSERT INTO `ai_recharge` VALUES (95, '0', '', '2025-12-30 11:58:31', '', '2025-12-30 11:58:33', NULL, '20251230kda17de8ed', 41, NULL, NULL, NULL, '2025-12-30 11:58:33', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/v7GmBzzv'); +INSERT INTO `ai_recharge` VALUES (96, '0', '', '2025-12-30 13:42:25', '', '2025-12-30 13:42:27', NULL, '20251230kdd2b7cedb', 42, NULL, NULL, NULL, '2025-12-30 13:42:27', 6000.00, 109, 'ALL', 100.00, 110.00, 5.00, 'PHP', 'https://cash.shopcounter.shop/gcash/g9bjBYbR'); +INSERT INTO `ai_recharge` VALUES (97, '0', '', '2025-12-30 13:42:39', '', '2025-12-30 13:42:42', NULL, '20251230kd2abbbd73', 42, NULL, NULL, NULL, '2025-12-30 13:42:42', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qB60krkq'); +INSERT INTO `ai_recharge` VALUES (98, '0', '', '2025-12-31 14:20:29', '', '2025-12-31 14:20:30', NULL, '20251231kdb4860b83', 43, NULL, NULL, NULL, '2025-12-31 14:20:30', 6000.00, 109, 'ALL', 100.00, 110.00, 5.00, 'PHP', 'https://cash.shopcounter.shop/gcash/qzyJJAlR'); +INSERT INTO `ai_recharge` VALUES (99, '0', '', '2025-12-31 14:21:20', '', '2025-12-31 14:21:22', NULL, '20251231kdec3bc7ca', 43, NULL, NULL, NULL, '2025-12-31 14:21:22', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/g0x8863g'); +INSERT INTO `ai_recharge` VALUES (100, '0', '', '2025-12-31 14:23:54', '', '2025-12-31 14:23:56', NULL, '20251231kdd03799a8', 43, NULL, NULL, NULL, '2025-12-31 14:23:56', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gB6x483g'); +INSERT INTO `ai_recharge` VALUES (101, '0', '', '2025-12-31 14:23:59', '', '2025-12-31 14:24:01', NULL, '20251231kd6dff5077', 43, NULL, NULL, NULL, '2025-12-31 14:24:01', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/R7GneAjR'); +INSERT INTO `ai_recharge` VALUES (102, '0', '', '2025-12-31 14:24:04', '', '2025-12-31 14:24:05', NULL, '20251231kd02866e75', 43, NULL, NULL, NULL, '2025-12-31 14:24:05', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/gG1NKeJq'); +INSERT INTO `ai_recharge` VALUES (103, '0', '', '2025-12-31 14:24:08', '', '2025-12-31 14:24:10', NULL, '20251231kd110b32f2', 43, NULL, NULL, NULL, '2025-12-31 14:24:10', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/veQweBPv'); +INSERT INTO `ai_recharge` VALUES (104, '0', '', '2025-12-31 14:24:13', '', '2025-12-31 14:24:14', NULL, '20251231kdf6b123e0', 43, NULL, NULL, NULL, '2025-12-31 14:24:14', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/q3wXbmeq'); +INSERT INTO `ai_recharge` VALUES (105, '0', '', '2025-12-31 14:24:16', '', '2025-12-31 14:24:18', NULL, '20251231kd7635dcec', 43, NULL, NULL, NULL, '2025-12-31 14:24:18', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qA76MQGg'); +INSERT INTO `ai_recharge` VALUES (106, '0', '', '2025-12-31 14:24:20', '', '2025-12-31 14:24:21', NULL, '20251231kd13893825', 43, NULL, NULL, NULL, '2025-12-31 14:24:21', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/RMPlp2Zg'); +INSERT INTO `ai_recharge` VALUES (107, '0', '', '2025-12-31 14:24:24', '', '2025-12-31 14:24:25', NULL, '20251231kdf179abd8', 43, NULL, NULL, NULL, '2025-12-31 14:24:25', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qn6w93lq'); +INSERT INTO `ai_recharge` VALUES (108, '0', '', '2025-12-31 14:26:45', '', '2025-12-31 14:26:47', NULL, '20251231yz9ec7e8e0', 44, NULL, NULL, NULL, '2025-12-31 14:26:47', 100.00, 61, 'ALL', 100.00, 110.00, 10.00, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2006250648370286592'); +INSERT INTO `ai_recharge` VALUES (109, '0', '', '2025-12-31 14:27:15', '', '2025-12-31 14:27:17', NULL, '20251231kd2c7d7f15', 44, NULL, NULL, NULL, '2025-12-31 14:27:17', 6000.00, 109, 'ALL', 100.00, 110.00, NULL, 'PHP', 'https://cash.shopcounter.shop/gcash/qA76M2Wg'); +INSERT INTO `ai_recharge` VALUES (110, '0', '', '2026-01-06 10:54:00', '', '2026-01-06 10:53:59', NULL, '20260106jsdbe8cb39', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', 112.00, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (111, '0', '', '2026-01-06 10:54:12', '', '2026-01-06 10:54:24', NULL, '20260106yzb5e59e12', 16, NULL, NULL, NULL, '2026-01-06 10:54:24', 100.00, 61, '', 100.00, 110.00, 10.00, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2008371484984217600'); +INSERT INTO `ai_recharge` VALUES (112, '0', '', '2026-01-06 10:54:37', '', '2026-01-06 10:54:37', NULL, '20260106js3c118368', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', 112.00, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (113, '0', '', '2026-01-06 10:54:46', '', '2026-01-06 10:54:53', NULL, '20260106yz1eb8de3b', 16, NULL, NULL, NULL, '2026-01-06 10:54:53', 100.00, 61, '', 100.00, 110.00, 10.00, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2008371630321045504'); +INSERT INTO `ai_recharge` VALUES (114, '0', '', '2026-01-07 15:28:42', '', '2026-01-07 15:28:41', NULL, '20260107js68def7d0', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', 112.00, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (115, '0', '', '2026-01-07 16:13:27', '', '2026-01-07 16:13:27', NULL, '20260107jsb078324b', 16, NULL, NULL, NULL, NULL, 10080.00, NULL, '', 112.00, NULL, NULL, NULL, NULL); +INSERT INTO `ai_recharge` VALUES (116, '0', '', '2026-01-07 16:13:40', '', '2026-01-07 16:13:40', NULL, '20260107yzbf77847e', 16, NULL, NULL, NULL, NULL, 100.00, 61, '', 100.00, NULL, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2008814269877063680'); +INSERT INTO `ai_recharge` VALUES (117, '0', '', '2026-01-07 16:13:49', '', '2026-01-07 16:13:48', NULL, '20260107yzae449327', 16, NULL, NULL, NULL, NULL, 100.00, 61, '', 100.00, NULL, NULL, 'VISA / Master / Amex', 'https://openapi.nanopaying.com/cashiertz/?orderNum=PUS2008814308477243392'); + +-- ---------------------------- +-- Table structure for ai_recharge_gift +-- ---------------------------- +DROP TABLE IF EXISTS `ai_recharge_gift`; +CREATE TABLE `ai_recharge_gift` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `is_frist_recharge` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否首充活动:N-否 Y-是', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + `type` tinyint NULL DEFAULT NULL COMMENT '活动类型:0-永久 1-周期', + `start_time` datetime NULL DEFAULT NULL COMMENT '活动开始时间', + `end_time` datetime NULL DEFAULT NULL COMMENT '活动结束时间', + `pay_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付方式', + `api_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付接口', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值活动' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_recharge_gift +-- ---------------------------- +INSERT INTO `ai_recharge_gift` VALUES (1, '0', 'admin', '2025-11-20 23:24:46', 'admin', '2025-11-25 11:27:56', '', 'N', 1, 1, '2025-11-20 23:24:18', '2025-11-27 23:24:23', NULL, NULL); +INSERT INTO `ai_recharge_gift` VALUES (3, '0', 'admin', '2025-11-20 23:36:31', 'admin', '2025-12-17 11:18:40', '', 'N', 0, 0, NULL, NULL, 'VISA / Master', '/api/pay/jinsha-pay'); +INSERT INTO `ai_recharge_gift` VALUES (4, '0', 'admin', '2025-11-27 15:59:13', 'admin', '2025-12-30 11:57:06', NULL, 'Y', 0, 1, '2025-12-09 00:00:00', '2025-12-31 17:31:00', 'PHP', '/api/pay/kada-pay'); +INSERT INTO `ai_recharge_gift` VALUES (5, '0', 'admin', '2025-12-17 11:19:01', 'admin', '2025-12-17 11:19:25', NULL, 'N', 0, 0, NULL, NULL, 'VISA / Master / Amex', '/api/pay/yuzhou-pay'); + +-- ---------------------------- +-- Table structure for ai_recharge_gift_gear +-- ---------------------------- +DROP TABLE IF EXISTS `ai_recharge_gift_gear`; +CREATE TABLE `ai_recharge_gift_gear` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `recharge_id` bigint NULL DEFAULT NULL COMMENT '充值赠送活动ID', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档位说明', + `recharge_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '充值金额', + `gift_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '赠送金额', + `give_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '额外赠送金额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 110 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值活动档位配置' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_recharge_gift_gear +-- ---------------------------- +INSERT INTO `ai_recharge_gift_gear` VALUES (6, '0', '', '2025-11-25 11:27:55', '', '2025-11-25 11:27:55', NULL, 1, '充100元赠送110元', 100.00, 110.00, NULL); +INSERT INTO `ai_recharge_gift_gear` VALUES (7, '0', '', '2025-11-25 11:27:55', '', '2025-11-25 11:27:55', NULL, 1, '充200元赠送230元', 200.00, 230.00, NULL); +INSERT INTO `ai_recharge_gift_gear` VALUES (59, '0', '', '2025-12-17 03:18:39', '', '2025-12-17 03:18:39', NULL, 3, '', 112.00, 112.00, 1.00); +INSERT INTO `ai_recharge_gift_gear` VALUES (61, '0', '', '2025-12-17 03:19:25', '', '2025-12-17 03:19:25', NULL, 5, NULL, 100.00, 110.00, 10.00); +INSERT INTO `ai_recharge_gift_gear` VALUES (107, '0', '', '2025-12-30 11:57:06', '', '2025-12-30 11:57:06', NULL, 4, '', 10.00, 11.00, 1.00); +INSERT INTO `ai_recharge_gift_gear` VALUES (108, '0', '', '2025-12-30 11:57:06', '', '2025-12-30 11:57:06', NULL, 4, NULL, 50.00, 51.00, 1.00); +INSERT INTO `ai_recharge_gift_gear` VALUES (109, '0', '', '2025-12-30 11:57:06', '', '2025-12-30 11:57:06', NULL, 4, NULL, 100.00, 110.00, 5.00); + +-- ---------------------------- +-- Table structure for ai_recharge_gift_record +-- ---------------------------- +DROP TABLE IF EXISTS `ai_recharge_gift_record`; +CREATE TABLE `ai_recharge_gift_record` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `order_num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值订单号', + `recharge_gear_title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '档位说明', + `gear_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '档位金额', + `gift_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '赠送金额', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '充值赠送记录-作废' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_recharge_gift_record +-- ---------------------------- +INSERT INTO `ai_recharge_gift_record` VALUES (3, '0', '', '2025-12-17 15:30:19', '', '2025-12-17 07:30:18', NULL, 16, '20251217yzd14300bb', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (4, '0', '', '2025-12-17 15:44:02', '', '2025-12-17 07:44:01', NULL, 16, '20251217yze625c7c5', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (5, '0', '', '2025-12-17 20:09:28', '', '2025-12-17 12:09:28', NULL, 36, '20251217kd63281c9d', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (6, '0', '', '2025-12-17 20:10:10', '', '2025-12-17 12:10:09', NULL, 36, '20251217kd70842d90', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (7, '0', '', '2025-12-17 20:10:50', '', '2025-12-17 12:10:49', NULL, 36, '20251217kdf77be507', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (8, '0', '', '2025-12-18 14:14:50', '', '2025-12-18 06:14:49', NULL, 36, '20251218kde07c19f7', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (9, '0', '', '2025-12-18 14:18:15', '', '2025-12-18 06:18:14', NULL, 36, '20251218kddbcb7795', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (10, '0', '', '2025-12-18 14:19:53', '', '2025-12-18 06:19:53', NULL, 36, '20251218kd9590ef34', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (11, '0', '', '2025-12-19 17:30:24', '', '2025-12-19 17:30:23', NULL, 36, '20251219kd08f5013b', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (12, '0', '', '2025-12-22 16:11:34', '', '2025-12-22 16:11:33', NULL, 35, '20251222kd29772a81', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (13, '0', '', '2025-12-22 16:11:50', '', '2025-12-22 16:11:49', NULL, 35, '20251222kd06135726', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (14, '0', '', '2025-12-24 15:12:47', '', '2025-12-24 15:12:47', NULL, 35, '20251224kde212b036', '', 112.00, 1.00); +INSERT INTO `ai_recharge_gift_record` VALUES (15, '0', '', '2025-12-25 14:33:25', '', '2025-12-25 14:33:24', NULL, 35, '20251225yz23eee74d', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (16, '0', '', '2025-12-26 08:36:55', '', '2025-12-26 08:36:55', NULL, 16, '20251226yzd4bb33d9', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (17, '0', '', '2025-12-26 08:54:01', '', '2025-12-26 08:54:01', NULL, 16, '20251226yz5a6faf88', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (18, '0', '', '2025-12-29 16:33:54', '', '2025-12-29 16:33:53', NULL, 16, '20251229yz55e1d9d7', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (19, '0', '', '2025-12-30 11:56:56', '', '2025-12-30 11:56:55', NULL, 40, '20251230kd81678b39', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (20, '0', '', '2025-12-30 13:42:27', '', '2025-12-30 13:42:27', NULL, 42, '20251230kdd2b7cedb', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (21, '0', '', '2025-12-31 14:20:30', '', '2025-12-31 14:20:30', NULL, 43, '20251231kdb4860b83', NULL, 100.00, 5.00); +INSERT INTO `ai_recharge_gift_record` VALUES (22, '0', '', '2025-12-31 14:26:47', '', '2025-12-31 14:26:46', NULL, 44, '20251231yz9ec7e8e0', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (23, '0', '', '2026-01-06 10:54:24', '', '2026-01-06 10:54:24', NULL, 16, '20260106yzb5e59e12', NULL, 100.00, 10.00); +INSERT INTO `ai_recharge_gift_record` VALUES (24, '0', '', '2026-01-06 10:54:53', '', '2026-01-06 10:54:52', NULL, 16, '20260106yz1eb8de3b', NULL, 100.00, 10.00); + +-- ---------------------------- +-- Table structure for ai_sample_amount +-- ---------------------------- +DROP TABLE IF EXISTS `ai_sample_amount`; +CREATE TABLE `ai_sample_amount` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '体验金额', + `duration` int NULL DEFAULT NULL COMMENT '体验时长(h)', + `type` tinyint NULL DEFAULT NULL COMMENT '活动类型:0-永久 1-周期', + `start_time` datetime NULL DEFAULT NULL COMMENT '活动开始时间', + `end_time` datetime NULL DEFAULT NULL COMMENT '活动结束时间', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '体验金活动管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_sample_amount +-- ---------------------------- +INSERT INTO `ai_sample_amount` VALUES (1, '0', 'admin', '2025-11-14 22:32:34', 'admin', '2025-11-28 13:27:48', NULL, 11.00, 11, 1, '2025-11-14 00:00:00', '2025-11-18 00:00:00', 1); +INSERT INTO `ai_sample_amount` VALUES (2, '0', 'admin', '2025-11-14 22:37:01', 'admin', '2025-12-09 13:44:11', '', 10.00, 1, 0, NULL, NULL, 1); + +-- ---------------------------- +-- Table structure for ai_sample_amount_record +-- ---------------------------- +DROP TABLE IF EXISTS `ai_sample_amount_record`; +CREATE TABLE `ai_sample_amount_record` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `sample_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '体验金额', + `recycle_time` datetime NULL DEFAULT NULL COMMENT '回收时间', + `status` tinyint NULL DEFAULT 0 COMMENT '回收状态:0-已发放 1-已回收', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '体验金领取记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_sample_amount_record +-- ---------------------------- +INSERT INTO `ai_sample_amount_record` VALUES (1, '0', 'admin', '2025-11-14 22:54:17', '', '2025-11-14 22:54:13', NULL, 1, 12.00, '2025-11-15 22:54:13', 0); +INSERT INTO `ai_sample_amount_record` VALUES (2, '0', '', '2025-11-25 22:43:11', '', '2025-11-25 22:43:11', NULL, 12, 11.00, '2025-12-05 04:43:11', 0); +INSERT INTO `ai_sample_amount_record` VALUES (3, '0', '', '2025-11-28 11:33:59', '', '2025-11-28 03:33:58', NULL, 13, 11.00, '2025-12-07 17:33:59', 0); +INSERT INTO `ai_sample_amount_record` VALUES (4, '0', '', '2025-11-28 11:42:33', '', '2025-11-28 03:42:32', NULL, 14, 11.00, '2025-12-07 17:42:33', 0); +INSERT INTO `ai_sample_amount_record` VALUES (5, '0', '', '2025-12-07 14:52:38', '', '2025-12-07 06:52:38', NULL, 15, 10.00, '2025-12-07 14:52:38', 0); +INSERT INTO `ai_sample_amount_record` VALUES (6, '0', '', '2025-12-07 17:15:46', '', '2025-12-07 09:15:45', NULL, 16, 10.00, '2025-12-07 17:15:46', 0); +INSERT INTO `ai_sample_amount_record` VALUES (7, '0', '', '2025-12-07 17:28:57', '', '2025-12-07 09:28:57', NULL, 17, 10.00, '2025-12-07 17:28:57', 0); +INSERT INTO `ai_sample_amount_record` VALUES (8, '0', '', '2025-12-08 12:53:23', '', '2025-12-08 04:53:23', NULL, 18, 10.00, '2025-12-08 12:53:23', 0); +INSERT INTO `ai_sample_amount_record` VALUES (9, '0', '', '2025-12-08 15:48:00', '', '2025-12-08 07:47:59', NULL, 19, 10.00, '2025-12-08 15:48:00', 0); +INSERT INTO `ai_sample_amount_record` VALUES (10, '0', '', '2025-12-08 15:50:04', '', '2025-12-08 07:50:03', NULL, 20, 10.00, '2025-12-08 15:50:04', 0); +INSERT INTO `ai_sample_amount_record` VALUES (11, '0', '', '2025-12-08 17:20:32', '', '2025-12-08 09:20:31', NULL, 21, 10.00, '2025-12-08 17:20:32', 0); +INSERT INTO `ai_sample_amount_record` VALUES (12, '0', '', '2025-12-08 19:45:16', '', '2025-12-08 11:45:15', NULL, 22, 10.00, '2025-12-08 19:45:16', 0); +INSERT INTO `ai_sample_amount_record` VALUES (13, '0', '', '2025-12-09 10:33:05', '', '2025-12-09 02:33:05', NULL, 23, 10.00, '2025-12-09 10:33:05', 0); +INSERT INTO `ai_sample_amount_record` VALUES (14, '0', '', '2025-12-09 13:42:33', '', '2025-12-09 05:42:32', NULL, 24, 10.00, '2025-12-09 13:42:33', 0); +INSERT INTO `ai_sample_amount_record` VALUES (15, '0', '', '2025-12-09 13:46:14', '', '2025-12-09 05:46:13', NULL, 25, 10.00, '2025-12-09 13:57:14', 0); +INSERT INTO `ai_sample_amount_record` VALUES (16, '0', '', '2025-12-09 14:13:17', '', '2025-12-09 06:13:17', NULL, 26, 10.00, '2025-12-09 15:13:17', 0); +INSERT INTO `ai_sample_amount_record` VALUES (17, '0', '', '2025-12-09 14:57:14', '', '2025-12-09 06:57:14', NULL, 27, 10.00, '2025-12-09 15:57:14', 0); +INSERT INTO `ai_sample_amount_record` VALUES (18, '0', '', '2025-12-09 15:45:54', '', '2025-12-09 07:45:54', NULL, 28, 10.00, '2025-12-09 16:45:54', 0); +INSERT INTO `ai_sample_amount_record` VALUES (19, '0', '', '2025-12-11 10:48:59', '', '2025-12-11 11:48:59', NULL, 29, 10.00, '2025-12-11 11:48:59', 1); +INSERT INTO `ai_sample_amount_record` VALUES (20, '0', '', '2025-12-11 10:50:31', '', '2025-12-11 11:50:31', NULL, 30, 10.00, '2025-12-11 11:50:31', 1); +INSERT INTO `ai_sample_amount_record` VALUES (21, '0', '', '2025-12-14 01:35:44', '', '2025-12-14 02:35:44', NULL, 31, 10.00, '2025-12-14 02:35:44', 1); +INSERT INTO `ai_sample_amount_record` VALUES (22, '0', '', '2025-12-14 01:58:22', '', '2025-12-14 02:58:22', NULL, 32, 10.00, '2025-12-14 02:58:22', 1); +INSERT INTO `ai_sample_amount_record` VALUES (23, '0', '', '2025-12-14 10:22:49', '', '2025-12-14 11:22:49', NULL, 33, 10.00, '2025-12-14 11:22:49', 1); +INSERT INTO `ai_sample_amount_record` VALUES (24, '0', '', '2025-12-14 14:52:58', '', '2025-12-14 15:52:57', NULL, 34, 10.00, '2025-12-14 15:52:58', 1); +INSERT INTO `ai_sample_amount_record` VALUES (25, '0', '', '2025-12-15 18:05:01', '', '2025-12-15 19:05:00', NULL, 35, 10.00, '2025-12-15 19:05:01', 1); +INSERT INTO `ai_sample_amount_record` VALUES (26, '0', '', '2025-12-15 18:07:56', '', '2025-12-15 19:07:56', NULL, 36, 10.00, '2025-12-15 19:07:56', 1); +INSERT INTO `ai_sample_amount_record` VALUES (27, '0', '', '2025-12-16 14:07:46', '', '2025-12-16 15:07:46', NULL, 37, 10.00, '2025-12-16 15:07:46', 1); +INSERT INTO `ai_sample_amount_record` VALUES (28, '0', '', '2025-12-19 22:04:19', '', '2025-12-19 23:04:18', NULL, 38, 10.00, '2025-12-19 23:04:19', 1); +INSERT INTO `ai_sample_amount_record` VALUES (29, '0', '', '2025-12-27 16:48:23', '', '2025-12-27 17:48:23', NULL, 39, 10.00, '2025-12-27 17:48:23', 1); +INSERT INTO `ai_sample_amount_record` VALUES (30, '0', '', '2025-12-30 11:28:25', '', '2025-12-30 12:28:25', NULL, 40, 10.00, '2025-12-30 12:28:25', 1); +INSERT INTO `ai_sample_amount_record` VALUES (31, '0', '', '2025-12-30 11:58:14', '', '2025-12-30 12:58:13', NULL, 41, 10.00, '2025-12-30 12:58:14', 1); +INSERT INTO `ai_sample_amount_record` VALUES (32, '0', '', '2025-12-30 13:42:03', '', '2025-12-30 14:42:02', NULL, 42, 10.00, '2025-12-30 14:42:03', 1); +INSERT INTO `ai_sample_amount_record` VALUES (33, '0', '', '2025-12-31 14:20:06', '', '2025-12-31 15:20:06', NULL, 43, 10.00, '2025-12-31 15:20:06', 1); + +-- ---------------------------- +-- Table structure for ai_statistics +-- ---------------------------- +DROP TABLE IF EXISTS `ai_statistics`; +CREATE TABLE `ai_statistics` ( + `date_key` datetime NOT NULL COMMENT '统计日期', + `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '来源', + `add_user_count` bigint NULL DEFAULT 0 COMMENT '新增用户数', + `visitor_count` bigint NULL DEFAULT 0 COMMENT '访客数量', + `generate_count` bigint NULL DEFAULT 0 COMMENT '生成数量', + `recharge_amount` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '充值金额', + PRIMARY KEY (`date_key`, `source`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'ai-统计表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_statistics +-- ---------------------------- +INSERT INTO `ai_statistics` VALUES ('2025-12-02 10:00:00', '', 0, 1, 10, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-02 12:00:00', '', 0, 0, 14, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-02 17:00:00', 'XM001', 0, 2, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-02 20:00:00', '', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-02 22:00:00', '', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 16:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 16:00:00', 'XM001', 0, 1, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 17:00:00', '', 0, 0, 6, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 18:00:00', '', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 19:00:00', '', 0, 1, 9, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 20:00:00', '', 0, 0, 5, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-03 21:00:00', '', 0, 0, 20, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-04 10:00:00', 'XM001', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-04 17:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-04 18:00:00', 'XM001', 0, 2, 5, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-05 00:00:00', '', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-05 16:00:00', '', 0, 3, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-05 17:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-05 18:00:00', '', 0, 3, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-06 09:00:00', '', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-06 10:00:00', '', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 10:00:00', 'XM001', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 11:00:00', 'XM001', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 14:00:00', 'XM001', 1, 1, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 16:00:00', '', 0, 2, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 16:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 17:00:00', 'XM001', 2, 3, 12, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 21:00:00', '', 0, 0, 6, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 21:00:00', 'XM001', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-07 22:00:00', '', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 10:00:00', 'XM001', 0, 1, 6, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 11:00:00', 'XM001', 0, 0, 5, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 12:00:00', 'XM001', 1, 1, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 14:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 15:00:00', 'XM001', 2, 2, 7, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 16:00:00', '', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 16:00:00', 'XM001', 0, 0, 8, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 17:00:00', '', 0, 0, 5, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 17:00:00', 'XM001', 1, 6, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 18:00:00', '', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-08 19:00:00', 'XM001', 1, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 03:00:00', 'XM001', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 10:00:00', 'XM001', 1, 2, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 11:00:00', 'XM001', 0, 1, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 13:00:00', 'XM001', 2, 6, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 14:00:00', 'XM001', 2, 5, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 15:00:00', '', 0, 1, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 15:00:00', 'ALL', 1, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 15:00:00', 'XM001', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 16:00:00', '', 0, 4, 13, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 17:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 19:00:00', '', 0, 0, 20, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-09 20:00:00', '', 0, 0, 10, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-10 11:00:00', 'XM001', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-10 15:00:00', 'XM001', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-10 16:00:00', 'XM001', 0, 0, 9, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-10 17:00:00', 'XM001', 0, 0, 6, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-10 19:00:00', '', 0, 1, 13, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 09:00:00', '', 0, 0, 26, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 10:00:00', '', 0, 1, 7, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 10:00:00', 'ALL', 2, 2, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 10:00:00', 'XM001', 0, 0, 9, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 11:00:00', '', 0, 1, 32, 10.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 11:00:00', 'ALL', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 12:00:00', '', 0, 0, 44, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 12:00:00', 'XM001', 0, 1, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 13:00:00', '', 0, 0, 11, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 14:00:00', '', 0, 2, 26, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 14:00:00', 'XM001', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 15:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 15:00:00', 'XM001', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 16:00:00', '', 0, 0, 41, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 17:00:00', '', 0, 0, 20, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 17:00:00', 'XM001', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-11 20:00:00', '', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-12 10:00:00', '', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-12 16:00:00', '', 0, 0, 43, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-12 18:00:00', '', 0, 0, 35, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-12 19:00:00', '', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-13 17:00:00', 'XM001', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-14 01:00:00', 'XM001', 2, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-14 10:00:00', 'XM001', 1, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-14 14:00:00', 'XM001', 1, 1, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-14 15:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-15 12:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-15 18:00:00', 'ALL', 2, 2, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-15 19:00:00', '', 0, 0, 0, 100.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-16 14:00:00', 'ALL', 1, 3, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-16 16:00:00', 'XM001', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-16 22:00:00', '', 0, 0, 0, 10.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-17 11:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-17 12:00:00', 'ALL', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-17 13:00:00', 'ALL', 0, 1, 9, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-17 15:00:00', '', 0, 0, 0, 220.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-17 20:00:00', 'ALL', 0, 0, 0, 530.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 00:00:00', '', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 10:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 14:00:00', 'ALL', 0, 5, 11, 440.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 16:00:00', 'XM001', 0, 3, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 17:00:00', 'XM001', 0, 1, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 18:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 19:00:00', '', 0, 2, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-18 20:00:00', '', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 07:00:00', '', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 15:00:00', 'XM001', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 17:00:00', 'ALL', 0, 5, 4, 330.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 18:00:00', 'ALL', 0, 0, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 21:00:00', 'ALL', 0, 0, 6, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-19 22:00:00', 'XM001', 1, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-21 11:00:00', 'XM001', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 10:00:00', '', 0, 3, 8, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 10:00:00', 'ALL', 0, 8, 3, 110.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 11:00:00', '', 0, 6, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 12:00:00', '', 0, 7, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 12:00:00', 'XM001', 0, 2, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 13:00:00', '', 0, 2, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 15:00:00', 'ALL', 0, 2, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-22 16:00:00', 'ALL', 0, 0, 0, 220.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-23 09:00:00', 'ALL', 0, 1, 1, 110.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-23 14:00:00', 'ALL', 0, 0, 8, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-24 15:00:00', 'ALL', 0, 2, 0, 222.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-24 20:00:00', 'XM001', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-25 13:00:00', 'ALL', 0, 0, 0, 11.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-25 14:00:00', 'ALL', 0, 0, 0, 110.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-26 08:00:00', '', 0, 1, 0, 220.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-26 11:00:00', 'ALL', 0, 0, 0, 102.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-26 14:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-26 17:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-26 18:00:00', 'XM001', 0, 1, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-27 16:00:00', 'XM001', 1, 2, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-29 11:00:00', 'ALL', 0, 0, 0, 550.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-29 12:00:00', '', 0, 0, 0, 11.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-29 16:00:00', '', 0, 1, 0, 121.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-30 11:00:00', '', 0, 0, 0, 11.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-30 11:00:00', 'ALL', 2, 2, 1, 440.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-30 13:00:00', 'ALL', 1, 1, 0, 220.00); +INSERT INTO `ai_statistics` VALUES ('2025-12-31 14:00:00', 'ALL', 2, 2, 2, 1320.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-04 19:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-06 10:00:00', '', 0, 2, 1, 220.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-06 16:00:00', '', 0, 3, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-06 16:00:00', 'XM001', 0, 2, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-06 17:00:00', 'XM001', 0, 0, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-07 15:00:00', '', 0, 1, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-07 16:00:00', '', 0, 1, 0, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-07 20:00:00', '', 0, 2, 3, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-08 01:00:00', '', 0, 1, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-08 09:00:00', '', 0, 1, 4, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-08 14:00:00', 'ALL', 0, 1, 5, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-08 15:00:00', 'ALL', 0, 0, 2, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-09 14:00:00', 'ALL', 0, 0, 1, 0.00); +INSERT INTO `ai_statistics` VALUES ('2026-01-09 14:00:00', 'XM001', 0, 0, 8, 0.00); + +-- ---------------------------- +-- Table structure for ai_tag +-- ---------------------------- +DROP TABLE IF EXISTS `ai_tag`; +CREATE TABLE `ai_tag` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `parent_id` int NULL DEFAULT 0 COMMENT '父级ID', + `ai_id` bigint NULL DEFAULT NULL COMMENT 'aiId', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签名', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', + `prompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '提示词', + `title_HK` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '繁体字标签名', + `title_US` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英文标签名', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 150 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'ai-标签管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_tag +-- ---------------------------- +INSERT INTO `ai_tag` VALUES (1, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 2, '胸部大小', 0, NULL, '胸部大小', '胸部大小'); +INSERT INTO `ai_tag` VALUES (2, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 1, 2, '超巨乳', 0, 'very large breasts', '超巨乳', 'very large breasts'); +INSERT INTO `ai_tag` VALUES (3, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 1, 2, '中等胸', 0, 'medium breasts', '中等胸', 'medium breasts'); +INSERT INTO `ai_tag` VALUES (4, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 1, 2, '小胸', 0, 'small breasts', '小胸', 'small breasts'); +INSERT INTO `ai_tag` VALUES (5, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 2, '乳头可见度', 0, NULL, '乳頭可見度', '乳头可见度'); +INSERT INTO `ai_tag` VALUES (6, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 5, 2, '乳头透过布料可见', 0, 'nipples visible through fabric', '乳頭透過布料可見', 'nipples visible through fabric'); +INSERT INTO `ai_tag` VALUES (7, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 5, 2, '被乳贴覆盖', 0, 'covered by pasties', '被乳貼覆蓋', 'covered by pasties'); +INSERT INTO `ai_tag` VALUES (8, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 5, 2, '完全裸露', 0, 'fully exposed', '完全裸露', 'fully exposed'); +INSERT INTO `ai_tag` VALUES (9, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 2, '服装样式', 0, NULL, '服裝樣式', '服装样式'); +INSERT INTO `ai_tag` VALUES (10, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '透明黑色蕾丝超小比基尼', 0, 'transparent black lace micro bikini', '透明黑色蕾絲超小比基尼', 'transparent black lace micro bikini'); +INSERT INTO `ai_tag` VALUES (11, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '开裆红色蕾丝情趣内衣+吊袜带+丝袜', 0, 'crotchless red lace lingerie with garterbelt and stockings', '開襠紅色蕾絲情趣內衣+吊襪帶+絲襪', 'crotchless red lace lingerie with garterbelt and stockings'); +INSERT INTO `ai_tag` VALUES (12, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '裸体围裙(什么都不穿只围围裙)', 0, 'naked apron only', '裸體圍裙(什麼都不穿只圍圍裙)', 'naked apron only'); +INSERT INTO `ai_tag` VALUES (13, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '处女杀手毛衣(前后开洞露侧乳露臀)', 0, 'virgin killer sweater only', '處女殺手毛衣(前後開洞露側乳露臀)', 'virgin killer sweater only'); +INSERT INTO `ai_tag` VALUES (14, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '经典黑色兔女郎装+渔网袜', 0, 'classic black bunny suit with fishnet stockings', '經典黑色兔女郎裝+漁網襪', 'classic black bunny suit with fishnet stockings'); +INSERT INTO `ai_tag` VALUES (15, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '完全透明白色蕾丝睡裙', 0, 'completely transparent white babydoll lingerie', '完全透明白色蕾絲睡裙', 'completely transparent white babydoll lingerie'); +INSERT INTO `ai_tag` VALUES (16, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '开杯文胸+心形乳贴+开裆内裤', 0, 'open-cup bra with heart nipple pasties and crotchless panties', '開杯文胸+心形乳貼+開襠內褲', 'open-cup bra with heart nipple pasties and crotchless panties'); +INSERT INTO `ai_tag` VALUES (17, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '极小吊带比基尼(几乎什么都遮不住)', 0, 'micro sling bikini barely covering anything', '極小吊帶比基尼(幾乎什麼都遮不住)', 'micro sling bikini barely covering anything'); +INSERT INTO `ai_tag` VALUES (18, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '透黑连体渔网袜(关键部位开洞)', 0, 'sheer black bodystocking with strategic holes', '透黑連體漁網襪(關鍵部位開洞)', 'sheer black bodystocking with strategic holes'); +INSERT INTO `ai_tag` VALUES (19, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '性感女仆装无内裤', 0, 'sexy maid outfit with no panties', '性感女僕裝無內褲', 'sexy maid outfit with no panties'); +INSERT INTO `ai_tag` VALUES (20, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '乳胶护士装前拉链拉到肚脐', 0, 'latex nurse outfit with front zipper down to navel', '乳膠護士裝前拉鏈拉到肚臍', 'latex nurse outfit with front zipper down to navel'); +INSERT INTO `ai_tag` VALUES (21, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '高叉竞技泳装拨到一边', 0, 'high-leg competitive swimsuit pulled aside', '高叉競技泳裝撥到一邊', 'high-leg competitive swimsuit pulled aside'); +INSERT INTO `ai_tag` VALUES (22, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '白色新娘情趣内衣套装+吊袜带', 0, 'white bridal lingerie set with garterbelt', '白色新娘情趣內衣套裝+吊襪帶', 'white bridal lingerie set with garterbelt'); +INSERT INTO `ai_tag` VALUES (23, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '学校泳装褪到腰部', 0, 'school swimsuit pulled down to waist', '學校泳裝褪到腰部', 'school swimsuit pulled down to waist'); +INSERT INTO `ai_tag` VALUES (24, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '战术比基尼装甲(几乎不遮)', 0, 'tactical bikini armor barely covering', '戰術比基尼裝甲(幾乎不遮)', 'tactical bikini armor barely covering'); +INSERT INTO `ai_tag` VALUES (25, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '淡粉色透明开衫只穿一件', 0, 'pastel pink see-through cardigan only', '淡粉色透明開衫只穿一件', 'pastel pink see-through cardigan only'); +INSERT INTO `ai_tag` VALUES (26, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '黑色皮革束缚带情趣内衣', 0, 'black leather harness lingerie', '黑色皮革束縛帶情趣內衣', 'black leather harness lingerie'); +INSERT INTO `ai_tag` VALUES (27, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '圣诞红丝带缠身(礼物包装式)', 0, 'christmas red ribbon body wrapping only', '聖誕紅絲帶纏身(禮物包裝式)', 'christmas red ribbon body wrapping only'); +INSERT INTO `ai_tag` VALUES (28, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '警察超短制服衬衫大开', 0, 'police micro uniform with open shirt', '警察超短制服襯衫大開', 'police micro uniform with open shirt'); +INSERT INTO `ai_tag` VALUES (29, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '纯白连体泳装拨到一边', 0, 'pure white one-piece swimsuit pulled aside', '純白連體泳裝撥到一邊', 'pure white one-piece swimsuit pulled aside'); +INSERT INTO `ai_tag` VALUES (30, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '裸体+丝带礼物包装风', 0, 'naked ribbon gift wrapping style', '裸體+絲帶禮物包裝風', 'naked ribbon gift wrapping style'); +INSERT INTO `ai_tag` VALUES (31, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '超短牛仔热裤拉链全开+上身裸', 0, 'micro denim shorts unbuttoned and topless', '超短牛仔熱褲拉鏈全開+上身裸', 'micro denim shorts unbuttoned and topless'); +INSERT INTO `ai_tag` VALUES (32, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '透明雨衣什么都不穿只披雨衣', 0, 'transparent raincoat only', '透明雨衣什麼都不穿只披雨衣', 'transparent raincoat only'); +INSERT INTO `ai_tag` VALUES (33, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '性感秘书装衬衫全开无内衣', 0, 'sexy secretary outfit with unbuttoned shirt and no bra', '性感秘書裝襯衫全開無內衣', 'sexy secretary outfit with unbuttoned shirt and no bra'); +INSERT INTO `ai_tag` VALUES (34, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '啦啦队短上衣+百褶超短裙无内裤', 0, 'cheerleader crop top and pleated micro skirt no panties', '啦啦隊短上衣+百褶超短裙無內褲', 'cheerleader crop top and pleated micro skirt no panties'); +INSERT INTO `ai_tag` VALUES (35, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '修女服开裆版', 0, 'nun habit with crotchless modification', '修女服開襠版', 'nun habit with crotchless modification'); +INSERT INTO `ai_tag` VALUES (36, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '金属银色超小比基尼', 0, 'metallic silver micro bikini', '金屬銀色超小比基尼', 'metallic silver micro bikini'); +INSERT INTO `ai_tag` VALUES (37, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '淡色毛衣撩起露出下乳', 0, 'pastel sweater lifted up exposing underboob', '淡色毛衣撩起露出下乳', 'pastel sweater lifted up exposing underboob'); +INSERT INTO `ai_tag` VALUES (38, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '和服松垮前开式', 0, 'japanese yukata loosely tied open front', '和服松垮前開式', 'japanese yukata loosely tied open front'); +INSERT INTO `ai_tag` VALUES (39, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 9, 2, '赛博朋克荧光连体衣+透明面板', 0, 'glowing neon cyberpunk bodysuit with transparent panels', '賽博朋克熒光連體衣+透明面板', 'glowing neon cyberpunk bodysuit with transparent panels'); +INSERT INTO `ai_tag` VALUES (40, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 2, '动作', 0, NULL, '動作', '动作'); +INSERT INTO `ai_tag` VALUES (41, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '站立双手背后肘部外张', 0, 'standing hands behind head elbows out', '站立雙手背後肘部外張', 'standing hands behind head elbows out'); +INSERT INTO `ai_tag` VALUES (42, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '床上M字大开腿', 0, 'lying on bed M-shaped legs wide open', '牀上M字大開腿', 'lying on bed M-shaped legs wide open'); +INSERT INTO `ai_tag` VALUES (43, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '四肢着地高翘臀回头看', 0, 'on all fours ass raised high looking back', '四肢着地高翹臀回頭看', 'on all fours ass raised high looking back'); +INSERT INTO `ai_tag` VALUES (44, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '坐着张开腿双手放膝盖', 0, 'sitting spreading legs hands on knees', '坐着張開腿雙手放膝蓋', 'sitting spreading legs hands on knees'); +INSERT INTO `ai_tag` VALUES (45, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '跪地仰视镜头', 0, 'kneeling looking up at viewer', '跪地仰視鏡頭', 'kneeling looking up at viewer'); +INSERT INTO `ai_tag` VALUES (46, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '单手撩裙单手摸胸', 0, 'one hand lifting skirt one hand on breast', '單手撩裙單手摸胸', 'one hand lifting skirt one hand on breast'); +INSERT INTO `ai_tag` VALUES (47, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '单腿抬高踩在物体上', 0, 'standing one leg raised high on object', '單腿抬高踩在物體上', 'standing one leg raised high on object'); +INSERT INTO `ai_tag` VALUES (48, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '侧躺单手放裆部', 0, 'lying on side one hand between legs', '側躺單手放襠部', 'lying on side one hand between legs'); +INSERT INTO `ai_tag` VALUES (49, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '深深弯腰双手撑膝', 0, 'bending over deeply hands on knees', '深深彎腰雙手撐膝', 'bending over deeply hands on knees'); +INSERT INTO `ai_tag` VALUES (50, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '坐在边缘单手揉阴蒂', 0, 'sitting on edge one hand rubbing clit', '坐在邊緣單手揉陰蒂', 'sitting on edge one hand rubbing clit'); +INSERT INTO `ai_tag` VALUES (51, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '站立弯腰靠墙', 0, 'standing bent over leaning on wall', '站立彎腰靠牆', 'standing bent over leaning on wall'); +INSERT INTO `ai_tag` VALUES (52, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '仰躺双腿V字举高', 0, 'lying on back legs up in V shape', '仰躺雙腿V字舉高', 'lying on back legs up in V shape'); +INSERT INTO `ai_tag` VALUES (53, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '跪地后视角重点看臀', 0, 'kneeling from behind view ass focus', '跪地後視角重點看臀', 'kneeling from behind view ass focus'); +INSERT INTO `ai_tag` VALUES (54, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '正坐双手放腿上', 0, 'sitting in seiza pose hands on thighs', '正坐雙手放腿上', 'sitting in seiza pose hands on thighs'); +INSERT INTO `ai_tag` VALUES (55, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '双手叉腰自信站姿', 0, 'standing hands on hips confident pose', '雙手叉腰自信站姿', 'standing hands on hips confident pose'); +INSERT INTO `ai_tag` VALUES (56, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '正面抱胸', 0, 'hugging own breasts from front', '正面抱胸', 'hugging own breasts from front'); +INSERT INTO `ai_tag` VALUES (57, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '趴着臀部垫枕翘高', 0, 'lying prone ass up pillow under hips', '趴着臀部墊枕翹高', 'lying prone ass up pillow under hips'); +INSERT INTO `ai_tag` VALUES (58, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, 'W字腿坐姿', 0, 'sitting with W-shaped legs', 'W字腿坐姿', 'sitting with W-shaped legs'); +INSERT INTO `ai_tag` VALUES (59, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '靠墙单腿抬高', 0, 'standing against wall one leg raised', '靠牆單腿抬高', 'standing against wall one leg raised'); +INSERT INTO `ai_tag` VALUES (60, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '趴着回头看', 0, 'lying on stomach looking back', '趴着回頭看', 'lying on stomach looking back'); +INSERT INTO `ai_tag` VALUES (61, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '蹲下双膝分开', 0, 'squatting with knees apart', '蹲下雙膝分開', 'squatting with knees apart'); +INSERT INTO `ai_tag` VALUES (62, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '背靠墙双手举过头顶', 0, 'standing back against wall hands above head', '背靠牆雙手舉過頭頂', 'standing back against wall hands above head'); +INSERT INTO `ai_tag` VALUES (63, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '侧躺胸部叠在一起', 0, 'lying on side breasts stacked', '側躺胸部疊在一起', 'lying on side breasts stacked'); +INSERT INTO `ai_tag` VALUES (64, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '跪姿背部拱起', 0, 'kneeling with back arched', '跪姿背部拱起', 'kneeling with back arched'); +INSERT INTO `ai_tag` VALUES (65, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '坐椅子双腿搭在扶手上', 0, 'sitting on chair legs over armrests', '坐椅子雙腿搭在扶手上', 'sitting on chair legs over armrests'); +INSERT INTO `ai_tag` VALUES (66, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '单膝踩椅子', 0, 'standing one knee on chair', '單膝踩椅子', 'standing one knee on chair'); +INSERT INTO `ai_tag` VALUES (67, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '仰躺头垂在床沿外', 0, 'lying on back head hanging off bed edge', '仰躺頭垂在牀沿外', 'lying on back head hanging off bed edge'); +INSERT INTO `ai_tag` VALUES (68, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '跪姿脸朝下臀朝天', 0, 'kneeling face down ass up', '跪姿臉朝下臀朝天', 'kneeling face down ass up'); +INSERT INTO `ai_tag` VALUES (69, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '站立双手背后交叉', 0, 'standing hands clasped behind back', '站立雙手背後交叉', 'standing hands clasped behind back'); +INSERT INTO `ai_tag` VALUES (70, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 40, 2, '反坐椅子跨坐在椅背上', 0, 'sitting reverse on chair straddling', '反坐椅子跨坐在椅背上', 'sitting reverse on chair straddling'); +INSERT INTO `ai_tag` VALUES (71, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:37:06', NULL, 0, 1, '胸部大小', 0, '', '胸部大小', 'breast size'); +INSERT INTO `ai_tag` VALUES (72, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 71, 1, '超巨乳', 0, 'very large breasts', '超巨乳', 'very large breasts'); +INSERT INTO `ai_tag` VALUES (73, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 71, 1, '中等胸', 0, 'medium breasts', '中等胸', 'medium breasts'); +INSERT INTO `ai_tag` VALUES (74, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 71, 1, '小胸', 0, 'small breasts', '小胸', 'small breasts'); +INSERT INTO `ai_tag` VALUES (75, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:37:29', NULL, 0, 1, '阴毛样式', 0, '', '陰毛樣式', 'pubic hair pattern'); +INSERT INTO `ai_tag` VALUES (76, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 75, 1, '无毛小穴', 0, 'hairless pussy', '無毛小穴', 'hairless pussy'); +INSERT INTO `ai_tag` VALUES (77, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 75, 1, '修剪阴毛', 0, 'trimmed pubic hair', '修剪陰毛', 'trimmed pubic hair'); +INSERT INTO `ai_tag` VALUES (78, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 75, 1, '心形阴毛', 0, 'heart-shaped pubic hair', '心形陰毛', 'heart-shaped pubic hair'); +INSERT INTO `ai_tag` VALUES (79, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:38:00', NULL, 0, 1, '胸部动作', 0, '', '胸部動作', 'chest action '); +INSERT INTO `ai_tag` VALUES (80, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 79, 1, '双手从正面轻抚胸部', 0, 'both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression', '雙手從正面輕撫胸部', 'both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression'); +INSERT INTO `ai_tag` VALUES (81, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 79, 1, '双手从两侧向内挤压巨乳', 0, 'both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face', '雙手從兩側向內擠壓巨乳', 'both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face'); +INSERT INTO `ai_tag` VALUES (82, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 79, 1, '双手从下方托起巨乳', 0, 'both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms', '雙手從下方託起巨乳', 'both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms'); +INSERT INTO `ai_tag` VALUES (83, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 1, '开腿/掰穴系', 0, NULL, '開腿/掰穴系', '开腿/掰穴系'); +INSERT INTO `ai_tag` VALUES (84, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 83, 1, 'M字开腿双手掰穴特写', 0, 'lying on back, legs spread wide in M-shape, both hands gently spreading labia with fingers, close-up between legs, pussy juice visible', 'M字開腿雙手掰穴特寫', 'lying on back, legs spread wide in M-shape, both hands gently spreading labia with fingers, close-up between legs, pussy juice visible'); +INSERT INTO `ai_tag` VALUES (85, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 83, 1, '站立单腿抬高掰穴', 0, 'standing one leg raised high resting on object, one hand spreading pussy gently, other hand on breast', '站立單腿抬高掰穴', 'standing one leg raised high resting on object, one hand spreading pussy gently, other hand on breast'); +INSERT INTO `ai_tag` VALUES (86, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 83, 1, '跪坐开腿单手掰穴', 0, 'kneeling with knees apart, one hand spreading pussy lips, other hand behind head, looking at viewer', '跪坐開腿單手掰穴', 'kneeling with knees apart, one hand spreading pussy lips, other hand behind head, looking at viewer'); +INSERT INTO `ai_tag` VALUES (87, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 1, '后入/翘臀系', 0, NULL, '後入/翹臀系', '后入/翘臀系'); +INSERT INTO `ai_tag` VALUES (88, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 87, 1, '四肢着地经典后入翘臀', 0, 'on all fours, ass raised high, looking back seductively, pussy and anus fully visible from behind', '四肢着地經典後入翹臀', 'on all fours, ass raised high, looking back seductively, pussy and anus fully visible from behind'); +INSERT INTO `ai_tag` VALUES (89, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 87, 1, '俯身双手撑物后入', 0, 'upper body bent over leaning on object, both hands gripping surface, ass pushed back, pussy dripping', '俯身雙手撐物後入', 'upper body bent over leaning on object, both hands gripping surface, ass pushed back, pussy dripping'); +INSERT INTO `ai_tag` VALUES (90, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 87, 1, '站立弯腰双手撑膝后入', 0, 'standing bent over deeply, hands on knees, legs straight, ass pushed out, looking back between legs', '站立彎腰雙手撐膝後入', 'standing bent over deeply, hands on knees, legs straight, ass pushed out, looking back between legs'); +INSERT INTO `ai_tag` VALUES (91, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 1, '综合爱抚系', 0, NULL, '綜合愛撫系', '综合爱抚系'); +INSERT INTO `ai_tag` VALUES (92, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 91, 1, '坐姿自慰(单手揉胸', 0, '+ 单手插入)sitting with legs spread, one hand squeezing breast, other hand with two fingers inserted in pussy, ahegao face', '坐姿自慰(單手揉胸', '+ 单手插入)sitting with legs spread, one hand squeezing breast, other hand with two fingers inserted in pussy, ahegao face'); +INSERT INTO `ai_tag` VALUES (93, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 91, 1, '仰躺全身爱抚', 0, 'lying on back, one hand pinching nipple, other hand rubbing clit in circles, legs trembling', '仰躺全身愛撫', 'lying on back, one hand pinching nipple, other hand rubbing clit in circles, legs trembling'); +INSERT INTO `ai_tag` VALUES (94, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 91, 1, '侧身躺单手从后面摸', 0, 'lying on side, one arm under breasts lifting them, other hand reaching between legs from behind rubbing pussy', '側身躺單手從後面摸', 'lying on side, one arm under breasts lifting them, other hand reaching between legs from behind rubbing pussy'); +INSERT INTO `ai_tag` VALUES (95, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:38:33', NULL, 0, 4, '眼睛颜色', 0, '', '眼睛顏色', 'eye color'); +INSERT INTO `ai_tag` VALUES (96, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 95, 4, '蓝色眼睛', 0, 'blue eyes ', '藍色眼睛', 'blue eyes '); +INSERT INTO `ai_tag` VALUES (97, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 95, 4, '绿色眼睛', 0, 'green eyes ', '綠色眼睛', 'green eyes '); +INSERT INTO `ai_tag` VALUES (98, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 95, 4, '棕色眼睛', 0, 'brown eyes ', '棕色眼睛', 'brown eyes '); +INSERT INTO `ai_tag` VALUES (99, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 95, 4, '榛色眼睛', 0, 'hazel eyes ', '榛色眼睛', 'hazel eyes '); +INSERT INTO `ai_tag` VALUES (100, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 95, 4, '红色眼睛,用于幻想风格', 0, 'red eyes ', '紅色眼睛,用於幻想風格', 'red eyes '); +INSERT INTO `ai_tag` VALUES (101, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:38:44', NULL, 0, 4, '发型', 0, '', '髮型', 'hairstyle'); +INSERT INTO `ai_tag` VALUES (102, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 101, 4, '长直黑发', 0, 'long straight black hair ', '長直黑髮', 'long straight black hair '); +INSERT INTO `ai_tag` VALUES (103, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 101, 4, '短卷金发', 0, 'short curly blonde hair ', '短卷金髮', 'short curly blonde hair '); +INSERT INTO `ai_tag` VALUES (104, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 101, 4, '马尾刘海', 0, 'ponytail with bangs ', '馬尾劉海', 'ponytail with bangs '); +INSERT INTO `ai_tag` VALUES (105, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 101, 4, '凌乱波波头', 0, 'messy bob cut ', '凌亂波波頭', 'messy bob cut '); +INSERT INTO `ai_tag` VALUES (106, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 101, 4, '编织银发', 0, 'braided silver hair ', '編織銀髮', 'braided silver hair '); +INSERT INTO `ai_tag` VALUES (107, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:38:58', NULL, 0, 4, '配饰', 0, '', '配飾', 'accessories'); +INSERT INTO `ai_tag` VALUES (108, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 107, 4, '戴耳环和项链', 0, 'wearing earrings and necklace ', '戴耳環和項鍊', 'wearing earrings and necklace '); +INSERT INTO `ai_tag` VALUES (109, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 107, 4, '拿着花冠', 0, 'holding a flower crown ', '拿着花冠', 'holding a flower crown '); +INSERT INTO `ai_tag` VALUES (110, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 107, 4, '戴眼镜和围巾', 0, 'with glasses and scarf ', '戴眼鏡和圍巾', 'with glasses and scarf '); +INSERT INTO `ai_tag` VALUES (111, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 107, 4, '猫耳和尾巴,用于cosplay', 0, 'cat ears and tail ', '貓耳和尾巴,用於cosplay', 'cat ears and tail '); +INSERT INTO `ai_tag` VALUES (112, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 107, 4, '无配饰,如果没有则留空', 0, 'no accessories ', '無配飾,如果沒有則留空', 'no accessories '); +INSERT INTO `ai_tag` VALUES (113, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:39:15', NULL, 0, 4, '表情', 0, '', '表情', 'expression'); +INSERT INTO `ai_tag` VALUES (114, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 113, 4, '快乐微笑', 0, 'smiling happily ', '快樂微笑', 'smiling happily '); +INSERT INTO `ai_tag` VALUES (115, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 113, 4, '严肃专注', 0, 'serious and focused ', '嚴肅專注', 'serious and focused '); +INSERT INTO `ai_tag` VALUES (116, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 113, 4, '惊讶睁大眼睛', 0, 'surprised with wide eyes ', '驚訝睜大眼睛', 'surprised with wide eyes '); +INSERT INTO `ai_tag` VALUES (117, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 113, 4, '诱惑眨眼', 0, 'seductive wink ', '誘惑眨眼', 'seductive wink '); +INSERT INTO `ai_tag` VALUES (118, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 113, 4, '中性平静脸', 0, 'neutral calm face ', '中性平靜臉', 'neutral calm face '); +INSERT INTO `ai_tag` VALUES (119, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:39:25', NULL, 0, 4, '姿势', 0, '', '姿勢', 'pose'); +INSERT INTO `ai_tag` VALUES (120, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 119, 4, '优雅站立', 0, 'standing gracefully ', '優雅站立', 'standing gracefully '); +INSERT INTO `ai_tag` VALUES (121, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 119, 4, '盘腿坐', 0, 'sitting cross-legged ', '盤腿坐', 'sitting cross-legged '); +INSERT INTO `ai_tag` VALUES (122, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 119, 4, '单膝跪地', 0, 'kneeling on one knee ', '單膝跪地', 'kneeling on one knee '); +INSERT INTO `ai_tag` VALUES (123, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 119, 4, '空中跳跃', 0, 'jumping in the air ', '空中跳躍', 'jumping in the air '); +INSERT INTO `ai_tag` VALUES (124, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 119, 4, '放松躺下', 0, 'lying down relaxed ', '放鬆躺下', 'lying down relaxed '); +INSERT INTO `ai_tag` VALUES (125, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:39:37', NULL, 0, 4, '背景', 0, '', '背景', 'background'); +INSERT INTO `ai_tag` VALUES (126, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 125, 4, '在阳光沙滩', 0, 'in a sunny beach ', '在陽光沙灘', 'in a sunny beach '); +INSERT INTO `ai_tag` VALUES (127, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 125, 4, '在舒适卧室', 0, 'inside a cozy bedroom ', '在舒適卧室', 'inside a cozy bedroom '); +INSERT INTO `ai_tag` VALUES (128, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 125, 4, '在日落山峰', 0, 'on a mountain peak at sunset ', '在日落山峯', 'on a mountain peak at sunset '); +INSERT INTO `ai_tag` VALUES (129, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 125, 4, '在未来城市街道', 0, 'in a futuristic city street ', '在未來城市街道', 'in a futuristic city street '); +INSERT INTO `ai_tag` VALUES (130, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 125, 4, '靠纯白墙壁', 0, 'against a plain white wall ', '靠純白牆壁', 'against a plain white wall '); +INSERT INTO `ai_tag` VALUES (131, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2026-01-06 10:39:56', NULL, 0, 4, '服装描述', 0, '', '服裝描述', 'clothing_description'); +INSERT INTO `ai_tag` VALUES (132, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 131, 4, '裸体版:完全裸体:1.2, 裸体, 无衣服, 乳房完全暴露, 乳头完美匹配肤色', 0, '', '裸體版:完全裸體:1.2, 裸體, 無衣服, 乳房完全暴露, 乳頭完美匹配膚色', ''); +INSERT INTO `ai_tag` VALUES (133, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 131, 4, '正式服装版:穿着优雅晚礼服, 无可见乳头', 0, 'wearing elegant evening gown, no visible nipples ', '正式服裝版:穿着優雅晚禮服, 無可見乳頭', 'wearing elegant evening gown, no visible nipples '); +INSERT INTO `ai_tag` VALUES (134, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 131, 4, '泳装版:穿着比基尼泳衣, 乳头略微可见', 0, 'wearing bikini swimsuit, nipples slightly visible ', '泳裝版:穿着比基尼泳衣, 乳頭略微可見', 'wearing bikini swimsuit, nipples slightly visible '); +INSERT INTO `ai_tag` VALUES (135, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 131, 4, '半透明版:穿着透明丝袍, 乳头透过布料可见', 0, 'wearing transparent silk robe, nipples visible through fabric ', '半透明版:穿着透明絲袍, 乳頭透過布料可見', 'wearing transparent silk robe, nipples visible through fabric '); +INSERT INTO `ai_tag` VALUES (136, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 131, 4, '休闲版:穿着休闲T恤和短裤, 无乳头细节', 0, 'wearing casual t-shirt and shorts, no nipple details ', '休閒版:穿着休閒T恤和短褲, 無乳頭細節', 'wearing casual t-shirt and shorts, no nipple details '); +INSERT INTO `ai_tag` VALUES (137, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 4, '胸部大小', 0, NULL, '胸部大小', '胸部大小'); +INSERT INTO `ai_tag` VALUES (138, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 137, 4, '小胸', 0, 'small breasts ', '小胸', 'small breasts '); +INSERT INTO `ai_tag` VALUES (139, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 137, 4, '中胸', 0, 'medium breasts ', '中胸', 'medium breasts '); +INSERT INTO `ai_tag` VALUES (140, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 137, 4, '大胸', 0, 'large breasts ', '大胸', 'large breasts '); +INSERT INTO `ai_tag` VALUES (141, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 137, 4, '娇小平胸', 0, 'petite flat chest ', '嬌小平胸', 'petite flat chest '); +INSERT INTO `ai_tag` VALUES (142, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 137, 4, '丰满胸围', 0, 'voluptuous bust ', '豐滿胸圍', 'voluptuous bust '); +INSERT INTO `ai_tag` VALUES (143, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 0, 4, '多人描述', 0, NULL, '多人描述', '多人描述'); +INSERT INTO `ai_tag` VALUES (144, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 143, 4, '2个女孩, 嬉戏互动', 0, '2girls, interacting playfully ', '2個女孩, 嬉戲互動', '2girls, interacting playfully '); +INSERT INTO `ai_tag` VALUES (145, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 143, 4, '1个男孩和1个女孩, 牵手', 0, '1boy and 1girl, holding hands ', '1個男孩和1個女孩, 牽手', '1boy and 1girl, holding hands '); +INSERT INTO `ai_tag` VALUES (146, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 143, 4, '3个女性的团体, 一起摆姿势', 0, 'group of 3 women, posing together ', '3個女性的團體, 一起擺姿勢', 'group of 3 women, posing together '); +INSERT INTO `ai_tag` VALUES (147, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 143, 4, '4个角色围成圈', 0, '4 characters in a circle ', '4個角色圍成圈', '4 characters in a circle '); +INSERT INTO `ai_tag` VALUES (148, '0', 'admin', '2025-12-14 19:41:42', 'admin', '2025-12-22 15:29:54', NULL, 143, 4, '无多人角色,用于单人', 0, 'no multiple characters ', '無多人角色,用於單人', 'no multiple characters '); + +-- ---------------------------- +-- Table structure for ai_user +-- ---------------------------- +DROP TABLE IF EXISTS `ai_user`; +CREATE TABLE `ai_user` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户账号', + `nickname` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户昵称', + `gender` tinyint(1) NULL DEFAULT 2 COMMENT '性别:1-男,2-女', + `avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址', + `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码', + `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码', + `openid` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户唯一标识', + `status` tinyint(1) NULL DEFAULT 0 COMMENT '状态:1-正常,2-禁用', + `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱', + `birthday` date NULL DEFAULT NULL COMMENT '生日', + `invitation_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邀请码', + `payment_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '充值地址', + `login_time` datetime NULL DEFAULT NULL COMMENT '登录时间', + `balance` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '余额', + `superior_id` bigint NULL DEFAULT NULL COMMENT '上级ID', + `user_id` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户ID', + `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源', + `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户IP', + `country` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '隶属国家', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `uuid`(`user_id` ASC) USING BTREE, + UNIQUE INDEX `invitation_code`(`invitation_code` ASC) USING BTREE, + UNIQUE INDEX `email`(`email` ASC) USING BTREE, + UNIQUE INDEX `username`(`username` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 45 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'ai-用户信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_user +-- ---------------------------- +INSERT INTO `ai_user` VALUES (14, '0', '', '2025-11-28 11:42:33', '', '2026-01-06 16:04:21', NULL, 'ww123', NULL, 2, '', '', '$2a$10$bxNPP2cfo9OlJxiOQJJDiu4QOrQet8enUOCiu3QF6qLHaOSLA6G1.', NULL, 0, 'xpchb40121@outlook.com', NULL, 'RM3XZ8z3', NULL, '2026-01-06 16:04:21', 235.00, NULL, 'L8AJXFPT', 'XM001', '2605:52c0:1:446:a425:64ff:fe47:36c6', '美国'); +INSERT INTO `ai_user` VALUES (15, '0', '', '2025-12-07 14:52:38', '', '2025-12-08 17:20:37', NULL, 'u30', NULL, 2, '', '', '$2a$10$tXkZP66AWniOcCbhk2LJpOFOSzHEIMLDbGsow4B7maYswco5HShg.', NULL, 0, 'u30@163.com', NULL, 'wHSf4N2v', NULL, '2025-12-08 17:20:37', 10.00, NULL, 'SNLMZXPH', 'XM001', '208.86.32.27', '美国'); +INSERT INTO `ai_user` VALUES (16, '0', '', '2025-12-07 17:15:46', '', '2026-01-08 09:08:03', NULL, 'test001', NULL, 2, '', '', '$2a$10$M4ZD5kRehFycoTmgrA1b4.XNnwsvULaQm9ySdSxttRzPVn7ngbE6y', NULL, 0, 'fgerghbrthbrt@gmail.com', NULL, 'XrtN5DDW', NULL, '2026-01-08 09:08:03', 99921.00, NULL, '2LZ9RAC2', '', '15.204.58.244', '美国'); +INSERT INTO `ai_user` VALUES (17, '0', '', '2025-12-07 17:28:57', '', '2025-12-07 09:28:57', NULL, 'zz3534217@gmail.com', NULL, 2, '', '', '$2a$10$sxNmfnayqUroy66CgCATf.VkmxsECKv1jTUgFUMN.CQY.3yFBWGO.', NULL, 0, 'zz3534217@gmail.com', NULL, 'qnUwmXYS', NULL, '2025-12-07 21:18:48', 0.00, NULL, '82FR6YTZ', 'XM001', NULL, NULL); +INSERT INTO `ai_user` VALUES (18, '0', '', '2025-12-08 12:53:23', '', '2025-12-08 17:00:57', NULL, '3545486624@qq.com', NULL, 2, '', '', '$2a$10$9siQceU./ZfmW.iDwVf9sehBJWsxzyP10fJvkzStAbyzw4yQEHAUa', NULL, 0, '3545486624@qq.com', NULL, 'ujfTuFNA', NULL, '2025-12-08 17:00:56', 0.00, NULL, 'OEEO8YJQ', 'XM001', '119.246.86.101', '香港'); +INSERT INTO `ai_user` VALUES (19, '0', '', '2025-12-08 15:47:59', '', '2025-12-08 15:48:14', NULL, 'walb0501', NULL, 2, '', '', '$2a$10$KnHIeNIOtva0saZVasbfBeJhvCKpU/cjZXEwBJ655jrJcBnCR1s/q', NULL, 0, 'pereadesen2@gmail.com', NULL, 'DqmbQS8q', NULL, '2025-12-08 15:48:14', 8.00, NULL, '9Q889UMZ', 'XM001', '188.253.121.195', '新加坡'); +INSERT INTO `ai_user` VALUES (20, '0', '', '2025-12-08 15:50:03', '', '2025-12-08 15:50:23', NULL, 'xu89026719@gmail.com', NULL, 2, '', '', '$2a$10$xdGHiEVaGC7gyXldojpiUO0GOgyu5Pcgtw/WRTuf.TA1e.NbB8Ogu', NULL, 0, 'xu89026719@gmail.com', NULL, 'XnQAfPvA', NULL, '2025-12-08 15:50:23', 0.00, NULL, '209HPBTF', 'XM001', '38.207.136.194', '日本'); +INSERT INTO `ai_user` VALUES (21, '0', '', '2025-12-08 17:20:31', '', '2025-12-08 17:22:26', NULL, '1686228', NULL, 2, '', '', '$2a$10$MpUYTeWBI6gVTqjtJBz.3.sMOz6ul.eqLQyrvY3VL2WRbFeK666fW', NULL, 0, '1686228@gmail.com', NULL, 'RyZlK7YG', NULL, '2025-12-08 17:22:26', 10.00, NULL, '9CUIDFW4', 'XM001', '208.86.32.27', '美国'); +INSERT INTO `ai_user` VALUES (22, '0', '', '2025-12-08 19:45:16', '', '2025-12-09 03:12:37', NULL, 'a424569211@gmail.com', NULL, 2, '', '', '$2a$10$3TEa4ufju1sMPJdw8K0Ik.ic10m6Ms4LQFxYK2h27/pbI2qR5nJDK', NULL, 0, 'a424569211@gmail.com', NULL, '4JLEc4vd', NULL, '2025-12-09 03:12:37', 0.00, NULL, '0N5NEU38', 'XM001', '205.185.125.114', '美国'); +INSERT INTO `ai_user` VALUES (23, '0', '', '2025-12-09 10:33:05', '', '2025-12-09 10:33:21', NULL, 'cc123', NULL, 2, 'https://images.iqyjsnwv.com/2025/12/09/37b754c5_706d42be-ad9a-4f11-a3ec-c0742e97ed64.png', '', '$2a$10$V.SDRP4RgM/qfAmNMSqIdOOM259j064oJCvAbDkhrSZLB99L9nhaK', NULL, 0, 'cherrylux098@gmail.com', NULL, 'rlmhwbhF', NULL, '2025-12-09 10:33:21', 4.00, NULL, 'NU8BE6J2', 'XM001', '2605:52c0:3:1a3:c05b:4bff:fe2c:115a', '美国'); +INSERT INTO `ai_user` VALUES (25, '0', '', '2025-12-09 13:46:13', '', '2025-12-09 14:31:51', NULL, 'test1', NULL, 2, '', '', '$2a$10$7v6PPfozY7PHR.ep.GKobePag1aq0ZuS9j.R6lWcKloy9j1R6HgoS', NULL, 0, '123@gmail.com', NULL, 'VBb72Ym3', NULL, '2025-12-09 14:31:50', 8.00, NULL, 'UQ9WZN3V', 'XM001', '2407:cdc0:b00a::19', '香港'); +INSERT INTO `ai_user` VALUES (26, '0', '', '2025-12-09 14:13:17', '', '2025-12-09 14:53:48', NULL, 'test2', NULL, 2, '', '', '$2a$10$OirrwiDFruMJQLLnNufEv.BiQzyL.KxCz1x.XVWt5R5e.ggq5m/RS', NULL, 0, '1@gmail.com', NULL, '3WFmGuER', NULL, '2025-12-09 14:53:48', 10.00, NULL, '0NEK09R6', 'XM001', '2407:cdc0:b00a::19', '香港'); +INSERT INTO `ai_user` VALUES (27, '0', '', '2025-12-09 14:57:14', '', '2025-12-09 15:01:08', NULL, 'test3', NULL, 2, '', '', '$2a$10$aCcA6Mq/.xOfs6FCJwPot.ttBFv7YjULPQsF3axMz3Gm98MzMafrO', NULL, 0, '2@gmail.com', NULL, 'pqU7mW5R', NULL, '2025-12-09 15:01:08', 10000.00, NULL, '4R80E3NI', 'XM001', '2407:cdc0:b00a::19', '香港'); +INSERT INTO `ai_user` VALUES (29, '0', '', '2025-12-11 10:48:59', '', '2025-12-11 10:49:08', NULL, 'test4', NULL, 2, '', '', '$2a$10$he3GMBisX7UeEHFRQYVxU.vcavkDxWWNyCSuz2QvfPKBAEZd17Xuu', NULL, 0, '3@gmail.com', NULL, 'FWzJWjjQ', NULL, '2025-12-11 10:49:08', 0.00, NULL, 'KLSC4HK0', 'ALL', '2407:cdc0:b00a::19', '香港'); +INSERT INTO `ai_user` VALUES (30, '0', '', '2025-12-11 10:50:31', '', '2025-12-11 11:00:47', NULL, 'test5', NULL, 2, '', '', '$2a$10$QVUfOv2FbwhRwj35ETn0we.k76tfHNqxXZPKy0vvzxfz1jgh2cB7m', NULL, 0, '4@gmail.com', NULL, 'Rdp7l3db', NULL, '2025-12-11 11:00:47', 28.22, NULL, '1S8WYOXT', 'ALL', '2407:cdc0:b00a::19', '香港'); +INSERT INTO `ai_user` VALUES (31, '0', '', '2025-12-14 01:35:44', '', '2025-12-13 17:35:44', NULL, 'whsksmhxud', NULL, 2, '', '', '$2a$10$sJ1pA9uBfgzv8O5X5Ui5G.7uVKRoZDqDqQ9BG848y7njgFtlgzWpq', NULL, 0, 'w809277959@outlook.com', NULL, 'bZEVdu4b', NULL, NULL, 0.00, NULL, '7I7TJC30', 'XM001', '103.82.93.21', '印尼'); +INSERT INTO `ai_user` VALUES (32, '0', '', '2025-12-14 01:58:22', '', '2025-12-14 01:58:47', NULL, 'devin', NULL, 2, '', '', '$2a$10$NUNiFbS6WEXznA0LzlW10eH5FjX437NxO05VSnMFII4FIsPQOuoxe', NULL, 0, 'devinhe46@gmail.com', NULL, 'BZNhTE5M', NULL, '2025-12-14 01:58:47', 0.00, NULL, 'BN7FJCGI', 'XM001', '134.122.184.12', '日本'); +INSERT INTO `ai_user` VALUES (33, '0', '', '2025-12-14 10:22:49', '', '2025-12-14 10:23:08', NULL, 'djwnx1123', NULL, 2, '', '', '$2a$10$z5dYmkZzGdi9G2nVSPZqJutN2Z/8FN0.cPRilsZdjzgVZKc2QCydi', NULL, 0, '2451855921@qq.com', NULL, 'nc3yv7WQ', NULL, '2025-12-14 10:23:08', 0.00, NULL, '4HF1953W', 'XM001', '103.147.45.37', '香港'); +INSERT INTO `ai_user` VALUES (34, '0', '', '2025-12-14 14:52:58', '', '2025-12-14 14:54:08', NULL, 'djwnx', NULL, 2, '', '', '$2a$10$YwtgWJOnElfAn4vuvYRprO5zXrTBZx8fvx/lVIyopVdph7RkeSisS', NULL, 0, 'tianyangyu1123@gmail.com', NULL, 'pFpHVX2y', NULL, '2025-12-14 14:54:08', 0.00, NULL, 'BH9DLPCJ', 'XM001', '43.228.227.211', '香港'); +INSERT INTO `ai_user` VALUES (35, '0', '', '2025-12-15 18:05:01', '', '2025-12-24 15:08:10', NULL, 'test6', NULL, 2, '', '', '$2a$10$AOJg.25lz16afHa3OfPMhuxu8oorFGeL4MqMgcxpRKjd4iY0LsmAG', NULL, 0, '5@gmail.com', NULL, 'heNUTHUX', NULL, '2025-12-24 15:08:09', 323.00, 30, 'PJCZNE1M', 'ALL', '2602:fbf1:b001::36', '美国'); +INSERT INTO `ai_user` VALUES (36, '0', '', '2025-12-15 18:07:56', '', '2026-01-08 14:53:02', NULL, 'test7', NULL, 2, '', '', '$2a$10$xXtOsMjz5Zd9dsJvUBz5be.6ZphexWOedfe.TLW9bdDtzFBYESzIG', NULL, 0, '6@gmail.com', NULL, 'RXQLfyjy', NULL, '2026-01-08 14:53:01', 100419.00, 35, '24SRSLFG', 'ALL', '2407:cdc0:d002::195', '新加坡'); +INSERT INTO `ai_user` VALUES (37, '0', '', '2025-12-16 14:07:46', '', '2025-12-16 14:08:05', NULL, 'test8', NULL, 2, '', '', '$2a$10$Z967MUQ6I5CCgfVJTV0l2ug2BysZmfRNvpq6c.vBVlVIX7ekM3GJi', NULL, 0, '7@gmail.com', NULL, 'kEZx2eps', NULL, '2025-12-16 14:08:04', 0.00, NULL, 'H4AFA8CH', 'ALL', '37.9.33.202', '美国'); +INSERT INTO `ai_user` VALUES (38, '0', '', '2025-12-19 22:04:18', '', '2025-12-24 20:57:53', NULL, 'ghypnus', NULL, 2, '', '', '$2a$10$Cr7AQ7D9Jxk6BRE7cYn1su5B4x4aOxkf9JQMwk06Tyt5X1dn8Qr6K', NULL, 0, '1954579286@qq.com', NULL, '3tMwDlMH', NULL, '2025-12-24 20:57:52', 0.00, NULL, 'JPL28UHV', 'XM001', '85.234.69.52', '英国'); +INSERT INTO `ai_user` VALUES (39, '0', '', '2025-12-27 16:48:23', '', '2026-01-06 16:32:09', NULL, 'xiaxiaxia', NULL, 2, '', '', '$2a$10$aci4cfcpANfKt1EPdVY1cORUACqXJHGx49gjD72Cc2p62K5TKT6bG', NULL, 0, 'pianochen606@gmail.com', NULL, 'yWQK4jBC', NULL, '2026-01-06 16:32:09', 9829.00, NULL, 'K0G1NBAI', 'XM001', '216.167.64.103', '美国'); +INSERT INTO `ai_user` VALUES (40, '0', '', '2025-12-30 11:28:25', '', '2025-12-30 11:28:35', NULL, 'test9', NULL, 2, '', '', '$2a$10$RrqVCQk2eKBrk4LqVlVLg.MCSmKlIJidSpw/aH3jlA4oGf8AEvbYi', NULL, 0, '8@gmail.com', NULL, 'wSsxXKeH', NULL, '2025-12-30 11:28:35', 336.00, 35, 'Z6UI3X6S', 'ALL', '2602:fbf1:b001::36', '美国'); +INSERT INTO `ai_user` VALUES (41, '0', '', '2025-12-30 11:58:13', '', '2025-12-30 11:58:20', NULL, 'test10', NULL, 2, '', '', '$2a$10$iyc.quT3QzzzROdjLN1S8.GLE.epyFAo4FvBDOlokDbu4JMODrr3S', NULL, 0, '9@gmail.com', NULL, 'lRbwts88', NULL, '2025-12-30 11:58:20', 110.00, 40, 'LJSSMAQO', 'ALL', '2602:fbf1:b001::36', '美国'); +INSERT INTO `ai_user` VALUES (42, '0', '', '2025-12-30 13:42:02', '', '2025-12-30 13:42:09', NULL, 'test11', NULL, 2, '', '', '$2a$10$ke66b3aOZ67NaUT2WQepyO2EmVYkSEBYLB/NFSRID.S3ejHaU5Og.', NULL, 0, '10@gmail.com', NULL, 'BrEg6XmM', NULL, '2025-12-30 13:42:09', 225.00, NULL, 'IHOF63N5', 'ALL', '2602:fbf1:b001::36', '美国'); +INSERT INTO `ai_user` VALUES (43, '0', '', '2025-12-31 14:20:06', '', '2025-12-31 14:20:12', NULL, 'a001', NULL, 2, '', '', '$2a$10$Z02VVJ5/LaiTzTp22b2zXOTV8YE/6BMNVrboTj5cuEthXuPpP97Mi', NULL, 0, '11@gmail.com', NULL, 'Xf38CXD6', NULL, '2025-12-31 14:20:12', 1089.00, NULL, 'LXNFP1VS', 'ALL', '2602:fbf1:b001::36', '美国'); +INSERT INTO `ai_user` VALUES (44, '0', '', '2025-12-31 14:26:20', '', '2025-12-31 14:26:25', NULL, 'a002', NULL, 2, '', '', '$2a$10$4ZnF/zh3q3E07GBpthtL.ufsxQOt2u/eu8YzcFnmPO5dUa1RJ6mkG', NULL, 0, 'c46258724hk@gmail.com', NULL, 'knt2yT2r', NULL, '2025-12-31 14:26:25', 230.00, 43, 'JW07BAHC', 'ALL', '2602:fbf1:b001::36', '美国'); + +-- ---------------------------- +-- Table structure for ai_user_message +-- ---------------------------- +DROP TABLE IF EXISTS `ai_user_message`; +CREATE TABLE `ai_user_message` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '信息标题', + `send_type` tinyint NULL DEFAULT NULL COMMENT '发送类型:0-所有用户 1-指定用户', + `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '发送内容', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '站内信管理' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_user_message +-- ---------------------------- +INSERT INTO `ai_user_message` VALUES (5, '0', 'admin', '2025-12-09 13:23:23', '', '2025-12-09 05:23:22', NULL, 'test', 0, '111'); +INSERT INTO `ai_user_message` VALUES (6, '0', 'admin', '2025-12-09 13:23:26', '', '2025-12-09 05:23:26', NULL, NULL, 0, NULL); + +-- ---------------------------- +-- Table structure for ai_work +-- ---------------------------- +DROP TABLE IF EXISTS `ai_work`; +CREATE TABLE `ai_work` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '作品url', + `text` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文字描述', + `user_id` bigint NULL DEFAULT NULL COMMENT '用户ID', + `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'ai类型', + `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源', + `is_top` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否置顶:N-否 Y-是', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'ai作品表-作废' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of ai_work +-- ---------------------------- + +-- ---------------------------- +-- Table structure for gen_table +-- ---------------------------- +DROP TABLE IF EXISTS `gen_table`; +CREATE TABLE `gen_table` ( + `table_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号', + `table_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表名称', + `table_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '表描述', + `sub_table_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联子表的表名', + `sub_table_fk_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子表关联的外键名', + `class_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '实体类名称', + `tpl_category` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'crud' COMMENT '使用的模板(crud单表操作 tree树表操作)', + `tpl_web_type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '前端模板类型(element-ui模版 element-plus模版)', + `package_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成包路径', + `module_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成模块名', + `business_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成业务名', + `function_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能名', + `function_author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '生成功能作者', + `gen_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '生成代码方式(0zip压缩包 1自定义路径)', + `gen_path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '/' COMMENT '生成路径(不填默认项目路径)', + `options` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '其它生成选项', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`table_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of gen_table +-- ---------------------------- +INSERT INTO `gen_table` VALUES (4, 'ai_user', 'ai-用户信息表', NULL, NULL, 'AiUser', 'crud', '', 'com.ruoyi.ai', 'ai', 'user', 'ai-用户信息', 'shi', '0', '/', NULL, 'admin', '2025-11-12 20:28:48', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (5, 'ai_manager', 'AI管理表', NULL, NULL, 'AiManager', 'crud', '', 'com.ruoyi.ai', 'ai', 'manager', 'AI管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 19:12:46', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (6, 'ai_banner', 'banner管理', NULL, NULL, 'AiBanner', 'crud', '', 'com.ruoyi.ai', 'ai', 'banner', 'banner管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:00', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (7, 'ai_customer_service', '客服管理', NULL, NULL, 'AiCustomerService', 'crud', '', 'com.ruoyi.ai', 'ai', 'service', '客服管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:08', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (8, 'ai_help', '', NULL, NULL, 'AiHelp', 'crud', '', 'com.ruoyi.ai', 'ai', 'help', NULL, 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:16', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (9, 'ai_order', '订单管理', NULL, NULL, 'AiOrder', 'crud', '', 'com.ruoyi.ai', 'ai', 'order', '订单管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:24', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (10, 'ai_rebate_record', '返佣记录', NULL, NULL, 'AiRebateRecord', 'crud', '', 'com.ruoyi.ai', 'ai', 'record', '返佣记录', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:32', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (11, 'ai_recharge', '充值管理', NULL, NULL, 'AiRecharge', 'crud', '', 'com.ruoyi.ai', 'ai', 'recharge', '充值管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:42', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (12, 'ai_sample_amount', '体验金活动管理', NULL, NULL, 'AiSampleAmount', 'crud', '', 'com.ruoyi.ai', 'ai', 'amount', '体验金活动管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:54:51', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (13, 'ai_sample_amount_record', '体验金领取记录', NULL, NULL, 'AiSampleAmountRecord', 'crud', '', 'com.ruoyi.ai', 'ai', 'record', '体验金领取记录', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:55:00', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (14, 'ai_user_message', '站内信管理', NULL, NULL, 'AiUserMessage', 'crud', '', 'com.ruoyi.ai', 'ai', 'message', '站内信管理', 'shi', '0', '/', NULL, 'admin', '2025-11-13 21:55:10', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (15, 'ai_balance_change_record', '余额使用记录', NULL, NULL, 'AiBalanceChangeRecord', 'crud', '', 'com.ruoyi.ai', 'ai', 'record', '余额使用记录', 'shi', '0', '/', NULL, 'admin', '2025-11-13 22:22:29', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (16, 'ai_recharge_gift', '充值赠送活动', NULL, NULL, 'AiRechargeGift', 'crud', '', 'com.ruoyi.ai', 'ai', 'gift', '充值赠送活动', 'shi', '0', '/', NULL, 'admin', '2025-11-20 21:59:10', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (17, 'ai_recharge_gift_gear', '充值赠送活动档位配置', NULL, NULL, 'AiRechargeGiftGear', 'crud', '', 'com.ruoyi.ai', 'ai', 'gear', '充值赠送活动档位配置', 'shi', '0', '/', NULL, 'admin', '2025-11-20 21:59:19', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (18, 'ai_recharge_gift_record', '充值赠送记录', NULL, NULL, 'AiRechargeGiftRecord', 'crud', '', 'com.ruoyi.ai', 'ai', 'record', '充值赠送记录', 'shi', '0', '/', NULL, 'admin', '2025-11-20 21:59:29', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (20, 'ai_tag', 'ai-标签管理', NULL, NULL, 'AiTag', 'crud', '', 'com.ruoyi.ai', 'ai', 'tag', 'ai-标签管理', 'shi', '0', '/', NULL, 'admin', '2025-11-24 22:08:12', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (21, 'ai_work', 'ai作品表', NULL, NULL, 'AiWork', 'crud', '', 'com.ruoyi.ai', 'ai', 'work', 'ai作品', 'shi', '0', '/', NULL, 'admin', '2025-11-25 22:01:50', '', NULL, NULL); +INSERT INTO `gen_table` VALUES (22, 'ai_customer', 'AI-客户配置表', NULL, NULL, 'AiCustomer', 'crud', '', 'com.ruoyi.ai', 'ai', 'customer', 'AI-客户配置', 'shi', '0', '/', NULL, 'admin', '2025-11-26 19:36:57', '', NULL, NULL); + +-- ---------------------------- +-- Table structure for gen_table_column +-- ---------------------------- +DROP TABLE IF EXISTS `gen_table_column`; +CREATE TABLE `gen_table_column` ( + `column_id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号', + `table_id` bigint NULL DEFAULT NULL COMMENT '归属表编号', + `column_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列名称', + `column_comment` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列描述', + `column_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '列类型', + `java_type` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA类型', + `java_field` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'JAVA字段名', + `is_pk` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否主键(1是)', + `is_increment` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否自增(1是)', + `is_required` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否必填(1是)', + `is_insert` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否为插入字段(1是)', + `is_edit` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否编辑字段(1是)', + `is_list` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否列表字段(1是)', + `is_query` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否查询字段(1是)', + `query_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'EQ' COMMENT '查询方式(等于、不等于、大于、小于、范围)', + `html_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)', + `dict_type` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型', + `sort` int NULL DEFAULT NULL COMMENT '排序', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`column_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 289 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of gen_table_column +-- ---------------------------- +INSERT INTO `gen_table_column` VALUES (64, 4, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-12 20:28:49', '', NULL); +INSERT INTO `gen_table_column` VALUES (65, 4, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-12 20:28:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (66, 4, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-12 20:28:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (67, 4, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-12 20:28:51', '', NULL); +INSERT INTO `gen_table_column` VALUES (68, 4, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-12 20:28:52', '', NULL); +INSERT INTO `gen_table_column` VALUES (69, 4, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-12 20:28:52', '', NULL); +INSERT INTO `gen_table_column` VALUES (70, 4, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-12 20:28:53', '', NULL); +INSERT INTO `gen_table_column` VALUES (71, 4, 'nickname', '用户昵称', 'varchar(64)', 'String', 'nickname', '0', '0', '0', '1', '1', '1', '1', 'LIKE', 'input', '', 8, 'admin', '2025-11-12 20:28:55', '', NULL); +INSERT INTO `gen_table_column` VALUES (72, 4, 'gender', '性别:1-男,2-女', 'tinyint(1)', 'Integer', 'gender', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-12 20:28:56', '', NULL); +INSERT INTO `gen_table_column` VALUES (73, 4, 'avatar', '头像地址', 'varchar(500)', 'String', 'avatar', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'textarea', '', 10, 'admin', '2025-11-12 20:28:56', '', NULL); +INSERT INTO `gen_table_column` VALUES (74, 4, 'phone', '手机号码', 'varchar(11)', 'String', 'phone', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-12 20:28:57', '', NULL); +INSERT INTO `gen_table_column` VALUES (75, 4, 'password', '密码', 'varchar(100)', 'String', 'password', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 12, 'admin', '2025-11-12 20:28:58', '', NULL); +INSERT INTO `gen_table_column` VALUES (76, 4, 'openid', '用户唯一标识', 'varchar(64)', 'String', 'openid', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 13, 'admin', '2025-11-12 20:28:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (77, 4, 'status', '状态:1-正常,2-禁用', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 14, 'admin', '2025-11-12 20:28:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (78, 4, 'email', '邮箱', 'varchar(255)', 'String', 'email', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 15, 'admin', '2025-11-12 20:29:00', '', NULL); +INSERT INTO `gen_table_column` VALUES (79, 4, 'birthday', '生日', 'date', 'Date', 'birthday', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 16, 'admin', '2025-11-12 20:29:00', '', NULL); +INSERT INTO `gen_table_column` VALUES (80, 4, 'invitation_code', '邀请码', 'varchar(255)', 'String', 'invitationCode', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 17, 'admin', '2025-11-12 20:29:01', '', NULL); +INSERT INTO `gen_table_column` VALUES (81, 4, 'payment_url', '充值地址', 'varchar(255)', 'String', 'paymentUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 18, 'admin', '2025-11-12 20:29:01', '', NULL); +INSERT INTO `gen_table_column` VALUES (82, 4, 'login_time', '登录时间', 'datetime', 'Date', 'loginTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 19, 'admin', '2025-11-12 20:29:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (83, 4, 'balance', '余额', 'decimal(10,2)', 'BigDecimal', 'balance', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 20, 'admin', '2025-11-12 20:29:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (84, 4, 'superior_id', '上级ID', 'bigint', 'Long', 'superiorId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 21, 'admin', '2025-11-12 20:29:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (85, 5, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 19:12:47', '', NULL); +INSERT INTO `gen_table_column` VALUES (86, 5, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 19:12:48', '', NULL); +INSERT INTO `gen_table_column` VALUES (87, 5, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 19:12:48', '', NULL); +INSERT INTO `gen_table_column` VALUES (88, 5, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 19:12:49', '', NULL); +INSERT INTO `gen_table_column` VALUES (89, 5, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 19:12:49', '', NULL); +INSERT INTO `gen_table_column` VALUES (90, 5, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 19:12:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (91, 5, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 19:12:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (92, 5, 'title', 'AI标题', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 19:12:51', '', NULL); +INSERT INTO `gen_table_column` VALUES (93, 5, 'price', '价格', 'decimal(10,2)', 'BigDecimal', 'price', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 19:12:52', '', NULL); +INSERT INTO `gen_table_column` VALUES (94, 5, 'status', '状态:1-正常,2-禁用', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 10, 'admin', '2025-11-13 19:12:52', '', NULL); +INSERT INTO `gen_table_column` VALUES (95, 6, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:01', '', NULL); +INSERT INTO `gen_table_column` VALUES (96, 6, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (97, 6, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (98, 6, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (99, 6, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (100, 6, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:04', '', NULL); +INSERT INTO `gen_table_column` VALUES (101, 6, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:05', '', NULL); +INSERT INTO `gen_table_column` VALUES (102, 6, 'title', '标题', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:05', '', NULL); +INSERT INTO `gen_table_column` VALUES (103, 6, 'image_url', '图片地址', 'varchar(255)', 'String', 'imageUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:54:06', '', NULL); +INSERT INTO `gen_table_column` VALUES (104, 6, 'type', '链接类型:0-内链 1-外链', 'tinyint', 'Long', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 10, 'admin', '2025-11-13 21:54:07', '', NULL); +INSERT INTO `gen_table_column` VALUES (105, 6, 'jump_url', '跳转URL', 'varchar(255)', 'String', 'jumpUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-13 21:54:07', '', NULL); +INSERT INTO `gen_table_column` VALUES (106, 6, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 12, 'admin', '2025-11-13 21:54:08', '', NULL); +INSERT INTO `gen_table_column` VALUES (107, 7, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:10', '', NULL); +INSERT INTO `gen_table_column` VALUES (108, 7, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:11', '', NULL); +INSERT INTO `gen_table_column` VALUES (109, 7, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:12', '', NULL); +INSERT INTO `gen_table_column` VALUES (110, 7, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (111, 7, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (112, 7, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:14', '', NULL); +INSERT INTO `gen_table_column` VALUES (113, 7, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:14', '', NULL); +INSERT INTO `gen_table_column` VALUES (114, 7, 'url', '客服链接', 'varchar(255)', 'String', 'url', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:15', '', NULL); +INSERT INTO `gen_table_column` VALUES (115, 7, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 9, 'admin', '2025-11-13 21:54:16', '', NULL); +INSERT INTO `gen_table_column` VALUES (116, 8, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:18', '', NULL); +INSERT INTO `gen_table_column` VALUES (117, 8, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:18', '', NULL); +INSERT INTO `gen_table_column` VALUES (118, 8, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:19', '', NULL); +INSERT INTO `gen_table_column` VALUES (119, 8, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:20', '', NULL); +INSERT INTO `gen_table_column` VALUES (120, 8, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:21', '', NULL); +INSERT INTO `gen_table_column` VALUES (121, 8, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:21', '', NULL); +INSERT INTO `gen_table_column` VALUES (122, 8, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:22', '', NULL); +INSERT INTO `gen_table_column` VALUES (123, 8, 'title', '标题', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:22', '', NULL); +INSERT INTO `gen_table_column` VALUES (124, 8, 'content', '内容', 'text', 'String', 'content', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'editor', '', 9, 'admin', '2025-11-13 21:54:23', '', NULL); +INSERT INTO `gen_table_column` VALUES (125, 8, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 10, 'admin', '2025-11-13 21:54:23', '', NULL); +INSERT INTO `gen_table_column` VALUES (126, 9, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:25', '', NULL); +INSERT INTO `gen_table_column` VALUES (127, 9, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:25', '', NULL); +INSERT INTO `gen_table_column` VALUES (128, 9, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:26', '', NULL); +INSERT INTO `gen_table_column` VALUES (129, 9, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:27', '', NULL); +INSERT INTO `gen_table_column` VALUES (130, 9, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:27', '', NULL); +INSERT INTO `gen_table_column` VALUES (131, 9, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:28', '', NULL); +INSERT INTO `gen_table_column` VALUES (132, 9, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:28', '', NULL); +INSERT INTO `gen_table_column` VALUES (133, 9, 'order_num', '订单编号', 'varchar(255)', 'String', 'orderNum', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:29', '', NULL); +INSERT INTO `gen_table_column` VALUES (134, 9, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:54:29', '', NULL); +INSERT INTO `gen_table_column` VALUES (135, 9, 'type', '操作类型', 'int', 'Long', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 10, 'admin', '2025-11-13 21:54:30', '', NULL); +INSERT INTO `gen_table_column` VALUES (136, 9, 'amount', '金额', 'decimal(10,2)', 'BigDecimal', 'amount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-13 21:54:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (137, 9, 'result', '生成结果', 'varchar(255)', 'String', 'result', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 12, 'admin', '2025-11-13 21:54:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (138, 9, 'status', '状态:0-进行中 1-已完成 2-失败(余额退回)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 13, 'admin', '2025-11-13 21:54:32', '', NULL); +INSERT INTO `gen_table_column` VALUES (139, 10, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:33', '', NULL); +INSERT INTO `gen_table_column` VALUES (140, 10, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:34', '', NULL); +INSERT INTO `gen_table_column` VALUES (141, 10, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:34', '', NULL); +INSERT INTO `gen_table_column` VALUES (142, 10, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:35', '', NULL); +INSERT INTO `gen_table_column` VALUES (143, 10, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:35', '', NULL); +INSERT INTO `gen_table_column` VALUES (144, 10, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:36', '', NULL); +INSERT INTO `gen_table_column` VALUES (145, 10, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:37', '', NULL); +INSERT INTO `gen_table_column` VALUES (146, 10, 'superior_id', '上级ID', 'bigint', 'Long', 'superiorId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:39', '', NULL); +INSERT INTO `gen_table_column` VALUES (147, 10, 'subordinate_id', '下级ID', 'bigint', 'Long', 'subordinateId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:54:40', '', NULL); +INSERT INTO `gen_table_column` VALUES (148, 10, 'amount', '返佣金额', 'decimal(10,2)', 'BigDecimal', 'amount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-13 21:54:41', '', NULL); +INSERT INTO `gen_table_column` VALUES (149, 11, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:43', '', NULL); +INSERT INTO `gen_table_column` VALUES (150, 11, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:44', '', NULL); +INSERT INTO `gen_table_column` VALUES (151, 11, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:45', '', NULL); +INSERT INTO `gen_table_column` VALUES (152, 11, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:46', '', NULL); +INSERT INTO `gen_table_column` VALUES (153, 11, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:46', '', NULL); +INSERT INTO `gen_table_column` VALUES (154, 11, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:47', '', NULL); +INSERT INTO `gen_table_column` VALUES (155, 11, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:47', '', NULL); +INSERT INTO `gen_table_column` VALUES (156, 11, 'order_num', '充值订单号', 'varchar(255)', 'String', 'orderNum', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:48', '', NULL); +INSERT INTO `gen_table_column` VALUES (157, 11, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:54:48', '', NULL); +INSERT INTO `gen_table_column` VALUES (158, 11, 'receive_wallet', '转入钱包', 'varchar(255)', 'String', 'receiveWallet', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-13 21:54:49', '', NULL); +INSERT INTO `gen_table_column` VALUES (159, 11, 'payment_wallet', '转账钱包', 'varchar(255)', 'String', 'paymentWallet', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-13 21:54:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (160, 11, 'hash', '交易hash', 'varchar(255)', 'String', 'hash', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 12, 'admin', '2025-11-13 21:54:50', '', NULL); +INSERT INTO `gen_table_column` VALUES (161, 11, 'credited_time', '到账时间', 'datetime', 'Date', 'creditedTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 13, 'admin', '2025-11-13 21:54:51', '', NULL); +INSERT INTO `gen_table_column` VALUES (162, 12, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:54:52', '', NULL); +INSERT INTO `gen_table_column` VALUES (163, 12, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:54:53', '', NULL); +INSERT INTO `gen_table_column` VALUES (164, 12, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:54:54', '', NULL); +INSERT INTO `gen_table_column` VALUES (165, 12, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:54:54', '', NULL); +INSERT INTO `gen_table_column` VALUES (166, 12, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:54:55', '', NULL); +INSERT INTO `gen_table_column` VALUES (167, 12, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:54:56', '', NULL); +INSERT INTO `gen_table_column` VALUES (168, 12, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:54:56', '', NULL); +INSERT INTO `gen_table_column` VALUES (169, 12, 'amount', '体验金额', 'decimal(10,2)', 'BigDecimal', 'amount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:54:57', '', NULL); +INSERT INTO `gen_table_column` VALUES (170, 12, 'duration', '体验时长(h)', 'int', 'Long', 'duration', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:54:58', '', NULL); +INSERT INTO `gen_table_column` VALUES (171, 12, 'type', '活动类型:0-永久 1-周期', 'tinyint', 'Long', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 10, 'admin', '2025-11-13 21:54:58', '', NULL); +INSERT INTO `gen_table_column` VALUES (172, 12, 'start_time', '活动开始时间', 'datetime', 'Date', 'startTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 11, 'admin', '2025-11-13 21:54:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (173, 12, 'end_time', '活动结束时间', 'datetime', 'Date', 'endTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 12, 'admin', '2025-11-13 21:54:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (174, 12, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 13, 'admin', '2025-11-13 21:55:00', '', NULL); +INSERT INTO `gen_table_column` VALUES (175, 13, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:55:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (176, 13, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:55:04', '', NULL); +INSERT INTO `gen_table_column` VALUES (177, 13, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:55:04', '', NULL); +INSERT INTO `gen_table_column` VALUES (178, 13, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:55:06', '', NULL); +INSERT INTO `gen_table_column` VALUES (179, 13, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:55:06', '', NULL); +INSERT INTO `gen_table_column` VALUES (180, 13, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:55:07', '', NULL); +INSERT INTO `gen_table_column` VALUES (181, 13, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:55:07', '', NULL); +INSERT INTO `gen_table_column` VALUES (182, 13, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:55:08', '', NULL); +INSERT INTO `gen_table_column` VALUES (183, 13, 'sample_amount', '体验金额', 'decimal(10,2)', 'BigDecimal', 'sampleAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 21:55:08', '', NULL); +INSERT INTO `gen_table_column` VALUES (184, 13, 'recycle_time', '回收时间', 'datetime', 'Date', 'recycleTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 10, 'admin', '2025-11-13 21:55:09', '', NULL); +INSERT INTO `gen_table_column` VALUES (185, 14, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 21:55:10', '', NULL); +INSERT INTO `gen_table_column` VALUES (186, 14, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 21:55:11', '', NULL); +INSERT INTO `gen_table_column` VALUES (187, 14, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 21:55:12', '', NULL); +INSERT INTO `gen_table_column` VALUES (188, 14, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 21:55:12', '', NULL); +INSERT INTO `gen_table_column` VALUES (189, 14, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 21:55:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (190, 14, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 21:55:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (191, 14, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 21:55:14', '', NULL); +INSERT INTO `gen_table_column` VALUES (192, 14, 'title', '信息标题', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-13 21:55:15', '', NULL); +INSERT INTO `gen_table_column` VALUES (193, 14, 'send_type', '发送类型:0-所有用户 1-指定用户', 'tinyint', 'Long', 'sendType', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 9, 'admin', '2025-11-13 21:55:15', '', NULL); +INSERT INTO `gen_table_column` VALUES (194, 14, 'content', '发送内容', 'text', 'String', 'content', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'editor', '', 10, 'admin', '2025-11-13 21:55:16', '', NULL); +INSERT INTO `gen_table_column` VALUES (195, 15, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-13 22:22:30', '', NULL); +INSERT INTO `gen_table_column` VALUES (196, 15, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-13 22:22:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (197, 15, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-13 22:22:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (198, 15, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-13 22:22:32', '', NULL); +INSERT INTO `gen_table_column` VALUES (199, 15, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-13 22:22:32', '', NULL); +INSERT INTO `gen_table_column` VALUES (200, 15, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-13 22:22:33', '', NULL); +INSERT INTO `gen_table_column` VALUES (201, 15, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-13 22:22:34', '', NULL); +INSERT INTO `gen_table_column` VALUES (202, 15, 'type', NULL, 'tinyint(1)', 'Integer', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 8, 'admin', '2025-11-13 22:22:35', '', NULL); +INSERT INTO `gen_table_column` VALUES (203, 15, 'change_amount', '变更金额', 'decimal(10,2)', 'BigDecimal', 'changeAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-13 22:22:35', '', NULL); +INSERT INTO `gen_table_column` VALUES (204, 15, 'result_amount', '变更后金额', 'decimal(10,2)', 'BigDecimal', 'resultAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-13 22:22:36', '', NULL); +INSERT INTO `gen_table_column` VALUES (205, 16, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-20 21:59:11', '', NULL); +INSERT INTO `gen_table_column` VALUES (206, 16, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-20 21:59:12', '', NULL); +INSERT INTO `gen_table_column` VALUES (207, 16, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-20 21:59:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (208, 16, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-20 21:59:13', '', NULL); +INSERT INTO `gen_table_column` VALUES (209, 16, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-20 21:59:14', '', NULL); +INSERT INTO `gen_table_column` VALUES (210, 16, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-20 21:59:14', '', NULL); +INSERT INTO `gen_table_column` VALUES (211, 16, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-20 21:59:15', '', NULL); +INSERT INTO `gen_table_column` VALUES (212, 16, 'is_frist_recharge', '是否首充活动:0-否 1-是', 'tinyint', 'Long', 'isFristRecharge', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-20 21:59:15', '', NULL); +INSERT INTO `gen_table_column` VALUES (213, 16, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 9, 'admin', '2025-11-20 21:59:16', '', NULL); +INSERT INTO `gen_table_column` VALUES (214, 16, 'type', '活动类型:0-永久 1-周期', 'tinyint', 'Long', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 10, 'admin', '2025-11-20 21:59:17', '', NULL); +INSERT INTO `gen_table_column` VALUES (215, 16, 'start_time', '活动开始时间', 'datetime', 'Date', 'startTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 11, 'admin', '2025-11-20 21:59:17', '', NULL); +INSERT INTO `gen_table_column` VALUES (216, 16, 'end_time', '活动结束时间', 'datetime', 'Date', 'endTime', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'datetime', '', 12, 'admin', '2025-11-20 21:59:18', '', NULL); +INSERT INTO `gen_table_column` VALUES (217, 17, 'id', NULL, 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-20 21:59:20', '', NULL); +INSERT INTO `gen_table_column` VALUES (218, 17, 'recharge_id', '充值赠送活动ID', 'bigint', 'Long', 'rechargeId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2025-11-20 21:59:21', '', NULL); +INSERT INTO `gen_table_column` VALUES (219, 17, 'recharge_amount', '充值金额', 'decimal(10,2)', 'BigDecimal', 'rechargeAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 3, 'admin', '2025-11-20 21:59:21', '', NULL); +INSERT INTO `gen_table_column` VALUES (220, 17, 'gift_amount', '赠送金额', 'decimal(10,2)', 'BigDecimal', 'giftAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 4, 'admin', '2025-11-20 21:59:22', '', NULL); +INSERT INTO `gen_table_column` VALUES (221, 17, 'title', '档位说明', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 5, 'admin', '2025-11-20 21:59:23', '', NULL); +INSERT INTO `gen_table_column` VALUES (222, 17, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 6, 'admin', '2025-11-20 21:59:24', '', NULL); +INSERT INTO `gen_table_column` VALUES (223, 17, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 7, 'admin', '2025-11-20 21:59:25', '', NULL); +INSERT INTO `gen_table_column` VALUES (224, 17, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 8, 'admin', '2025-11-20 21:59:26', '', NULL); +INSERT INTO `gen_table_column` VALUES (225, 17, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 9, 'admin', '2025-11-20 21:59:27', '', NULL); +INSERT INTO `gen_table_column` VALUES (226, 17, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 10, 'admin', '2025-11-20 21:59:27', '', NULL); +INSERT INTO `gen_table_column` VALUES (227, 17, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 11, 'admin', '2025-11-20 21:59:28', '', NULL); +INSERT INTO `gen_table_column` VALUES (228, 18, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-20 21:59:30', '', NULL); +INSERT INTO `gen_table_column` VALUES (229, 18, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-20 21:59:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (230, 18, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-20 21:59:31', '', NULL); +INSERT INTO `gen_table_column` VALUES (231, 18, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-20 21:59:32', '', NULL); +INSERT INTO `gen_table_column` VALUES (232, 18, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-20 21:59:33', '', NULL); +INSERT INTO `gen_table_column` VALUES (233, 18, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-20 21:59:34', '', NULL); +INSERT INTO `gen_table_column` VALUES (234, 18, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-20 21:59:34', '', NULL); +INSERT INTO `gen_table_column` VALUES (235, 18, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-20 21:59:35', '', NULL); +INSERT INTO `gen_table_column` VALUES (236, 18, 'order_num', '充值订单号', 'varchar(255)', 'String', 'orderNum', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-20 21:59:36', '', NULL); +INSERT INTO `gen_table_column` VALUES (237, 18, 'recharge_gear_title', '档位说明', 'varchar(255)', 'String', 'rechargeGearTitle', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-20 21:59:36', '', NULL); +INSERT INTO `gen_table_column` VALUES (238, 18, 'gear_amount', '档位金额', 'decimal(10,2)', 'BigDecimal', 'gearAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-20 21:59:37', '', NULL); +INSERT INTO `gen_table_column` VALUES (239, 18, 'gift_amount', '赠送金额', 'decimal(10,2)', 'BigDecimal', 'giftAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 12, 'admin', '2025-11-20 21:59:38', '', NULL); +INSERT INTO `gen_table_column` VALUES (251, 20, 'id', '', 'bigint', 'Long', 'id', '1', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-24 22:08:13', '', '2025-11-24 22:11:15'); +INSERT INTO `gen_table_column` VALUES (252, 20, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-24 22:08:15', '', '2025-11-24 22:11:15'); +INSERT INTO `gen_table_column` VALUES (253, 20, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-24 22:08:15', '', '2025-11-24 22:11:16'); +INSERT INTO `gen_table_column` VALUES (254, 20, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-24 22:08:16', '', '2025-11-24 22:11:16'); +INSERT INTO `gen_table_column` VALUES (255, 20, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-24 22:08:17', '', '2025-11-24 22:11:17'); +INSERT INTO `gen_table_column` VALUES (256, 20, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-24 22:08:17', '', '2025-11-24 22:11:18'); +INSERT INTO `gen_table_column` VALUES (257, 20, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-24 22:08:18', '', '2025-11-24 22:11:18'); +INSERT INTO `gen_table_column` VALUES (258, 20, 'ai_id', 'aiId', 'bigint', 'Long', 'aiId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 8, 'admin', '2025-11-24 22:08:19', '', '2025-11-24 22:11:19'); +INSERT INTO `gen_table_column` VALUES (259, 20, 'title', '标签名', 'varchar(255)', 'String', 'title', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-24 22:08:19', '', '2025-11-24 22:11:19'); +INSERT INTO `gen_table_column` VALUES (260, 20, 'status', '状态(0正常 1停用)', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 10, 'admin', '2025-11-24 22:08:20', '', '2025-11-24 22:11:20'); +INSERT INTO `gen_table_column` VALUES (261, 20, 'prompt', '提示词', 'varchar(255)', 'String', 'prompt', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-24 22:08:21', '', '2025-11-24 22:11:21'); +INSERT INTO `gen_table_column` VALUES (262, 21, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-25 22:01:51', '', '2025-11-26 20:23:02'); +INSERT INTO `gen_table_column` VALUES (263, 21, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-25 22:01:51', '', '2025-11-26 20:23:03'); +INSERT INTO `gen_table_column` VALUES (264, 21, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-25 22:01:52', '', '2025-11-26 20:23:04'); +INSERT INTO `gen_table_column` VALUES (265, 21, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-25 22:01:53', '', '2025-11-26 20:23:05'); +INSERT INTO `gen_table_column` VALUES (266, 21, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-25 22:01:53', '', '2025-11-26 20:23:05'); +INSERT INTO `gen_table_column` VALUES (267, 21, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-25 22:01:54', '', '2025-11-26 20:23:06'); +INSERT INTO `gen_table_column` VALUES (268, 21, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-25 22:01:54', '', '2025-11-26 20:23:06'); +INSERT INTO `gen_table_column` VALUES (269, 21, 'url', '作品url', 'text', 'String', 'url', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'textarea', '', 8, 'admin', '2025-11-25 22:01:55', '', '2025-11-26 20:23:07'); +INSERT INTO `gen_table_column` VALUES (270, 21, 'text', '文字描述', 'varchar(255)', 'String', 'text', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-25 22:01:55', '', '2025-11-26 20:23:07'); +INSERT INTO `gen_table_column` VALUES (271, 21, 'user_id', '用户ID', 'bigint', 'Long', 'userId', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-25 22:01:56', '', '2025-11-26 20:23:08'); +INSERT INTO `gen_table_column` VALUES (272, 21, 'type', 'ai类型', 'varchar(255)', 'String', 'type', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'select', '', 11, 'admin', '2025-11-25 22:01:57', '', '2025-11-26 20:23:09'); +INSERT INTO `gen_table_column` VALUES (273, 22, 'id', '主键ID', 'bigint', 'Long', 'id', '1', '1', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2025-11-26 19:36:58', '', NULL); +INSERT INTO `gen_table_column` VALUES (274, 22, 'del_flag', '删除标志(0代表存在 2代表删除)', 'char(1)', 'String', 'delFlag', '0', '0', '1', '1', NULL, NULL, NULL, 'EQ', 'input', '', 2, 'admin', '2025-11-26 19:36:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (275, 22, 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'input', '', 3, 'admin', '2025-11-26 19:36:59', '', NULL); +INSERT INTO `gen_table_column` VALUES (276, 22, 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', '0', '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 4, 'admin', '2025-11-26 19:37:00', '', NULL); +INSERT INTO `gen_table_column` VALUES (277, 22, 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'input', '', 5, 'admin', '2025-11-26 19:37:00', '', NULL); +INSERT INTO `gen_table_column` VALUES (278, 22, 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', '0', '1', '1', NULL, NULL, 'EQ', 'datetime', '', 6, 'admin', '2025-11-26 19:37:01', '', NULL); +INSERT INTO `gen_table_column` VALUES (279, 22, 'remark', '备注', 'varchar(500)', 'String', 'remark', '0', '0', '0', '1', '1', '1', NULL, 'EQ', 'textarea', '', 7, 'admin', '2025-11-26 19:37:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (280, 22, 'user_name', '客户名称', 'varchar(255)', 'String', 'userName', '0', '0', '0', '1', '1', '1', '1', 'LIKE', 'input', '', 8, 'admin', '2025-11-26 19:37:02', '', NULL); +INSERT INTO `gen_table_column` VALUES (281, 22, 'user_code', '客户编号', 'varchar(255)', 'String', 'userCode', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 9, 'admin', '2025-11-26 19:37:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (282, 22, 'user_email', '客户联系方式', 'varchar(255)', 'String', 'userEmail', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 10, 'admin', '2025-11-26 19:37:03', '', NULL); +INSERT INTO `gen_table_column` VALUES (283, 22, 'rebate_amount', '返佣比例', 'varchar(255)', 'String', 'rebateAmount', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 11, 'admin', '2025-11-26 19:37:04', '', NULL); +INSERT INTO `gen_table_column` VALUES (284, 22, 'service_url', '客服链接', 'varchar(500)', 'String', 'serviceUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'textarea', '', 12, 'admin', '2025-11-26 19:37:04', '', NULL); +INSERT INTO `gen_table_column` VALUES (285, 22, 'logo_url', 'logo链接', 'varchar(500)', 'String', 'logoUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'textarea', '', 13, 'admin', '2025-11-26 19:37:05', '', NULL); +INSERT INTO `gen_table_column` VALUES (286, 22, 'banner_url', 'banner链接', 'varchar(500)', 'String', 'bannerUrl', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'textarea', '', 14, 'admin', '2025-11-26 19:37:06', '', NULL); +INSERT INTO `gen_table_column` VALUES (287, 22, 'status', '状态:0-正常,1-禁用', 'tinyint(1)', 'Integer', 'status', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'radio', '', 15, 'admin', '2025-11-26 19:37:06', '', NULL); +INSERT INTO `gen_table_column` VALUES (288, 21, 'source', '来源', 'varchar(255)', 'String', 'source', '0', '0', '0', '1', '1', '1', '1', 'EQ', 'input', '', 12, '', '2025-11-26 20:23:09', '', NULL); + +-- ---------------------------- +-- Table structure for qrtz_blob_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_blob_triggers`; +CREATE TABLE `qrtz_blob_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + `blob_data` blob NULL COMMENT '存放持久化Trigger对象', + PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, + CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Blob类型的触发器表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_blob_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_calendars +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_calendars`; +CREATE TABLE `qrtz_calendars` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '日历名称', + `calendar` blob NOT NULL COMMENT '存放持久化calendar对象', + PRIMARY KEY (`sched_name`, `calendar_name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '日历信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_calendars +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_cron_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_cron_triggers`; +CREATE TABLE `qrtz_cron_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + `cron_expression` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'cron表达式', + `time_zone_id` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '时区', + PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, + CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Cron类型的触发器表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_cron_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_fired_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_fired_triggers`; +CREATE TABLE `qrtz_fired_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `entry_id` varchar(95) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例id', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度器实例名', + `fired_time` bigint NOT NULL COMMENT '触发的时间', + `sched_time` bigint NOT NULL COMMENT '定时器制定的时间', + `priority` int NOT NULL COMMENT '优先级', + `state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态', + `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务名称', + `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务组名', + `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否并发', + `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否接受恢复执行', + PRIMARY KEY (`sched_name`, `entry_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '已触发的触发器表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_fired_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_job_details +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_job_details`; +CREATE TABLE `qrtz_job_details` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称', + `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名', + `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍', + `job_class_name` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '执行任务类名称', + `is_durable` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否持久化', + `is_nonconcurrent` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否并发', + `is_update_data` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否更新数据', + `requests_recovery` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '是否接受恢复执行', + `job_data` blob NULL COMMENT '存放持久化job对象', + PRIMARY KEY (`sched_name`, `job_name`, `job_group`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务详细信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_job_details +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_locks +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_locks`; +CREATE TABLE `qrtz_locks` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `lock_name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '悲观锁名称', + PRIMARY KEY (`sched_name`, `lock_name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '存储的悲观锁信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_locks +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_paused_trigger_grps +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`; +CREATE TABLE `qrtz_paused_trigger_grps` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + PRIMARY KEY (`sched_name`, `trigger_group`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '暂停的触发器表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_paused_trigger_grps +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_scheduler_state +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_scheduler_state`; +CREATE TABLE `qrtz_scheduler_state` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `instance_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实例名称', + `last_checkin_time` bigint NOT NULL COMMENT '上次检查时间', + `checkin_interval` bigint NOT NULL COMMENT '检查间隔时间', + PRIMARY KEY (`sched_name`, `instance_name`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '调度器状态表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_scheduler_state +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_simple_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_simple_triggers`; +CREATE TABLE `qrtz_simple_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + `repeat_count` bigint NOT NULL COMMENT '重复的次数统计', + `repeat_interval` bigint NOT NULL COMMENT '重复的间隔时间', + `times_triggered` bigint NOT NULL COMMENT '已经触发的次数', + PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, + CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '简单触发器的信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_simple_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_simprop_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_simprop_triggers`; +CREATE TABLE `qrtz_simprop_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_name的外键', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_triggers表trigger_group的外键', + `str_prop_1` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第一个参数', + `str_prop_2` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第二个参数', + `str_prop_3` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'String类型的trigger的第三个参数', + `int_prop_1` int NULL DEFAULT NULL COMMENT 'int类型的trigger的第一个参数', + `int_prop_2` int NULL DEFAULT NULL COMMENT 'int类型的trigger的第二个参数', + `long_prop_1` bigint NULL DEFAULT NULL COMMENT 'long类型的trigger的第一个参数', + `long_prop_2` bigint NULL DEFAULT NULL COMMENT 'long类型的trigger的第二个参数', + `dec_prop_1` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第一个参数', + `dec_prop_2` decimal(13, 4) NULL DEFAULT NULL COMMENT 'decimal类型的trigger的第二个参数', + `bool_prop_1` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第一个参数', + `bool_prop_2` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Boolean类型的trigger的第二个参数', + PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, + CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '同步机制的行锁表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_simprop_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for qrtz_triggers +-- ---------------------------- +DROP TABLE IF EXISTS `qrtz_triggers`; +CREATE TABLE `qrtz_triggers` ( + `sched_name` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调度名称', + `trigger_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的名字', + `trigger_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器所属组的名字', + `job_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_name的外键', + `job_group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'qrtz_job_details表job_group的外键', + `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '相关介绍', + `next_fire_time` bigint NULL DEFAULT NULL COMMENT '上一次触发时间(毫秒)', + `prev_fire_time` bigint NULL DEFAULT NULL COMMENT '下一次触发时间(默认为-1表示不触发)', + `priority` int NULL DEFAULT NULL COMMENT '优先级', + `trigger_state` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器状态', + `trigger_type` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '触发器的类型', + `start_time` bigint NOT NULL COMMENT '开始时间', + `end_time` bigint NULL DEFAULT NULL COMMENT '结束时间', + `calendar_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日程表名称', + `misfire_instr` smallint NULL DEFAULT NULL COMMENT '补偿执行的策略', + `job_data` blob NULL COMMENT '存放持久化job对象', + PRIMARY KEY (`sched_name`, `trigger_name`, `trigger_group`) USING BTREE, + INDEX `sched_name`(`sched_name` ASC, `job_name` ASC, `job_group` ASC) USING BTREE, + CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '触发器详细信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of qrtz_triggers +-- ---------------------------- + +-- ---------------------------- +-- Table structure for sys_config +-- ---------------------------- +DROP TABLE IF EXISTS `sys_config`; +CREATE TABLE `sys_config` ( + `config_id` int NOT NULL AUTO_INCREMENT COMMENT '参数主键', + `config_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称', + `config_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名', + `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值', + `config_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`config_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_config +-- ---------------------------- +INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2025-11-09 01:57:50', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'); +INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2025-11-09 01:57:51', '', NULL, '初始化密码 123456'); +INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2025-11-09 01:57:51', '', NULL, '深色主题theme-dark,浅色主题theme-light'); +INSERT INTO `sys_config` VALUES (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', '2025-11-09 01:57:51', '', NULL, '是否开启验证码功能(true开启,false关闭)'); +INSERT INTO `sys_config` VALUES (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2025-11-09 01:57:51', '', NULL, '是否开启注册用户功能(true开启,false关闭)'); +INSERT INTO `sys_config` VALUES (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', '2025-11-09 01:57:52', '', NULL, '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)'); +INSERT INTO `sys_config` VALUES (7, '用户管理-初始密码修改策略', 'sys.account.initPasswordModify', '1', 'Y', 'admin', '2025-11-09 01:57:52', '', NULL, '0:初始密码修改策略关闭,没有任何提示,1:提醒用户,如果未修改初始密码,则在登录时就会提醒修改密码对话框'); +INSERT INTO `sys_config` VALUES (8, '用户管理-账号密码更新周期', 'sys.account.passwordValidateDays', '0', 'Y', 'admin', '2025-11-09 01:57:52', '', NULL, '密码更新周期(填写数字,数据初始化值为0不限制,若修改必须为大于0小于365的正整数),如果超过这个周期登录系统时,则在登录时就会提醒修改密码对话框'); +INSERT INTO `sys_config` VALUES (100, '一级返佣比例%', 'sys.invite.commission', '1', 'N', 'admin', '2025-11-19 20:22:03', 'admin', '2025-12-23 09:04:26', '用户注册给上级用户赠送佣金'); +INSERT INTO `sys_config` VALUES (101, '门户端logo', 'sys.portal.logo', 'https://images.iqyjsnwv.com/2025/11/28/ebf066d3_8005808.png', 'N', 'admin', '2025-11-25 20:32:01', 'admin', '2025-11-27 17:11:16', NULL); +INSERT INTO `sys_config` VALUES (102, '累充金额', 'sys.total.amount', '100', 'N', 'admin', '2025-12-26 11:29:04', 'admin', '2026-01-07 15:13:44', NULL); + +-- ---------------------------- +-- Table structure for sys_dept +-- ---------------------------- +DROP TABLE IF EXISTS `sys_dept`; +CREATE TABLE `sys_dept` ( + `dept_id` bigint NOT NULL AUTO_INCREMENT COMMENT '部门id', + `parent_id` bigint NULL DEFAULT 0 COMMENT '父部门id', + `ancestors` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表', + `dept_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称', + `order_num` int NULL DEFAULT 0 COMMENT '显示顺序', + `leader` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人', + `phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话', + `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`dept_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_dept +-- ---------------------------- +INSERT INTO `sys_dept` VALUES (100, 0, '0', '若依科技', 0, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:46', '', NULL); +INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '深圳总公司', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:47', '', NULL); +INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:47', '', NULL); +INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:47', '', NULL); +INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:47', '', NULL); +INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:48', '', NULL); +INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:48', '', NULL); +INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:49', '', NULL); +INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:49', '', NULL); +INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2025-11-09 01:56:49', '', NULL); +INSERT INTO `sys_dept` VALUES (200, 100, '0,100', '胸部', 3, NULL, NULL, NULL, '0', '2', 'admin', '2025-11-25 13:07:38', '', NULL); +INSERT INTO `sys_dept` VALUES (201, 200, '0,100,200', '大奶', 1, NULL, NULL, NULL, '0', '2', 'admin', '2025-11-25 13:07:48', '', NULL); +INSERT INTO `sys_dept` VALUES (202, 201, '0,100,200,201', '水滴型', 1, NULL, NULL, NULL, '0', '2', 'admin', '2025-11-25 13:08:04', '', NULL); +INSERT INTO `sys_dept` VALUES (203, 200, '0,100,200', '小奶', 2, NULL, NULL, NULL, '0', '2', 'admin', '2025-11-25 13:08:13', '', NULL); +INSERT INTO `sys_dept` VALUES (204, 201, '0,100,200,201', '粉色', 2, NULL, NULL, NULL, '0', '2', 'admin', '2025-11-25 13:08:25', '', NULL); + +-- ---------------------------- +-- Table structure for sys_dict_data +-- ---------------------------- +DROP TABLE IF EXISTS `sys_dict_data`; +CREATE TABLE `sys_dict_data` ( + `dict_code` bigint NOT NULL AUTO_INCREMENT COMMENT '字典编码', + `dict_sort` int NULL DEFAULT 0 COMMENT '字典排序', + `dict_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签', + `dict_value` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值', + `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型', + `css_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)', + `list_class` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式', + `is_default` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址', + `component` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径', + `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识', + PRIMARY KEY (`dict_code`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 107 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_dict_data +-- ---------------------------- +INSERT INTO `sys_dict_data` VALUES (1, 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '性别男', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (2, 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '性别女', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '性别未知', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '显示菜单', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '隐藏菜单', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '正常状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '停用状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '正常状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '停用状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '默认分组', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '系统分组', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (12, 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '系统默认是', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (13, 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '系统默认否', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '通知', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '公告', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '正常状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '关闭状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (18, 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '其他操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (19, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '新增操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (20, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '修改操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (21, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '删除操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (22, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2025-08-21 15:42:14', '', NULL, '授权操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (23, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '导出操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (24, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '导入操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (25, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '强退操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (26, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '生成操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (27, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '清空操作', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (28, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '正常状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (29, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2025-08-21 15:42:15', '', NULL, '停用状态', '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (100, 1, '快捷生图', '1', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-24 13:52:00', 'admin', '2025-11-24 13:53:28', NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (101, 11, '一键脱衣', '11', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-24 13:52:24', 'admin', '2025-12-03 05:06:07', NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (102, 12, '一键换衣', '12', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-24 13:52:33', 'admin', '2025-12-03 05:06:14', NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (103, 13, '一键换脸', '13', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-24 13:52:42', 'admin', '2025-11-24 13:53:45', NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (104, 21, '快捷生视频', '21', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-24 13:52:57', 'admin', '2025-11-29 16:01:06', NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (105, 22, '视频换脸', '22', 'ai_function_type', NULL, 'default', 'N', '0', 'admin', '2025-11-27 12:48:53', '', NULL, NULL, '', NULL, NULL); +INSERT INTO `sys_dict_data` VALUES (106, 1, 'XM001', 'XM001', 'ai_customer_set', NULL, 'default', 'N', '0', 'admin', '2025-12-02 03:02:18', 'admin', '2025-12-02 03:02:29', NULL, '', NULL, NULL); + +-- ---------------------------- +-- Table structure for sys_dict_type +-- ---------------------------- +DROP TABLE IF EXISTS `sys_dict_type`; +CREATE TABLE `sys_dict_type` ( + `dict_id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典主键', + `dict_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称', + `dict_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`dict_id`) USING BTREE, + UNIQUE INDEX `dict_type`(`dict_type` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 103 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_dict_type +-- ---------------------------- +INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2025-11-09 01:57:40', '', NULL, '用户性别列表'); +INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2025-11-09 01:57:40', '', NULL, '菜单状态列表'); +INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2025-11-09 01:57:40', '', NULL, '系统开关列表'); +INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2025-11-09 01:57:40', '', NULL, '任务状态列表'); +INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2025-11-09 01:57:41', '', NULL, '任务分组列表'); +INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2025-11-09 01:57:41', '', NULL, '系统是否列表'); +INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2025-11-09 01:57:41', '', NULL, '通知类型列表'); +INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2025-11-09 01:57:41', '', NULL, '通知状态列表'); +INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2025-11-09 01:57:42', '', NULL, '操作类型列表'); +INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2025-11-09 01:57:42', '', NULL, '登录状态列表'); +INSERT INTO `sys_dict_type` VALUES (100, 'AI-功能类型', 'ai_function_type', '0', 'admin', '2025-11-24 13:50:56', 'admin', '2025-11-24 13:51:18', NULL); +INSERT INTO `sys_dict_type` VALUES (102, 'AI-客户配置', 'ai_customer_set', '0', 'admin', '2025-12-02 03:01:33', 'admin', '2025-12-02 03:01:39', NULL); + +-- ---------------------------- +-- Table structure for sys_job +-- ---------------------------- +DROP TABLE IF EXISTS `sys_job`; +CREATE TABLE `sys_job` ( + `job_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务ID', + `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '任务名称', + `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名', + `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串', + `cron_expression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式', + `misfire_policy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)', + `concurrent` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1暂停)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注信息', + PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 115 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_job +-- ---------------------------- +INSERT INTO `sys_job` VALUES (1, '系统默认(无参)', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2025-11-09 01:57:53', '', NULL, ''); +INSERT INTO `sys_job` VALUES (2, '系统默认(有参)', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2025-11-09 01:57:53', '', NULL, ''); +INSERT INTO `sys_job` VALUES (3, '系统默认(多参)', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2025-11-09 01:57:54', '', NULL, ''); + +-- ---------------------------- +-- Table structure for sys_job_log +-- ---------------------------- +DROP TABLE IF EXISTS `sys_job_log`; +CREATE TABLE `sys_job_log` ( + `job_log_id` bigint NOT NULL AUTO_INCREMENT COMMENT '任务日志ID', + `job_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称', + `job_group` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务组名', + `invoke_target` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '调用目标字符串', + `job_message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '日志信息', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)', + `exception_info` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '异常信息', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`job_log_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_job_log +-- ---------------------------- +INSERT INTO `sys_job_log` VALUES (1, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'29\')', '定时回收体验金 总共耗时:43毫秒', '0', '', '2025-12-11 03:48:59'); +INSERT INTO `sys_job_log` VALUES (2, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'30\')', '定时回收体验金 总共耗时:36毫秒', '0', '', '2025-12-11 03:50:31'); +INSERT INTO `sys_job_log` VALUES (3, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'31\')', '定时回收体验金 总共耗时:42毫秒', '0', '', '2025-12-13 18:35:44'); +INSERT INTO `sys_job_log` VALUES (4, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'32\')', '定时回收体验金 总共耗时:46毫秒', '0', '', '2025-12-13 18:58:22'); +INSERT INTO `sys_job_log` VALUES (5, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'33\')', '定时回收体验金 总共耗时:50毫秒', '0', '', '2025-12-14 03:22:49'); +INSERT INTO `sys_job_log` VALUES (6, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'34\')', '定时回收体验金 总共耗时:44毫秒', '0', '', '2025-12-14 07:52:57'); +INSERT INTO `sys_job_log` VALUES (7, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'35\')', '定时回收体验金 总共耗时:125毫秒', '0', '', '2025-12-15 11:05:00'); +INSERT INTO `sys_job_log` VALUES (8, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'36\')', '定时回收体验金 总共耗时:37毫秒', '0', '', '2025-12-15 11:07:56'); +INSERT INTO `sys_job_log` VALUES (9, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'37\')', '定时回收体验金 总共耗时:63毫秒', '0', '', '2025-12-16 07:07:46'); +INSERT INTO `sys_job_log` VALUES (10, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'38\')', '定时回收体验金 总共耗时:72毫秒', '0', '', '2025-12-19 23:04:18'); +INSERT INTO `sys_job_log` VALUES (11, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'39\')', '定时回收体验金 总共耗时:64毫秒', '0', '', '2025-12-27 17:48:23'); +INSERT INTO `sys_job_log` VALUES (12, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'40\')', '定时回收体验金 总共耗时:23毫秒', '0', '', '2025-12-30 12:28:25'); +INSERT INTO `sys_job_log` VALUES (13, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'41\')', '定时回收体验金 总共耗时:412毫秒', '0', '', '2025-12-30 12:58:13'); +INSERT INTO `sys_job_log` VALUES (14, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'42\')', '定时回收体验金 总共耗时:59毫秒', '0', '', '2025-12-30 14:42:02'); +INSERT INTO `sys_job_log` VALUES (15, '定时回收体验金', 'DEFAULT', 'ryTask.deductSampleAmount(\'43\')', '定时回收体验金 总共耗时:54毫秒', '0', '', '2025-12-31 15:20:06'); + +-- ---------------------------- +-- Table structure for sys_logininfor +-- ---------------------------- +DROP TABLE IF EXISTS `sys_logininfor`; +CREATE TABLE `sys_logininfor` ( + `info_id` bigint NOT NULL AUTO_INCREMENT COMMENT '访问ID', + `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号', + `ipaddr` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址', + `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录地点', + `browser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '浏览器类型', + `os` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作系统', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)', + `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息', + `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间', + PRIMARY KEY (`info_id`) USING BTREE, + INDEX `idx_sys_logininfor_s`(`status` ASC) USING BTREE, + INDEX `idx_sys_logininfor_lt`(`login_time` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 264 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_logininfor +-- ---------------------------- +INSERT INTO `sys_logininfor` VALUES (100, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-12 20:08:17'); +INSERT INTO `sys_logininfor` VALUES (101, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-12 20:48:22'); +INSERT INTO `sys_logininfor` VALUES (102, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-12 20:48:26'); +INSERT INTO `sys_logininfor` VALUES (103, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-13 19:12:29'); +INSERT INTO `sys_logininfor` VALUES (104, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-14 18:41:26'); +INSERT INTO `sys_logininfor` VALUES (105, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码已失效', '2025-11-14 19:31:19'); +INSERT INTO `sys_logininfor` VALUES (106, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-14 19:31:22'); +INSERT INTO `sys_logininfor` VALUES (107, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-14 21:15:19'); +INSERT INTO `sys_logininfor` VALUES (108, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-14 21:15:20'); +INSERT INTO `sys_logininfor` VALUES (109, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-14 21:15:25'); +INSERT INTO `sys_logininfor` VALUES (110, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-15 19:57:07'); +INSERT INTO `sys_logininfor` VALUES (111, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-16 19:38:30'); +INSERT INTO `sys_logininfor` VALUES (112, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-17 23:13:45'); +INSERT INTO `sys_logininfor` VALUES (113, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-19 20:15:21'); +INSERT INTO `sys_logininfor` VALUES (114, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-19 22:21:27'); +INSERT INTO `sys_logininfor` VALUES (115, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-19 22:21:41'); +INSERT INTO `sys_logininfor` VALUES (116, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-20 19:18:29'); +INSERT INTO `sys_logininfor` VALUES (117, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-20 20:02:51'); +INSERT INTO `sys_logininfor` VALUES (118, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-21 11:09:29'); +INSERT INTO `sys_logininfor` VALUES (119, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-21 11:10:42'); +INSERT INTO `sys_logininfor` VALUES (120, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-21 21:13:18'); +INSERT INTO `sys_logininfor` VALUES (121, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-22 19:44:24'); +INSERT INTO `sys_logininfor` VALUES (122, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码已失效', '2025-11-23 09:44:18'); +INSERT INTO `sys_logininfor` VALUES (123, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 09:44:21'); +INSERT INTO `sys_logininfor` VALUES (124, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 09:44:24'); +INSERT INTO `sys_logininfor` VALUES (125, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-11-23 09:44:46'); +INSERT INTO `sys_logininfor` VALUES (126, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 09:44:51'); +INSERT INTO `sys_logininfor` VALUES (127, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 09:44:52'); +INSERT INTO `sys_logininfor` VALUES (128, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码已失效', '2025-11-23 09:52:50'); +INSERT INTO `sys_logininfor` VALUES (129, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 09:52:54'); +INSERT INTO `sys_logininfor` VALUES (130, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 19:52:03'); +INSERT INTO `sys_logininfor` VALUES (131, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 19:52:04'); +INSERT INTO `sys_logininfor` VALUES (132, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 20:30:51'); +INSERT INTO `sys_logininfor` VALUES (133, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 20:30:52'); +INSERT INTO `sys_logininfor` VALUES (134, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 20:31:14'); +INSERT INTO `sys_logininfor` VALUES (135, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 20:31:15'); +INSERT INTO `sys_logininfor` VALUES (136, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 20:31:30'); +INSERT INTO `sys_logininfor` VALUES (137, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-23 20:31:30'); +INSERT INTO `sys_logininfor` VALUES (138, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 20:33:58'); +INSERT INTO `sys_logininfor` VALUES (139, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-23 22:31:34'); +INSERT INTO `sys_logininfor` VALUES (140, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-24 13:41:38'); +INSERT INTO `sys_logininfor` VALUES (141, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-24 16:33:47'); +INSERT INTO `sys_logininfor` VALUES (142, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-24 16:34:04'); +INSERT INTO `sys_logininfor` VALUES (143, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-25 10:27:46'); +INSERT INTO `sys_logininfor` VALUES (144, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-11-25 11:20:40'); +INSERT INTO `sys_logininfor` VALUES (145, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-25 11:20:44'); +INSERT INTO `sys_logininfor` VALUES (146, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-25 11:57:18'); +INSERT INTO `sys_logininfor` VALUES (147, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-25 19:30:06'); +INSERT INTO `sys_logininfor` VALUES (148, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-25 21:21:11'); +INSERT INTO `sys_logininfor` VALUES (149, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-26 11:20:52'); +INSERT INTO `sys_logininfor` VALUES (150, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-26 15:48:08'); +INSERT INTO `sys_logininfor` VALUES (151, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-26 19:44:00'); +INSERT INTO `sys_logininfor` VALUES (152, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-26 20:22:17'); +INSERT INTO `sys_logininfor` VALUES (153, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-11-27 12:44:24'); +INSERT INTO `sys_logininfor` VALUES (154, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-27 12:44:28'); +INSERT INTO `sys_logininfor` VALUES (155, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-27 14:56:10'); +INSERT INTO `sys_logininfor` VALUES (156, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '1', '验证码已失效', '2025-11-27 19:29:15'); +INSERT INTO `sys_logininfor` VALUES (157, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-27 19:29:18'); +INSERT INTO `sys_logininfor` VALUES (158, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-27 22:17:14'); +INSERT INTO `sys_logininfor` VALUES (159, 'admin', '127.0.0.1', '内网IP', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 00:35:25'); +INSERT INTO `sys_logininfor` VALUES (160, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-27 17:09:55'); +INSERT INTO `sys_logininfor` VALUES (161, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 01:06:22'); +INSERT INTO `sys_logininfor` VALUES (162, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 03:50:50'); +INSERT INTO `sys_logininfor` VALUES (163, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 07:56:33'); +INSERT INTO `sys_logininfor` VALUES (164, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-28 07:57:03'); +INSERT INTO `sys_logininfor` VALUES (165, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-11-28 07:57:07'); +INSERT INTO `sys_logininfor` VALUES (166, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 07:57:11'); +INSERT INTO `sys_logininfor` VALUES (167, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '0', '退出成功', '2025-11-28 07:58:00'); +INSERT INTO `sys_logininfor` VALUES (168, 'admin', '154.92.130.93', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-28 07:58:16'); +INSERT INTO `sys_logininfor` VALUES (169, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-11-29 15:08:56'); +INSERT INTO `sys_logininfor` VALUES (170, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-29 15:27:51'); +INSERT INTO `sys_logininfor` VALUES (171, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-29 15:28:23'); +INSERT INTO `sys_logininfor` VALUES (172, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-11-30 00:36:40'); +INSERT INTO `sys_logininfor` VALUES (173, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-11-30 00:37:00'); +INSERT INTO `sys_logininfor` VALUES (174, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-11-30 00:37:06'); +INSERT INTO `sys_logininfor` VALUES (175, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-01 08:36:21'); +INSERT INTO `sys_logininfor` VALUES (176, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-01 08:36:22'); +INSERT INTO `sys_logininfor` VALUES (177, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-01 08:36:30'); +INSERT INTO `sys_logininfor` VALUES (178, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-01 08:36:51'); +INSERT INTO `sys_logininfor` VALUES (179, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-01 23:55:04'); +INSERT INTO `sys_logininfor` VALUES (180, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-01 23:55:04'); +INSERT INTO `sys_logininfor` VALUES (181, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-01 23:55:09'); +INSERT INTO `sys_logininfor` VALUES (182, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-01 23:55:23'); +INSERT INTO `sys_logininfor` VALUES (183, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-02 02:15:47'); +INSERT INTO `sys_logininfor` VALUES (184, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-02 02:15:48'); +INSERT INTO `sys_logininfor` VALUES (185, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-02 02:15:58'); +INSERT INTO `sys_logininfor` VALUES (186, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-02 07:14:11'); +INSERT INTO `sys_logininfor` VALUES (187, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-02 07:14:19'); +INSERT INTO `sys_logininfor` VALUES (188, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-02 07:14:22'); +INSERT INTO `sys_logininfor` VALUES (189, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-03 02:59:01'); +INSERT INTO `sys_logininfor` VALUES (190, 'admin', '154.92.130.95', 'XX XX', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-03 03:01:47'); +INSERT INTO `sys_logininfor` VALUES (191, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-03 04:57:21'); +INSERT INTO `sys_logininfor` VALUES (192, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-03 04:57:29'); +INSERT INTO `sys_logininfor` VALUES (193, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-03 04:57:32'); +INSERT INTO `sys_logininfor` VALUES (194, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-03 04:57:35'); +INSERT INTO `sys_logininfor` VALUES (195, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:29:29'); +INSERT INTO `sys_logininfor` VALUES (196, 'ruoyi', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:29:40'); +INSERT INTO `sys_logininfor` VALUES (197, 'ruoyi', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:29:56'); +INSERT INTO `sys_logininfor` VALUES (198, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:30:51'); +INSERT INTO `sys_logininfor` VALUES (199, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-04 02:31:01'); +INSERT INTO `sys_logininfor` VALUES (200, 'druid', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '验证码已失效', '2025-12-04 02:34:29'); +INSERT INTO `sys_logininfor` VALUES (201, 'druid', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:34:30'); +INSERT INTO `sys_logininfor` VALUES (202, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 02:34:40'); +INSERT INTO `sys_logininfor` VALUES (203, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-04 02:34:49'); +INSERT INTO `sys_logininfor` VALUES (204, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-04 08:05:55'); +INSERT INTO `sys_logininfor` VALUES (205, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-04 08:06:04'); +INSERT INTO `sys_logininfor` VALUES (206, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-05 09:15:42'); +INSERT INTO `sys_logininfor` VALUES (207, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-05 09:15:47'); +INSERT INTO `sys_logininfor` VALUES (208, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-06 06:06:00'); +INSERT INTO `sys_logininfor` VALUES (209, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-06 06:06:10'); +INSERT INTO `sys_logininfor` VALUES (210, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-06 06:06:15'); +INSERT INTO `sys_logininfor` VALUES (211, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-08 02:43:17'); +INSERT INTO `sys_logininfor` VALUES (212, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-08 02:43:24'); +INSERT INTO `sys_logininfor` VALUES (213, 'admin', '2407:cdc0:b00a::19', '内网IP', 'Chrome 14', 'Mac OS X', '1', '用户不存在/密码错误', '2025-12-08 09:17:55'); +INSERT INTO `sys_logininfor` VALUES (214, 'admin', '2407:cdc0:b00a::19', '内网IP', 'Chrome 14', 'Mac OS X', '1', '用户不存在/密码错误', '2025-12-08 09:18:01'); +INSERT INTO `sys_logininfor` VALUES (215, 'admin', '2407:cdc0:b00a::19', '内网IP', 'Chrome 14', 'Mac OS X', '1', '用户不存在/密码错误', '2025-12-08 09:18:04'); +INSERT INTO `sys_logininfor` VALUES (216, 'admin', '2407:cdc0:b00a::19', '内网IP', 'Chrome 14', 'Mac OS X', '1', '用户不存在/密码错误', '2025-12-08 09:18:15'); +INSERT INTO `sys_logininfor` VALUES (217, 'admin', '2407:cdc0:b00a::19', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2025-12-08 09:18:35'); +INSERT INTO `sys_logininfor` VALUES (218, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-08 13:30:01'); +INSERT INTO `sys_logininfor` VALUES (219, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-08 13:30:14'); +INSERT INTO `sys_logininfor` VALUES (220, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-11 02:59:43'); +INSERT INTO `sys_logininfor` VALUES (221, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-11 02:59:50'); +INSERT INTO `sys_logininfor` VALUES (222, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-14 14:33:36'); +INSERT INTO `sys_logininfor` VALUES (223, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-14 14:33:43'); +INSERT INTO `sys_logininfor` VALUES (224, 'admin', '37.9.33.202', ' ', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2025-12-15 10:00:38'); +INSERT INTO `sys_logininfor` VALUES (225, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-15 11:39:33'); +INSERT INTO `sys_logininfor` VALUES (226, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-15 11:39:42'); +INSERT INTO `sys_logininfor` VALUES (227, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-16 02:33:53'); +INSERT INTO `sys_logininfor` VALUES (228, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-16 02:33:59'); +INSERT INTO `sys_logininfor` VALUES (229, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-16 14:41:44'); +INSERT INTO `sys_logininfor` VALUES (230, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-17 03:18:07'); +INSERT INTO `sys_logininfor` VALUES (231, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2025-12-17 03:18:14'); +INSERT INTO `sys_logininfor` VALUES (232, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-17 03:18:17'); +INSERT INTO `sys_logininfor` VALUES (233, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-18 11:11:44'); +INSERT INTO `sys_logininfor` VALUES (234, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-18 11:11:48'); +INSERT INTO `sys_logininfor` VALUES (235, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-18 11:11:50'); +INSERT INTO `sys_logininfor` VALUES (236, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-18 11:11:59'); +INSERT INTO `sys_logininfor` VALUES (237, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-19 06:50:58'); +INSERT INTO `sys_logininfor` VALUES (238, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-19 07:06:28'); +INSERT INTO `sys_logininfor` VALUES (239, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-19 07:06:36'); +INSERT INTO `sys_logininfor` VALUES (240, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2025-12-23 08:59:46'); +INSERT INTO `sys_logininfor` VALUES (241, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-25 15:48:33'); +INSERT INTO `sys_logininfor` VALUES (242, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-25 15:48:35'); +INSERT INTO `sys_logininfor` VALUES (243, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-26 08:35:24'); +INSERT INTO `sys_logininfor` VALUES (244, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-26 08:35:33'); +INSERT INTO `sys_logininfor` VALUES (245, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2025-12-26 11:25:58'); +INSERT INTO `sys_logininfor` VALUES (246, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-26 11:26:07'); +INSERT INTO `sys_logininfor` VALUES (247, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-26 22:53:55'); +INSERT INTO `sys_logininfor` VALUES (248, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-29 12:08:56'); +INSERT INTO `sys_logininfor` VALUES (249, 'admin', '23.249.17.33', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-29 19:14:01'); +INSERT INTO `sys_logininfor` VALUES (250, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2025-12-30 11:20:39'); +INSERT INTO `sys_logininfor` VALUES (251, 'admin', '154.92.130.95', '香港 ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2025-12-30 11:30:55'); +INSERT INTO `sys_logininfor` VALUES (252, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '退出成功', '2026-01-05 15:35:09'); +INSERT INTO `sys_logininfor` VALUES (253, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2026-01-05 15:35:18'); +INSERT INTO `sys_logininfor` VALUES (254, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2026-01-05 15:35:34'); +INSERT INTO `sys_logininfor` VALUES (255, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '验证码错误', '2026-01-05 15:35:40'); +INSERT INTO `sys_logininfor` VALUES (256, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2026-01-05 15:35:44'); +INSERT INTO `sys_logininfor` VALUES (257, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '退出成功', '2026-01-05 15:35:52'); +INSERT INTO `sys_logininfor` VALUES (258, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2026-01-05 15:36:03'); +INSERT INTO `sys_logininfor` VALUES (259, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '退出成功', '2026-01-05 15:36:40'); +INSERT INTO `sys_logininfor` VALUES (260, 'admin', '2602:fbf1:b001::36', '内网IP', 'Chrome 14', 'Mac OS X', '0', '登录成功', '2026-01-05 15:36:52'); +INSERT INTO `sys_logininfor` VALUES (261, 'admin', '154.39.66.119', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2026-01-05 15:37:21'); +INSERT INTO `sys_logininfor` VALUES (262, 'admin', '188.253.116.99', ' ', 'Chrome 14', 'Windows 10', '1', '用户不存在/密码错误', '2026-01-07 15:13:07'); +INSERT INTO `sys_logininfor` VALUES (263, 'admin', '188.253.116.99', ' ', 'Chrome 14', 'Windows 10', '0', '登录成功', '2026-01-07 15:13:16'); + +-- ---------------------------- +-- Table structure for sys_menu +-- ---------------------------- +DROP TABLE IF EXISTS `sys_menu`; +CREATE TABLE `sys_menu` ( + `menu_id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID', + `menu_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称', + `parent_id` bigint NULL DEFAULT 0 COMMENT '父菜单ID', + `order_num` int NULL DEFAULT 0 COMMENT '显示顺序', + `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址', + `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径', + `query` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数', + `route_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由名称', + `is_frame` int NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)', + `is_cache` int NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)', + `menu_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)', + `visible` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)', + `perms` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识', + `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注', + PRIMARY KEY (`menu_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2020 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单权限表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_menu +-- ---------------------------- +INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 1, 'system', NULL, '', '', 1, 0, 'M', '0', '0', '', 'system', 'admin', '2025-11-09 01:56:53', '', NULL, '系统管理目录'); +INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 2, 'monitor', NULL, '', '', 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2025-11-09 01:56:54', '', NULL, '系统监控目录'); +INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 3, 'tool', NULL, '', '', 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2025-11-09 01:56:54', '', NULL, '系统工具目录'); +INSERT INTO `sys_menu` VALUES (4, '若依官网', 0, 4, 'http://ruoyi.vip', NULL, '', '', 0, 0, 'M', '1', '1', '', 'guide', 'admin', '2025-11-09 01:56:54', 'admin', '2025-11-20 20:06:40', '若依官网地址'); +INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', '', '', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2025-11-09 01:56:54', '', NULL, '用户管理菜单'); +INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', '', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2025-11-09 01:56:55', '', NULL, '角色管理菜单'); +INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', '', 1, 0, 'C', '0', '0', 'system:menu:list', 'tree-table', 'admin', '2025-11-09 01:56:55', '', NULL, '菜单管理菜单'); +INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', '', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2025-11-09 01:56:55', '', NULL, '部门管理菜单'); +INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', '', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2025-11-09 01:56:55', '', NULL, '岗位管理菜单'); +INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', '', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2025-11-09 01:56:55', '', NULL, '字典管理菜单'); +INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', '', '', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2025-11-09 01:56:56', '', NULL, '参数设置菜单'); +INSERT INTO `sys_menu` VALUES (107, '通知公告', 1, 8, 'notice', 'system/notice/index', '', '', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2025-11-09 01:56:56', '', NULL, '通知公告菜单'); +INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', '', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2025-11-09 01:56:56', '', NULL, '日志管理菜单'); +INSERT INTO `sys_menu` VALUES (109, '在线用户', 2, 1, 'online', 'monitor/online/index', '', '', 1, 0, 'C', '0', '0', 'monitor:online:list', 'online', 'admin', '2025-11-09 01:56:56', '', NULL, '在线用户菜单'); +INSERT INTO `sys_menu` VALUES (110, '定时任务', 2, 2, 'job', 'monitor/job/index', '', '', 1, 0, 'C', '0', '0', 'monitor:job:list', 'job', 'admin', '2025-11-09 01:56:57', '', NULL, '定时任务菜单'); +INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', '', '', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2025-11-09 01:56:57', '', NULL, '数据监控菜单'); +INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', '', '', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2025-11-09 01:56:57', '', NULL, '服务监控菜单'); +INSERT INTO `sys_menu` VALUES (113, '缓存监控', 2, 5, 'cache', 'monitor/cache/index', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis', 'admin', '2025-11-09 01:56:57', '', NULL, '缓存监控菜单'); +INSERT INTO `sys_menu` VALUES (114, '缓存列表', 2, 6, 'cacheList', 'monitor/cache/list', '', '', 1, 0, 'C', '0', '0', 'monitor:cache:list', 'redis-list', 'admin', '2025-11-09 01:56:58', '', NULL, '缓存列表菜单'); +INSERT INTO `sys_menu` VALUES (115, '表单构建', 3, 1, 'build', 'tool/build/index', '', '', 1, 0, 'C', '0', '0', 'tool:build:list', 'build', 'admin', '2025-11-09 01:56:58', '', NULL, '表单构建菜单'); +INSERT INTO `sys_menu` VALUES (116, '代码生成', 3, 2, 'gen', 'tool/gen/index', '', '', 1, 0, 'C', '0', '0', 'tool:gen:list', 'code', 'admin', '2025-11-09 01:56:58', '', NULL, '代码生成菜单'); +INSERT INTO `sys_menu` VALUES (117, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', '', '', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2025-11-09 01:56:58', '', NULL, '系统接口菜单'); +INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2025-11-09 01:56:59', '', NULL, '操作日志菜单'); +INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2025-11-09 01:56:59', '', NULL, '登录日志菜单'); +INSERT INTO `sys_menu` VALUES (1000, '用户查询', 100, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2025-11-09 01:56:59', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1001, '用户新增', 100, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2025-11-09 01:56:59', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1002, '用户修改', 100, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2025-11-09 01:57:00', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1003, '用户删除', 100, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2025-11-09 01:57:00', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1004, '用户导出', 100, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2025-11-09 01:57:00', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1005, '用户导入', 100, 6, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2025-11-09 01:57:00', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1006, '重置密码', 100, 7, '', '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2025-11-09 01:57:01', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1007, '角色查询', 101, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2025-11-09 01:57:01', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1008, '角色新增', 101, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2025-11-09 01:57:01', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1009, '角色修改', 101, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2025-11-09 01:57:01', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1010, '角色删除', 101, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2025-11-09 01:57:02', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1011, '角色导出', 101, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2025-11-09 01:57:02', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1012, '菜单查询', 102, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2025-11-09 01:57:02', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1013, '菜单新增', 102, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2025-11-09 01:57:02', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1014, '菜单修改', 102, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2025-11-09 01:57:03', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1015, '菜单删除', 102, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2025-11-09 01:57:03', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1016, '部门查询', 103, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2025-11-09 01:57:03', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1017, '部门新增', 103, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2025-11-09 01:57:03', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1018, '部门修改', 103, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2025-11-09 01:57:04', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1019, '部门删除', 103, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2025-11-09 01:57:04', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1020, '岗位查询', 104, 1, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2025-11-09 01:57:04', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1021, '岗位新增', 104, 2, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2025-11-09 01:57:04', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1022, '岗位修改', 104, 3, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2025-11-09 01:57:05', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1023, '岗位删除', 104, 4, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2025-11-09 01:57:05', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1024, '岗位导出', 104, 5, '', '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2025-11-09 01:57:05', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1025, '字典查询', 105, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2025-11-09 01:57:05', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1026, '字典新增', 105, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2025-11-09 01:57:06', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1027, '字典修改', 105, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2025-11-09 01:57:06', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1028, '字典删除', 105, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2025-11-09 01:57:06', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1029, '字典导出', 105, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2025-11-09 01:57:06', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1030, '参数查询', 106, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2025-11-09 01:57:07', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1031, '参数新增', 106, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2025-11-09 01:57:07', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1032, '参数修改', 106, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2025-11-09 01:57:07', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1033, '参数删除', 106, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2025-11-09 01:57:07', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1034, '参数导出', 106, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2025-11-09 01:57:08', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1035, '公告查询', 107, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2025-11-09 01:57:08', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1036, '公告新增', 107, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2025-11-09 01:57:08', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1037, '公告修改', 107, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2025-11-09 01:57:08', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1038, '公告删除', 107, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2025-11-09 01:57:09', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1039, '操作查询', 500, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2025-11-09 01:57:09', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1040, '操作删除', 500, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2025-11-09 01:57:09', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1041, '日志导出', 500, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2025-11-09 01:57:09', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1042, '登录查询', 501, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2025-11-09 01:57:10', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1043, '登录删除', 501, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2025-11-09 01:57:10', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1044, '日志导出', 501, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2025-11-09 01:57:10', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1045, '账户解锁', 501, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 'admin', '2025-11-09 01:57:10', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1046, '在线查询', 109, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query', '#', 'admin', '2025-11-09 01:57:10', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1047, '批量强退', 109, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', '2025-11-09 01:57:11', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1048, '单条强退', 109, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', '2025-11-09 01:57:11', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1049, '任务查询', 110, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query', '#', 'admin', '2025-11-09 01:57:11', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1050, '任务新增', 110, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add', '#', 'admin', '2025-11-09 01:57:11', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1051, '任务修改', 110, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit', '#', 'admin', '2025-11-09 01:57:12', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1052, '任务删除', 110, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove', '#', 'admin', '2025-11-09 01:57:12', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1053, '状态修改', 110, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus', '#', 'admin', '2025-11-09 01:57:12', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1054, '任务导出', 110, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export', '#', 'admin', '2025-11-09 01:57:12', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1055, '生成查询', 116, 1, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:query', '#', 'admin', '2025-11-09 01:57:13', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1056, '生成修改', 116, 2, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:edit', '#', 'admin', '2025-11-09 01:57:13', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1057, '生成删除', 116, 3, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:remove', '#', 'admin', '2025-11-09 01:57:13', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1058, '导入代码', 116, 4, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:import', '#', 'admin', '2025-11-09 01:57:13', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1059, '预览代码', 116, 5, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:preview', '#', 'admin', '2025-11-09 01:57:14', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (1060, '生成代码', 116, 6, '#', '', '', '', 1, 0, 'F', '0', '0', 'tool:gen:code', '#', 'admin', '2025-11-09 01:57:14', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2000, '综合管理', 0, 4, 'ai-manager', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'redis-list', 'admin', '2025-11-12 20:19:15', 'admin', '2025-11-20 20:06:49', ''); +INSERT INTO `sys_menu` VALUES (2001, 'AI用户管理', 2003, 1, 'aiUser', 'ai/user/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:user:list', 'user', 'admin', '2025-11-12 20:45:34', 'admin', '2025-11-13 22:19:09', ''); +INSERT INTO `sys_menu` VALUES (2002, 'AI管理', 2000, 4, 'aiManager', 'ai/manager/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:manager:list', 'online', 'admin', '2025-11-13 19:18:54', 'admin', '2025-11-13 22:49:28', ''); +INSERT INTO `sys_menu` VALUES (2003, '用户管理', 2000, 1, 'aiUserManger', NULL, NULL, '', 1, 0, 'M', '0', '0', NULL, 'peoples', 'admin', '2025-11-13 22:18:42', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2004, '余额使用记录', 2003, 2, 'balanceChangeRecord', 'ai/balanceChangeRecord/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:balanceChangeRecord:list', 'nested', 'admin', '2025-11-13 22:31:42', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2005, '返佣记录', 2003, 2, 'rebateRecord', 'ai/rebateRecord/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:rebateRecord:list', 'monitor', 'admin', '2025-11-13 22:32:39', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2006, '订单记录', 2000, 5, 'order', 'ai/order/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:order:list', 'server', 'admin', '2025-11-13 22:36:36', 'admin', '2025-11-29 16:12:14', ''); +INSERT INTO `sys_menu` VALUES (2007, '充值记录', 2000, 6, 'recharge', 'ai/recharge/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:recharge:list', 'number', 'admin', '2025-11-13 22:38:06', 'admin', '2025-11-13 22:50:05', ''); +INSERT INTO `sys_menu` VALUES (2008, '基础管理', 2000, 2, 'foundation', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'clipboard', 'admin', '2025-11-13 22:39:49', 'admin', '2025-11-13 22:48:45', ''); +INSERT INTO `sys_menu` VALUES (2009, '客服管理', 2008, 1, 'service', 'ai/service/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:service:list', 'people', 'admin', '2025-11-13 22:41:00', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2010, 'banner管理', 2008, 2, 'banner', 'ai/banner/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:banner:list', 'build', 'admin', '2025-11-13 22:42:04', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2011, '站内信管理', 2008, 3, 'message', 'ai/message/index', NULL, '', 1, 0, 'C', '1', '1', 'ai:message:list', 'message', 'admin', '2025-11-13 22:43:53', 'admin', '2025-12-16 06:39:34', ''); +INSERT INTO `sys_menu` VALUES (2012, '帮助管理', 2008, 4, 'help', 'ai/help/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:help:list', 'education', 'admin', '2025-11-13 22:44:45', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2013, '活动管理', 2000, 3, 'activity', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'star', 'admin', '2025-11-13 22:45:34', 'admin', '2025-11-13 22:48:58', ''); +INSERT INTO `sys_menu` VALUES (2014, '体验金管理', 2013, 1, 'sampleAmount', 'ai/sampleAmount/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:sampleAmount:list', 'money', 'admin', '2025-11-13 22:46:36', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2015, '体验金记录', 2013, 2, 'sampleAmountRecord', 'ai/sampleAmountRecord/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:sampleAmountRecord:list', 'link', 'admin', '2025-11-13 22:47:24', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2016, '充值活动', 2013, 3, 'rechargeGift', 'ai/rechargeGift/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:rechargeGift:list', 'clipboard', 'admin', '2025-11-20 22:11:58', 'admin', '2025-11-30 10:26:47', ''); +INSERT INTO `sys_menu` VALUES (2017, '充值赠送记录', 2013, 4, 'rechargeGiftRecord', 'ai/rechargeGiftRecord/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:rechargeGiftRecord:list', 'nested', 'admin', '2025-11-20 22:12:52', 'admin', '2025-12-16 06:40:21', ''); +INSERT INTO `sys_menu` VALUES (2018, '客户配置', 2000, 7, 'customer', 'ai/customer/index', NULL, '', 1, 0, 'C', '0', '0', 'ai:customer:list', 'monitor', 'admin', '2025-11-26 19:44:12', '', NULL, ''); +INSERT INTO `sys_menu` VALUES (2019, '用户作品', 2000, 8, 'work', 'ai/work/index', NULL, '', 1, 0, 'C', '1', '1', 'ai:work:list', 'clipboard', 'admin', '2025-11-26 20:25:55', 'admin', '2025-11-29 16:14:42', ''); + +-- ---------------------------- +-- Table structure for sys_notice +-- ---------------------------- +DROP TABLE IF EXISTS `sys_notice`; +CREATE TABLE `sys_notice` ( + `notice_id` int NOT NULL AUTO_INCREMENT COMMENT '公告ID', + `notice_title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题', + `notice_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告类型(1通知 2公告)', + `notice_content` longblob NULL COMMENT '公告内容', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '公告状态(0正常 1关闭)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`notice_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知公告表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_notice +-- ---------------------------- +INSERT INTO `sys_notice` VALUES (1, '温馨提醒:2018-07-01 若依新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB9, '0', 'admin', '2025-11-09 01:57:55', '', NULL, '管理员'); +INSERT INTO `sys_notice` VALUES (2, '维护通知:2018-07-01 若依系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '0', 'admin', '2025-11-09 01:57:55', '', NULL, '管理员'); + +-- ---------------------------- +-- Table structure for sys_oper_log +-- ---------------------------- +DROP TABLE IF EXISTS `sys_oper_log`; +CREATE TABLE `sys_oper_log` ( + `oper_id` bigint NOT NULL AUTO_INCREMENT COMMENT '日志主键', + `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题', + `business_type` int NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)', + `method` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称', + `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式', + `operator_type` int NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)', + `oper_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员', + `dept_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称', + `oper_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL', + `oper_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址', + `oper_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点', + `oper_param` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数', + `json_result` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数', + `status` int NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)', + `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息', + `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间', + `cost_time` bigint NULL DEFAULT 0 COMMENT '消耗时间', + PRIMARY KEY (`oper_id`) USING BTREE, + INDEX `idx_sys_oper_log_bt`(`business_type` ASC) USING BTREE, + INDEX `idx_sys_oper_log_s`(`status` ASC) USING BTREE, + INDEX `idx_sys_oper_log_ot`(`oper_time` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 907 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_oper_log +-- ---------------------------- +INSERT INTO `sys_oper_log` VALUES (100, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"redis-list\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"AI管理\",\"menuType\":\"M\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"ai-manager\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:19:16', 1027); +INSERT INTO `sys_oper_log` VALUES (101, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:21:34', 18045); +INSERT INTO `sys_oper_log` VALUES (102, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:21:36', 17063); +INSERT INTO `sys_oper_log` VALUES (103, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:21:56', 15804); +INSERT INTO `sys_oper_log` VALUES (104, '代码生成', 3, 'com.ruoyi.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '研发部门', '/tool/gen/2,1', '127.0.0.1', '内网IP', '[2,1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:22:10', 2474); +INSERT INTO `sys_oper_log` VALUES (105, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', NULL, 0, NULL, '2025-11-12 20:22:18', 730); +INSERT INTO `sys_oper_log` VALUES (106, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', NULL, 0, NULL, '2025-11-12 20:24:54', 609); +INSERT INTO `sys_oper_log` VALUES (107, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', NULL, 0, NULL, '2025-11-12 20:28:38', 699); +INSERT INTO `sys_oper_log` VALUES (108, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/ai_user', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:28:39', 14757); +INSERT INTO `sys_oper_log` VALUES (109, '代码生成', 3, 'com.ruoyi.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '研发部门', '/tool/gen/3', '127.0.0.1', '内网IP', '[3]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:28:40', 3157); +INSERT INTO `sys_oper_log` VALUES (110, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:29:04', 16930); +INSERT INTO `sys_oper_log` VALUES (111, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user\"}', NULL, 0, NULL, '2025-11-12 20:29:14', 388); +INSERT INTO `sys_oper_log` VALUES (112, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"user\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"AI用户管理\",\"menuType\":\"C\",\"orderNum\":0,\"params\":{},\"parentId\":2000,\"path\":\"ai/user/index\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:45:35', 1026); +INSERT INTO `sys_oper_log` VALUES (113, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/user/index\",\"createTime\":\"2025-11-12 20:45:34\",\"icon\":\"user\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2001,\"menuName\":\"AI用户管理\",\"menuType\":\"C\",\"orderNum\":0,\"params\":{},\"parentId\":2000,\"path\":\"aiUser\",\"perms\":\"ai:user:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:46:57', 878); +INSERT INTO `sys_oper_log` VALUES (114, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/user/index\",\"createTime\":\"2025-11-12 20:45:34\",\"icon\":\"user\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2001,\"menuName\":\"AI用户管理\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"aiUser\",\"perms\":\"ai:user:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 20:47:44', 876); +INSERT INTO `sys_oper_log` VALUES (115, 'ai-用户信息', 1, 'com.ruoyi.ai.controller.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"balance\":10,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-12 21:37:49\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"id\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 21:37:46', 595); +INSERT INTO `sys_oper_log` VALUES (116, 'ai-用户信息', 1, 'com.ruoyi.ai.controller.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"balance\":12,\"birthday\":\"2025-11-21\",\"createBy\":\"admin\",\"createTime\":\"2025-11-12 21:56:49\",\"delFlag\":\"0\",\"gender\":2,\"id\":2,\"nickname\":\"test2\",\"params\":{},\"phone\":\"13888888888\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-12 21:56:46', 755); +INSERT INTO `sys_oper_log` VALUES (117, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_manager\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:12:54', 8054); +INSERT INTO `sys_oper_log` VALUES (118, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_manager\"}', NULL, 0, NULL, '2025-11-13 19:13:06', 382); +INSERT INTO `sys_oper_log` VALUES (119, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"AI管理\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":0,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"新增菜单\'AI管理\'失败,菜单名称已存在\",\"code\":500}', 0, NULL, '2025-11-13 19:18:34', 318); +INSERT INTO `sys_oper_log` VALUES (120, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"createBy\":\"admin\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"AI列表\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":0,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:18:55', 859); +INSERT INTO `sys_oper_log` VALUES (121, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"createTime\":\"2025-11-13 19:18:54\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2002,\"menuName\":\"AI列表\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2000,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:19:12', 885); +INSERT INTO `sys_oper_log` VALUES (122, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"createTime\":\"2025-11-13 19:18:54\",\"icon\":\"#\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2002,\"menuName\":\"AI管理\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2000,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:19:25', 878); +INSERT INTO `sys_oper_log` VALUES (123, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"createTime\":\"2025-11-13 19:18:54\",\"icon\":\"online\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2002,\"menuName\":\"AI管理\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2000,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:22:55', 1052); +INSERT INTO `sys_oper_log` VALUES (124, '用户管理', 2, 'com.ruoyi.ai.controller.AiUserController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeStatus', '127.0.0.1', '内网IP', '{\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作失败\",\"code\":500}', 0, NULL, '2025-11-13 19:51:54', 742); +INSERT INTO `sys_oper_log` VALUES (125, '用户管理', 2, 'com.ruoyi.ai.controller.AiUserController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeStatus', '127.0.0.1', '内网IP', '{\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作失败\",\"code\":500}', 0, NULL, '2025-11-13 19:52:19', 590); +INSERT INTO `sys_oper_log` VALUES (126, '用户管理', 2, 'com.ruoyi.ai.controller.AiUserController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:53:07', 1117); +INSERT INTO `sys_oper_log` VALUES (127, '用户管理', 2, 'com.ruoyi.ai.controller.AiUserController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 19:53:16', 589); +INSERT INTO `sys_oper_log` VALUES (128, 'AI管理', 1, 'com.ruoyi.ai.controller.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:26\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":10,\"title\":\"图生图\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:05:23', 606); +INSERT INTO `sys_oper_log` VALUES (129, 'AI管理', 1, 'com.ruoyi.ai.controller.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:06:02\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"price\":10,\"title\":\"一键换脸\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:05:58', 589); +INSERT INTO `sys_oper_log` VALUES (130, 'AI管理', 1, 'com.ruoyi.ai.controller.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:32\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"price\":8,\"title\":\"快捷生图\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:07:29', 880); +INSERT INTO `sys_oper_log` VALUES (131, 'AI管理', 1, 'com.ruoyi.ai.controller.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"price\":8.8,\"remark\":\"11\",\"title\":\"快捷生视频\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:07:43', 590); +INSERT INTO `sys_oper_log` VALUES (132, '修改AI状态', 2, 'com.ruoyi.ai.controller.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:16:42', 705); +INSERT INTO `sys_oper_log` VALUES (133, '修改AI状态', 2, 'com.ruoyi.ai.controller.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 20:17:17', 576); +INSERT INTO `sys_oper_log` VALUES (134, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_sample_amount_record,ai_sample_amount,ai_help,ai_user_message,ai_banner,ai_customer_service,ai_recharge,ai_order,ai_rebate_record\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 21:55:17', 78090); +INSERT INTO `sys_oper_log` VALUES (135, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_user_message,ai_sample_amount_record,ai_sample_amount,ai_recharge,ai_rebate_record,ai_order,ai_help,ai_customer_service,ai_banner\"}', NULL, 0, NULL, '2025-11-13 21:55:54', 5311); +INSERT INTO `sys_oper_log` VALUES (136, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"peoples\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"用户管理\",\"menuType\":\"M\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"aiUserManger\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:18:43', 873); +INSERT INTO `sys_oper_log` VALUES (137, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-11-13 22:18:42\",\"icon\":\"peoples\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2003,\"menuName\":\"用户管理\",\"menuType\":\"M\",\"orderNum\":1,\"params\":{},\"parentId\":2003,\"path\":\"aiUserManger\",\"perms\":\"\",\"routeName\":\"\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"修改菜单\'用户管理\'失败,上级菜单不能选择自己\",\"code\":500}', 0, NULL, '2025-11-13 22:18:56', 295); +INSERT INTO `sys_oper_log` VALUES (138, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/user/index\",\"createTime\":\"2025-11-12 20:45:34\",\"icon\":\"user\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2001,\"menuName\":\"AI用户管理\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2003,\"path\":\"aiUser\",\"perms\":\"ai:user:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:19:09', 1371); +INSERT INTO `sys_oper_log` VALUES (139, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_balance_change_record\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:22:38', 8877); +INSERT INTO `sys_oper_log` VALUES (140, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_balance_change_record\"}', NULL, 0, NULL, '2025-11-13 22:22:47', 370); +INSERT INTO `sys_oper_log` VALUES (141, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/balanceChangeRecord/index\",\"createBy\":\"admin\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"余额使用记录\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2003,\"path\":\"balanceChangeRecord\",\"perms\":\"ai:balanceChangeRecord:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:31:42', 1166); +INSERT INTO `sys_oper_log` VALUES (142, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/rebateRecord/index\",\"createBy\":\"admin\",\"icon\":\"monitor\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"返佣记录\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2003,\"path\":\"rebateRecord\",\"perms\":\"ai:rebateRecord:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:32:39', 859); +INSERT INTO `sys_oper_log` VALUES (143, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/order/index\",\"createBy\":\"admin\",\"icon\":\"server\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"订单管理\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2003,\"path\":\"order\",\"perms\":\"ai:order:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:36:37', 2531); +INSERT INTO `sys_oper_log` VALUES (144, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/order/index\",\"createTime\":\"2025-11-13 22:36:36\",\"icon\":\"server\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2006,\"menuName\":\"订单管理\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2000,\"path\":\"order\",\"perms\":\"ai:order:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:36:53', 883); +INSERT INTO `sys_oper_log` VALUES (145, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/recharge/index\",\"createBy\":\"admin\",\"icon\":\"number\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"充值记录\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2000,\"path\":\"recharge\",\"perms\":\"ai:recharge:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:38:07', 1358); +INSERT INTO `sys_oper_log` VALUES (146, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"基础管理\",\"menuType\":\"M\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"foundation\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:39:50', 1895); +INSERT INTO `sys_oper_log` VALUES (147, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/service/index\",\"createBy\":\"admin\",\"icon\":\"people\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"客服管理\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2008,\"path\":\"service\",\"perms\":\"ai:service:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:41:01', 1378); +INSERT INTO `sys_oper_log` VALUES (148, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/banner/index\",\"createBy\":\"admin\",\"icon\":\"build\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"banner管理\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2008,\"path\":\"banner\",\"perms\":\"ai:banner:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:42:05', 1379); +INSERT INTO `sys_oper_log` VALUES (149, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/message/index\",\"createBy\":\"admin\",\"icon\":\"message\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"站内信管理\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2008,\"path\":\"message\",\"perms\":\"ai:message:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:43:54', 855); +INSERT INTO `sys_oper_log` VALUES (150, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/help/index\",\"createBy\":\"admin\",\"icon\":\"education\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"帮助管理\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2008,\"path\":\"help\",\"perms\":\"ai:help:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:44:45', 871); +INSERT INTO `sys_oper_log` VALUES (151, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createBy\":\"admin\",\"icon\":\"star\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"活动管理\",\"menuType\":\"M\",\"orderNum\":1,\"params\":{},\"parentId\":2000,\"path\":\"activity\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:45:35', 1365); +INSERT INTO `sys_oper_log` VALUES (152, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/sampleAmount/index\",\"createBy\":\"admin\",\"icon\":\"money\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"体验金管理\",\"menuType\":\"C\",\"orderNum\":1,\"params\":{},\"parentId\":2013,\"path\":\"sampleAmount\",\"perms\":\"ai:sampleAmount:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:46:37', 1062); +INSERT INTO `sys_oper_log` VALUES (153, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/sampleAmountRecord/index\",\"createBy\":\"admin\",\"icon\":\"link\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"体验金记录\",\"menuType\":\"C\",\"orderNum\":2,\"params\":{},\"parentId\":2013,\"path\":\"sampleAmountRecord\",\"perms\":\"ai:sampleAmountRecord:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:47:25', 1384); +INSERT INTO `sys_oper_log` VALUES (154, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-11-13 22:39:49\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2008,\"menuName\":\"基础管理\",\"menuType\":\"M\",\"orderNum\":2,\"params\":{},\"parentId\":2000,\"path\":\"foundation\",\"perms\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:48:46', 1137); +INSERT INTO `sys_oper_log` VALUES (155, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-11-13 22:45:34\",\"icon\":\"star\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2013,\"menuName\":\"活动管理\",\"menuType\":\"M\",\"orderNum\":3,\"params\":{},\"parentId\":2000,\"path\":\"activity\",\"perms\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:48:59', 1367); +INSERT INTO `sys_oper_log` VALUES (156, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/order/index\",\"createTime\":\"2025-11-13 22:36:36\",\"icon\":\"server\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2006,\"menuName\":\"订单管理\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2000,\"path\":\"order\",\"perms\":\"ai:order:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:49:10', 873); +INSERT INTO `sys_oper_log` VALUES (157, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/manager/index\",\"createTime\":\"2025-11-13 19:18:54\",\"icon\":\"online\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2002,\"menuName\":\"AI管理\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2000,\"path\":\"aiManager\",\"perms\":\"ai:manager:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:49:28', 854); +INSERT INTO `sys_oper_log` VALUES (158, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/order/index\",\"createTime\":\"2025-11-13 22:36:36\",\"icon\":\"server\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2006,\"menuName\":\"订单管理\",\"menuType\":\"C\",\"orderNum\":5,\"params\":{},\"parentId\":2000,\"path\":\"order\",\"perms\":\"ai:order:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:49:58', 1394); +INSERT INTO `sys_oper_log` VALUES (159, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/recharge/index\",\"createTime\":\"2025-11-13 22:38:06\",\"icon\":\"number\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2007,\"menuName\":\"充值记录\",\"menuType\":\"C\",\"orderNum\":6,\"params\":{},\"parentId\":2000,\"path\":\"recharge\",\"perms\":\"ai:recharge:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-13 22:50:06', 873); +INSERT INTO `sys_oper_log` VALUES (160, '余额使用记录', 1, 'com.ruoyi.ai.controller.AiBalanceChangeRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/balance-change-record', '127.0.0.1', '内网IP', '{\"changeAmount\":1.0,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 21:30:05\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"remark\":\"12121\",\"resultAmount\":12.0,\"userId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 21:30:02', 632); +INSERT INTO `sys_oper_log` VALUES (161, '返佣记录', 1, 'com.ruoyi.ai.controller.AiRebateRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/rebate-record', '127.0.0.1', '内网IP', '{\"amount\":121,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 21:34:38\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"11\",\"subordinateId\":2,\"superiorId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 21:34:34', 572); +INSERT INTO `sys_oper_log` VALUES (162, '客服管理', 1, 'com.ruoyi.ai.controller.AiCustomerServiceController.add()', 'POST', 1, 'admin', '研发部门', '/ai/service', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-14 21:44:18\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"111\",\"url\":\"http://localhost/admin/ai-manager/foundation/service\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 21:44:14', 752); +INSERT INTO `sys_oper_log` VALUES (163, '客服管理', 2, 'com.ruoyi.ai.controller.AiCustomerServiceController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/service', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-14 21:56:18\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 21:56:15', 601); +INSERT INTO `sys_oper_log` VALUES (164, '客服管理', 2, 'com.ruoyi.ai.controller.AiCustomerServiceController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/service', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-14 21:56:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 21:56:18', 589); +INSERT INTO `sys_oper_log` VALUES (165, '【帮助管理】', 1, 'com.ruoyi.ai.controller.AiHelpController.add()', 'POST', 1, 'admin', '研发部门', '/ai/help', '127.0.0.1', '内网IP', '{\"content\":\"

啥时间德哈卡几哈收到客家话大数据库对话框佳都科技啊哈汕德卡好的打卡的话健康大活动卡活动

\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"1212121\",\"title\":\"测试\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:14:42', 1123); +INSERT INTO `sys_oper_log` VALUES (166, '【帮助管理】', 2, 'com.ruoyi.ai.controller.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-14 22:17:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:17:54', 1113); +INSERT INTO `sys_oper_log` VALUES (167, '【帮助管理】', 2, 'com.ruoyi.ai.controller.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-14 22:18:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:17:56', 578); +INSERT INTO `sys_oper_log` VALUES (168, '体验金活动管理', 1, 'com.ruoyi.ai.controller.AiSampleAmountController.add()', 'POST', 1, 'admin', '研发部门', '/ai/amount', '127.0.0.1', '内网IP', '{\"amount\":121,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:32:34\",\"delFlag\":\"0\",\"duration\":11,\"endTime\":\"2025-11-18 00:00:00\",\"id\":1,\"params\":{},\"startTime\":\"2025-11-14 00:00:00\",\"type\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:32:31', 1232); +INSERT INTO `sys_oper_log` VALUES (169, '体验金活动管理', 1, 'com.ruoyi.ai.controller.AiSampleAmountController.add()', 'POST', 1, 'admin', '研发部门', '/ai/amount', '127.0.0.1', '内网IP', '{\"amount\":11,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"duration\":222,\"id\":2,\"params\":{},\"remark\":\"111\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:36:57', 593); +INSERT INTO `sys_oper_log` VALUES (170, '体验金活动管理', 2, 'com.ruoyi.ai.controller.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-14 22:46:49\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:46:46', 581); +INSERT INTO `sys_oper_log` VALUES (171, '体验金领取记录', 1, 'com.ruoyi.ai.controller.AiSampleAmountRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/sample-amount-record', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:54:17\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"sampleAmount\":12,\"userId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-14 22:54:14', 732); +INSERT INTO `sys_oper_log` VALUES (172, 'banner管理', 1, 'com.ruoyi.ai.controller.AiBannerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:57\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/0217631217234317b67bbc2a2a9a26108e071e40bb0b084260dc7_0_20251115205952A003.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":0,\"remark\":\"11212\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 20:59:54', 759); +INSERT INTO `sys_oper_log` VALUES (173, 'banner管理', 1, 'com.ruoyi.ai.controller.AiBannerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:57\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/021763121372637d6d3168ae2bcee8e5f54d16f5503dedeeea579_0_20251115210252A004.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:02:53', 577); +INSERT INTO `sys_oper_log` VALUES (174, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/0217631217234317b67bbc2a2a9a26108e071e40bb0b084260dc7_0_20251115205952A003.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":0,\"remark\":\"11212\",\"status\":0,\"title\":\"图一\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:22:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:22:07', 594); +INSERT INTO `sys_oper_log` VALUES (175, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/021763121372637d6d3168ae2bcee8e5f54d16f5503dedeeea579_0_20251115210252A004.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图二\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:22:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:22:15', 569); +INSERT INTO `sys_oper_log` VALUES (176, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/0217631217234317b67bbc2a2a9a26108e071e40bb0b084260dc7_0_20251115205952A003.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":0,\"remark\":\"11212\",\"status\":0,\"title\":\"图一\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:30:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:30:28', 730); +INSERT INTO `sys_oper_log` VALUES (177, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"http://localhost:8110/profile/upload/2025/11/15/0217631217234317b67bbc2a2a9a26108e071e40bb0b084260dc7_0_20251115205952A003.jpeg\",\"jumpUrl\":\"http://localhost/admin/ai-manager/foundation/banner\",\"params\":{},\"position\":1,\"remark\":\"11212\",\"status\":0,\"title\":\"图一\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:32:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:32:42', 568); +INSERT INTO `sys_oper_log` VALUES (178, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:35:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:35:17', 572); +INSERT INTO `sys_oper_log` VALUES (179, 'banner管理', 2, 'com.ruoyi.ai.controller.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-15 21:35:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:35:29', 571); +INSERT INTO `sys_oper_log` VALUES (180, '订单管理', 1, 'com.ruoyi.ai.controller.AiOrderController.add()', 'POST', 1, 'admin', '研发部门', '/ai/order', '127.0.0.1', '内网IP', '{\"amount\":12,\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:51:21\",\"delFlag\":\"0\",\"id\":1,\"orderNum\":\"1234\",\"params\":{},\"remark\":\"12121\",\"result\":\"http://localhost/admin/ai-manager/order\",\"status\":0,\"type\":0,\"userId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 21:51:18', 1109); +INSERT INTO `sys_oper_log` VALUES (181, '充值管理', 1, 'com.ruoyi.ai.controller.AiRechargeController.add()', 'POST', 1, 'admin', '研发部门', '/ai/recharge', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 22:26:04\",\"creditedTime\":\"2025-11-15\",\"delFlag\":\"0\",\"hash\":\"qw12wqwqwsqas\",\"id\":1,\"orderNum\":\"1212312\",\"params\":{},\"paymentWallet\":\"bb\",\"receiveWallet\":\"aa\",\"remark\":\"121211\",\"userId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-15 22:26:01', 1265); +INSERT INTO `sys_oper_log` VALUES (182, '角色管理', 4, 'com.ruoyi.web.controller.system.SysRoleController.selectAuthUserAll()', 'PUT', 1, 'admin', '研发部门', '/system/role/authUser/selectAll', '127.0.0.1', '内网IP', '{\"roleId\":\"2\",\"userIds\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 19:40:58', 707); +INSERT INTO `sys_oper_log` VALUES (183, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"

12121

\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 22:24:05\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"12121\",\"sendType\":1,\"title\":\"1212\",\"userIds\":[1,2]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 22:24:07', 801); +INSERT INTO `sys_oper_log` VALUES (184, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"1211212大声道\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 22:39:56\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"remark\":\"去去去\",\"sendType\":1,\"title\":\"阿圣诞节啊\",\"userIds\":[1,2]}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist\r\n### The error may exist in file [D:\\project\\byteai-api\\ruoyi-system\\target\\classes\\mapper\\system\\AiUserMessageMapper.xml]\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO message_user_relation (message_id, user_id) VALUES (?, ?) , (?, ?)\r\n### Cause: java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist', '2025-11-16 22:39:58', 1432); +INSERT INTO `sys_oper_log` VALUES (185, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"1211212大声道\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 22:40:24\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"remark\":\"去去去\",\"sendType\":1,\"title\":\"阿圣诞节啊\",\"userIds\":[1,2]}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist\r\n### The error may exist in file [D:\\project\\byteai-api\\ruoyi-system\\target\\classes\\mapper\\system\\AiUserMessageMapper.xml]\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO message_user_relation (message_id, user_id) VALUES (?, ?) , (?, ?)\r\n### Cause: java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Table \'byteai.message_user_relation\' doesn\'t exist', '2025-11-16 22:40:26', 1721); +INSERT INTO `sys_oper_log` VALUES (186, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"1211212大声道\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 22:42:30\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"去去去\",\"sendType\":1,\"title\":\"阿圣诞节啊\",\"userIds\":[1,2]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 22:42:32', 2169); +INSERT INTO `sys_oper_log` VALUES (187, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"2121\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:39:07\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"remark\":\"3123\",\"sendType\":1,\"title\":\"121212\",\"userIds\":[1,2]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:39:10', 2658); +INSERT INTO `sys_oper_log` VALUES (188, '站内信管理', 2, 'com.ruoyi.ai.controller.AiUserMessageController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"2121\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:39:08\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"remark\":\"3123\",\"sendType\":1,\"title\":\"121212\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-16 23:39:29\",\"userIds\":[1]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:39:31', 1105); +INSERT INTO `sys_oper_log` VALUES (189, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"31231\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:43:00\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"remark\":\"1121\",\"sendType\":1,\"title\":\"1212\",\"userIds\":[]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:43:02', 1425); +INSERT INTO `sys_oper_log` VALUES (190, '站内信管理', 1, 'com.ruoyi.ai.controller.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"231312\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:47:59\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"remark\":\"11212\",\"sendType\":1,\"title\":\"121212\",\"userIds\":[1,2]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:48:01', 1992); +INSERT INTO `sys_oper_log` VALUES (191, '站内信管理', 2, 'com.ruoyi.ai.controller.AiUserMessageController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"31231\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:43:01\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"remark\":\"1121\",\"sendType\":0,\"title\":\"1212\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-16 23:52:07\",\"userIds\":[]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:52:10', 2633); +INSERT INTO `sys_oper_log` VALUES (192, '站内信管理', 2, 'com.ruoyi.ai.controller.AiUserMessageController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"31231\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:43:01\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"remark\":\"1121\",\"sendType\":1,\"title\":\"1212\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-16 23:52:21\",\"userIds\":[1]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:52:24', 2527); +INSERT INTO `sys_oper_log` VALUES (193, '站内信管理', 2, 'com.ruoyi.ai.controller.AiUserMessageController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/message', '127.0.0.1', '内网IP', '{\"content\":\"31231\",\"createBy\":\"admin\",\"createTime\":\"2025-11-16 23:43:01\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"remark\":\"1121\",\"sendType\":1,\"title\":\"1212\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-16 23:52:38\",\"userIds\":[2]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-16 23:52:41', 3519); +INSERT INTO `sys_oper_log` VALUES (194, '参数管理', 1, 'com.ruoyi.web.controller.system.SysConfigController.add()', 'POST', 1, 'admin', '研发部门', '/system/config', '127.0.0.1', '内网IP', '{\"configKey\":\"sys.invite.commission\",\"configName\":\"邀请用户佣金\",\"configType\":\"N\",\"configValue\":\"10\",\"createBy\":\"admin\",\"params\":{},\"remark\":\"用户注册给上级用户赠送佣金\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-19 20:22:03', 1830); +INSERT INTO `sys_oper_log` VALUES (195, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-11-09 01:56:54\",\"icon\":\"guide\",\"isCache\":\"0\",\"isFrame\":\"0\",\"menuId\":4,\"menuName\":\"若依官网\",\"menuType\":\"M\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"http://ruoyi.vip\",\"perms\":\"\",\"query\":\"\",\"routeName\":\"\",\"status\":\"1\",\"updateBy\":\"admin\",\"visible\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 20:06:41', 1066); +INSERT INTO `sys_oper_log` VALUES (196, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"createTime\":\"2025-11-12 20:19:15\",\"icon\":\"redis-list\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2000,\"menuName\":\"综合管理\",\"menuType\":\"M\",\"orderNum\":4,\"params\":{},\"parentId\":0,\"path\":\"ai-manager\",\"perms\":\"\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 20:06:49', 682); +INSERT INTO `sys_oper_log` VALUES (197, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_recharge_gift_record,ai_recharge_gift_gear,ai_recharge_gift\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 21:59:40', 30562); +INSERT INTO `sys_oper_log` VALUES (198, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_recharge_gift_record,ai_recharge_gift_gear,ai_recharge_gift\"}', NULL, 0, NULL, '2025-11-20 22:00:00', 5700); +INSERT INTO `sys_oper_log` VALUES (199, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/rechargeGift/index\",\"createBy\":\"admin\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"充值赠送活动\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGift\",\"perms\":\"ai:rechargeGift:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 22:11:59', 1167); +INSERT INTO `sys_oper_log` VALUES (200, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/rechargeGiftRecord/index\",\"createBy\":\"admin\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"充值赠送记录\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGiftRecord\",\"perms\":\"ai:rechargeGiftRecord:list\",\"routeName\":\"\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 22:12:53', 838); +INSERT INTO `sys_oper_log` VALUES (201, '充值赠送记录', 1, 'com.ruoyi.ai.controller.AiRechargeGiftRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/recharge-gift-record', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 22:20:16\",\"delFlag\":\"0\",\"gearAmount\":12,\"giftAmount\":121,\"id\":1,\"orderNum\":\"1212121\",\"params\":{},\"rechargeGearTitle\":\"121\",\"remark\":\"1212\",\"userId\":4}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 22:20:16', 700); +INSERT INTO `sys_oper_log` VALUES (202, '充值赠送活动', 1, 'com.ruoyi.ai.controller.AiRechargeGiftController.add()', 'POST', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:24:46\",\"delFlag\":\"0\",\"endTime\":\"2025-11-27 23:24:23\",\"gearList\":[{\"giftAmount\":10,\"params\":{},\"rechargeAmount\":100,\"title\":\"充值100赠送10块\"}],\"id\":1,\"isFristRecharge\":\"N\",\"params\":{},\"remark\":\"11111\",\"startTime\":\"2025-11-20 23:24:18\",\"type\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 23:25:01', 15563); +INSERT INTO `sys_oper_log` VALUES (203, '充值赠送活动', 1, 'com.ruoyi.ai.controller.AiRechargeGiftController.add()', 'POST', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:35:17\",\"delFlag\":\"0\",\"gearList\":[{\"giftAmount\":30,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":2,\"title\":\"充200送30\"},{\"giftAmount\":50,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":2,\"title\":\"充300送50\"}],\"id\":2,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"type\":0}', NULL, 1, 'nested exception is org.apache.ibatis.binding.BindingException: Parameter \'title\' not found. Available parameters are [list, param1]', '2025-11-20 23:35:18', 2042); +INSERT INTO `sys_oper_log` VALUES (204, '充值赠送活动', 1, 'com.ruoyi.ai.controller.AiRechargeGiftController.add()', 'POST', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"giftAmount\":30,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\"},{\"giftAmount\":50,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-20 23:36:33', 3228); +INSERT INTO `sys_oper_log` VALUES (205, 'AI管理', 1, 'com.ruoyi.ai.controller.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-21 22:24:27\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":10,\"title\":\"图生图2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-21 22:24:27', 779); +INSERT INTO `sys_oper_log` VALUES (206, 'AI管理', 2, 'com.ruoyi.ai.controller.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":10,\"status\":0,\"title\":\"图生图1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-21 22:24:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-21 22:24:33', 586); +INSERT INTO `sys_oper_log` VALUES (207, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":10,\"prompt\":\"111\",\"status\":0,\"title\":\"图生图1\",\"type\":\"IMAGE_TO_IMAGE_ONE\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-23 23:38:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-23 23:37:59', 717); +INSERT INTO `sys_oper_log` VALUES (208, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-21 22:24:28\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"price\":10,\"status\":0,\"title\":\"图生图2\",\"type\":\"IMAGE_TO_IMAGE_TOW\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-23 23:39:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-23 23:39:05', 570); +INSERT INTO `sys_oper_log` VALUES (209, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":18.8,\"remark\":\"11\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"IAMG_FAST_TO_VIDEO\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-23 23:39:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-23 23:39:56', 570); +INSERT INTO `sys_oper_log` VALUES (210, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":18.8,\"remark\":\"11\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"IMAGE_FAST_TO_VIDEO\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-23 23:43:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-23 23:43:12', 1091); +INSERT INTO `sys_oper_log` VALUES (211, '字典类型', 1, 'com.ruoyi.web.controller.system.SysDictTypeController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"dictName\":\"功能类型\",\"dictType\":\"ai_function_type\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:50:57', 1976); +INSERT INTO `sys_oper_log` VALUES (212, '字典类型', 2, 'com.ruoyi.web.controller.system.SysDictTypeController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:50:56\",\"dictId\":100,\"dictName\":\"AI-功能类型\",\"dictType\":\"ai_function_type\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:51:19', 2335); +INSERT INTO `sys_oper_log` VALUES (213, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"文生图1\",\"dictSort\":1,\"dictType\":\"ai_function_type\",\"dictValue\":\"1\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:52:01', 807); +INSERT INTO `sys_oper_log` VALUES (214, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"图生图1\",\"dictSort\":11,\"dictType\":\"ai_function_type\",\"dictValue\":\"11\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:52:24', 806); +INSERT INTO `sys_oper_log` VALUES (215, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"图生图2\",\"dictSort\":12,\"dictType\":\"ai_function_type\",\"dictValue\":\"12\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:52:34', 1279); +INSERT INTO `sys_oper_log` VALUES (216, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"图生图3\",\"dictSort\":13,\"dictType\":\"ai_function_type\",\"dictValue\":\"13\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:52:43', 1533); +INSERT INTO `sys_oper_log` VALUES (217, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"图生视频1\",\"dictSort\":21,\"dictType\":\"ai_function_type\",\"dictValue\":\"21\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:52:58', 1754); +INSERT INTO `sys_oper_log` VALUES (218, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:52:00\",\"default\":false,\"dictCode\":100,\"dictLabel\":\"快捷生图\",\"dictSort\":1,\"dictType\":\"ai_function_type\",\"dictValue\":\"1\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:53:29', 1400); +INSERT INTO `sys_oper_log` VALUES (219, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:52:42\",\"default\":false,\"dictCode\":103,\"dictLabel\":\"一键换脸\",\"dictSort\":13,\"dictType\":\"ai_function_type\",\"dictValue\":\"13\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 13:53:47', 1399); +INSERT INTO `sys_oper_log` VALUES (220, 'ai-用户信息', 1, 'com.ruoyi.web.controller.ai.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":101,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-24 19:25:38\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-12 21:37:45\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\r\n### The error may exist in com/ruoyi/ai/mapper/AiUserMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiUserMapper.insert-Inline\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO ai_user ( del_flag, username, nickname, gender, avatar, phone, status, email, birthday, balance, user_id, create_by, create_time, update_by, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\n; Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'', '2025-11-24 19:25:39', 769); +INSERT INTO `sys_oper_log` VALUES (221, 'ai-用户信息', 1, 'com.ruoyi.web.controller.ai.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":101,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-24 19:27:21\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-12 21:37:45\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\r\n### The error may exist in com/ruoyi/ai/mapper/AiUserMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiUserMapper.insert-Inline\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO ai_user ( del_flag, username, nickname, gender, avatar, phone, status, email, birthday, balance, user_id, create_by, create_time, update_by, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\n; Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'', '2025-11-24 19:27:22', 557); +INSERT INTO `sys_oper_log` VALUES (222, 'ai-用户信息', 1, 'com.ruoyi.web.controller.ai.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":101,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-24 19:27:59\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-12 21:37:45\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\r\n### The error may exist in com/ruoyi/ai/mapper/AiUserMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiUserMapper.insert-Inline\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO ai_user ( del_flag, username, nickname, gender, avatar, phone, status, email, birthday, balance, user_id, create_by, create_time, update_by, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\n; Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'', '2025-11-24 19:28:00', 557); +INSERT INTO `sys_oper_log` VALUES (223, 'ai-用户信息', 1, 'com.ruoyi.web.controller.ai.AiUserController.add()', 'POST', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":101,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-24 19:33:25\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-12 21:37:45\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\r\n### The error may exist in com/ruoyi/ai/mapper/AiUserMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiUserMapper.insert-Inline\r\n### The error occurred while setting parameters\r\n### SQL: INSERT INTO ai_user ( del_flag, username, nickname, gender, avatar, phone, status, email, birthday, balance, user_id, create_by, create_time, update_by, update_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )\r\n### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'\n; Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry \'Z9Y8X7W6\' for key \'ai_user.uuid\'', '2025-11-24 19:33:26', 763); +INSERT INTO `sys_oper_log` VALUES (224, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":101,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-12 21:37:49\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"id\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 19:33:31\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 19:33:33', 608); +INSERT INTO `sys_oper_log` VALUES (225, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/user', '127.0.0.1', '内网IP', '{\"avatar\":\"\",\"balance\":102,\"birthday\":\"2025-11-13\",\"createBy\":\"admin\",\"createTime\":\"2025-11-12 21:37:49\",\"delFlag\":\"0\",\"email\":\"18888888888@111.com\",\"gender\":1,\"id\":1,\"nickname\":\"test\",\"params\":{},\"phone\":\"18888888888\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 19:33:38\",\"userId\":\"Z9Y8X7W6\",\"username\":\"name1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 19:33:39', 566); +INSERT INTO `sys_oper_log` VALUES (226, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{}}', NULL, 1, 'rawPassword cannot be null', '2025-11-24 19:59:53', 165); +INSERT INTO `sys_oper_log` VALUES (227, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{}}', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:00:04', 1); +INSERT INTO `sys_oper_log` VALUES (228, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{}}', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:00:25', 8359); +INSERT INTO `sys_oper_log` VALUES (229, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{}}', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:00:58', 14256); +INSERT INTO `sys_oper_log` VALUES (230, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:02:52', 8); +INSERT INTO `sys_oper_log` VALUES (231, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:03:23', 6890); +INSERT INTO `sys_oper_log` VALUES (232, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:05:20', 1); +INSERT INTO `sys_oper_log` VALUES (233, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:05:27', 1827); +INSERT INTO `sys_oper_log` VALUES (234, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:06:26', 16591); +INSERT INTO `sys_oper_log` VALUES (235, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:06:55', 6270); +INSERT INTO `sys_oper_log` VALUES (236, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:08:10', 0); +INSERT INTO `sys_oper_log` VALUES (237, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '', NULL, 1, 'rawPassword cannot be null', '2025-11-24 20:08:19', 3036); +INSERT INTO `sys_oper_log` VALUES (238, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:11:56', 3906); +INSERT INTO `sys_oper_log` VALUES (239, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', NULL, 1, 'nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error updating database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation\r\n### The error may exist in com/ruoyi/ai/mapper/AiSampleAmountMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiSampleAmountMapper.update\r\n### The error occurred while executing an update\r\n### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation', '2025-11-24 20:30:38', 153); +INSERT INTO `sys_oper_log` VALUES (240, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', NULL, 1, 'nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error updating database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation\r\n### The error may exist in file [D:\\project\\byteai-api\\ruoyi-system\\target\\classes\\mapper\\system\\AiSampleAmountMapper.xml]\r\n### The error may involve com.ruoyi.ai.mapper.AiSampleAmountMapper.updateAllStatus\r\n### The error occurred while executing an update\r\n### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation', '2025-11-24 20:34:25', 1218); +INSERT INTO `sys_oper_log` VALUES (241, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', NULL, 1, 'nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error updating database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation\r\n### The error may exist in file [D:\\project\\byteai-api\\ruoyi-system\\target\\classes\\mapper\\system\\AiSampleAmountMapper.xml]\r\n### The error may involve com.ruoyi.ai.mapper.AiSampleAmountMapper.updateAllStatus\r\n### The error occurred while executing an update\r\n### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation', '2025-11-24 20:35:51', 755); +INSERT INTO `sys_oper_log` VALUES (242, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', NULL, 1, 'nested exception is org.apache.ibatis.exceptions.PersistenceException: \r\n### Error updating database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation\r\n### The error may exist in file [D:\\project\\byteai-api\\ruoyi-system\\target\\classes\\mapper\\system\\AiSampleAmountMapper.xml]\r\n### The error may involve com.ruoyi.ai.mapper.AiSampleAmountMapper.updateAllStatus\r\n### The error occurred while executing an update\r\n### Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Prohibition of table update operation', '2025-11-24 20:36:57', 853); +INSERT INTO `sys_oper_log` VALUES (243, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:38:39', 2187); +INSERT INTO `sys_oper_log` VALUES (244, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:38:47', 2045); +INSERT INTO `sys_oper_log` VALUES (245, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:38:53', 1463); +INSERT INTO `sys_oper_log` VALUES (246, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:38:59', 2564); +INSERT INTO `sys_oper_log` VALUES (247, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 20:39:07', 2045); +INSERT INTO `sys_oper_log` VALUES (248, '客服管理', 2, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/service', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:01:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:01:44', 721); +INSERT INTO `sys_oper_log` VALUES (249, '客服管理', 2, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/service', '127.0.0.1', '内网IP', '{\"id\":3,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:01:46\"}', '{\"msg\":\"操作失败\",\"code\":500}', 0, NULL, '2025-11-24 21:01:47', 569); +INSERT INTO `sys_oper_log` VALUES (250, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:02:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:02:56', 850); +INSERT INTO `sys_oper_log` VALUES (251, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:03:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:03:14', 1061); +INSERT INTO `sys_oper_log` VALUES (252, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"id\":3,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:03:16\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:03:17', 557); +INSERT INTO `sys_oper_log` VALUES (253, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"id\":3,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:07:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:07:15', 557); +INSERT INTO `sys_oper_log` VALUES (254, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:24:46\",\"delFlag\":\"0\",\"endTime\":\"2025-11-27 23:24:23\",\"gearList\":[{\"giftAmount\":22,\"params\":{},\"rechargeAmount\":11,\"title\":\"11111\"}],\"id\":1,\"isFristRecharge\":\"N\",\"params\":{},\"remark\":\"11111\",\"startTime\":\"2025-11-20 23:24:18\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:16:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:17:03', 3738); +INSERT INTO `sys_oper_log` VALUES (255, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:24:46\",\"delFlag\":\"0\",\"endTime\":\"2025-11-27 23:24:23\",\"gearList\":[{\"giftAmount\":2,\"params\":{},\"rechargeAmount\":111}],\"id\":1,\"isFristRecharge\":\"N\",\"params\":{},\"remark\":\"11111\",\"startTime\":\"2025-11-20 23:24:18\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:17:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:18:01', 21541); +INSERT INTO `sys_oper_log` VALUES (256, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:24:46\",\"delFlag\":\"0\",\"endTime\":\"2025-11-27 23:24:23\",\"gearList\":[{\"giftAmount\":10,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":1,\"title\":\"充100元赠送10元\"}],\"id\":1,\"isFristRecharge\":\"N\",\"params\":{},\"remark\":\"11111\",\"startTime\":\"2025-11-20 23:24:18\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 21:39:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:39:12', 2695); +INSERT INTO `sys_oper_log` VALUES (257, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:47:17', 2131); +INSERT INTO `sys_oper_log` VALUES (258, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:47:22', 1975); +INSERT INTO `sys_oper_log` VALUES (259, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:47:30', 1460); +INSERT INTO `sys_oper_log` VALUES (260, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":3,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 21:47:36', 2473); +INSERT INTO `sys_oper_log` VALUES (261, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_tag\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 22:01:30', 9439); +INSERT INTO `sys_oper_log` VALUES (262, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_tag\"}', NULL, 0, NULL, '2025-11-24 22:01:46', 397); +INSERT INTO `sys_oper_log` VALUES (263, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/ai_tag', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 22:07:12', 9425); +INSERT INTO `sys_oper_log` VALUES (264, '代码生成', 3, 'com.ruoyi.generator.controller.GenController.remove()', 'DELETE', 1, 'admin', '研发部门', '/tool/gen/19', '127.0.0.1', '内网IP', '[19]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 22:07:33', 1989); +INSERT INTO `sys_oper_log` VALUES (265, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_tag\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 22:08:23', 11013); +INSERT INTO `sys_oper_log` VALUES (266, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_tag\"}', NULL, 0, NULL, '2025-11-24 22:08:51', 375); +INSERT INTO `sys_oper_log` VALUES (267, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/ai_tag', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 22:11:22', 8413); +INSERT INTO `sys_oper_log` VALUES (268, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_tag\"}', NULL, 0, NULL, '2025-11-24 22:11:41', 364); +INSERT INTO `sys_oper_log` VALUES (269, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-11-24 23:01:19\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"prompt\":\"11111\",\"remark\":\"11111\",\"title\":\"12121\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 23:01:21', 736); +INSERT INTO `sys_oper_log` VALUES (270, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":5,\"createBy\":\"admin\",\"createTime\":\"2025-11-24 23:16:23\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"prompt\":\"啊哈\",\"remark\":\"123454\",\"title\":\"测试\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 23:16:24', 548); +INSERT INTO `sys_oper_log` VALUES (271, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":5,\"createBy\":\"admin\",\"createTime\":\"2025-11-24 23:16:35\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"prompt\":\"阿萨斯\",\"remark\":\"123344\",\"title\":\"测试2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 23:16:37', 558); +INSERT INTO `sys_oper_log` VALUES (272, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-24 23:16:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-24 23:16:43', 1593); +INSERT INTO `sys_oper_log` VALUES (273, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":35,\"remark\":\"11\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"IMG_TO_VID_21\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 10:28:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 10:28:03', 662); +INSERT INTO `sys_oper_log` VALUES (274, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 10:33:05', 1710); +INSERT INTO `sys_oper_log` VALUES (275, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 10:33:14', 2211); +INSERT INTO `sys_oper_log` VALUES (276, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:24:46\",\"delFlag\":\"0\",\"endTime\":\"2025-11-27 23:24:23\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-24 21:39:10\",\"delFlag\":\"0\",\"giftAmount\":110,\"id\":5,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":1,\"title\":\"充100元赠送110元\",\"updateBy\":\"\",\"updateTime\":\"2025-11-24 21:39:10\"},{\"giftAmount\":230,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":1,\"title\":\"充200元赠送230元\"}],\"id\":1,\"isFristRecharge\":\"N\",\"params\":{},\"remark\":\"\",\"startTime\":\"2025-11-20 23:24:18\",\"status\":1,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 11:27:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 11:27:57', 3145); +INSERT INTO `sys_oper_log` VALUES (277, '部门管理', 1, 'com.ruoyi.web.controller.system.SysDeptController.add()', 'POST', 1, 'admin', '研发部门', '/system/dept', '127.0.0.1', '内网IP', '{\"ancestors\":\"0,100\",\"children\":[],\"createBy\":\"admin\",\"deptId\":200,\"deptName\":\"胸部\",\"orderNum\":3,\"params\":{},\"parentId\":100,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:07:39', 1652); +INSERT INTO `sys_oper_log` VALUES (278, '部门管理', 1, 'com.ruoyi.web.controller.system.SysDeptController.add()', 'POST', 1, 'admin', '研发部门', '/system/dept', '127.0.0.1', '内网IP', '{\"ancestors\":\"0,100,200\",\"children\":[],\"createBy\":\"admin\",\"deptId\":201,\"deptName\":\"大奶\",\"orderNum\":1,\"params\":{},\"parentId\":200,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:07:48', 1013); +INSERT INTO `sys_oper_log` VALUES (279, '部门管理', 1, 'com.ruoyi.web.controller.system.SysDeptController.add()', 'POST', 1, 'admin', '研发部门', '/system/dept', '127.0.0.1', '内网IP', '{\"ancestors\":\"0,100,200,201\",\"children\":[],\"createBy\":\"admin\",\"deptId\":202,\"deptName\":\"水滴型\",\"orderNum\":1,\"params\":{},\"parentId\":201,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:08:05', 1410); +INSERT INTO `sys_oper_log` VALUES (280, '部门管理', 1, 'com.ruoyi.web.controller.system.SysDeptController.add()', 'POST', 1, 'admin', '研发部门', '/system/dept', '127.0.0.1', '内网IP', '{\"ancestors\":\"0,100,200\",\"children\":[],\"createBy\":\"admin\",\"deptId\":203,\"deptName\":\"小奶\",\"orderNum\":2,\"params\":{},\"parentId\":200,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:08:13', 1010); +INSERT INTO `sys_oper_log` VALUES (281, '部门管理', 1, 'com.ruoyi.web.controller.system.SysDeptController.add()', 'POST', 1, 'admin', '研发部门', '/system/dept', '127.0.0.1', '内网IP', '{\"ancestors\":\"0,100,200,201\",\"children\":[],\"createBy\":\"admin\",\"deptId\":204,\"deptName\":\"粉色\",\"orderNum\":2,\"params\":{},\"parentId\":201,\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:08:26', 960); +INSERT INTO `sys_oper_log` VALUES (282, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/200', '127.0.0.1', '内网IP', '200', '{\"msg\":\"存在下级部门,不允许删除\",\"code\":601}', 0, NULL, '2025-11-25 13:10:07', 502); +INSERT INTO `sys_oper_log` VALUES (283, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/204', '127.0.0.1', '内网IP', '204', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:10:12', 1512); +INSERT INTO `sys_oper_log` VALUES (284, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/202', '127.0.0.1', '内网IP', '202', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:10:17', 1418); +INSERT INTO `sys_oper_log` VALUES (285, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/203', '127.0.0.1', '内网IP', '203', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:10:20', 1018); +INSERT INTO `sys_oper_log` VALUES (286, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/201', '127.0.0.1', '内网IP', '201', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:10:23', 960); +INSERT INTO `sys_oper_log` VALUES (287, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/200', '127.0.0.1', '内网IP', '200', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 13:10:27', 1482); +INSERT INTO `sys_oper_log` VALUES (288, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/25/2778d846_cbb54d5ee54b2e04ec64fe979db6146e.jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 17:08:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 17:08:05', 636); +INSERT INTO `sys_oper_log` VALUES (289, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/25/5ebe2cc0_cbb54d5ee54b2e04ec64fe979db6146e.jpg\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":0,\"remark\":\"11212\",\"status\":0,\"title\":\"图2\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 17:08:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 17:08:46', 466); +INSERT INTO `sys_oper_log` VALUES (290, 'banner管理', 1, 'com.ruoyi.web.controller.ai.AiBannerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/25/404b99eb_cbb54d5ee54b2e04ec64fe979db6146e.jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"title\":\"图3\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 17:09:12', 940); +INSERT INTO `sys_oper_log` VALUES (291, 'banner管理', 1, 'com.ruoyi.web.controller.ai.AiBannerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/banner', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:24\",\"delFlag\":\"0\",\"id\":4,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/25/1b186d74_cbb54d5ee54b2e04ec64fe979db6146e.jpg\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":1,\"title\":\"图4\",\"type\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 17:09:29', 1936); +INSERT INTO `sys_oper_log` VALUES (292, '字典类型', 1, 'com.ruoyi.web.controller.system.SysDictTypeController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/type', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"dictName\":\"AI类型\",\"dictType\":\"ai_manager_type\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 18:39:05', 987); +INSERT INTO `sys_oper_log` VALUES (293, '字典类型', 3, 'com.ruoyi.web.controller.system.SysDictTypeController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dict/type/101', '127.0.0.1', '内网IP', '[101]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 18:39:38', 1152); +INSERT INTO `sys_oper_log` VALUES (294, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"children\":[],\"id\":2,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:10:41\"}', NULL, 1, '\r\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Unknown column \'children\' in \'field list\'\r\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\r\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.updateById-Inline\r\n### The error occurred while setting parameters\r\n### SQL: UPDATE ai_tag SET status=?, children=?, update_by=?, update_time=? WHERE id=?\r\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'children\' in \'field list\'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column \'children\' in \'field list\'', '2025-11-25 19:10:42', 758); +INSERT INTO `sys_oper_log` VALUES (295, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"children\":[],\"id\":2,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:16:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:16:28', 732); +INSERT INTO `sys_oper_log` VALUES (296, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":10,\"prompt\":\"111\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:31:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:31:51', 858); +INSERT INTO `sys_oper_log` VALUES (297, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-21 22:24:28\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"price\":10,\"status\":0,\"title\":\"图生图2\",\"type\":\"12\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:31:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:32:00', 446); +INSERT INTO `sys_oper_log` VALUES (298, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:06:02\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"price\":10,\"status\":0,\"title\":\"一键换脸\",\"type\":\"13\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:32:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:32:07', 526); +INSERT INTO `sys_oper_log` VALUES (299, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"price\":8,\"status\":0,\"title\":\"快捷生图\",\"type\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:32:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:32:13', 509); +INSERT INTO `sys_oper_log` VALUES (300, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":35,\"remark\":\"11\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"21\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 19:32:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:32:20', 437); +INSERT INTO `sys_oper_log` VALUES (301, 'AI管理', 1, 'com.ruoyi.web.controller.ai.AiManagerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/manager', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 19:41:22\",\"delFlag\":\"0\",\"id\":7,\"params\":{},\"price\":35,\"title\":\"视频换脸\",\"type\":\"22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:41:24', 766); +INSERT INTO `sys_oper_log` VALUES (302, '修改AI状态', 2, 'com.ruoyi.web.controller.ai.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '127.0.0.1', '内网IP', '{\"id\":7,\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 19:42:48', 670); +INSERT INTO `sys_oper_log` VALUES (303, '部门管理', 3, 'com.ruoyi.web.controller.system.SysDeptController.remove()', 'DELETE', 1, 'admin', '研发部门', '/system/dept/101', '127.0.0.1', '内网IP', '101', '{\"msg\":\"存在下级部门,不允许删除\",\"code\":601}', 0, NULL, '2025-11-25 20:03:06', 503); +INSERT INTO `sys_oper_log` VALUES (304, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":5,\"children\":[],\"createBy\":\"admin\",\"createTime\":\"2025-11-25 20:06:13\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentId\":2,\"prompt\":\"1234\",\"title\":\"测试3\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 20:06:14', 622); +INSERT INTO `sys_oper_log` VALUES (305, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"children\":[],\"id\":3,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 20:06:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 20:06:27', 624); +INSERT INTO `sys_oper_log` VALUES (306, '参数管理', 1, 'com.ruoyi.web.controller.system.SysConfigController.add()', 'POST', 1, 'admin', '研发部门', '/system/config', '127.0.0.1', '内网IP', '{\"configKey\":\"sys_portal_logo\",\"configName\":\"门户端logo\",\"configType\":\"N\",\"configValue\":\"1\",\"createBy\":\"admin\",\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 20:32:02', 1151); +INSERT INTO `sys_oper_log` VALUES (307, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '127.0.0.1', '内网IP', '{\"configId\":101,\"configKey\":\"sys.portal.logo\",\"configName\":\"门户端logo\",\"configType\":\"N\",\"configValue\":\"1\",\"createBy\":\"admin\",\"createTime\":\"2025-11-25 20:32:01\",\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 20:32:53', 1149); +INSERT INTO `sys_oper_log` VALUES (308, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '127.0.0.1', '内网IP', '{\"configId\":101,\"configKey\":\"sys.portal.logo\",\"configName\":\"门户端logo\",\"configType\":\"N\",\"configValue\":\"https://images.iqyjsnwv.com/2025/11/25/b0891058_微信图片_20251125204030_946_38.png\",\"createBy\":\"admin\",\"createTime\":\"2025-11-25 20:32:01\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 20:32:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 20:45:10', 1429); +INSERT INTO `sys_oper_log` VALUES (309, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-24 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":1,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-20 23:36:31\"},{\"createBy\":\"\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":2,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-20 23:36:31\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-19 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:28:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:28:13', 2789); +INSERT INTO `sys_oper_log` VALUES (310, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:12\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":8,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:12\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:12\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":9,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:12\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-19 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:28:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:28:30', 2481); +INSERT INTO `sys_oper_log` VALUES (311, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:28\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":10,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:28\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:28\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":11,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:28\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-25 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:28:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:28:56', 2541); +INSERT INTO `sys_oper_log` VALUES (312, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:55\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":12,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:55\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:28:55\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":13,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:28:55\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:29:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:29:10', 2487); +INSERT INTO `sys_oper_log` VALUES (313, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:08\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":14,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:08\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:08\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":15,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:08\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:29:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:29:28', 2535); +INSERT INTO `sys_oper_log` VALUES (314, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:08\",\"delFlag\":\"0\",\"giftAmount\":30,\"id\":14,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送30\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:08\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:08\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":15,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送50\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:08\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"1111\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 21:29:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 21:29:29', 2496); +INSERT INTO `sys_oper_log` VALUES (315, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_work\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 22:01:58', 8124); +INSERT INTO `sys_oper_log` VALUES (316, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_work\"}', NULL, 0, NULL, '2025-11-25 22:02:02', 712); +INSERT INTO `sys_oper_log` VALUES (317, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '127.0.0.1', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-25 22:42:33', 2115); +INSERT INTO `sys_oper_log` VALUES (318, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:44:51\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"prompt\":\"黑色\",\"title\":\"头发\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:44:52', 637); +INSERT INTO `sys_oper_log` VALUES (319, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:29\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"卷发\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:45:30', 455); +INSERT INTO `sys_oper_log` VALUES (320, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:28\",\"delFlag\":\"0\",\"id\":7,\"params\":{},\"parentId\":5,\"prompt\":\"直发\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:46:29', 933); +INSERT INTO `sys_oper_log` VALUES (321, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:55\",\"delFlag\":\"0\",\"id\":8,\"params\":{},\"prompt\":\"白色短袖\",\"title\":\"衣服\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:46:57', 901); +INSERT INTO `sys_oper_log` VALUES (322, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:56\",\"delFlag\":\"0\",\"id\":8,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"衣服\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:47:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:06', 932); +INSERT INTO `sys_oper_log` VALUES (323, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:44:51\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"头发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:47:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:13', 505); +INSERT INTO `sys_oper_log` VALUES (324, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:30\",\"delFlag\":\"0\",\"id\":9,\"params\":{},\"parentId\":8,\"prompt\":\"白色背心\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:31', 495); +INSERT INTO `sys_oper_log` VALUES (325, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:40\",\"delFlag\":\"0\",\"id\":10,\"params\":{},\"parentId\":8,\"prompt\":\"粉色短袖\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:41', 499); +INSERT INTO `sys_oper_log` VALUES (326, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:51\",\"delFlag\":\"0\",\"id\":11,\"params\":{},\"prompt\":\"白色短裤\",\"title\":\"裤子\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:52', 448); +INSERT INTO `sys_oper_log` VALUES (327, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:51\",\"delFlag\":\"0\",\"id\":11,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"裤子\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:47:56\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:47:57', 452); +INSERT INTO `sys_oper_log` VALUES (328, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:12\",\"delFlag\":\"0\",\"id\":12,\"params\":{},\"parentId\":11,\"prompt\":\"黑色短裤\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:48:13', 457); +INSERT INTO `sys_oper_log` VALUES (329, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:19\",\"delFlag\":\"0\",\"id\":13,\"params\":{},\"parentId\":11,\"prompt\":\"白色裙子\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:48:19', 496); +INSERT INTO `sys_oper_log` VALUES (330, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"\",\"status\":0,\"title\":\"卷发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:07', 459); +INSERT INTO `sys_oper_log` VALUES (331, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:29\",\"delFlag\":\"0\",\"id\":7,\"params\":{},\"parentId\":5,\"prompt\":\"\",\"status\":0,\"title\":\"直发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:13', 497); +INSERT INTO `sys_oper_log` VALUES (332, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:31\",\"delFlag\":\"0\",\"id\":9,\"params\":{},\"parentId\":8,\"prompt\":\"\",\"status\":0,\"title\":\"白色背心\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:18', 498); +INSERT INTO `sys_oper_log` VALUES (333, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:40\",\"delFlag\":\"0\",\"id\":10,\"params\":{},\"parentId\":8,\"prompt\":\"\",\"status\":0,\"title\":\"粉色短袖\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:22', 518); +INSERT INTO `sys_oper_log` VALUES (334, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:12\",\"delFlag\":\"0\",\"id\":12,\"params\":{},\"parentId\":11,\"prompt\":\"\",\"status\":0,\"title\":\"黑色短裤\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:31', 495); +INSERT INTO `sys_oper_log` VALUES (335, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '127.0.0.1', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:19\",\"delFlag\":\"0\",\"id\":13,\"params\":{},\"parentId\":11,\"prompt\":\"\",\"status\":0,\"title\":\"白色裙子\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 16:50:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 16:50:36', 453); +INSERT INTO `sys_oper_log` VALUES (336, '代码生成', 6, 'com.ruoyi.generator.controller.GenController.importTableSave()', 'POST', 1, 'admin', '研发部门', '/tool/gen/importTable', '127.0.0.1', '内网IP', '{\"tables\":\"ai_customer\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 19:37:07', 10582); +INSERT INTO `sys_oper_log` VALUES (337, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_customer\"}', NULL, 0, NULL, '2025-11-26 19:38:05', 764); +INSERT INTO `sys_oper_log` VALUES (338, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/customer/index\",\"createBy\":\"admin\",\"icon\":\"monitor\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"客户配置\",\"menuType\":\"C\",\"orderNum\":7,\"params\":{},\"parentId\":2000,\"path\":\"customer\",\"perms\":\"ai:customer:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 19:44:12', 1163); +INSERT INTO `sys_oper_log` VALUES (339, 'AI-客户配置', 1, 'com.ruoyi.web.controller.ai.AiCustomerController.add()', 'POST', 1, 'admin', '研发部门', '/ai/customer', '127.0.0.1', '内网IP', '{\"bannerUrl\":\"http://localhost/ai-manager/customer\",\"createBy\":\"admin\",\"createTime\":\"2025-11-26 19:53:53\",\"delFlag\":\"0\",\"id\":1,\"logoUrl\":\"http://localhost/ai-manager/customer\",\"params\":{},\"rebateAmount\":\"10\",\"remark\":\"1234\",\"serviceUrl\":\"http://localhost/ai-manager/customer\",\"userCode\":\"F8D2C5E1\",\"userEmail\":\"13888888888\",\"userName\":\"测试\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 19:53:54', 993); +INSERT INTO `sys_oper_log` VALUES (340, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-26 19:54:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 19:54:47', 594); +INSERT INTO `sys_oper_log` VALUES (341, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', '研发部门', '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{\"tables\":\"ai_work\"}', NULL, 0, NULL, '2025-11-26 20:23:06', 662); +INSERT INTO `sys_oper_log` VALUES (342, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', '研发部门', '/tool/gen/synchDb/ai_work', '127.0.0.1', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 20:23:10', 8774); +INSERT INTO `sys_oper_log` VALUES (343, '菜单管理', 1, 'com.ruoyi.web.controller.system.SysMenuController.add()', 'POST', 1, 'admin', '研发部门', '/system/menu', '127.0.0.1', '内网IP', '{\"children\":[],\"component\":\"ai/work/index\",\"createBy\":\"admin\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuName\":\"用户作品\",\"menuType\":\"C\",\"orderNum\":8,\"params\":{},\"parentId\":2000,\"path\":\"work\",\"perms\":\"ai:work:list\",\"status\":\"0\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-26 20:25:56', 884); +INSERT INTO `sys_oper_log` VALUES (344, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"视频换脸\",\"dictSort\":22,\"dictType\":\"ai_function_type\",\"dictValue\":\"22\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 12:48:54', 857); +INSERT INTO `sys_oper_log` VALUES (345, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:27\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":18,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:27\"},{\"createBy\":\"\",\"createTime\":\"2025-11-25 21:29:27\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":19,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-25 21:29:27\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"remark\":\"\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 12:57:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 12:58:01', 2656); +INSERT INTO `sys_oper_log` VALUES (346, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 12:57:59\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":20,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 12:57:59\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 12:57:59\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":21,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 12:57:59\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"VISA\",\"remark\":\"\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 15:26:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:26:23', 2313); +INSERT INTO `sys_oper_log` VALUES (347, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 12:57:59\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":20,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 12:57:59\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 12:57:59\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":21,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 12:57:59\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"VISA\",\"remark\":\"\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 15:26:23\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:26:27', 3492); +INSERT INTO `sys_oper_log` VALUES (348, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:26:24\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":24,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:26:24\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:26:24\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":25,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:26:24\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 15:57:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:57:42', 2462); +INSERT INTO `sys_oper_log` VALUES (349, '充值赠送活动', 1, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.add()', 'POST', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"gearList\":[{\"giftAmount\":10,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\"},{\"giftAmount\":50,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4},{\"giftAmount\":100,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:59:15', 1905); +INSERT INTO `sys_oper_log` VALUES (350, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:57:40\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":26,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:57:40\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:57:40\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":27,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:57:40\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 15:59:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:59:47', 2007); +INSERT INTO `sys_oper_log` VALUES (351, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:45\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":31,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:45\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:45\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":32,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:45\"}],\"id\":3,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 15:59:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 15:59:57', 2121); +INSERT INTO `sys_oper_log` VALUES (352, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"endTime\":\"2025-11-29 00:00:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:56\",\"delFlag\":\"0\",\"giftAmount\":210,\"id\":33,\"params\":{},\"rechargeAmount\":200,\"rechargeId\":3,\"title\":\"充200送210\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:56\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:56\",\"delFlag\":\"0\",\"giftAmount\":330,\"id\":34,\"params\":{},\"rechargeAmount\":300,\"rechargeId\":3,\"title\":\"充300送330\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:56\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"startTime\":\"2025-11-26 00:00:00\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 16:00:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 16:00:13', 2113); +INSERT INTO `sys_oper_log` VALUES (353, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 16:00:12\",\"delFlag\":\"0\",\"giftAmount\":10,\"id\":35,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 16:00:12\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 16:00:12\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":36,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 16:00:12\"},{\"giftAmount\":100,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":3}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 16:01:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 16:01:44', 2004); +INSERT INTO `sys_oper_log` VALUES (354, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '127.0.0.1', '内网IP', '{\"bannerUrl\":\"http://localhost/ai-manager/customer\",\"createBy\":\"admin\",\"createTime\":\"2025-11-26 19:53:53\",\"delFlag\":\"0\",\"id\":1,\"logoUrl\":\"http://localhost/ai-manager/customer\",\"params\":{},\"rebateAmount\":\"10\",\"remark\":\"1234\",\"serviceUrl\":\"http://localhost/ai-manager/customer\",\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 16:20:07\",\"userCode\":\"XM001\",\"userEmail\":\"13888888888\",\"userName\":\"XM001\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 16:20:09', 1040); +INSERT INTO `sys_oper_log` VALUES (355, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '127.0.0.1', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-27 16:24:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 16:24:15', 443); +INSERT INTO `sys_oper_log` VALUES (356, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '127.0.0.1', '内网IP', '{\"id\":1,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 00:04:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:04:29', 729); +INSERT INTO `sys_oper_log` VALUES (357, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '127.0.0.1', '内网IP', '{\"id\":1,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-28 00:06:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:06:23', 719); +INSERT INTO `sys_oper_log` VALUES (358, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '127.0.0.1', '内网IP', '{\"id\":1,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 00:06:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:06:27', 1098); +INSERT INTO `sys_oper_log` VALUES (359, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 16:01:42\",\"delFlag\":\"0\",\"giftAmount\":110,\"id\":37,\"params\":{},\"rechargeAmount\":10000,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 16:01:42\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 00:36:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:36:57', 3314); +INSERT INTO `sys_oper_log` VALUES (360, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:36:55\",\"delFlag\":\"0\",\"giftAmount\":112,\"id\":40,\"params\":{},\"rechargeAmount\":112.00,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:36:55\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 00:44:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:44:42', 3261); +INSERT INTO `sys_oper_log` VALUES (361, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:15\",\"delFlag\":\"0\",\"giftAmount\":10,\"id\":28,\"params\":{},\"rechargeAmount\":10.00,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:15\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:15\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":29,\"params\":{},\"rechargeAmount\":50.00,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:15\"},{\"createBy\":\"\",\"createTime\":\"2025-11-27 15:59:15\",\"delFlag\":\"0\",\"giftAmount\":100,\"id\":30,\"params\":{},\"rechargeAmount\":100.00,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-27 15:59:15\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 00:44:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:44:56', 2684); +INSERT INTO `sys_oper_log` VALUES (362, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:44:40\",\"delFlag\":\"0\",\"giftAmount\":113,\"id\":41,\"params\":{},\"rechargeAmount\":112,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:44:40\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 00:46:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:46:29', 2628); +INSERT INTO `sys_oper_log` VALUES (363, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '127.0.0.1', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:44:54\",\"delFlag\":\"0\",\"giftAmount\":11,\"id\":42,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:44:54\"},{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:44:54\",\"delFlag\":\"0\",\"giftAmount\":51,\"id\":43,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:44:54\"},{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:44:54\",\"delFlag\":\"0\",\"giftAmount\":101,\"id\":44,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:44:54\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 00:46:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 00:46:41', 2192); +INSERT INTO `sys_oper_log` VALUES (364, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '23.249.17.33', ' ', '{\"configId\":101,\"configKey\":\"sys.portal.logo\",\"configName\":\"门户端logo\",\"configType\":\"N\",\"configValue\":\"https://images.iqyjsnwv.com/2025/11/28/ebf066d3_8005808.png\",\"createBy\":\"admin\",\"createTime\":\"2025-11-25 20:32:01\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-11-25 20:45:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:11:18', 56); +INSERT INTO `sys_oper_log` VALUES (365, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/28/a33d763c_111111.jpeg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 01:12:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:12:03', 23); +INSERT INTO `sys_oper_log` VALUES (366, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/28/3a7668a0_111111.jpeg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 01:12:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:12:32', 9); +INSERT INTO `sys_oper_log` VALUES (367, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/1', '23.249.17.33', ' ', '[1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:15:14', 15); +INSERT INTO `sys_oper_log` VALUES (368, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/2', '23.249.17.33', ' ', '[2]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:15:38', 6); +INSERT INTO `sys_oper_log` VALUES (369, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/3', '23.249.17.33', ' ', '[3]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:15:39', 7); +INSERT INTO `sys_oper_log` VALUES (370, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/4', '23.249.17.33', ' ', '[4]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:15:41', 7); +INSERT INTO `sys_oper_log` VALUES (371, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/28/2c655088_2222222.png\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 01:18:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:18:35', 10); +INSERT INTO `sys_oper_log` VALUES (372, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/11/28/d339c843_2222222.png\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 01:18:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:18:45', 7); +INSERT INTO `sys_oper_log` VALUES (373, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":1,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-28 01:22:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:22:10', 14); +INSERT INTO `sys_oper_log` VALUES (374, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":11,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 01:22:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:22:18', 6); +INSERT INTO `sys_oper_log` VALUES (375, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":12,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 01:22:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:22:18', 7); +INSERT INTO `sys_oper_log` VALUES (376, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":10,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 01:22:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:22:19', 7); +INSERT INTO `sys_oper_log` VALUES (377, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":10,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-28 01:23:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-27 17:23:55', 7); +INSERT INTO `sys_oper_log` VALUES (378, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":17,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 09:06:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 01:06:37', 7); +INSERT INTO `sys_oper_log` VALUES (379, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":12,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-28 09:06:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 01:06:48', 7); +INSERT INTO `sys_oper_log` VALUES (380, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":18,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 09:11:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 01:11:41', 8); +INSERT INTO `sys_oper_log` VALUES (381, 'ai-用户信息', 3, 'com.ruoyi.web.controller.ai.AiUserController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/user/13', '154.39.66.119', ' ', '[13]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 03:38:34', 558); +INSERT INTO `sys_oper_log` VALUES (382, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":35,\"remark\":\"\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"21\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:05:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:05:55', 52); +INSERT INTO `sys_oper_log` VALUES (383, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"111\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:12', 12); +INSERT INTO `sys_oper_log` VALUES (384, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:22', 9); +INSERT INTO `sys_oper_log` VALUES (385, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-21 22:24:28\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"price\":2,\"status\":0,\"title\":\"图生图2\",\"type\":\"12\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:25', 9); +INSERT INTO `sys_oper_log` VALUES (386, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:06:02\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"price\":2,\"status\":0,\"title\":\"一键换脸\",\"type\":\"13\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:29', 7); +INSERT INTO `sys_oper_log` VALUES (387, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"price\":2,\"status\":0,\"title\":\"快捷生图\",\"type\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:35', 6); +INSERT INTO `sys_oper_log` VALUES (388, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"price\":6,\"remark\":\"\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"21\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 12:06:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 04:06:44', 6); +INSERT INTO `sys_oper_log` VALUES (389, '充值赠送记录', 3, 'com.ruoyi.web.controller.ai.AiRechargeGiftRecordController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/recharge-gift-record/1', '154.92.130.95', '香港 ', '[1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:27:14', 25); +INSERT INTO `sys_oper_log` VALUES (390, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '154.92.130.95', '香港 ', '{\"amount\":11,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"duration\":222,\"id\":2,\"params\":{},\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 13:27:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:27:36', 77); +INSERT INTO `sys_oper_log` VALUES (391, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '154.92.130.95', '香港 ', '{\"amount\":10,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"duration\":222,\"id\":2,\"params\":{},\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 13:27:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:27:43', 11); +INSERT INTO `sys_oper_log` VALUES (392, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '154.92.130.95', '香港 ', '{\"amount\":11,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:32:34\",\"delFlag\":\"0\",\"duration\":11,\"endTime\":\"2025-11-18 00:00:00\",\"id\":1,\"params\":{},\"startTime\":\"2025-11-14 00:00:00\",\"status\":1,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 13:27:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:27:50', 8); +INSERT INTO `sys_oper_log` VALUES (393, '返佣记录', 3, 'com.ruoyi.web.controller.ai.AiRebateRecordController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/rebate-record/1', '154.92.130.95', '香港 ', '[1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:28:02', 8); +INSERT INTO `sys_oper_log` VALUES (394, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '154.92.130.95', '香港 ', '{\"content\":\"

TesTTesTTesTTesTTesTTesTTesT

\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"TesT\",\"updateBy\":\"admin\",\"updateTime\":\"2025-11-28 13:29:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 05:29:10', 26); +INSERT INTO `sys_oper_log` VALUES (395, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '154.92.130.93', '香港 ', '{\"id\":21,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-28 15:56:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 07:56:54', 75); +INSERT INTO `sys_oper_log` VALUES (396, '个人信息', 2, 'com.ruoyi.web.controller.system.SysProfileController.updatePwd()', 'PUT', 1, 'admin', '研发部门', '/system/user/profile/updatePwd', '154.92.130.93', '香港 ', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-28 07:57:53', 283); +INSERT INTO `sys_oper_log` VALUES (397, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":11,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-29 23:29:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:29:37', 55); +INSERT INTO `sys_oper_log` VALUES (398, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":17,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-29 23:29:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:29:39', 7); +INSERT INTO `sys_oper_log` VALUES (399, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":21,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-11-29 23:29:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:29:46', 7); +INSERT INTO `sys_oper_log` VALUES (400, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"id\":3,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-29 23:29:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:29:51', 18); +INSERT INTO `sys_oper_log` VALUES (401, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '23.249.17.33', ' ', '{\"id\":2,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-29 23:29:51\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:29:53', 10); +INSERT INTO `sys_oper_log` VALUES (402, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":1221,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-29 23:35:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:35:10', 7); +INSERT INTO `sys_oper_log` VALUES (403, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":1222,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-29 23:35:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:35:13', 9); +INSERT INTO `sys_oper_log` VALUES (404, 'ai作品', 2, 'com.ruoyi.web.controller.ai.AiWorkController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/work', '23.249.17.33', ' ', '{\"id\":1224,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-11-29 23:35:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 15:35:16', 7); +INSERT INTO `sys_oper_log` VALUES (405, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:52:57\",\"default\":false,\"dictCode\":104,\"dictLabel\":\"快捷生视频\",\"dictSort\":21,\"dictType\":\"ai_function_type\",\"dictValue\":\"21\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 16:01:09', 22); +INSERT INTO `sys_oper_log` VALUES (406, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/order/index\",\"createTime\":\"2025-11-13 22:36:36\",\"icon\":\"server\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2006,\"menuName\":\"订单记录\",\"menuType\":\"C\",\"orderNum\":5,\"params\":{},\"parentId\":2000,\"path\":\"order\",\"perms\":\"ai:order:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 16:12:16', 20); +INSERT INTO `sys_oper_log` VALUES (407, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/work/index\",\"createTime\":\"2025-11-26 20:25:55\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2019,\"menuName\":\"用户作品\",\"menuType\":\"C\",\"orderNum\":8,\"params\":{},\"parentId\":2000,\"path\":\"work\",\"perms\":\"ai:work:list\",\"routeName\":\"\",\"status\":\"1\",\"updateBy\":\"admin\",\"visible\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-29 16:14:44', 10); +INSERT INTO `sys_oper_log` VALUES (408, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '23.249.17.33', ' ', '{\"id\":3,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-30 08:11:28', 287); +INSERT INTO `sys_oper_log` VALUES (409, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/rechargeGiftRecord/index\",\"createTime\":\"2025-11-20 22:12:52\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2017,\"menuName\":\"充值赠送记录\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGiftRecord\",\"perms\":\"ai:rechargeGiftRecord:list\",\"routeName\":\"\",\"status\":\"1\",\"updateBy\":\"admin\",\"visible\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-30 10:26:42', 30); +INSERT INTO `sys_oper_log` VALUES (410, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/rechargeGift/index\",\"createTime\":\"2025-11-20 22:11:58\",\"icon\":\"clipboard\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2016,\"menuName\":\"充值活动\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGift\",\"perms\":\"ai:rechargeGift:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-30 10:26:48', 11); +INSERT INTO `sys_oper_log` VALUES (411, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '23.249.17.33', ' ', '{\"amount\":10,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-30 18:27:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-30 10:27:28', 12); +INSERT INTO `sys_oper_log` VALUES (412, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '23.249.17.33', ' ', '{\"amount\":10,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"duration\":0,\"id\":2,\"params\":{},\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-11-30 18:27:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-11-30 10:27:32', 7); +INSERT INTO `sys_oper_log` VALUES (413, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '23.249.17.33', ' ', '{\"content\":\"

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.


\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"What should I do if I encounter bugs or generation failures during use?\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 08:49:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:49:04', 52); +INSERT INTO `sys_oper_log` VALUES (414, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '23.249.17.33', ' ', '{\"content\":\"

What should I do if I encounter bugs or generation failures during use?

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.

\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"What should I do if I encounter bugs or generation failures during use?\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 08:49:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:49:39', 8); +INSERT INTO `sys_oper_log` VALUES (415, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '23.249.17.33', ' ', '{\"content\":\"

What should I do if I encounter bugs or generation failures during use?

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.
\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"What should I do if I encounter bugs or generation failures during use?\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 08:49:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:49:46', 10); +INSERT INTO `sys_oper_log` VALUES (416, '站内信管理', 3, 'com.ruoyi.web.controller.ai.AiUserMessageController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/message/1', '23.249.17.33', ' ', '[1]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:51:39', 12); +INSERT INTO `sys_oper_log` VALUES (417, '站内信管理', 3, 'com.ruoyi.web.controller.ai.AiUserMessageController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/message/2', '23.249.17.33', ' ', '[2]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:51:41', 6); +INSERT INTO `sys_oper_log` VALUES (418, '站内信管理', 3, 'com.ruoyi.web.controller.ai.AiUserMessageController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/message/3', '23.249.17.33', ' ', '[3]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:51:43', 6); +INSERT INTO `sys_oper_log` VALUES (419, '站内信管理', 3, 'com.ruoyi.web.controller.ai.AiUserMessageController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/message/4', '23.249.17.33', ' ', '[4]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 00:51:46', 5); +INSERT INTO `sys_oper_log` VALUES (420, '字典类型', 1, 'com.ruoyi.web.controller.system.SysDictTypeController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/type', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"dictName\":\"AI-客户配置\",\"dictType\":\"customer_set\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:01:34', 54); +INSERT INTO `sys_oper_log` VALUES (421, '字典类型', 2, 'com.ruoyi.web.controller.system.SysDictTypeController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/type', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-02 03:01:33\",\"dictId\":102,\"dictName\":\"AI-客户配置\",\"dictType\":\"ai_customer_set\",\"params\":{},\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:01:41', 30); +INSERT INTO `sys_oper_log` VALUES (422, '字典数据', 1, 'com.ruoyi.web.controller.system.SysDictDataController.add()', 'POST', 1, 'admin', '研发部门', '/system/dict/data', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"default\":false,\"dictLabel\":\"XM001\",\"dictSort\":1,\"dictType\":\"ai_customer_set\",\"dictValue\":\"1\",\"listClass\":\"default\",\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:02:22', 24); +INSERT INTO `sys_oper_log` VALUES (423, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-02 03:02:18\",\"default\":false,\"dictCode\":106,\"dictLabel\":\"XM001\",\"dictSort\":1,\"dictType\":\"ai_customer_set\",\"dictValue\":\"XM001\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:02:35', 12); +INSERT INTO `sys_oper_log` VALUES (424, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '154.92.130.95', '香港 ', '{\"bannerUrl\":\"http://localhost/ai-manager/customer\",\"createBy\":\"admin\",\"createTime\":\"2025-11-26 19:53:53\",\"delFlag\":\"0\",\"id\":1,\"logoUrl\":\"http://localhost/ai-manager/customer\",\"params\":{},\"rebateAmount\":\"5%\",\"remark\":\"https://www.undressing.top\",\"serviceUrl\":\"http://localhost/ai-manager/customer\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:46:14\",\"userCode\":\"XM001\",\"userEmail\":\"13888888888\",\"userName\":\"XM001\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:46:18', 17); +INSERT INTO `sys_oper_log` VALUES (425, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '154.92.130.95', '香港 ', '{\"bannerUrl\":\"http://localhost/ai-manager/customer\",\"createBy\":\"admin\",\"createTime\":\"2025-11-26 19:53:53\",\"delFlag\":\"0\",\"id\":1,\"logoUrl\":\"http://localhost/ai-manager/customer\",\"params\":{},\"rebateAmount\":\"\",\"remark\":\"https://www.undressing.top\",\"serviceUrl\":\"http://localhost/ai-manager/customer\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:46:32\",\"userCode\":\"XM001\",\"userEmail\":\"13888888888\",\"userName\":\"XM001\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:46:33', 7); +INSERT INTO `sys_oper_log` VALUES (426, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":5,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:04', 13); +INSERT INTO `sys_oper_log` VALUES (427, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":6,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:05', 7); +INSERT INTO `sys_oper_log` VALUES (428, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":7,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:07', 7); +INSERT INTO `sys_oper_log` VALUES (429, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":8,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:08', 9); +INSERT INTO `sys_oper_log` VALUES (430, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":9,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:09', 6); +INSERT INTO `sys_oper_log` VALUES (431, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":10,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:10', 9); +INSERT INTO `sys_oper_log` VALUES (432, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":11,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:12', 6); +INSERT INTO `sys_oper_log` VALUES (433, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":12,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:13', 7); +INSERT INTO `sys_oper_log` VALUES (434, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.92.130.95', '香港 ', '{\"id\":13,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-02 11:47:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 03:47:14', 7); +INSERT INTO `sys_oper_log` VALUES (435, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":17,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:35:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:35:54', 14); +INSERT INTO `sys_oper_log` VALUES (436, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":14,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:35:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:36:01', 9); +INSERT INTO `sys_oper_log` VALUES (437, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":18,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:36:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:36:02', 6); +INSERT INTO `sys_oper_log` VALUES (438, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":20,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:36:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:36:06', 6); +INSERT INTO `sys_oper_log` VALUES (439, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":11,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:36:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:36:13', 6); +INSERT INTO `sys_oper_log` VALUES (440, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":22,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:36:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:36:56', 6); +INSERT INTO `sys_oper_log` VALUES (441, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":21,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:36:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:37:00', 8); +INSERT INTO `sys_oper_log` VALUES (442, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":24,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-02 12:39:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-02 04:39:16', 7); +INSERT INTO `sys_oper_log` VALUES (443, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"把图中的中间的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-03 13:05:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-03 05:05:12', 300); +INSERT INTO `sys_oper_log` VALUES (444, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"把图中的中间的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-03 13:05:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-03 05:05:41', 10); +INSERT INTO `sys_oper_log` VALUES (445, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-21 22:24:28\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"price\":2,\"status\":0,\"title\":\"一键换衣\",\"type\":\"12\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-03 13:05:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-03 05:05:42', 8); +INSERT INTO `sys_oper_log` VALUES (446, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:52:24\",\"default\":false,\"dictCode\":101,\"dictLabel\":\"一键脱衣\",\"dictSort\":11,\"dictType\":\"ai_function_type\",\"dictValue\":\"11\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-03 05:06:10', 37); +INSERT INTO `sys_oper_log` VALUES (447, '字典数据', 2, 'com.ruoyi.web.controller.system.SysDictDataController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/dict/data', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-24 13:52:33\",\"default\":false,\"dictCode\":102,\"dictLabel\":\"一键换衣\",\"dictSort\":12,\"dictType\":\"ai_function_type\",\"dictValue\":\"12\",\"isDefault\":\"N\",\"listClass\":\"default\",\"params\":{},\"path\":\"\",\"status\":\"0\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-03 05:06:15', 18); +INSERT INTO `sys_oper_log` VALUES (448, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"把图中的成年人的衣服和裤子全部脱光,漏出大胸大奶的性感裸体,注意不要让乳头消失\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-04 10:33:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-04 02:33:41', 56); +INSERT INTO `sys_oper_log` VALUES (449, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":146,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:44:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:44:49', 57); +INSERT INTO `sys_oper_log` VALUES (450, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":22,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:07', 5); +INSERT INTO `sys_oper_log` VALUES (451, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":21,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:09', 6); +INSERT INTO `sys_oper_log` VALUES (452, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":20,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:10', 6); +INSERT INTO `sys_oper_log` VALUES (453, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":18,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:12', 7); +INSERT INTO `sys_oper_log` VALUES (454, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":17,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:15', 6); +INSERT INTO `sys_oper_log` VALUES (455, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":24,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:15', 6); +INSERT INTO `sys_oper_log` VALUES (456, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":14,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:16', 6); +INSERT INTO `sys_oper_log` VALUES (457, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":11,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:18', 5); +INSERT INTO `sys_oper_log` VALUES (458, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":132,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:51\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:56', 12); +INSERT INTO `sys_oper_log` VALUES (459, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":134,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:45:56\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:45:58', 5); +INSERT INTO `sys_oper_log` VALUES (460, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":138,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:46:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:46:31', 5); +INSERT INTO `sys_oper_log` VALUES (461, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":116,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:46:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:47:05', 6); +INSERT INTO `sys_oper_log` VALUES (462, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":97,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:48:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:48:18', 5); +INSERT INTO `sys_oper_log` VALUES (463, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":70,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 10:48:30\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:48:32', 5); +INSERT INTO `sys_oper_log` VALUES (464, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.92.130.95', '香港 ', '{\"id\":2,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 10:49:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:49:49', 6); +INSERT INTO `sys_oper_log` VALUES (465, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.92.130.95', '香港 ', '{\"id\":3,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 10:49:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:49:51', 20); +INSERT INTO `sys_oper_log` VALUES (466, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.92.130.95', '香港 ', '{\"id\":4,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 10:49:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:49:52', 6); +INSERT INTO `sys_oper_log` VALUES (467, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.92.130.95', '香港 ', '{\"id\":1,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 10:49:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 02:49:53', 6); +INSERT INTO `sys_oper_log` VALUES (468, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":199,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:30\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:31', 58); +INSERT INTO `sys_oper_log` VALUES (469, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":197,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:40', 8); +INSERT INTO `sys_oper_log` VALUES (470, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":198,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:41', 11); +INSERT INTO `sys_oper_log` VALUES (471, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":193,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:51\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:52', 6); +INSERT INTO `sys_oper_log` VALUES (472, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":190,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:53', 10); +INSERT INTO `sys_oper_log` VALUES (473, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":188,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:16:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:16:59', 7); +INSERT INTO `sys_oper_log` VALUES (474, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":195,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:17:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:17:17', 18); +INSERT INTO `sys_oper_log` VALUES (475, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":188,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 11:17:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:17:21', 8); +INSERT INTO `sys_oper_log` VALUES (476, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":200,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 11:17:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:17:28', 7); +INSERT INTO `sys_oper_log` VALUES (477, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":138,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 11:24:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 03:25:01', 11); +INSERT INTO `sys_oper_log` VALUES (478, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":206,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 15:00:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 07:00:21', 56); +INSERT INTO `sys_oper_log` VALUES (479, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.92.130.95', '香港 ', '{\"id\":203,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 15:00:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 07:00:22', 8); +INSERT INTO `sys_oper_log` VALUES (480, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:27\",\"delFlag\":\"0\",\"id\":14,\"params\":{},\"prompt\":\"1\",\"title\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:30:27', 16); +INSERT INTO `sys_oper_log` VALUES (481, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/14', '2407:cdc0:b00a::19', '内网IP', '[14]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:30:31', 14); +INSERT INTO `sys_oper_log` VALUES (482, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:34\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"title\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:30:34', 5); +INSERT INTO `sys_oper_log` VALUES (483, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:46\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"2\",\"title\":\"2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:30:46', 5); +INSERT INTO `sys_oper_log` VALUES (484, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2407:cdc0:b00a::19', '内网IP', '{\"balance\":99983,\"id\":5,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:33:07', 24); +INSERT INTO `sys_oper_log` VALUES (485, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.updatePassword()', 'PUT', 1, 'admin', '研发部门', '/ai/user/updatePassword', '2407:cdc0:b00a::19', '内网IP', '{\"id\":16,\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:34:21', 97); +INSERT INTO `sys_oper_log` VALUES (486, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:47\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"高清 4K , 背景替换为白色\",\"status\":0,\"title\":\"2\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 17:39:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:39:53', 7); +INSERT INTO `sys_oper_log` VALUES (487, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2407:cdc0:b00a::19', '内网IP', '{\"balance\":100000,\"id\":16,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:40:25', 13); +INSERT INTO `sys_oper_log` VALUES (488, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:47\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"背景替换为白色\",\"status\":0,\"title\":\"2\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 17:41:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:41:34', 5); +INSERT INTO `sys_oper_log` VALUES (489, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-08 17:42:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 09:42:07', 11); +INSERT INTO `sys_oper_log` VALUES (490, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '23.249.17.33', ' ', '{\"id\":96,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-08 23:37:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 15:38:01', 5); +INSERT INTO `sys_oper_log` VALUES (491, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '23.249.17.33', ' ', '{\"id\":96,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2025-12-08 23:39:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-08 15:39:09', 5); +INSERT INTO `sys_oper_log` VALUES (492, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"id\":5,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:09:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:09:29', 54); +INSERT INTO `sys_oper_log` VALUES (493, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2407:cdc0:b00a::19', '内网IP', '{\"id\":6,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:09:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:09:32', 8); +INSERT INTO `sys_oper_log` VALUES (494, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":1,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:13:15', 31); +INSERT INTO `sys_oper_log` VALUES (495, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:13:18', 13); +INSERT INTO `sys_oper_log` VALUES (496, '客服管理', 2, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/service', '2407:cdc0:b00a::19', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:18:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:18:40', 14); +INSERT INTO `sys_oper_log` VALUES (497, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2407:cdc0:b00a::19', '内网IP', '{\"id\":2,\"params\":{},\"status\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:21:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:21:07', 12); +INSERT INTO `sys_oper_log` VALUES (498, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2407:cdc0:b00a::19', '内网IP', '{\"id\":1,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:21:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:21:10', 7); +INSERT INTO `sys_oper_log` VALUES (499, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2407:cdc0:b00a::19', '内网IP', '{\"id\":2,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:22:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:22:58', 25); +INSERT INTO `sys_oper_log` VALUES (500, '站内信管理', 1, 'com.ruoyi.web.controller.ai.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '2407:cdc0:b00a::19', '内网IP', '{\"content\":\"111\",\"createBy\":\"admin\",\"createTime\":\"2025-12-09 13:23:22\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"sendType\":0,\"title\":\"test\",\"userIds\":[]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:23:22', 15); +INSERT INTO `sys_oper_log` VALUES (501, '站内信管理', 1, 'com.ruoyi.web.controller.ai.AiUserMessageController.add()', 'POST', 1, 'admin', '研发部门', '/ai/message', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-09 13:23:26\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"sendType\":0,\"userIds\":[]}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:23:26', 8); +INSERT INTO `sys_oper_log` VALUES (502, '【帮助管理】', 1, 'com.ruoyi.web.controller.ai.AiHelpController.add()', 'POST', 1, 'admin', '研发部门', '/ai/help', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-09 13:25:26\",\"delFlag\":\"0\",\"id\":2,\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:25:26', 9); +INSERT INTO `sys_oper_log` VALUES (503, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/amount', '2407:cdc0:b00a::19', '内网IP', '{\"amount\":10,\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:37:01\",\"delFlag\":\"0\",\"duration\":1,\"id\":2,\"params\":{},\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 13:44:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:44:11', 7); +INSERT INTO `sys_oper_log` VALUES (504, 'ai-用户信息', 3, 'com.ruoyi.web.controller.ai.AiUserController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/user/5', '2407:cdc0:b00a::19', '内网IP', '[5]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:44:57', 19); +INSERT INTO `sys_oper_log` VALUES (505, 'ai-用户信息', 3, 'com.ruoyi.web.controller.ai.AiUserController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/user/24', '2407:cdc0:b00a::19', '内网IP', '[24]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 05:45:20', 9); +INSERT INTO `sys_oper_log` VALUES (506, 'AI-客户配置', 2, 'com.ruoyi.web.controller.ai.AiCustomerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/customer', '2407:cdc0:b00a::19', '内网IP', '{\"bannerUrl\":\"http://localhost/ai-manager/customer https://images.iqyjsnwv.com/2025/12/09/53300a82_0f271de314dd9ef4c796465c2543495e_high.jpg https://images.iqyjsnwv.com/2025/12/09/db0f8770_54.png\",\"bannerUrls\":[{\"params\":{},\"uid\":1765260199107,\"url\":\"http://localhost/ai-manager/customer\"},{\"params\":{},\"uid\":1765260208244,\"url\":\"https://images.iqyjsnwv.com/2025/12/09/53300a82_0f271de314dd9ef4c796465c2543495e_high.jpg\"},{\"params\":{},\"uid\":1765260233088,\"url\":\"https://images.iqyjsnwv.com/2025/12/09/db0f8770_54.png\"}],\"createBy\":\"admin\",\"createTime\":\"2025-11-26 19:53:53\",\"delFlag\":\"0\",\"id\":1,\"logoUrl\":\"http://localhost/ai-manager/customer\",\"params\":{},\"rebateAmount\":\"\",\"remark\":\"https://www.undressing.top\",\"serviceUrl\":\"http://localhost/ai-manager/customer\",\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 14:04:53\",\"userCode\":\"XM001\",\"userEmail\":\"13888888888\",\"userName\":\"XM001\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 06:04:53', 34); +INSERT INTO `sys_oper_log` VALUES (507, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":3,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 06:31:16', 19); +INSERT INTO `sys_oper_log` VALUES (508, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":4,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 06:31:19', 15); +INSERT INTO `sys_oper_log` VALUES (509, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":3,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 06:34:49', 12); +INSERT INTO `sys_oper_log` VALUES (510, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '2407:cdc0:b00a::19', '内网IP', '{\"id\":4,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 06:35:49', 12); +INSERT INTO `sys_oper_log` VALUES (511, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2407:cdc0:b00a::19', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-09 15:02:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:46:39\",\"delFlag\":\"0\",\"giftAmount\":10,\"id\":46,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:46:39\"},{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:46:39\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":47,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:46:39\"},{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:46:39\",\"delFlag\":\"0\",\"giftAmount\":100,\"id\":48,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:46:39\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-09 15:01:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-09 07:01:00', 23); +INSERT INTO `sys_oper_log` VALUES (512, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2407:cdc0:b00a::19', '内网IP', '{\"balance\":10000,\"id\":27,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-10 08:08:50', 18); +INSERT INTO `sys_oper_log` VALUES (513, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, heart-shaped pubic hair, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, lying on bed M-shaped legs, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field (negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-10 16:10:58\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiManagerMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiManagerMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_manager SET del_flag=?, title=?, price=?, status=?, prompt=?, type=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-10 08:10:58', 11); +INSERT INTO `sys_oper_log` VALUES (514, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, very large breasts, nipples perfectly matching skin tone, heart-shaped pubic hair, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, lying on bed M-shaped legs, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field (negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-10 16:11:07\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiManagerMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiManagerMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_manager SET del_flag=?, title=?, price=?, status=?, prompt=?, type=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-10 08:11:07', 5); +INSERT INTO `sys_oper_log` VALUES (515, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2407:cdc0:b00a::19', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, {胸部大小}, nipples perfectly matching skin tone, {阴毛样式}, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, {动作}, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field (negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-10 16:22:10\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiManagerMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiManagerMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_manager SET del_flag=?, title=?, price=?, status=?, prompt=?, type=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-10 08:22:10', 4); +INSERT INTO `sys_oper_log` VALUES (516, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2407:cdc0:b00a::19', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-09 15:02:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-09 07:01:00\",\"delFlag\":\"0\",\"giftAmount\":10,\"id\":49,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-09 07:01:00\"},{\"createBy\":\"\",\"createTime\":\"2025-12-09 07:01:00\",\"delFlag\":\"0\",\"giftAmount\":50,\"id\":50,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-09 07:01:00\"},{\"createBy\":\"\",\"createTime\":\"2025-12-09 07:01:00\",\"delFlag\":\"0\",\"giftAmount\":100,\"giveAmount\":10,\"id\":51,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-09 07:01:00\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-11 10:54:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-11 02:54:35', 80); +INSERT INTO `sys_oper_log` VALUES (517, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/rechargeGiftRecord/index\",\"createTime\":\"2025-11-20 22:12:52\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2017,\"menuName\":\"充值赠送记录\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGiftRecord\",\"perms\":\"ai:rechargeGiftRecord:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-15 11:43:30', 62); +INSERT INTO `sys_oper_log` VALUES (518, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '23.249.17.33', ' ', '{\"children\":[],\"component\":\"ai/rechargeGiftRecord/index\",\"createTime\":\"2025-11-20 22:12:52\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2017,\"menuName\":\"充值赠送记录\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGiftRecord\",\"perms\":\"ai:rechargeGiftRecord:list\",\"routeName\":\"\",\"status\":\"1\",\"updateBy\":\"admin\",\"visible\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-15 11:44:08', 10); +INSERT INTO `sys_oper_log` VALUES (519, '【帮助管理】', 3, 'com.ruoyi.web.controller.ai.AiHelpController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/help/2', '154.92.130.95', '香港 ', '[2]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 02:40:11', 35); +INSERT INTO `sys_oper_log` VALUES (520, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:35\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部大小\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 13:50:19\"}', NULL, 1, '\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_tag SET del_flag=?, parent_id=?, ai_id=?, title=?, status=?, prompt=?, title_u_s=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'', '2025-12-16 05:50:21', 117); +INSERT INTO `sys_oper_log` VALUES (521, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:35\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部大小\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 13:50:19\"}', NULL, 1, '\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_tag SET del_flag=?, parent_id=?, ai_id=?, title=?, status=?, prompt=?, title_u_s=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'', '2025-12-16 05:50:21', 10); +INSERT INTO `sys_oper_log` VALUES (522, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/gift/changeUserStatus', '37.9.33.202', ' ', '{\"id\":3,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:51:44', 25); +INSERT INTO `sys_oper_log` VALUES (523, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '37.9.33.202', ' ', '{\"content\":\"

What should I do if I encounter bugs or generation failures during use?

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.
\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"What should I do if I encounter bugs or generation failures during use?\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 13:54:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:54:12', 14); +INSERT INTO `sys_oper_log` VALUES (524, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '37.9.33.202', ' ', '{\"content\":\"

What should I do if I encounter bugs or generation failures during use?

You can try the following methods to resolve the issue:

  1. Check your network connection: Ensure your device has a stable network connection.
  2. Clear browser cache: Access your browser settings and clear the cached data.
  3. Log in again: Log out of your current account and then log back in before attempting to use the feature again.
  4. Use the Chrome browser: It is recommended to use the latest version of the Chrome browser for the best experience.
\",\"createBy\":\"admin\",\"createTime\":\"2025-11-14 22:14:45\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"remark\":\"\",\"status\":0,\"title\":\"What should I do if I encounter bugs or generation failures during use?\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 13:54:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:54:30', 9); +INSERT INTO `sys_oper_log` VALUES (525, '【帮助管理】', 1, 'com.ruoyi.web.controller.ai.AiHelpController.add()', 'POST', 1, 'admin', '研发部门', '/ai/help', '37.9.33.202', ' ', '{\"content\":\"


\",\"createBy\":\"admin\",\"createTime\":\"2025-12-16 13:54:52\",\"delFlag\":\"0\",\"id\":3,\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:54:53', 10); +INSERT INTO `sys_oper_log` VALUES (526, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '37.9.33.202', ' ', '{\"id\":2,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:55:18', 16); +INSERT INTO `sys_oper_log` VALUES (527, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '37.9.33.202', ' ', '{\"id\":2,\"params\":{},\"status\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 05:55:32', 34); +INSERT INTO `sys_oper_log` VALUES (528, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:35\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"1\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 14:01:34\"}', NULL, 1, '\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.updateById-Inline\n### The error occurred while setting parameters\n### SQL: UPDATE ai_tag SET del_flag=?, parent_id=?, ai_id=?, title=?, status=?, prompt=?, title_u_s=?, create_by=?, create_time=?, update_by=?, update_time=? WHERE id=?\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'', '2025-12-16 06:01:36', 7); +INSERT INTO `sys_oper_log` VALUES (529, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-16 14:01:51\",\"delFlag\":\"0\",\"params\":{},\"prompt\":\"\",\"title\":\"breast size\",\"titleUS\":\"breast size\"}', NULL, 1, '\n### Error updating database. Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO ai_tag ( del_flag, ai_id, title, prompt, title_u_s, create_by, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ? )\n### Cause: java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'\n; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: Unknown column \'title_u_s\' in \'field list\'', '2025-12-16 06:01:52', 8); +INSERT INTO `sys_oper_log` VALUES (530, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '154.92.130.95', '香港 ', '{\"children\":[],\"component\":\"ai/message/index\",\"createTime\":\"2025-11-13 22:43:53\",\"icon\":\"message\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2011,\"menuName\":\"站内信管理\",\"menuType\":\"C\",\"orderNum\":3,\"params\":{},\"parentId\":2008,\"path\":\"message\",\"perms\":\"ai:message:list\",\"routeName\":\"\",\"status\":\"1\",\"updateBy\":\"admin\",\"visible\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 06:39:36', 18); +INSERT INTO `sys_oper_log` VALUES (531, '菜单管理', 2, 'com.ruoyi.web.controller.system.SysMenuController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/menu', '154.92.130.95', '香港 ', '{\"children\":[],\"component\":\"ai/rechargeGiftRecord/index\",\"createTime\":\"2025-11-20 22:12:52\",\"icon\":\"nested\",\"isCache\":\"0\",\"isFrame\":\"1\",\"menuId\":2017,\"menuName\":\"充值赠送记录\",\"menuType\":\"C\",\"orderNum\":4,\"params\":{},\"parentId\":2013,\"path\":\"rechargeGiftRecord\",\"perms\":\"ai:rechargeGiftRecord:list\",\"routeName\":\"\",\"status\":\"0\",\"updateBy\":\"admin\",\"visible\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 06:40:23', 9); +INSERT INTO `sys_oper_log` VALUES (532, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '23.249.17.33', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-09 15:02:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-11 02:54:34\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":52,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-11 02:54:34\"},{\"createBy\":\"\",\"createTime\":\"2025-12-11 02:54:34\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":53,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-11 02:54:34\"},{\"createBy\":\"\",\"createTime\":\"2025-12-11 02:54:34\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":54,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-11 02:54:34\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 22:44:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 14:44:18', 107); +INSERT INTO `sys_oper_log` VALUES (533, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '23.249.17.33', ' ', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-11-28 00:46:28\",\"delFlag\":\"0\",\"giftAmount\":112,\"giveAmount\":1,\"id\":45,\"params\":{},\"rechargeAmount\":112,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-11-28 00:46:28\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / MasterCard\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-16 22:44:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-16 14:44:41', 22); +INSERT INTO `sys_oper_log` VALUES (534, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '154.92.130.95', '香港 ', '{\"apiUrl\":\"/api/pay/jinsha-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-20 23:36:31\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-16 14:44:39\",\"delFlag\":\"0\",\"giftAmount\":112,\"giveAmount\":1,\"id\":58,\"params\":{},\"rechargeAmount\":112,\"rechargeId\":3,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-16 14:44:39\"}],\"id\":3,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / Master\",\"remark\":\"\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 11:18:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 03:18:41', 18); +INSERT INTO `sys_oper_log` VALUES (535, '充值赠送活动', 1, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.add()', 'POST', 1, 'admin', '研发部门', '/ai/gift', '154.92.130.95', '香港 ', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-17 11:19:00\",\"delFlag\":\"0\",\"gearList\":[{\"params\":{},\"rechargeId\":5}],\"id\":5,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / Master / Amex\",\"type\":0}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 03:19:01', 10); +INSERT INTO `sys_oper_log` VALUES (536, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '154.92.130.95', '香港 ', '{\"apiUrl\":\"/api/pay/yuzhou-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-12-17 11:19:01\",\"delFlag\":\"0\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-17 03:19:00\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":60,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":5,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 03:19:00\"}],\"id\":5,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"VISA / Master / Amex\",\"status\":0,\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 11:19:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 03:19:29', 18); +INSERT INTO `sys_oper_log` VALUES (537, '【帮助管理】', 1, 'com.ruoyi.web.controller.ai.AiHelpController.add()', 'POST', 1, 'admin', '研发部门', '/ai/help', '37.9.33.202', ' ', '{\"content\":\"

2

\",\"createBy\":\"admin\",\"createTime\":\"2025-12-17 12:57:32\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"title\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 04:57:34', 12); +INSERT INTO `sys_oper_log` VALUES (538, '【帮助管理】', 2, 'com.ruoyi.web.controller.ai.AiHelpController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/help', '37.9.33.202', ' ', '{\"content\":\"

2

\",\"createBy\":\"admin\",\"createTime\":\"2025-12-17 12:57:32\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"remark\":\"1\",\"status\":0,\"title\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 12:57:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 04:57:52', 7); +INSERT INTO `sys_oper_log` VALUES (539, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:35\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部大小\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 12:59:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 04:59:45', 13); +INSERT INTO `sys_oper_log` VALUES (540, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:35\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部大小\",\"titleHK\":\"胸部大小1\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 12:59:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:00:02', 6); +INSERT INTO `sys_oper_log` VALUES (541, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:47\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"very large breasts,\",\"status\":0,\"title\":\"超巨乳\",\"titleHK\":\"超巨乳\",\"titleUS\":\"very large breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:00:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:00:45', 6); +INSERT INTO `sys_oper_log` VALUES (542, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:01:08\",\"delFlag\":\"0\",\"id\":17,\"params\":{},\"parentId\":15,\"prompt\":\"medium breasts,\",\"title\":\"中等胸\",\"titleHK\":\"中等胸1\",\"titleUS\":\"medium breasts\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:01:10', 7); +INSERT INTO `sys_oper_log` VALUES (543, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:47\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"very large breasts\",\"status\":0,\"title\":\"超巨乳\",\"titleHK\":\"超巨乳1\",\"titleUS\":\"very large breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:01:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:01:15', 5); +INSERT INTO `sys_oper_log` VALUES (544, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:01:35\",\"delFlag\":\"0\",\"id\":18,\"params\":{},\"parentId\":15,\"prompt\":\"small breasts,\",\"title\":\"小胸\",\"titleHK\":\"小胸1\",\"titleUS\":\"small breasts\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:01:35', 5); +INSERT INTO `sys_oper_log` VALUES (545, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:02:37\",\"delFlag\":\"0\",\"params\":{},\"prompt\":\"both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression,,both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face,,both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO ai_tag ( del_flag, ai_id, title, prompt, title_HK, title_US, create_by, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-17 05:02:38', 72); +INSERT INTO `sys_oper_log` VALUES (546, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:02:42\",\"delFlag\":\"0\",\"params\":{},\"prompt\":\"both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression,,both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face,,both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO ai_tag ( del_flag, ai_id, title, prompt, title_HK, title_US, create_by, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-17 05:02:43', 6); +INSERT INTO `sys_oper_log` VALUES (547, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:03:03\",\"delFlag\":\"0\",\"params\":{},\"prompt\":\"both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression,,both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face,,both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO ai_tag ( del_flag, ai_id, title, prompt, title_HK, title_US, create_by, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-17 05:03:07', 5); +INSERT INTO `sys_oper_log` VALUES (548, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:03:39\",\"delFlag\":\"0\",\"params\":{},\"prompt\":\"both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression,,both hands squeezing breasts inward from sides creating deep cleavage, breasts overflowing between arms, aroused face,,both hands lifting and pushing up very large breasts from below, underboob visible, breasts weighing heavily in palms,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', NULL, 1, '\n### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n### The error may exist in com/ruoyi/ai/mapper/AiTagMapper.java (best guess)\n### The error may involve com.ruoyi.ai.mapper.AiTagMapper.insert-Inline\n### The error occurred while setting parameters\n### SQL: INSERT INTO ai_tag ( del_flag, ai_id, title, prompt, title_HK, title_US, create_by, create_time ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ? )\n### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1\n; Data truncation: Data too long for column \'prompt\' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column \'prompt\' at row 1', '2025-12-17 05:03:41', 5); +INSERT INTO `sys_oper_log` VALUES (549, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:04:10\",\"delFlag\":\"0\",\"id\":19,\"params\":{},\"prompt\":\"transparent black lace micro bikini,crotchless red lace lingerie with garterbelt and stockings,naked apron only\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:04:11', 5); +INSERT INTO `sys_oper_log` VALUES (550, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:04:34\",\"delFlag\":\"0\",\"id\":20,\"params\":{},\"parentId\":19,\"prompt\":\"\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:04:35', 7); +INSERT INTO `sys_oper_log` VALUES (551, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:04:35\",\"delFlag\":\"0\",\"id\":20,\"params\":{},\"prompt\":\"\",\"status\":0,\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:04:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:04:45', 6); +INSERT INTO `sys_oper_log` VALUES (552, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/19', '37.9.33.202', ' ', '[19]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:04:57', 10); +INSERT INTO `sys_oper_log` VALUES (553, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:05:39\",\"delFlag\":\"0\",\"id\":21,\"params\":{},\"parentId\":20,\"prompt\":\"naked apron only,,crotchless red lace lingerie with garterbelt and stockings,,transparent black lace micro bikini,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:05:41', 6); +INSERT INTO `sys_oper_log` VALUES (554, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:04:35\",\"delFlag\":\"0\",\"id\":20,\"params\":{},\"prompt\":\"\",\"status\":0,\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:06:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:06:26', 6); +INSERT INTO `sys_oper_log` VALUES (555, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/20', '37.9.33.202', ' ', '[20]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:06:29', 6); +INSERT INTO `sys_oper_log` VALUES (556, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/21', '37.9.33.202', ' ', '[21]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:06:34', 6); +INSERT INTO `sys_oper_log` VALUES (557, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:06:50\",\"delFlag\":\"0\",\"id\":22,\"params\":{},\"prompt\":\"\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:06:51', 6); +INSERT INTO `sys_oper_log` VALUES (558, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:07:23\",\"delFlag\":\"0\",\"id\":23,\"params\":{},\"parentId\":22,\"prompt\":\"transparent black lace micro bikini,,crotchless red lace lingerie with garterbelt and stockings,,naked apron only,\",\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:07:28', 5); +INSERT INTO `sys_oper_log` VALUES (559, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.4), naked, no clothes, breasts fully exposed, {胸部大小} nipples perfectly matching skin tone, subtle small delicate light pink slit perfectly matching body skin tone, perfectly smooth flat pubic mound with absolutely nothing on it, normal beautiful natural tiny pussy no swelling, {动作} perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, anything on pubic mound, nipples on crotch, bumps on mons pubis, markings on crotch, swollen pussy, puffy pussy, enlarged labia, deformed pussy, dark pussy, color mismatch crotch, loli, child, old, realistic photo, lowres:1.8)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:22:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:22:02', 14); +INSERT INTO `sys_oper_log` VALUES (560, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '37.9.33.202', ' ', '{\"balance\":100000,\"id\":36,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:43:26', 25); +INSERT INTO `sys_oper_log` VALUES (561, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作} {乳头可见度}, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:47:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:47:41', 9); +INSERT INTO `sys_oper_log` VALUES (562, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:48:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:48:07', 6); +INSERT INTO `sys_oper_log` VALUES (563, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-08 17:30:47\",\"delFlag\":\"0\",\"id\":16,\"params\":{},\"parentId\":15,\"prompt\":\"very large breasts,\",\"status\":0,\"title\":\"超巨乳\",\"titleHK\":\"超巨乳1\",\"titleUS\":\"very large breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:51:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:51:48', 5); +INSERT INTO `sys_oper_log` VALUES (564, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:01:09\",\"delFlag\":\"0\",\"id\":17,\"params\":{},\"parentId\":15,\"prompt\":\"medium breasts,\",\"status\":0,\"title\":\"中等胸\",\"titleHK\":\"中等胸1\",\"titleUS\":\"medium breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:51:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:51:57', 5); +INSERT INTO `sys_oper_log` VALUES (565, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:01:35\",\"delFlag\":\"0\",\"id\":18,\"params\":{},\"parentId\":15,\"prompt\":\"small breasts,\",\"status\":0,\"title\":\"小胸\",\"titleHK\":\"小胸1\",\"titleUS\":\"small breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:51:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:51:58', 3); +INSERT INTO `sys_oper_log` VALUES (566, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作}, {胸部大小}, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 13:53:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 05:53:17', 6); +INSERT INTO `sys_oper_log` VALUES (567, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '37.9.33.202', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-17 20:10:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-16 14:44:14\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":55,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-16 14:44:14\"},{\"createBy\":\"\",\"createTime\":\"2025-12-16 14:44:14\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":56,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-16 14:44:14\"},{\"createBy\":\"\",\"createTime\":\"2025-12-16 14:44:14\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":57,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-16 14:44:14\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 20:09:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 12:09:05', 85); +INSERT INTO `sys_oper_log` VALUES (568, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '37.9.33.202', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-17 20:10:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:09:02\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":62,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:09:02\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:09:02\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":63,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:09:02\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:09:02\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":0,\"id\":64,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:09:02\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 20:12:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 12:12:33', 20); +INSERT INTO `sys_oper_log` VALUES (569, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '37.9.33.202', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-10 20:10:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:31\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":65,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:31\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:31\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":66,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:31\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:31\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":67,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:31\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-17 20:12:49\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-17 12:12:54', 21); +INSERT INTO `sys_oper_log` VALUES (570, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作}, {胸部大小}, no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:12:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:12:31', 56); +INSERT INTO `sys_oper_log` VALUES (571, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:07:23\",\"delFlag\":\"0\",\"id\":23,\"params\":{},\"parentId\":22,\"prompt\":\"transparent black lace micro bikini,^,crotchless red lace lingerie with garterbelt and stockings,^naked apron only,\",\"status\":0,\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:13:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:13:03', 23); +INSERT INTO `sys_oper_log` VALUES (572, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {动作} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:13:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:13:30', 11); +INSERT INTO `sys_oper_log` VALUES (573, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '37.9.33.202', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-18 14:20:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:49\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":68,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:49\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:49\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":69,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:49\"},{\"createBy\":\"\",\"createTime\":\"2025-12-17 12:12:49\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":70,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-17 12:12:49\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:14:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:14:34', 48); +INSERT INTO `sys_oper_log` VALUES (574, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '37.9.33.202', ' ', '{\"balance\":100000,\"id\":36,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:15:21', 26); +INSERT INTO `sys_oper_log` VALUES (575, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '37.9.33.202', ' ', '{\"balance\":100110,\"id\":36,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:15:36', 16); +INSERT INTO `sys_oper_log` VALUES (576, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '37.9.33.202', ' ', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-18 14:18:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:14:33\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":71,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:14:33\"},{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:14:33\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":72,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:14:33\"},{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:14:33\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":73,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:14:33\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:16:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:16:34', 17); +INSERT INTO `sys_oper_log` VALUES (577, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:24:53\",\"delFlag\":\"0\",\"id\":24,\"params\":{},\"prompt\":\"virgin killer sweater only,^classic black bunny suit with fishnet stockings,^completely transparent white babydoll lingerie,\",\"title\":\"服装\",\"titleHK\":\"服装1\",\"titleUS\":\"clothing\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:24:53', 6); +INSERT INTO `sys_oper_log` VALUES (578, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:25:33\",\"delFlag\":\"0\",\"id\":25,\"params\":{},\"parentId\":24,\"prompt\":\"completely transparent white babydoll lingerie,^virgin killer sweater only,^classic black bunny suit with fishnet stockings,\",\"title\":\"服装\",\"titleHK\":\"服装1\",\"titleUS\":\"clothing\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:25:33', 4); +INSERT INTO `sys_oper_log` VALUES (579, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '37.9.33.202', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"price\":2,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, wearing {服装} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field \\n(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, extra arms, extra legs, extra fingers, fused fingers, deformed hands, swollen pussy, deformed pussy, dark pussy, color mismatch, bad anatomy, loli, realistic photo, lowres:1.9)\",\"status\":0,\"title\":\"一键脱衣\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:25:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:25:56', 10); +INSERT INTO `sys_oper_log` VALUES (580, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:06:50\",\"delFlag\":\"0\",\"id\":22,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:26:23\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:26:31', 6); +INSERT INTO `sys_oper_log` VALUES (581, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-17 13:06:50\",\"delFlag\":\"0\",\"id\":22,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"动作\",\"titleHK\":\"动作1\",\"titleUS\":\"action\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:29:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:29:07', 7); +INSERT INTO `sys_oper_log` VALUES (582, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/22', '37.9.33.202', ' ', '[22]', NULL, 1, '要删除的标签存在子级标签', '2025-12-18 06:31:31', 12); +INSERT INTO `sys_oper_log` VALUES (583, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:31:42\",\"delFlag\":\"0\",\"id\":26,\"params\":{},\"prompt\":\"\",\"title\":\"1\",\"titleUS\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:31:46', 6); +INSERT INTO `sys_oper_log` VALUES (584, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:31:48\",\"delFlag\":\"0\",\"id\":27,\"params\":{},\"parentId\":26,\"prompt\":\"\",\"title\":\"2\",\"titleUS\":\"2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:31:50', 5); +INSERT INTO `sys_oper_log` VALUES (585, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/26', '37.9.33.202', ' ', '[26]', NULL, 1, '要删除的标签存在子级标签', '2025-12-18 06:31:53', 5); +INSERT INTO `sys_oper_log` VALUES (586, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/27', '37.9.33.202', ' ', '[27]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:31:55', 12); +INSERT INTO `sys_oper_log` VALUES (587, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/26', '37.9.33.202', ' ', '[26]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:31:59', 9); +INSERT INTO `sys_oper_log` VALUES (588, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:44:51\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"头发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:37:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:37:22', 5); +INSERT INTO `sys_oper_log` VALUES (589, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:44:51\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"头发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:37:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:37:23', 4); +INSERT INTO `sys_oper_log` VALUES (590, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"\",\"status\":1,\"title\":\"卷发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:37:24\"}', NULL, 1, '必须开启一个子级标签!', '2025-12-18 06:37:25', 10); +INSERT INTO `sys_oper_log` VALUES (591, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"\",\"status\":1,\"title\":\"卷发\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-18 14:37:26\"}', NULL, 1, '必须开启一个子级标签!', '2025-12-18 06:37:27', 10); +INSERT INTO `sys_oper_log` VALUES (592, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:38:58\",\"delFlag\":\"0\",\"id\":28,\"params\":{},\"prompt\":\"\",\"title\":\"头饰\",\"titleUS\":\"toushi\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:38:59', 5); +INSERT INTO `sys_oper_log` VALUES (593, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:39:06\",\"delFlag\":\"0\",\"id\":29,\"params\":{},\"parentId\":28,\"prompt\":\"\",\"title\":\"1\",\"titleUS\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:39:06', 5); +INSERT INTO `sys_oper_log` VALUES (594, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":2,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:39:59\",\"delFlag\":\"0\",\"id\":30,\"params\":{},\"prompt\":\"1\",\"title\":\"1\",\"titleUS\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:06', 5); +INSERT INTO `sys_oper_log` VALUES (595, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":2,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:40:04\",\"delFlag\":\"0\",\"id\":31,\"params\":{},\"parentId\":30,\"prompt\":\"\",\"title\":\"2\",\"titleUS\":\"2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:07', 4); +INSERT INTO `sys_oper_log` VALUES (596, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:40:20\",\"delFlag\":\"0\",\"id\":32,\"params\":{},\"prompt\":\"\",\"title\":\"1\",\"titleUS\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:23', 7); +INSERT INTO `sys_oper_log` VALUES (597, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:40:24\",\"delFlag\":\"0\",\"id\":33,\"params\":{},\"parentId\":32,\"prompt\":\"\",\"title\":\"2\",\"titleUS\":\"2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:32', 5); +INSERT INTO `sys_oper_log` VALUES (598, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":5,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:40:36\",\"delFlag\":\"0\",\"id\":34,\"params\":{},\"prompt\":\"\",\"title\":\"1\",\"titleUS\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:37', 5); +INSERT INTO `sys_oper_log` VALUES (599, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '37.9.33.202', ' ', '{\"aiId\":5,\"createBy\":\"admin\",\"createTime\":\"2025-12-18 14:40:41\",\"delFlag\":\"0\",\"id\":35,\"params\":{},\"parentId\":34,\"prompt\":\"\",\"title\":\"2\",\"titleUS\":\"2\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 06:40:42', 5); +INSERT INTO `sys_oper_log` VALUES (600, '返佣记录', 1, 'com.ruoyi.web.controller.ai.AiRebateRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/rebate-record', '23.249.17.33', ' ', '{\"amount\":1,\"createTime\":\"2025-12-18 19:39:33\",\"delFlag\":\"0\",\"id\":11,\"params\":{},\"subordinateId\":1,\"superiorId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 11:39:34', 9); +INSERT INTO `sys_oper_log` VALUES (601, '返佣记录', 3, 'com.ruoyi.web.controller.ai.AiRebateRecordController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/rebate-record/11', '23.249.17.33', ' ', '[11]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 11:39:45', 6); +INSERT INTO `sys_oper_log` VALUES (602, '返佣记录', 1, 'com.ruoyi.web.controller.ai.AiRebateRecordController.add()', 'POST', 1, 'admin', '研发部门', '/ai/rebate-record', '23.249.17.33', ' ', '{\"amount\":1,\"createTime\":\"2025-12-18 20:13:15\",\"delFlag\":\"0\",\"id\":12,\"params\":{},\"subordinateId\":1,\"superiorId\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 20:13:17', 285); +INSERT INTO `sys_oper_log` VALUES (603, '返佣记录', 3, 'com.ruoyi.web.controller.ai.AiRebateRecordController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/rebate-record/12', '23.249.17.33', ' ', '[12]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-18 20:13:21', 15); +INSERT INTO `sys_oper_log` VALUES (604, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '23.249.17.33', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentIdSort\":\"\",\"price\":35,\"remark\":\"\",\"status\":0,\"title\":\"快捷生视频\",\"type\":\"21\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 07:29:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 07:29:06', 57); +INSERT INTO `sys_oper_log` VALUES (605, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:30:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:16:33\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":74,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:16:33\"},{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:16:33\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":75,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:16:33\"},{\"createBy\":\"\",\"createTime\":\"2025-12-18 06:16:33\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":10,\"id\":76,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-18 06:16:33\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:28:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:28:27', 52); +INSERT INTO `sys_oper_log` VALUES (606, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:30:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:27\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":77,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:27\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:27\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":78,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:27\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:27\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":79,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:27\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:28:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:28:50', 13); +INSERT INTO `sys_oper_log` VALUES (607, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:50\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":80,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:50\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:50\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":81,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:50\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:28:50\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":82,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:28:50\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:29:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:29:21', 16); +INSERT INTO `sys_oper_log` VALUES (608, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:39:50\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":1,\"prompt\":\"1^2^3\",\"status\":0,\"title\":\"城市夜景\",\"titleHK\":\"城市夜景\",\"titleUS\":\"City Nightscape1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:31:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:31:59', 14); +INSERT INTO `sys_oper_log` VALUES (609, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:30\",\"delFlag\":\"0\",\"id\":18,\"params\":{},\"parentId\":17,\"prompt\":\"4^5^6\",\"status\":0,\"title\":\"颜色鲜艳\",\"titleHK\":\"顏色鮮豔\",\"titleUS\":\"Bright Colors\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:32:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:32:10', 4); +INSERT INTO `sys_oper_log` VALUES (610, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"1,17,22,23\",\"price\":10,\"prompt\":\"生成{细节},{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:33:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:33:21', 6); +INSERT INTO `sys_oper_log` VALUES (611, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:39:50\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":1,\"prompt\":\"主题1^主题2^主题3\",\"status\":0,\"title\":\"城市夜景\",\"titleHK\":\"城市夜景\",\"titleUS\":\"City Nightscape1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:34:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:34:52', 7); +INSERT INTO `sys_oper_log` VALUES (612, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:30\",\"delFlag\":\"0\",\"id\":18,\"params\":{},\"parentId\":17,\"prompt\":\"风格4^风格5^风格6\",\"status\":0,\"title\":\"颜色鲜艳\",\"titleHK\":\"顏色鮮豔\",\"titleUS\":\"Bright Colors\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:35:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:35:03', 5); +INSERT INTO `sys_oper_log` VALUES (613, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:45:11\",\"delFlag\":\"0\",\"id\":24,\"params\":{},\"parentId\":22,\"prompt\":\"细节1^细节2^细节3\",\"status\":0,\"title\":\"流星落下\",\"titleHK\":\"流星落下\",\"titleUS\":\"Flow Rate\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 17:35:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 17:35:22', 5); +INSERT INTO `sys_oper_log` VALUES (614, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,22,17,1\",\"price\":10,\"prompt\":\"生成{细节},{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:06:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:06:21', 6); +INSERT INTO `sys_oper_log` VALUES (615, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,22,17,17\",\"price\":10,\"prompt\":\"生成{细节},{细节}包含{风格},分辨率{风格}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:07:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:07:13', 6); +INSERT INTO `sys_oper_log` VALUES (616, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,22,17,1\",\"price\":10,\"prompt\":\"生成{细节},{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:07:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:07:25', 6); +INSERT INTO `sys_oper_log` VALUES (617, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,17,1\",\"price\":10,\"prompt\":\"生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:09:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:09:34', 7); +INSERT INTO `sys_oper_log` VALUES (618, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"\",\"price\":10,\"prompt\":\"\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:15:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:15:36', 7); +INSERT INTO `sys_oper_log` VALUES (619, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,17,1\",\"price\":10,\"prompt\":\"生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 18:15:49\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 18:15:49', 7); +INSERT INTO `sys_oper_log` VALUES (620, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:29:21\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":83,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:29:21\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:29:21\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":84,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:29:21\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 17:29:21\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":85,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 17:29:21\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:22:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:22:26', 15); +INSERT INTO `sys_oper_log` VALUES (621, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:26\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":86,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:26\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:26\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":87,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:26\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:26\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":88,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:26\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:22:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:22:38', 17); +INSERT INTO `sys_oper_log` VALUES (622, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"11,5,8\",\"price\":8,\"prompt\":\"生成一个美女{裤子},{头发},{衣服}的图像\",\"status\":0,\"title\":\"快捷生图\",\"type\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:26:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:26:52', 7); +INSERT INTO `sys_oper_log` VALUES (623, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"11,5,8\",\"price\":8,\"prompt\":\"生成一个美女{裤子},{头发},{衣服}的图像\",\"status\":0,\"title\":\"快捷生图\",\"type\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:26:56\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:26:56', 8); +INSERT INTO `sys_oper_log` VALUES (624, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"11,5,8\",\"price\":8,\"prompt\":\"生成一个美女{裤子},{头发},{衣服}的图像\",\"status\":0,\"title\":\"快捷生图\",\"type\":\"1\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:26:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:26:57', 6); +INSERT INTO `sys_oper_log` VALUES (625, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"\",\"price\":10,\"prompt\":\"\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:50:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:50:26', 8); +INSERT INTO `sys_oper_log` VALUES (626, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,17,1\",\"price\":10,\"prompt\":\"生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:50:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:50:33', 7); +INSERT INTO `sys_oper_log` VALUES (627, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"23,22,17,1\",\"price\":10,\"prompt\":\"{技术参数}生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:57:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:57:13', 7); +INSERT INTO `sys_oper_log` VALUES (628, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 20:07:02\",\"delFlag\":\"0\",\"id\":34,\"params\":{},\"parentId\":23,\"prompt\":\"\",\"status\":0,\"title\":\"1080x1920\",\"titleHK\":\"1080x1920\",\"titleUS\":\"1080x1920\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-19 21:58:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-19 21:58:47', 7); +INSERT INTO `sys_oper_log` VALUES (629, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"22,17,1\",\"price\":10,\"prompt\":\"生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 10:05:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 10:05:15', 57); +INSERT INTO `sys_oper_log` VALUES (630, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"23,22,17,1\",\"price\":10,\"prompt\":\"{技术参数}生成,{细节}包含{风格},分辨率{主题}的图像\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 10:05:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 10:05:42', 9); +INSERT INTO `sys_oper_log` VALUES (631, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 20:07:02\",\"delFlag\":\"0\",\"id\":34,\"params\":{},\"parentId\":23,\"prompt\":\"12\",\"status\":0,\"title\":\"1080x1920\",\"titleHK\":\"1080x1920\",\"titleUS\":\"1080x1920\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 10:07:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 10:07:50', 15); +INSERT INTO `sys_oper_log` VALUES (632, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:38\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":89,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:38\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:38\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":90,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:38\"},{\"createBy\":\"\",\"createTime\":\"2025-12-19 21:22:38\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":91,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-19 21:22:38\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 10:09:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 10:09:04', 37); +INSERT INTO `sys_oper_log` VALUES (633, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-19 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:04\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":92,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:04\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:04\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":93,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:04\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:04\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":94,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:04\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 10:09:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 10:09:29', 20); +INSERT INTO `sys_oper_log` VALUES (634, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-11-24 23:01:20\",\"delFlag\":\"0\",\"id\":45,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"remark\":\"11111\",\"status\":1,\"title\":\"主题\",\"titleHK\":\"主題\",\"titleUS\":\"Theme\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:02', 5); +INSERT INTO `sys_oper_log` VALUES (635, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:40:58\",\"delFlag\":\"0\",\"id\":48,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"风格\",\"titleHK\":\"風格\",\"titleUS\":\"Style\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:04', 5); +INSERT INTO `sys_oper_log` VALUES (636, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:44:12\",\"delFlag\":\"0\",\"id\":51,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"细节\",\"titleHK\":\"細節\",\"titleUS\":\"Details\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:06', 4); +INSERT INTO `sys_oper_log` VALUES (637, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:44:49\",\"delFlag\":\"0\",\"id\":52,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"技术参数\",\"titleHK\":\"技術參數\",\"titleUS\":\"Technical Parameters\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:08', 9); +INSERT INTO `sys_oper_log` VALUES (638, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:39:50\",\"delFlag\":\"0\",\"id\":46,\"params\":{},\"parentId\":45,\"prompt\":\"\",\"status\":1,\"title\":\"城市夜景\",\"titleHK\":\"城市夜景\",\"titleUS\":\"City Nightscape\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:46', 7); +INSERT INTO `sys_oper_log` VALUES (639, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:40:08\",\"delFlag\":\"0\",\"id\":47,\"params\":{},\"parentId\":45,\"prompt\":\"\",\"status\":1,\"title\":\"山川美景\",\"titleHK\":\"山川美景\",\"titleUS\":\"Mountain Scenery\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:50', 8); +INSERT INTO `sys_oper_log` VALUES (640, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:30\",\"delFlag\":\"0\",\"id\":49,\"params\":{},\"parentId\":48,\"prompt\":\"\",\"status\":1,\"title\":\"颜色鲜艳\",\"titleHK\":\"顏色鮮豔\",\"titleUS\":\"Bright Colors\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:52', 5); +INSERT INTO `sys_oper_log` VALUES (641, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":50,\"params\":{},\"parentId\":48,\"prompt\":\"\",\"status\":1,\"title\":\"颜色朴素\",\"titleHK\":\"顏色樸素\",\"titleUS\":\"Plain Colors\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:53', 9); +INSERT INTO `sys_oper_log` VALUES (642, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:45:11\",\"delFlag\":\"0\",\"id\":53,\"params\":{},\"parentId\":51,\"prompt\":\"红色流星,黄色流星\",\"status\":1,\"title\":\"流星落下\",\"titleHK\":\"流星落下\",\"titleUS\":\"Flow Rate\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:55', 6); +INSERT INTO `sys_oper_log` VALUES (643, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":3,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 20:07:02\",\"delFlag\":\"0\",\"id\":54,\"params\":{},\"parentId\":52,\"prompt\":\"\",\"status\":1,\"title\":\"1080x1920\",\"titleHK\":\"1080x1920\",\"titleUS\":\"1080x1920\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 15:29:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 15:29:57', 5); +INSERT INTO `sys_oper_log` VALUES (644, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-31 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:29\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":95,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:29\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:29\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":96,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:29\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 10:09:29\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":97,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 10:09:29\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 16:11:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 16:11:03', 16); +INSERT INTO `sys_oper_log` VALUES (645, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-31 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:03\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":98,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:03\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:03\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":99,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:03\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:03\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":100,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:03\"}],\"id\":4,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-22 16:11:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-22 16:11:11', 15); +INSERT INTO `sys_oper_log` VALUES (646, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '2602:fbf1:b001::36', '内网IP', '{\"configId\":100,\"configKey\":\"sys.invite.commission\",\"configName\":\"一级返佣比例%\",\"configType\":\"N\",\"configValue\":\"1\",\"createBy\":\"admin\",\"createTime\":\"2025-11-19 20:22:03\",\"params\":{},\"remark\":\"用户注册给上级用户赠送佣金\",\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 09:04:26', 62); +INSERT INTO `sys_oper_log` VALUES (647, '客服管理', 1, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.add()', 'POST', 1, 'admin', '研发部门', '/ai/service', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-23 09:05:51\",\"delFlag\":\"0\",\"id\":2,\"params\":{},\"url\":\"https://1.com\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 09:05:51', 13); +INSERT INTO `sys_oper_log` VALUES (648, '客服管理', 1, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.add()', 'POST', 1, 'admin', '研发部门', '/ai/service', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-23 09:06:00\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"url\":\"https://2.com\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 09:06:00', 14); +INSERT INTO `sys_oper_log` VALUES (649, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/23/38654d0d_0f271de314dd9ef4c796465c2543495e_high.jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 09:10:16\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 09:10:16', 20); +INSERT INTO `sys_oper_log` VALUES (650, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:44:51\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"眼睛颜色\",\"titleHK\":\"眼睛颜色\",\"titleUS\":\"eye color\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:09:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:09:08', 11); +INSERT INTO `sys_oper_log` VALUES (651, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"blue eyes\",\"remark\":\"\",\"status\":0,\"title\":\"蓝色眼睛\",\"titleHK\":\"蓝色眼睛\",\"titleUS\":\"Curly Hair\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:09:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:09:38', 6); +INSERT INTO `sys_oper_log` VALUES (652, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"blue eyes\",\"remark\":\"\",\"status\":0,\"title\":\"蓝色眼睛\",\"titleHK\":\"蓝色眼睛\",\"titleUS\":\"blue eyes\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:09:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:09:49', 6); +INSERT INTO `sys_oper_log` VALUES (653, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:45:30\",\"delFlag\":\"0\",\"id\":6,\"params\":{},\"parentId\":5,\"prompt\":\"blue eyes,\",\"remark\":\"\",\"status\":0,\"title\":\"蓝色眼睛\",\"titleHK\":\"蓝色眼睛\",\"titleUS\":\"blue eyes\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:09:56\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:09:56', 5); +INSERT INTO `sys_oper_log` VALUES (654, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:29\",\"delFlag\":\"0\",\"id\":7,\"params\":{},\"parentId\":5,\"prompt\":\"green eyes,\",\"status\":0,\"title\":\"绿色眼睛\",\"titleHK\":\"绿色眼睛\",\"titleUS\":\"green eyes\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:10:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:10:15', 5); +INSERT INTO `sys_oper_log` VALUES (655, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:10:34\",\"delFlag\":\"0\",\"id\":56,\"params\":{},\"parentId\":5,\"prompt\":\"hazel eyes,\",\"title\":\"榛色眼睛\",\"titleHK\":\"榛色眼睛\",\"titleUS\":\"hazel eyes\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:10:34', 7); +INSERT INTO `sys_oper_log` VALUES (656, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:11:08\",\"delFlag\":\"0\",\"id\":57,\"params\":{},\"parentId\":5,\"prompt\":\"red eyes,\",\"title\":\"红色眼睛\",\"titleHK\":\"红色眼睛\",\"titleUS\":\"red eyes\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:11:08', 6); +INSERT INTO `sys_oper_log` VALUES (657, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:46:56\",\"delFlag\":\"0\",\"id\":8,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"发型\",\"titleHK\":\"发型\",\"titleUS\":\"hairstyle\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:11:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:11:37', 5); +INSERT INTO `sys_oper_log` VALUES (658, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:31\",\"delFlag\":\"0\",\"id\":9,\"params\":{},\"parentId\":8,\"prompt\":\"long straight black hair,\",\"status\":0,\"title\":\"长直黑发\",\"titleHK\":\"长直黑发\",\"titleUS\":\"long straight black hair\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:12:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:12:11', 6); +INSERT INTO `sys_oper_log` VALUES (659, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:40\",\"delFlag\":\"0\",\"id\":10,\"params\":{},\"parentId\":8,\"prompt\":\"short curly blonde hair,\",\"status\":0,\"title\":\"短卷金发\",\"titleHK\":\"短卷金发\",\"titleUS\":\"short curly blonde hair\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:12:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:12:42', 5); +INSERT INTO `sys_oper_log` VALUES (660, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:13:01\",\"delFlag\":\"0\",\"id\":58,\"params\":{},\"parentId\":8,\"prompt\":\"ponytail with bangs,\",\"title\":\"马尾刘海\",\"titleHK\":\"马尾刘海\",\"titleUS\":\"ponytail with bangs\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:13:01', 5); +INSERT INTO `sys_oper_log` VALUES (661, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:13:24\",\"delFlag\":\"0\",\"id\":59,\"params\":{},\"parentId\":8,\"prompt\":\"messy bob cut,\",\"title\":\"凌乱波波头\",\"titleHK\":\"凌乱波波头\",\"titleUS\":\"messy bob cut\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:13:24', 6); +INSERT INTO `sys_oper_log` VALUES (662, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:13:47\",\"delFlag\":\"0\",\"id\":60,\"params\":{},\"parentId\":8,\"prompt\":\"braided silver hair,\",\"title\":\"编织银发\",\"titleHK\":\"编织银发\",\"titleUS\":\"braided silver hair\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:13:47', 6); +INSERT INTO `sys_oper_log` VALUES (663, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:47:51\",\"delFlag\":\"0\",\"id\":11,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"配饰\",\"titleHK\":\"配饰\",\"titleUS\":\"accessories\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:14:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:14:44', 5); +INSERT INTO `sys_oper_log` VALUES (664, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:12\",\"delFlag\":\"0\",\"id\":12,\"params\":{},\"parentId\":11,\"prompt\":\"wearing earrings and necklace,\",\"status\":0,\"title\":\"戴耳环和项链\",\"titleHK\":\"戴耳环和项链\",\"titleUS\":\"wearing earrings and necklace\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:15:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:15:22', 6); +INSERT INTO `sys_oper_log` VALUES (665, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-11-26 16:48:19\",\"delFlag\":\"0\",\"id\":13,\"params\":{},\"parentId\":11,\"prompt\":\"holding a flower crown,\",\"status\":0,\"title\":\"拿着花冠\",\"titleHK\":\"拿着花冠\",\"titleUS\":\"holding a flower crown\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 10:16:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:16:02', 5); +INSERT INTO `sys_oper_log` VALUES (666, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:16:26\",\"delFlag\":\"0\",\"id\":61,\"params\":{},\"parentId\":11,\"prompt\":\"with glasses and scarf,\",\"title\":\"戴眼镜和围巾\",\"titleHK\":\"戴眼镜和围巾\",\"titleUS\":\"with glasses and scarf\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:16:26', 5); +INSERT INTO `sys_oper_log` VALUES (667, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:19:08\",\"delFlag\":\"0\",\"id\":62,\"params\":{},\"parentId\":11,\"prompt\":\"cat ears and tail (for cosplay),\",\"title\":\"猫耳和尾巴\",\"titleHK\":\"猫耳和尾巴\",\"titleUS\":\"cat ears and tail\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:19:08', 6); +INSERT INTO `sys_oper_log` VALUES (668, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 10:19:25\",\"delFlag\":\"0\",\"id\":63,\"params\":{},\"parentId\":11,\"prompt\":\"\",\"title\":\"无配饰\",\"titleHK\":\"无配饰\",\"titleUS\":\"no accessories\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 10:19:25', 7); +INSERT INTO `sys_oper_log` VALUES (669, '客服管理', 1, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.add()', 'POST', 1, 'admin', '研发部门', '/ai/service', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-23 13:53:30\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"url\":\"baidu.com\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 13:53:30', 26); +INSERT INTO `sys_oper_log` VALUES (670, '客服管理', 1, 'com.ruoyi.web.controller.ai.AiCustomerServiceController.add()', 'POST', 1, 'admin', '研发部门', '/ai/service', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-12-23 13:53:31\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"url\":\"baidu.com\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 13:53:31', 4); +INSERT INTO `sys_oper_log` VALUES (671, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:07:09\",\"delFlag\":\"0\",\"id\":64,\"params\":{},\"prompt\":\"\",\"title\":\"表情\",\"titleHK\":\"表情\",\"titleUS\":\"expression\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:07:09', 5); +INSERT INTO `sys_oper_log` VALUES (672, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:07:36\",\"delFlag\":\"0\",\"id\":65,\"params\":{},\"parentId\":64,\"prompt\":\"smiling happily,\",\"title\":\"快乐微笑\",\"titleHK\":\"快乐微笑\",\"titleUS\":\"smiling happily\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:07:36', 5); +INSERT INTO `sys_oper_log` VALUES (673, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:07:53\",\"delFlag\":\"0\",\"id\":66,\"params\":{},\"prompt\":\"\",\"title\":\"姿势\",\"titleHK\":\"姿势\",\"titleUS\":\"pose\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:07:53', 5); +INSERT INTO `sys_oper_log` VALUES (674, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:08:19\",\"delFlag\":\"0\",\"id\":67,\"params\":{},\"parentId\":66,\"prompt\":\"standing gracefully,\",\"title\":\"优雅站立\",\"titleHK\":\"优雅站立\",\"titleUS\":\"standing gracefully\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:08:19', 6); +INSERT INTO `sys_oper_log` VALUES (675, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:08:38\",\"delFlag\":\"0\",\"id\":68,\"params\":{},\"prompt\":\"\",\"title\":\"背景\",\"titleHK\":\"背景\",\"titleUS\":\"background\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:08:38', 4); +INSERT INTO `sys_oper_log` VALUES (676, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:08:59\",\"delFlag\":\"0\",\"id\":69,\"params\":{},\"parentId\":68,\"prompt\":\"in a sunny beach,\",\"title\":\"在阳光沙滩\",\"titleHK\":\"在阳光沙滩\",\"titleUS\":\"in a sunny beach\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:08:59', 5); +INSERT INTO `sys_oper_log` VALUES (677, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:09:27\",\"delFlag\":\"0\",\"id\":70,\"params\":{},\"prompt\":\"\",\"title\":\"服装描述\",\"titleHK\":\"服装描述\",\"titleUS\":\"clothing_description\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:09:27', 5); +INSERT INTO `sys_oper_log` VALUES (678, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:10:31\",\"delFlag\":\"0\",\"id\":71,\"params\":{},\"parentId\":70,\"prompt\":\"wearing transparent silk robe, nipples visible through fabric,\",\"title\":\"透明丝袍\",\"titleHK\":\"透明丝袍\",\"titleUS\":\"transparent silk robe\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:10:31', 5); +INSERT INTO `sys_oper_log` VALUES (679, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:11:15\",\"delFlag\":\"0\",\"id\":72,\"params\":{},\"prompt\":\"\",\"title\":\"胸部大小\",\"titleHK\":\"胸部大小\",\"titleUS\":\"Breast size\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:11:15', 5); +INSERT INTO `sys_oper_log` VALUES (680, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:11:44\",\"delFlag\":\"0\",\"id\":73,\"params\":{},\"parentId\":72,\"prompt\":\"voluptuous bust,\",\"title\":\"丰满胸围\",\"titleHK\":\"丰满胸围\",\"titleUS\":\"voluptuous bust\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:11:44', 6); +INSERT INTO `sys_oper_log` VALUES (681, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:12:25\",\"delFlag\":\"0\",\"id\":74,\"params\":{},\"prompt\":\"\",\"title\":\"多人描述\",\"titleHK\":\"多人描述\",\"titleUS\":\"Multiple people described\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:12:25', 6); +INSERT INTO `sys_oper_log` VALUES (682, 'ai-标签管理', 1, 'com.ruoyi.web.controller.ai.AiTagController.add()', 'POST', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:12:59\",\"delFlag\":\"0\",\"id\":75,\"params\":{},\"parentId\":74,\"prompt\":\"2girls, interacting playfully,\",\"title\":\"2个女孩嬉戏互动\",\"titleHK\":\"2个女孩嬉戏互动\",\"titleUS\":\"2girls interacting playfully\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:12:59', 9); +INSERT INTO `sys_oper_log` VALUES (683, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"5,8,11,64,66,68,70,72,74\",\"price\":8,\"prompt\":\"1girl, solo, detailed face with {眼睛颜色} {发型} {配饰} {表情} {姿势} in {背景}, {服装描述} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: {多人描述}, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, an', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:16:19', 15); +INSERT INTO `sys_oper_log` VALUES (684, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:08:19\",\"delFlag\":\"0\",\"id\":67,\"params\":{},\"parentId\":66,\"prompt\":\"standing gracefully\",\"status\":0,\"title\":\"优雅站立\",\"titleHK\":\"优雅站立\",\"titleUS\":\"standing gracefully\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:16:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:16:32', 5); +INSERT INTO `sys_oper_log` VALUES (685, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-23 14:09:00\",\"delFlag\":\"0\",\"id\":69,\"params\":{},\"parentId\":68,\"prompt\":\"in a sunny beach\",\"status\":0,\"title\":\"在阳光沙滩\",\"titleHK\":\"在阳光沙滩\",\"titleUS\":\"in a sunny beach\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:16:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:16:38', 5); +INSERT INTO `sys_oper_log` VALUES (686, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"5,8,11,64,66,68,70,72,74\",\"price\":8,\"prompt\":\"1girl, solo, detailed face with {眼睛颜色} {发型} {配饰} {表情} {姿势} in {背景}, {服装描述} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: {多人描述}, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, an', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:18:49', 9); +INSERT INTO `sys_oper_log` VALUES (687, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-11-24 23:01:20\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"remark\":\"11111\",\"status\":0,\"title\":\"胸部大小\",\"titleHK\":\"胸部大小\",\"titleUS\":\"xiongbu\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:25:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:25:43', 6); +INSERT INTO `sys_oper_log` VALUES (688, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/16', '2602:fbf1:b001::36', '内网IP', '[16]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:25:48', 18); +INSERT INTO `sys_oper_log` VALUES (689, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:39:50\",\"delFlag\":\"0\",\"id\":15,\"params\":{},\"parentId\":1,\"prompt\":\"very large breasts\",\"status\":0,\"title\":\"超巨乳\",\"titleHK\":\"超巨乳\",\"titleUS\":\"very large breasts\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:26:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:26:06', 4); +INSERT INTO `sys_oper_log` VALUES (690, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:30\",\"delFlag\":\"0\",\"id\":18,\"params\":{},\"parentId\":17,\"prompt\":\"both hands gently caressing own breasts from front, fingers lightly circling nipples, seductive expression\",\"status\":0,\"title\":\"双手从正面轻抚胸部\",\"titleHK\":\"双手从正面轻抚胸部\",\"titleUS\":\"shuangshoumoxiong\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:27:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:27:05', 5); +INSERT INTO `sys_oper_log` VALUES (691, 'ai-标签管理', 3, 'com.ruoyi.web.controller.ai.AiTagController.remove()', 'DELETE', 1, 'admin', '研发部门', '/ai/tag/19', '2602:fbf1:b001::36', '内网IP', '[19]', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:27:10', 8); +INSERT INTO `sys_oper_log` VALUES (692, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:45:11\",\"delFlag\":\"0\",\"id\":24,\"params\":{},\"parentId\":22,\"prompt\":\"细节1^细节2^细节3\",\"status\":1,\"title\":\"流星落下\",\"titleHK\":\"流星落下\",\"titleUS\":\"Flow Rate\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:28:47\"}', NULL, 1, '必须开启一个子级标签!', '2025-12-23 14:28:47', 11); +INSERT INTO `sys_oper_log` VALUES (693, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:44:12\",\"delFlag\":\"0\",\"id\":22,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"细节\",\"titleHK\":\"細節\",\"titleUS\":\"Details\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:28:49\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:28:49', 6); +INSERT INTO `sys_oper_log` VALUES (694, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:45:11\",\"delFlag\":\"0\",\"id\":24,\"params\":{},\"parentId\":22,\"prompt\":\"细节1^细节2^细节3\",\"status\":1,\"title\":\"流星落下\",\"titleHK\":\"流星落下\",\"titleUS\":\"Flow Rate\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:28:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:28:58', 7); +INSERT INTO `sys_oper_log` VALUES (695, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 20:07:02\",\"delFlag\":\"0\",\"id\":34,\"params\":{},\"parentId\":23,\"prompt\":\"12\",\"status\":1,\"title\":\"1080x1920\",\"titleHK\":\"1080x1920\",\"titleUS\":\"1080x1920\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:29:00\"}', NULL, 1, '必须开启一个子级标签!', '2025-12-23 14:29:00', 12); +INSERT INTO `sys_oper_log` VALUES (696, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:44:49\",\"delFlag\":\"0\",\"id\":23,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":1,\"title\":\"技术参数\",\"titleHK\":\"技術參數\",\"titleUS\":\"Technical Parameters\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:29:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:29:03', 6); +INSERT INTO `sys_oper_log` VALUES (697, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '2602:fbf1:b001::36', '内网IP', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:40:58\",\"delFlag\":\"0\",\"id\":17,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"动作\",\"titleHK\":\"动作\",\"titleUS\":\"Style\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:29:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:29:44', 5); +INSERT INTO `sys_oper_log` VALUES (698, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:05:27\",\"delFlag\":\"0\",\"id\":1,\"params\":{},\"parentIdSort\":\"1,17\",\"price\":10,\"prompt\":\"1girl, solo, exact same character as reference image, identical face eye color hairstyle accessories expression pose background lighting, (completely nude:1.2), naked, no clothes, breasts fully exposed, {胸部大小}, nipples perfectly matching skin tone, {动作}, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: all characters following same rules no frontal exposure:1.1)(negative: clothes, bra, panties, underwear, bikini, swimsuit, any fabric even one pixel, censored, mosaic, bar censor, any censorship, pasties, nipple covers, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, loli, child, old, realistic photo, lowres:1.8, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs)\",\"status\":0,\"title\":\"图生图1\",\"type\":\"11\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-23 14:30:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:30:07', 6); +INSERT INTO `sys_oper_log` VALUES (699, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"5,8,11,64,66,68,70,72,74\",\"price\":8,\"prompt\":\"1girl, solo, detailed face with {眼睛颜色} {发型} {配饰} {表情} {姿势} in {背景}, {服装描述} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: {多人描述}, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, an', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:46:53', 6); +INSERT INTO `sys_oper_log` VALUES (700, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:33\",\"delFlag\":\"0\",\"id\":4,\"params\":{},\"parentIdSort\":\"8,5,11,64,66,68,70,72,74\",\"price\":8,\"prompt\":\"1girl, solo, detailed face with {发型} {眼睛颜色} {配饰} {表情} {姿势} in {背景}, {服装描述} {胸部大小} no pubic hair at all, no body hair anywhere from neck to toes, pose that naturally conceals lower body from front view, legs positioned to avoid frontal genital exposure, side profile or back view emphasis, subtle natural body contours without explicit details, perfect anatomy, exactly two arms and two legs only, perfect hands with exactly 5 clearly separated fingers each no fusion no extra fingers, smooth natural skin texture, realistic proportions, masterpiece, best quality, ultra detailed, 8k, soft lighting, depth of field, high resolution, intricate details, cinematic composition, (if multiple characters: {多人描述}, all characters following same rules no frontal exposure:1.1)(negative: everyday clothes, casual outfit, school uniform, regular dress, any non-specified clothing, clothing glitch, fabric clipping, pubic hair, body hair, happy trail, hair on abdomen, hair on stomach, hair on torso, hair around navel, any hair below neck except head hair, frontal genital exposure, visible slit, visible pussy, exposed crotch, swollen labia, puffy labia, deformed genital area, dark mismatched crotch skin, any pubic details, extra arms, extra legs, extra hands, extra fingers, third arm, third leg, mutated limbs, more than two arms, more than two legs, fused fingers, deformed hands, bad hands, unnatural poses, violating human anatomy, bad anatomy, loli, child, old, realistic photo, lowres:1.9, blurry, artifacts, overexposed, underexposed, pixelated, jpeg artifacts, watermark, text, signature, ugly, deformed, mutated, extra limbs, poorly drawn face, poorly drawn hands, missing limbs, floating limbs, disconnected limbs, clothes if nude mode, bra if nude mode, panties if nude mode, underwear if nude mode, bikini if nude mode, swimsuit if nude mode, an', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-23 14:47:09', 7); +INSERT INTO `sys_oper_log` VALUES (701, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:06:02\",\"delFlag\":\"0\",\"id\":3,\"params\":{},\"parentIdSort\":\"\",\"price\":10,\"prompt\":\"保持参考图1的内容风格不变,用参考图2的脸部对参考图1的脸部进行替换\",\"status\":0,\"title\":\"一键换脸\",\"type\":\"13\",\"updateBy\":\"admin\",\"updateTime\":\"2025-12-24 15:03:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-24 15:03:00', 73); +INSERT INTO `sys_oper_log` VALUES (702, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":901,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-24 16:40:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-24 16:40:05', 19); +INSERT INTO `sys_oper_log` VALUES (703, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":904,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-24 17:10:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-24 17:10:43', 13); +INSERT INTO `sys_oper_log` VALUES (704, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":905,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-24 17:15:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-24 17:15:04', 7); +INSERT INTO `sys_oper_log` VALUES (705, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":903,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-25 17:15:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-25 17:15:40', 60); +INSERT INTO `sys_oper_log` VALUES (706, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":902,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-25 17:15:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-25 17:15:42', 7); +INSERT INTO `sys_oper_log` VALUES (707, '参数管理', 1, 'com.ruoyi.web.controller.system.SysConfigController.add()', 'POST', 1, 'admin', '研发部门', '/system/config', '23.249.17.33', ' ', '{\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"100\",\"createBy\":\"admin\",\"params\":{}}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 11:29:05', 53); +INSERT INTO `sys_oper_log` VALUES (708, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":906,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-26 12:06:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 12:06:38', 27); +INSERT INTO `sys_oper_log` VALUES (709, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":907,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-26 12:06:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 12:06:39', 6); +INSERT INTO `sys_oper_log` VALUES (710, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":908,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-26 12:06:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 12:06:41', 6); +INSERT INTO `sys_oper_log` VALUES (711, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":909,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-26 12:06:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 12:06:42', 8); +INSERT INTO `sys_oper_log` VALUES (712, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '2602:fbf1:b001::36', '内网IP', '{\"configId\":102,\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"1\",\"createBy\":\"admin\",\"createTime\":\"2025-12-26 11:29:04\",\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 12:09:00', 13); +INSERT INTO `sys_oper_log` VALUES (713, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '2602:fbf1:b001::36', '内网IP', '{\"configId\":102,\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"100\",\"createBy\":\"admin\",\"createTime\":\"2025-12-26 11:29:04\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-12-26 12:09:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 14:39:31', 17); +INSERT INTO `sys_oper_log` VALUES (714, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '2602:fbf1:b001::36', '内网IP', '{\"configId\":102,\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"0\",\"createBy\":\"admin\",\"createTime\":\"2025-12-26 11:29:04\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-12-26 14:39:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 14:51:01', 16); +INSERT INTO `sys_oper_log` VALUES (715, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/26/ebd0aed8_images.jpeg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-26 17:27:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 17:27:57', 17); +INSERT INTO `sys_oper_log` VALUES (716, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/26/756207ea_images.png\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-26 17:31:30\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-26 17:31:30', 7); +INSERT INTO `sys_oper_log` VALUES (717, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '2602:fbf1:b001::36', '内网IP', '{\"configId\":102,\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"1000\",\"createBy\":\"admin\",\"createTime\":\"2025-12-26 11:29:04\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-12-26 14:51:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 11:40:21', 57); +INSERT INTO `sys_oper_log` VALUES (718, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2602:fbf1:b001::36', '内网IP', '{\"balance\":1000,\"id\":35,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 11:40:47', 42); +INSERT INTO `sys_oper_log` VALUES (719, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2602:fbf1:b001::36', '内网IP', '{\"balance\":0,\"id\":35,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 11:41:10', 16); +INSERT INTO `sys_oper_log` VALUES (720, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/5e56dd36_images.png\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:48:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:48:43', 14); +INSERT INTO `sys_oper_log` VALUES (721, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/6954f02a_image.jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:50:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:50:27', 7); +INSERT INTO `sys_oper_log` VALUES (722, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/26/ebd0aed8_images.jpeg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:51:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:51:22', 5); +INSERT INTO `sys_oper_log` VALUES (723, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/bd4240bd_image.jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:51:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:51:32', 6); +INSERT INTO `sys_oper_log` VALUES (724, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:09\",\"delFlag\":\"0\",\"id\":3,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/ea50e84a_image (1).jpg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图3\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:52:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:52:38', 6); +INSERT INTO `sys_oper_log` VALUES (725, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/68ea0460_unnamed.jpg\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":0,\"remark\":\"11212\",\"status\":0,\"title\":\"图2\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:56:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:56:20', 6); +INSERT INTO `sys_oper_log` VALUES (726, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"id\":4,\"params\":{},\"status\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:56:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:56:24', 7); +INSERT INTO `sys_oper_log` VALUES (727, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:24\",\"delFlag\":\"0\",\"id\":4,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/cd393b13_unnamed.jpg\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图4\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 16:56:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 16:56:34', 6); +INSERT INTO `sys_oper_log` VALUES (728, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/29/f8edae91_画板 1.png\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 17:00:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 17:00:40', 6); +INSERT INTO `sys_oper_log` VALUES (729, 'ai-用户信息', 2, 'com.ruoyi.web.controller.ai.AiUserController.changeBalance()', 'PUT', 1, 'admin', '研发部门', '/ai/user/changeBalance', '2602:fbf1:b001::36', '内网IP', '{\"balance\":10000,\"id\":39,\"params\":{},\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-29 17:05:54', 15); +INSERT INTO `sys_oper_log` VALUES (730, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '2602:fbf1:b001::36', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-25 17:09:24\",\"delFlag\":\"0\",\"id\":4,\"imageUrl\":\"https://images.iqyjsnwv.com/2025/12/30/0af33ee3_画板 1.png\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":1,\"status\":0,\"title\":\"图4\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-30 11:22:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-30 11:22:13', 7); +INSERT INTO `sys_oper_log` VALUES (731, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-31 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:11\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":101,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:11\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:11\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":102,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:11\"},{\"createBy\":\"\",\"createTime\":\"2025-12-22 16:11:11\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":103,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-22 16:11:11\"}],\"id\":4,\"isFristRecharge\":\"N\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-30 11:56:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-30 11:56:44', 31); +INSERT INTO `sys_oper_log` VALUES (732, '充值赠送活动', 2, 'com.ruoyi.web.controller.ai.AiRechargeGiftController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/gift', '2602:fbf1:b001::36', '内网IP', '{\"apiUrl\":\"/api/pay/kada-pay\",\"createBy\":\"admin\",\"createTime\":\"2025-11-27 15:59:13\",\"delFlag\":\"0\",\"endTime\":\"2025-12-31 17:31:00\",\"gearList\":[{\"createBy\":\"\",\"createTime\":\"2025-12-30 11:56:44\",\"delFlag\":\"0\",\"giftAmount\":11,\"giveAmount\":1,\"id\":104,\"params\":{},\"rechargeAmount\":10,\"rechargeId\":4,\"title\":\"\",\"updateBy\":\"\",\"updateTime\":\"2025-12-30 11:56:44\"},{\"createBy\":\"\",\"createTime\":\"2025-12-30 11:56:44\",\"delFlag\":\"0\",\"giftAmount\":51,\"giveAmount\":1,\"id\":105,\"params\":{},\"rechargeAmount\":50,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-30 11:56:44\"},{\"createBy\":\"\",\"createTime\":\"2025-12-30 11:56:44\",\"delFlag\":\"0\",\"giftAmount\":110,\"giveAmount\":5,\"id\":106,\"params\":{},\"rechargeAmount\":100,\"rechargeId\":4,\"updateBy\":\"\",\"updateTime\":\"2025-12-30 11:56:44\"}],\"id\":4,\"isFristRecharge\":\"Y\",\"params\":{},\"payType\":\"PHP\",\"startTime\":\"2025-12-09 00:00:00\",\"status\":0,\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2025-12-30 11:57:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-30 11:57:06', 19); +INSERT INTO `sys_oper_log` VALUES (733, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '2602:fbf1:b001::36', '内网IP', '{\"id\":1049,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2025-12-31 14:23:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-31 14:23:17', 60); +INSERT INTO `sys_oper_log` VALUES (734, '体验金活动管理', 2, 'com.ruoyi.web.controller.ai.AiSampleAmountController.changeUserStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/amount/changeUserStatus', '2602:fbf1:b001::36', '内网IP', '{\"id\":2,\"params\":{},\"status\":1}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2025-12-31 14:25:07', 24); +INSERT INTO `sys_oper_log` VALUES (735, '修改AI状态', 2, 'com.ruoyi.web.controller.ai.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '2602:fbf1:b001::36', '内网IP', '{\"id\":3,\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-05 16:28:01', 53); +INSERT INTO `sys_oper_log` VALUES (736, '修改AI状态', 2, 'com.ruoyi.web.controller.ai.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '2602:fbf1:b001::36', '内网IP', '{\"id\":5,\"params\":{},\"status\":1,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-05 16:28:05', 8); +INSERT INTO `sys_oper_log` VALUES (737, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":95,\"params\":{},\"parentId\":0,\"status\":0,\"title\":\"眼睛颜色\",\"titleHK\":\"眼睛顏色\",\"titleUS\":\"眼睛颜色\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-05 18:03:20\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-05 18:03:21', 27); +INSERT INTO `sys_oper_log` VALUES (738, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":71,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部大小\",\"titleHK\":\"胸部大小\",\"titleUS\":\"breast size\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:37:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:37:07', 7); +INSERT INTO `sys_oper_log` VALUES (739, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":75,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"阴毛样式\",\"titleHK\":\"陰毛樣式\",\"titleUS\":\"pubic hair pattern\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:37:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:37:29', 6); +INSERT INTO `sys_oper_log` VALUES (740, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":1,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":79,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"胸部动作\",\"titleHK\":\"胸部動作\",\"titleUS\":\"chest action \",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:38:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:38:00', 6); +INSERT INTO `sys_oper_log` VALUES (741, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":95,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"眼睛颜色\",\"titleHK\":\"眼睛顏色\",\"titleUS\":\"eye color\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:38:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:38:38', 6); +INSERT INTO `sys_oper_log` VALUES (742, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":101,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"发型\",\"titleHK\":\"髮型\",\"titleUS\":\"hairstyle\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:38:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:38:49', 5); +INSERT INTO `sys_oper_log` VALUES (743, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":107,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"配饰\",\"titleHK\":\"配飾\",\"titleUS\":\"accessories\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:38:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:38:58', 6); +INSERT INTO `sys_oper_log` VALUES (744, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":113,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"表情\",\"titleHK\":\"表情\",\"titleUS\":\"expression\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:39:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:39:18', 6); +INSERT INTO `sys_oper_log` VALUES (745, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":119,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"姿势\",\"titleHK\":\"姿勢\",\"titleUS\":\"pose\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:39:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:39:25', 5); +INSERT INTO `sys_oper_log` VALUES (746, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":125,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"背景\",\"titleHK\":\"背景\",\"titleUS\":\"background\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:39:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:39:42', 5); +INSERT INTO `sys_oper_log` VALUES (747, 'ai-标签管理', 2, 'com.ruoyi.web.controller.ai.AiTagController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/tag', '154.39.66.119', ' ', '{\"aiId\":4,\"createBy\":\"admin\",\"createTime\":\"2025-12-14 19:41:42\",\"delFlag\":\"0\",\"id\":131,\"params\":{},\"parentId\":0,\"prompt\":\"\",\"status\":0,\"title\":\"服装描述\",\"titleHK\":\"服裝描述\",\"titleUS\":\"clothing_description\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-06 10:39:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:39:56', 5); +INSERT INTO `sys_oper_log` VALUES (748, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1131,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 10:44:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:44:34', 6); +INSERT INTO `sys_oper_log` VALUES (749, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1130,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 10:44:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:44:36', 17); +INSERT INTO `sys_oper_log` VALUES (750, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1133,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 10:44:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:44:37', 13); +INSERT INTO `sys_oper_log` VALUES (751, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1135,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 10:44:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:44:38', 6); +INSERT INTO `sys_oper_log` VALUES (752, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1137,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 10:44:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:44:41', 8); +INSERT INTO `sys_oper_log` VALUES (753, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1133,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:35', 8); +INSERT INTO `sys_oper_log` VALUES (754, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1137,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:36', 7); +INSERT INTO `sys_oper_log` VALUES (755, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1135,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:38', 8); +INSERT INTO `sys_oper_log` VALUES (756, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1131,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:40', 5); +INSERT INTO `sys_oper_log` VALUES (757, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1130,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:44', 5); +INSERT INTO `sys_oper_log` VALUES (758, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":905,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 10:49:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 10:49:47', 6); +INSERT INTO `sys_oper_log` VALUES (759, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1259,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:43:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:43:47', 7); +INSERT INTO `sys_oper_log` VALUES (760, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1255,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:43:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:43:50', 6); +INSERT INTO `sys_oper_log` VALUES (761, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1251,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:43:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:43:56', 7); +INSERT INTO `sys_oper_log` VALUES (762, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1250,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:03', 6); +INSERT INTO `sys_oper_log` VALUES (763, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1248,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:06', 9); +INSERT INTO `sys_oper_log` VALUES (764, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1246,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:07', 7); +INSERT INTO `sys_oper_log` VALUES (765, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1243,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:10', 6); +INSERT INTO `sys_oper_log` VALUES (766, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1244,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:11', 7); +INSERT INTO `sys_oper_log` VALUES (767, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1241,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:15', 6); +INSERT INTO `sys_oper_log` VALUES (768, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1232,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:18', 7); +INSERT INTO `sys_oper_log` VALUES (769, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1237,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:20', 6); +INSERT INTO `sys_oper_log` VALUES (770, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1221,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:23\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:23', 5); +INSERT INTO `sys_oper_log` VALUES (771, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1211,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:28', 7); +INSERT INTO `sys_oper_log` VALUES (772, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1217,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:30\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:31', 7); +INSERT INTO `sys_oper_log` VALUES (773, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1213,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:32', 5); +INSERT INTO `sys_oper_log` VALUES (774, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1212,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:35', 6); +INSERT INTO `sys_oper_log` VALUES (775, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1202,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:40\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:41', 7); +INSERT INTO `sys_oper_log` VALUES (776, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1201,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:42', 9); +INSERT INTO `sys_oper_log` VALUES (777, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1203,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:42', 7); +INSERT INTO `sys_oper_log` VALUES (778, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1208,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:46', 5); +INSERT INTO `sys_oper_log` VALUES (779, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1210,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:48', 8); +INSERT INTO `sys_oper_log` VALUES (780, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1191,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:44:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:44:54', 7); +INSERT INTO `sys_oper_log` VALUES (781, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1169,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:07', 5); +INSERT INTO `sys_oper_log` VALUES (782, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1135,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:18', 6); +INSERT INTO `sys_oper_log` VALUES (783, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1126,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:25', 5); +INSERT INTO `sys_oper_log` VALUES (784, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1121,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:27', 6); +INSERT INTO `sys_oper_log` VALUES (785, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1122,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:29', 5); +INSERT INTO `sys_oper_log` VALUES (786, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1112,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:34', 7); +INSERT INTO `sys_oper_log` VALUES (787, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1117,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:35\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:36', 6); +INSERT INTO `sys_oper_log` VALUES (788, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1118,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:39', 5); +INSERT INTO `sys_oper_log` VALUES (789, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1115,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:39\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:41', 6); +INSERT INTO `sys_oper_log` VALUES (790, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1116,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:42', 6); +INSERT INTO `sys_oper_log` VALUES (791, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1113,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:44', 5); +INSERT INTO `sys_oper_log` VALUES (792, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1114,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:45', 6); +INSERT INTO `sys_oper_log` VALUES (793, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1111,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:47\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:48', 6); +INSERT INTO `sys_oper_log` VALUES (794, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1119,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:50', 8); +INSERT INTO `sys_oper_log` VALUES (795, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1120,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:45:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:45:53', 5); +INSERT INTO `sys_oper_log` VALUES (796, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1101,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:01', 7); +INSERT INTO `sys_oper_log` VALUES (797, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1107,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:05', 7); +INSERT INTO `sys_oper_log` VALUES (798, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1088,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:12', 6); +INSERT INTO `sys_oper_log` VALUES (799, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1089,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:14', 6); +INSERT INTO `sys_oper_log` VALUES (800, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1083,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:17\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:17', 7); +INSERT INTO `sys_oper_log` VALUES (801, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1073,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:23', 5); +INSERT INTO `sys_oper_log` VALUES (802, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1074,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:25', 8); +INSERT INTO `sys_oper_log` VALUES (803, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1075,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:28', 6); +INSERT INTO `sys_oper_log` VALUES (804, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1066,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:38', 7); +INSERT INTO `sys_oper_log` VALUES (805, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1038,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:56', 5); +INSERT INTO `sys_oper_log` VALUES (806, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1037,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:56\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:46:57', 5); +INSERT INTO `sys_oper_log` VALUES (807, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1036,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:46:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:03', 6); +INSERT INTO `sys_oper_log` VALUES (808, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1034,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:06', 5); +INSERT INTO `sys_oper_log` VALUES (809, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1035,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:09', 5); +INSERT INTO `sys_oper_log` VALUES (810, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1033,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:09', 6); +INSERT INTO `sys_oper_log` VALUES (811, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1031,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:14', 8); +INSERT INTO `sys_oper_log` VALUES (812, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1030,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:12\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:15', 6); +INSERT INTO `sys_oper_log` VALUES (813, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1032,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:15', 5); +INSERT INTO `sys_oper_log` VALUES (814, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1029,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:18', 6); +INSERT INTO `sys_oper_log` VALUES (815, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1028,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:19\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:23', 8); +INSERT INTO `sys_oper_log` VALUES (816, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1026,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:23\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:24', 9); +INSERT INTO `sys_oper_log` VALUES (817, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1027,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:24', 5); +INSERT INTO `sys_oper_log` VALUES (818, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1025,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:25', 6); +INSERT INTO `sys_oper_log` VALUES (819, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1024,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:27', 5); +INSERT INTO `sys_oper_log` VALUES (820, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1022,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:36', 9); +INSERT INTO `sys_oper_log` VALUES (821, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1023,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:36', 7); +INSERT INTO `sys_oper_log` VALUES (822, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1021,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:31\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:39', 6); +INSERT INTO `sys_oper_log` VALUES (823, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1020,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:34\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:42', 6); +INSERT INTO `sys_oper_log` VALUES (824, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1019,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:44', 8); +INSERT INTO `sys_oper_log` VALUES (825, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1016,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:42\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:48', 6); +INSERT INTO `sys_oper_log` VALUES (826, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1015,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:50', 5); +INSERT INTO `sys_oper_log` VALUES (827, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1014,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:53', 6); +INSERT INTO `sys_oper_log` VALUES (828, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1010,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:49\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:54', 6); +INSERT INTO `sys_oper_log` VALUES (829, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1008,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:56', 8); +INSERT INTO `sys_oper_log` VALUES (830, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1002,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:47:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:47:59', 6); +INSERT INTO `sys_oper_log` VALUES (831, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1001,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:01', 6); +INSERT INTO `sys_oper_log` VALUES (832, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1005,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:05', 6); +INSERT INTO `sys_oper_log` VALUES (833, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1004,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:06', 6); +INSERT INTO `sys_oper_log` VALUES (834, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":999,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:07\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:08', 4); +INSERT INTO `sys_oper_log` VALUES (835, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":991,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:12', 27); +INSERT INTO `sys_oper_log` VALUES (836, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":990,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:18', 5); +INSERT INTO `sys_oper_log` VALUES (837, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":989,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:18\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:19', 5); +INSERT INTO `sys_oper_log` VALUES (838, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":979,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:48:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:48:23', 6); +INSERT INTO `sys_oper_log` VALUES (839, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":981,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:22', 6); +INSERT INTO `sys_oper_log` VALUES (840, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":982,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:23\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:23', 6); +INSERT INTO `sys_oper_log` VALUES (841, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":983,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:24\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:25', 5); +INSERT INTO `sys_oper_log` VALUES (842, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":969,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:29\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:29', 5); +INSERT INTO `sys_oper_log` VALUES (843, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":959,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:37', 6); +INSERT INTO `sys_oper_log` VALUES (844, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":960,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:39', 5); +INSERT INTO `sys_oper_log` VALUES (845, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":961,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:42', 7); +INSERT INTO `sys_oper_log` VALUES (846, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":968,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:45\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:46', 5); +INSERT INTO `sys_oper_log` VALUES (847, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":967,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:47', 6); +INSERT INTO `sys_oper_log` VALUES (848, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":949,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:51\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:52', 6); +INSERT INTO `sys_oper_log` VALUES (849, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":950,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:53', 5); +INSERT INTO `sys_oper_log` VALUES (850, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":951,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:56', 6); +INSERT INTO `sys_oper_log` VALUES (851, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":952,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:57', 6); +INSERT INTO `sys_oper_log` VALUES (852, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":953,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:49:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:49:59', 7); +INSERT INTO `sys_oper_log` VALUES (853, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":947,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:50:06\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:50:07', 6); +INSERT INTO `sys_oper_log` VALUES (854, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":900,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:50:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:50:27', 8); +INSERT INTO `sys_oper_log` VALUES (855, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1258,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:18\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:19', 5); +INSERT INTO `sys_oper_log` VALUES (856, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1256,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:23', 4); +INSERT INTO `sys_oper_log` VALUES (857, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1257,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:27\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:28', 6); +INSERT INTO `sys_oper_log` VALUES (858, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1254,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:30\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:31', 6); +INSERT INTO `sys_oper_log` VALUES (859, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1253,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:32', 6); +INSERT INTO `sys_oper_log` VALUES (860, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1252,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:33\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:34', 6); +INSERT INTO `sys_oper_log` VALUES (861, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1242,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:37\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:38', 6); +INSERT INTO `sys_oper_log` VALUES (862, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1242,\"isTop\":\"N\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:44', 5); +INSERT INTO `sys_oper_log` VALUES (863, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1245,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:47', 5); +INSERT INTO `sys_oper_log` VALUES (864, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1249,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:51', 5); +INSERT INTO `sys_oper_log` VALUES (865, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1231,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:57', 5); +INSERT INTO `sys_oper_log` VALUES (866, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1236,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:56:57\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:56:58', 6); +INSERT INTO `sys_oper_log` VALUES (867, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1238,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:00\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:02', 7); +INSERT INTO `sys_oper_log` VALUES (868, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1239,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:02\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:03', 6); +INSERT INTO `sys_oper_log` VALUES (869, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1234,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:05\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:06', 6); +INSERT INTO `sys_oper_log` VALUES (870, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1223,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:10\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:12', 5); +INSERT INTO `sys_oper_log` VALUES (871, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1230,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:14\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:16', 5); +INSERT INTO `sys_oper_log` VALUES (872, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1226,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:16\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:17', 5); +INSERT INTO `sys_oper_log` VALUES (873, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1215,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:26', 5); +INSERT INTO `sys_oper_log` VALUES (874, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1204,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:32\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:33', 6); +INSERT INTO `sys_oper_log` VALUES (875, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1197,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:38\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:39', 7); +INSERT INTO `sys_oper_log` VALUES (876, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1195,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:41\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:42', 6); +INSERT INTO `sys_oper_log` VALUES (877, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1192,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:43\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:44', 6); +INSERT INTO `sys_oper_log` VALUES (878, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1184,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:49', 5); +INSERT INTO `sys_oper_log` VALUES (879, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1187,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:50\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:51', 7); +INSERT INTO `sys_oper_log` VALUES (880, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1189,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:53\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:53', 6); +INSERT INTO `sys_oper_log` VALUES (881, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1188,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:55\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:55', 5); +INSERT INTO `sys_oper_log` VALUES (882, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1182,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:57:58\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:57:58', 5); +INSERT INTO `sys_oper_log` VALUES (883, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1175,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:09\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:09', 5); +INSERT INTO `sys_oper_log` VALUES (884, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1179,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:11\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:14', 8); +INSERT INTO `sys_oper_log` VALUES (885, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1171,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:13\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:16', 4); +INSERT INTO `sys_oper_log` VALUES (886, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1172,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:15\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:17', 6); +INSERT INTO `sys_oper_log` VALUES (887, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1173,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:18\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:19', 6); +INSERT INTO `sys_oper_log` VALUES (888, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1163,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:25\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:25', 6); +INSERT INTO `sys_oper_log` VALUES (889, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1165,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:22\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:25', 5); +INSERT INTO `sys_oper_log` VALUES (890, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1161,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:28\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:29', 6); +INSERT INTO `sys_oper_log` VALUES (891, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1166,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:26\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:29', 5); +INSERT INTO `sys_oper_log` VALUES (892, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1158,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:44\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:45', 6); +INSERT INTO `sys_oper_log` VALUES (893, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1159,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:46\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:47', 6); +INSERT INTO `sys_oper_log` VALUES (894, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1151,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:48\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:50', 6); +INSERT INTO `sys_oper_log` VALUES (895, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1152,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:52\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:53', 6); +INSERT INTO `sys_oper_log` VALUES (896, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1156,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:54\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:58:55', 6); +INSERT INTO `sys_oper_log` VALUES (897, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1144,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:58:59\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:59:00', 6); +INSERT INTO `sys_oper_log` VALUES (898, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1148,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:59:01\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:59:02', 6); +INSERT INTO `sys_oper_log` VALUES (899, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1141,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:59:03\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:59:04', 5); +INSERT INTO `sys_oper_log` VALUES (900, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1132,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:59:08\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:59:11', 6); +INSERT INTO `sys_oper_log` VALUES (901, '订单管理', 2, 'com.ruoyi.web.controller.ai.AiOrderController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/order', '154.39.66.119', ' ', '{\"id\":1134,\"isTop\":\"Y\",\"params\":{},\"updateTime\":\"2026-01-06 14:59:16\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-06 14:59:18', 6); +INSERT INTO `sys_oper_log` VALUES (902, '参数管理', 2, 'com.ruoyi.web.controller.system.SysConfigController.edit()', 'PUT', 1, 'admin', '研发部门', '/system/config', '188.253.116.99', ' ', '{\"configId\":102,\"configKey\":\"sys.total.amount\",\"configName\":\"累充金额\",\"configType\":\"N\",\"configValue\":\"100\",\"createBy\":\"admin\",\"createTime\":\"2025-12-26 11:29:04\",\"params\":{},\"updateBy\":\"admin\",\"updateTime\":\"2025-12-29 11:40:21\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-07 15:13:45', 21); +INSERT INTO `sys_oper_log` VALUES (903, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.39.66.119', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 20:59:58\",\"delFlag\":\"0\",\"id\":1,\"imageUrl\":\"https://images.iqyjsnwv.com/2026/01/08/b610cc2c_0ct82hv9.jpeg\",\"jumpUrl\":\"https://www.google.com\",\"params\":{},\"position\":0,\"remark\":\"11212\",\"status\":0,\"title\":\"图2\",\"type\":1,\"updateBy\":\"admin\",\"updateTime\":\"2026-01-08 12:56:04\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-08 12:56:05', 11); +INSERT INTO `sys_oper_log` VALUES (904, 'banner管理', 2, 'com.ruoyi.web.controller.ai.AiBannerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/banner', '154.39.66.119', ' ', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-15 21:02:58\",\"delFlag\":\"0\",\"id\":2,\"imageUrl\":\"https://images.iqyjsnwv.com/2026/01/08/f645d954_0ct82hv9.jpeg\",\"jumpUrl\":\"/recharge\",\"params\":{},\"position\":0,\"remark\":\"21212\",\"status\":0,\"title\":\"图1\",\"type\":0,\"updateBy\":\"admin\",\"updateTime\":\"2026-01-08 12:56:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-08 12:56:38', 5); +INSERT INTO `sys_oper_log` VALUES (905, 'AI管理', 2, 'com.ruoyi.web.controller.ai.AiManagerController.edit()', 'PUT', 1, 'admin', '研发部门', '/ai/manager', '2407:cdc0:d002::195', '内网IP', '{\"createBy\":\"admin\",\"createTime\":\"2025-11-13 20:07:47\",\"delFlag\":\"0\",\"id\":5,\"params\":{},\"parentIdSort\":\"\",\"price\":35,\"prompt\":\"跳舞\",\"remark\":\"\",\"status\":1,\"title\":\"快捷生视频\",\"type\":\"21\",\"updateBy\":\"admin\",\"updateTime\":\"2026-01-08 14:58:36\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-08 14:58:36', 6); +INSERT INTO `sys_oper_log` VALUES (906, '修改AI状态', 2, 'com.ruoyi.web.controller.ai.AiManagerController.changeStatus()', 'PUT', 1, 'admin', '研发部门', '/ai/manager/changeStatus', '2407:cdc0:d002::195', '内网IP', '{\"id\":5,\"params\":{},\"status\":0,\"updateBy\":\"admin\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2026-01-08 15:00:03', 7); + +-- ---------------------------- +-- Table structure for sys_post +-- ---------------------------- +DROP TABLE IF EXISTS `sys_post`; +CREATE TABLE `sys_post` ( + `post_id` bigint NOT NULL AUTO_INCREMENT COMMENT '岗位ID', + `post_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码', + `post_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称', + `post_sort` int NOT NULL COMMENT '显示顺序', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '状态(0正常 1停用)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`post_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_post +-- ---------------------------- +INSERT INTO `sys_post` VALUES (1, 'ceo', '董事长', 1, '0', 'admin', '2025-11-09 01:56:51', '', NULL, ''); +INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2025-11-09 01:56:51', '', NULL, ''); +INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2025-11-09 01:56:51', '', NULL, ''); +INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2025-11-09 01:56:52', '', NULL, ''); + +-- ---------------------------- +-- Table structure for sys_role +-- ---------------------------- +DROP TABLE IF EXISTS `sys_role`; +CREATE TABLE `sys_role` ( + `role_id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID', + `role_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称', + `role_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串', + `role_sort` int NOT NULL COMMENT '显示顺序', + `data_scope` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)', + `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示', + `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`role_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_role +-- ---------------------------- +INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2025-11-09 01:56:52', '', NULL, '超级管理员'); +INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 1, 1, '0', '0', 'admin', '2025-11-09 01:56:53', '', NULL, '普通角色'); + +-- ---------------------------- +-- Table structure for sys_role_dept +-- ---------------------------- +DROP TABLE IF EXISTS `sys_role_dept`; +CREATE TABLE `sys_role_dept` ( + `role_id` bigint NOT NULL COMMENT '角色ID', + `dept_id` bigint NOT NULL COMMENT '部门ID', + PRIMARY KEY (`role_id`, `dept_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_role_dept +-- ---------------------------- +INSERT INTO `sys_role_dept` VALUES (2, 100); +INSERT INTO `sys_role_dept` VALUES (2, 101); +INSERT INTO `sys_role_dept` VALUES (2, 105); + +-- ---------------------------- +-- Table structure for sys_role_menu +-- ---------------------------- +DROP TABLE IF EXISTS `sys_role_menu`; +CREATE TABLE `sys_role_menu` ( + `role_id` bigint NOT NULL COMMENT '角色ID', + `menu_id` bigint NOT NULL COMMENT '菜单ID', + PRIMARY KEY (`role_id`, `menu_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_role_menu +-- ---------------------------- +INSERT INTO `sys_role_menu` VALUES (2, 1); +INSERT INTO `sys_role_menu` VALUES (2, 2); +INSERT INTO `sys_role_menu` VALUES (2, 3); +INSERT INTO `sys_role_menu` VALUES (2, 4); +INSERT INTO `sys_role_menu` VALUES (2, 100); +INSERT INTO `sys_role_menu` VALUES (2, 101); +INSERT INTO `sys_role_menu` VALUES (2, 102); +INSERT INTO `sys_role_menu` VALUES (2, 103); +INSERT INTO `sys_role_menu` VALUES (2, 104); +INSERT INTO `sys_role_menu` VALUES (2, 105); +INSERT INTO `sys_role_menu` VALUES (2, 106); +INSERT INTO `sys_role_menu` VALUES (2, 107); +INSERT INTO `sys_role_menu` VALUES (2, 108); +INSERT INTO `sys_role_menu` VALUES (2, 109); +INSERT INTO `sys_role_menu` VALUES (2, 110); +INSERT INTO `sys_role_menu` VALUES (2, 111); +INSERT INTO `sys_role_menu` VALUES (2, 112); +INSERT INTO `sys_role_menu` VALUES (2, 113); +INSERT INTO `sys_role_menu` VALUES (2, 114); +INSERT INTO `sys_role_menu` VALUES (2, 115); +INSERT INTO `sys_role_menu` VALUES (2, 116); +INSERT INTO `sys_role_menu` VALUES (2, 117); +INSERT INTO `sys_role_menu` VALUES (2, 500); +INSERT INTO `sys_role_menu` VALUES (2, 501); +INSERT INTO `sys_role_menu` VALUES (2, 1000); +INSERT INTO `sys_role_menu` VALUES (2, 1001); +INSERT INTO `sys_role_menu` VALUES (2, 1002); +INSERT INTO `sys_role_menu` VALUES (2, 1003); +INSERT INTO `sys_role_menu` VALUES (2, 1004); +INSERT INTO `sys_role_menu` VALUES (2, 1005); +INSERT INTO `sys_role_menu` VALUES (2, 1006); +INSERT INTO `sys_role_menu` VALUES (2, 1007); +INSERT INTO `sys_role_menu` VALUES (2, 1008); +INSERT INTO `sys_role_menu` VALUES (2, 1009); +INSERT INTO `sys_role_menu` VALUES (2, 1010); +INSERT INTO `sys_role_menu` VALUES (2, 1011); +INSERT INTO `sys_role_menu` VALUES (2, 1012); +INSERT INTO `sys_role_menu` VALUES (2, 1013); +INSERT INTO `sys_role_menu` VALUES (2, 1014); +INSERT INTO `sys_role_menu` VALUES (2, 1015); +INSERT INTO `sys_role_menu` VALUES (2, 1016); +INSERT INTO `sys_role_menu` VALUES (2, 1017); +INSERT INTO `sys_role_menu` VALUES (2, 1018); +INSERT INTO `sys_role_menu` VALUES (2, 1019); +INSERT INTO `sys_role_menu` VALUES (2, 1020); +INSERT INTO `sys_role_menu` VALUES (2, 1021); +INSERT INTO `sys_role_menu` VALUES (2, 1022); +INSERT INTO `sys_role_menu` VALUES (2, 1023); +INSERT INTO `sys_role_menu` VALUES (2, 1024); +INSERT INTO `sys_role_menu` VALUES (2, 1025); +INSERT INTO `sys_role_menu` VALUES (2, 1026); +INSERT INTO `sys_role_menu` VALUES (2, 1027); +INSERT INTO `sys_role_menu` VALUES (2, 1028); +INSERT INTO `sys_role_menu` VALUES (2, 1029); +INSERT INTO `sys_role_menu` VALUES (2, 1030); +INSERT INTO `sys_role_menu` VALUES (2, 1031); +INSERT INTO `sys_role_menu` VALUES (2, 1032); +INSERT INTO `sys_role_menu` VALUES (2, 1033); +INSERT INTO `sys_role_menu` VALUES (2, 1034); +INSERT INTO `sys_role_menu` VALUES (2, 1035); +INSERT INTO `sys_role_menu` VALUES (2, 1036); +INSERT INTO `sys_role_menu` VALUES (2, 1037); +INSERT INTO `sys_role_menu` VALUES (2, 1038); +INSERT INTO `sys_role_menu` VALUES (2, 1039); +INSERT INTO `sys_role_menu` VALUES (2, 1040); +INSERT INTO `sys_role_menu` VALUES (2, 1041); +INSERT INTO `sys_role_menu` VALUES (2, 1042); +INSERT INTO `sys_role_menu` VALUES (2, 1043); +INSERT INTO `sys_role_menu` VALUES (2, 1044); +INSERT INTO `sys_role_menu` VALUES (2, 1045); +INSERT INTO `sys_role_menu` VALUES (2, 1046); +INSERT INTO `sys_role_menu` VALUES (2, 1047); +INSERT INTO `sys_role_menu` VALUES (2, 1048); +INSERT INTO `sys_role_menu` VALUES (2, 1049); +INSERT INTO `sys_role_menu` VALUES (2, 1050); +INSERT INTO `sys_role_menu` VALUES (2, 1051); +INSERT INTO `sys_role_menu` VALUES (2, 1052); +INSERT INTO `sys_role_menu` VALUES (2, 1053); +INSERT INTO `sys_role_menu` VALUES (2, 1054); +INSERT INTO `sys_role_menu` VALUES (2, 1055); +INSERT INTO `sys_role_menu` VALUES (2, 1056); +INSERT INTO `sys_role_menu` VALUES (2, 1057); +INSERT INTO `sys_role_menu` VALUES (2, 1058); +INSERT INTO `sys_role_menu` VALUES (2, 1059); +INSERT INTO `sys_role_menu` VALUES (2, 1060); + +-- ---------------------------- +-- Table structure for sys_user +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user`; +CREATE TABLE `sys_user` ( + `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID', + `dept_id` bigint NULL DEFAULT NULL COMMENT '部门ID', + `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号', + `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称', + `user_type` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)', + `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户邮箱', + `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码', + `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)', + `avatar` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '头像地址', + `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码', + `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '账号状态(0正常 1停用)', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP', + `login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间', + `pwd_update_date` datetime NULL DEFAULT NULL COMMENT '密码最后更新时间', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + PRIMARY KEY (`user_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_user +-- ---------------------------- +INSERT INTO `sys_user` VALUES (1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$xxx1Q9IhRa16pTosOZq03eUi2lIaSWu52pH8YgWA6BZqmzQnKiHE.', '0', '0', '188.253.116.99', '2026-01-07 15:13:15', '2025-11-28 07:57:52', 'admin', '2025-11-09 01:56:50', '', '2026-01-07 15:13:15', '管理员'); +INSERT INTO `sys_user` VALUES (2, 105, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2025-11-09 01:56:50', '2025-11-09 01:56:50', 'admin', '2025-11-09 01:56:50', '', NULL, '测试员'); + +-- ---------------------------- +-- Table structure for sys_user_post +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user_post`; +CREATE TABLE `sys_user_post` ( + `user_id` bigint NOT NULL COMMENT '用户ID', + `post_id` bigint NOT NULL COMMENT '岗位ID', + PRIMARY KEY (`user_id`, `post_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_user_post +-- ---------------------------- +INSERT INTO `sys_user_post` VALUES (1, 1); +INSERT INTO `sys_user_post` VALUES (2, 2); + +-- ---------------------------- +-- Table structure for sys_user_role +-- ---------------------------- +DROP TABLE IF EXISTS `sys_user_role`; +CREATE TABLE `sys_user_role` ( + `user_id` bigint NOT NULL COMMENT '用户ID', + `role_id` bigint NOT NULL COMMENT '角色ID', + PRIMARY KEY (`user_id`, `role_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of sys_user_role +-- ---------------------------- +INSERT INTO `sys_user_role` VALUES (1, 1); +INSERT INTO `sys_user_role` VALUES (1, 2); +INSERT INTO `sys_user_role` VALUES (2, 2); + +-- ---------------------------- +-- Table structure for user_message +-- ---------------------------- +DROP TABLE IF EXISTS `user_message`; +CREATE TABLE `user_message` ( + `user_id` bigint NOT NULL COMMENT '用户ID', + `message_id` bigint NOT NULL COMMENT '消息ID', + PRIMARY KEY (`user_id`, `message_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户消息关系表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of user_message +-- ---------------------------- +INSERT INTO `user_message` VALUES (1, 1); +INSERT INTO `user_message` VALUES (1, 2); +INSERT INTO `user_message` VALUES (1, 4); +INSERT INTO `user_message` VALUES (2, 1); +INSERT INTO `user_message` VALUES (2, 2); +INSERT INTO `user_message` VALUES (2, 3); +INSERT INTO `user_message` VALUES (2, 4); + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/sql/quartz.sql b/sql/quartz.sql new file mode 100644 index 0000000..cee613b --- /dev/null +++ b/sql/quartz.sql @@ -0,0 +1,174 @@ +DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS; +DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE; +DROP TABLE IF EXISTS QRTZ_LOCKS; +DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_TRIGGERS; +DROP TABLE IF EXISTS QRTZ_JOB_DETAILS; +DROP TABLE IF EXISTS QRTZ_CALENDARS; + +-- ---------------------------- +-- 1、存储每一个已配置的 jobDetail 的详细信息 +-- ---------------------------- +create table QRTZ_JOB_DETAILS ( + sched_name varchar(120) not null comment '调度名称', + job_name varchar(200) not null comment '任务名称', + job_group varchar(200) not null comment '任务组名', + description varchar(250) null comment '相关介绍', + job_class_name varchar(250) not null comment '执行任务类名称', + is_durable varchar(1) not null comment '是否持久化', + is_nonconcurrent varchar(1) not null comment '是否并发', + is_update_data varchar(1) not null comment '是否更新数据', + requests_recovery varchar(1) not null comment '是否接受恢复执行', + job_data blob null comment '存放持久化job对象', + primary key (sched_name, job_name, job_group) +) engine=innodb comment = '任务详细信息表'; + +-- ---------------------------- +-- 2、 存储已配置的 Trigger 的信息 +-- ---------------------------- +create table QRTZ_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + trigger_name varchar(200) not null comment '触发器的名字', + trigger_group varchar(200) not null comment '触发器所属组的名字', + job_name varchar(200) not null comment 'qrtz_job_details表job_name的外键', + job_group varchar(200) not null comment 'qrtz_job_details表job_group的外键', + description varchar(250) null comment '相关介绍', + next_fire_time bigint(13) null comment '上一次触发时间(毫秒)', + prev_fire_time bigint(13) null comment '下一次触发时间(默认为-1表示不触发)', + priority integer null comment '优先级', + trigger_state varchar(16) not null comment '触发器状态', + trigger_type varchar(8) not null comment '触发器的类型', + start_time bigint(13) not null comment '开始时间', + end_time bigint(13) null comment '结束时间', + calendar_name varchar(200) null comment '日程表名称', + misfire_instr smallint(2) null comment '补偿执行的策略', + job_data blob null comment '存放持久化job对象', + primary key (sched_name, trigger_name, trigger_group), + foreign key (sched_name, job_name, job_group) references QRTZ_JOB_DETAILS(sched_name, job_name, job_group) +) engine=innodb comment = '触发器详细信息表'; + +-- ---------------------------- +-- 3、 存储简单的 Trigger,包括重复次数,间隔,以及已触发的次数 +-- ---------------------------- +create table QRTZ_SIMPLE_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + repeat_count bigint(7) not null comment '重复的次数统计', + repeat_interval bigint(12) not null comment '重复的间隔时间', + times_triggered bigint(10) not null comment '已经触发的次数', + primary key (sched_name, trigger_name, trigger_group), + foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group) +) engine=innodb comment = '简单触发器的信息表'; + +-- ---------------------------- +-- 4、 存储 Cron Trigger,包括 Cron 表达式和时区信息 +-- ---------------------------- +create table QRTZ_CRON_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + cron_expression varchar(200) not null comment 'cron表达式', + time_zone_id varchar(80) comment '时区', + primary key (sched_name, trigger_name, trigger_group), + foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group) +) engine=innodb comment = 'Cron类型的触发器表'; + +-- ---------------------------- +-- 5、 Trigger 作为 Blob 类型存储(用于 Quartz 用户用 JDBC 创建他们自己定制的 Trigger 类型,JobStore 并不知道如何存储实例的时候) +-- ---------------------------- +create table QRTZ_BLOB_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + blob_data blob null comment '存放持久化Trigger对象', + primary key (sched_name, trigger_name, trigger_group), + foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group) +) engine=innodb comment = 'Blob类型的触发器表'; + +-- ---------------------------- +-- 6、 以 Blob 类型存储存放日历信息, quartz可配置一个日历来指定一个时间范围 +-- ---------------------------- +create table QRTZ_CALENDARS ( + sched_name varchar(120) not null comment '调度名称', + calendar_name varchar(200) not null comment '日历名称', + calendar blob not null comment '存放持久化calendar对象', + primary key (sched_name, calendar_name) +) engine=innodb comment = '日历信息表'; + +-- ---------------------------- +-- 7、 存储已暂停的 Trigger 组的信息 +-- ---------------------------- +create table QRTZ_PAUSED_TRIGGER_GRPS ( + sched_name varchar(120) not null comment '调度名称', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + primary key (sched_name, trigger_group) +) engine=innodb comment = '暂停的触发器表'; + +-- ---------------------------- +-- 8、 存储与已触发的 Trigger 相关的状态信息,以及相联 Job 的执行信息 +-- ---------------------------- +create table QRTZ_FIRED_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + entry_id varchar(95) not null comment '调度器实例id', + trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + instance_name varchar(200) not null comment '调度器实例名', + fired_time bigint(13) not null comment '触发的时间', + sched_time bigint(13) not null comment '定时器制定的时间', + priority integer not null comment '优先级', + state varchar(16) not null comment '状态', + job_name varchar(200) null comment '任务名称', + job_group varchar(200) null comment '任务组名', + is_nonconcurrent varchar(1) null comment '是否并发', + requests_recovery varchar(1) null comment '是否接受恢复执行', + primary key (sched_name, entry_id) +) engine=innodb comment = '已触发的触发器表'; + +-- ---------------------------- +-- 9、 存储少量的有关 Scheduler 的状态信息,假如是用于集群中,可以看到其他的 Scheduler 实例 +-- ---------------------------- +create table QRTZ_SCHEDULER_STATE ( + sched_name varchar(120) not null comment '调度名称', + instance_name varchar(200) not null comment '实例名称', + last_checkin_time bigint(13) not null comment '上次检查时间', + checkin_interval bigint(13) not null comment '检查间隔时间', + primary key (sched_name, instance_name) +) engine=innodb comment = '调度器状态表'; + +-- ---------------------------- +-- 10、 存储程序的悲观锁的信息(假如使用了悲观锁) +-- ---------------------------- +create table QRTZ_LOCKS ( + sched_name varchar(120) not null comment '调度名称', + lock_name varchar(40) not null comment '悲观锁名称', + primary key (sched_name, lock_name) +) engine=innodb comment = '存储的悲观锁信息表'; + +-- ---------------------------- +-- 11、 Quartz集群实现同步机制的行锁表 +-- ---------------------------- +create table QRTZ_SIMPROP_TRIGGERS ( + sched_name varchar(120) not null comment '调度名称', + trigger_name varchar(200) not null comment 'qrtz_triggers表trigger_name的外键', + trigger_group varchar(200) not null comment 'qrtz_triggers表trigger_group的外键', + str_prop_1 varchar(512) null comment 'String类型的trigger的第一个参数', + str_prop_2 varchar(512) null comment 'String类型的trigger的第二个参数', + str_prop_3 varchar(512) null comment 'String类型的trigger的第三个参数', + int_prop_1 int null comment 'int类型的trigger的第一个参数', + int_prop_2 int null comment 'int类型的trigger的第二个参数', + long_prop_1 bigint null comment 'long类型的trigger的第一个参数', + long_prop_2 bigint null comment 'long类型的trigger的第二个参数', + dec_prop_1 numeric(13,4) null comment 'decimal类型的trigger的第一个参数', + dec_prop_2 numeric(13,4) null comment 'decimal类型的trigger的第二个参数', + bool_prop_1 varchar(1) null comment 'Boolean类型的trigger的第一个参数', + bool_prop_2 varchar(1) null comment 'Boolean类型的trigger的第二个参数', + primary key (sched_name, trigger_name, trigger_group), + foreign key (sched_name, trigger_name, trigger_group) references QRTZ_TRIGGERS(sched_name, trigger_name, trigger_group) +) engine=innodb comment = '同步机制的行锁表'; + +commit; \ No newline at end of file