2
0

77 Коммиты 64d5b62d26 ... 492759d494

Автор SHA1 Сообщение Дата
  tangzetong 492759d494 Merge branch 'blue' of http://39.105.160.25:10880/post-project-api/post 2 лет назад
  tangzetong 5c32fead2e 发行方sql 2 лет назад
  tangzetong 0daa67d549 发行方sql 2 лет назад
  tangzetong af1237bc49 发行方sql 2 лет назад
  tangzetong 25cee5928f Merge branch 'blue' of http://39.105.160.25:10880/post-project-api/post 2 лет назад
  tangzetong ea3b459efe Merge branch 'blue' of http://39.105.160.25:10880/post-project-api/post 2 лет назад
  sifu-gogs 8f55377458 删除 'docker-compose.yml' 2 лет назад
  sifu-gogs 2f9f0f67d8 删除 'Dockerfile' 2 лет назад
  sifu-gogs 792eb3c0ba 删除 'Jenkinsfile' 2 лет назад
  wuheng 1e521ef6f8 build 2 лет назад
  wuheng fb199a0d5f build 2 лет назад
  wuheng 9237f27cc3 build 2 лет назад
  sifu-gogs a5b251bd12 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 08bb216d9a 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 5e7e227a18 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 95d96b7021 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 6e16e4aad2 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 876da56edf 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs ec6a528877 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 78073c172f 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 7480e8f28b 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 34a11cedcd 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs b33cd4e779 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 8e0cfc8d13 更新 'Dockerfile' 2 лет назад
  sifu-gogs 40ba92851f 更新 'ruoyi-admin/src/main/resources/application.yml' 2 лет назад
  sifu-gogs 7c58870625 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs fafbd93f2a 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 6fd3852820 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 93a64773c5 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 14f04ca346 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs b899a0702b 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 7265fa2a3a 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs fdbc3074d4 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 0031b5ab9c 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 3395dad532 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 72d343804c 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 69b63ed21e 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 1d28565419 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs ea73bd9f45 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs f348fd44c2 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 6c08ab075c 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 4c26368d00 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 6c1d5418cf 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs abfd2d8e67 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 5c7918ab13 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs f76459eeb4 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 5805fe7235 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs d5bf91c308 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 9ecad58d3d 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs b5a4900498 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs e9e68c395d 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 8c5f56eb53 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 354be9e126 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 266287319a 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 96ca7e674f 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs b5122d615c 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs b361d06a83 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 213c028e89 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 3e69913a3c 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 4c348ec994 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 5e5f799d96 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 146c84db2a 更新 'docker-compose.yml' 2 лет назад
  sifu-gogs 553948ac69 更新 'ruoyi-admin/src/main/resources/application-druid.yml' 2 лет назад
  sifu-gogs 2e3fcba9b8 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs c28fc62609 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs a092c6ba83 添加 'docker-compose.yml' 2 лет назад
  sifu-gogs 6e92205e97 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs d6f0ccec40 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 1fc023cc9c 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 008ccdabc1 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs bf9445eef2 更新 'Dockerfile' 2 лет назад
  sifu-gogs 547c682351 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs dd2e27312f 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs 293eca023e 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs e77af82f40 添加 'Dockerfile' 2 лет назад
  sifu-gogs cf23e8cf90 更新 'Jenkinsfile' 2 лет назад
  sifu-gogs efaf43aabd 构建 2 лет назад

+ 108 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/PoIssuerController.java

@@ -0,0 +1,108 @@
+package com.ruoyi.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import io.swagger.annotations.ApiOperation;
+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.system.domain.PoIssuer;
+import com.ruoyi.system.service.IPoIssuerService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 发行人信息操作处理Controller
+ *
+ * @author ruoyi
+ * @date 2023-02-18
+ */
+@RestController
+@RequestMapping("/system/issuer")
+public class PoIssuerController extends BaseController
+{
+    @Autowired
+    private IPoIssuerService poIssuerService;
+
+    /**
+     * 查询发行人列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(PoIssuer poIssuer)
+    {
+        startPage();
+        List<PoIssuer> list = poIssuerService.selectPoIssuerList(poIssuer);
+        return getDataTable(list);
+    }
+
+    /**
+     * 获取发行人列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:export')")
+    @Log(title = "获取发行人列表", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, PoIssuer poIssuer)
+    {
+        List<PoIssuer> list = poIssuerService.selectPoIssuerList(poIssuer);
+        ExcelUtil<PoIssuer> util = new ExcelUtil<PoIssuer>(PoIssuer.class);
+        util.exportExcel(response, list, "发行人数据");
+    }
+
+    /**
+     * 根据发行人编号获取详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:query')")
+    @GetMapping(value = "/{issuerId}")
+    public AjaxResult getInfo(@PathVariable("issuerId") Long issuerId)
+    {
+        return success(poIssuerService.selectPoIssuerByIssuerId(issuerId));
+    }
+
+    /**
+     * 新增发行人
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:add')")
+    @Log(title = "新增发行人", businessType = BusinessType.INSERT)
+    @ApiOperation("新增发行人")
+    @PostMapping
+    public AjaxResult add(@RequestBody PoIssuer poIssuer)
+    {
+        return toAjax(poIssuerService.insertPoIssuer(poIssuer));
+    }
+
+    /**
+     * 修改发行人
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:edit')")
+    @Log(title = "修改发行人", businessType = BusinessType.UPDATE)
+    @ApiOperation("修改发行人")
+    @PutMapping
+    public AjaxResult edit(@RequestBody PoIssuer poIssuer)
+    {
+        return toAjax(poIssuerService.updatePoIssuer(poIssuer));
+    }
+
+    /**
+     * 删除发行人
+     */
+    @PreAuthorize("@ss.hasPermi('system:issuer:remove')")
+    @Log(title = "删除发行人", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{issuerIds}")
+    public AjaxResult remove(@PathVariable Long[] issuerIds)
+    {
+        return toAjax(poIssuerService.deletePoIssuerByIssuerIds(issuerIds));
+    }
+}

+ 78 - 78
ruoyi-admin/src/main/resources/application-druid.yml

@@ -1,79 +1,79 @@
-# 数据源配置
-spring:
-    datasource:
-        type: com.alibaba.druid.pool.DruidDataSource
-        driverClassName: com.mysql.cj.jdbc.Driver
-        druid:
-            # 主库数据源
-            master:
-                url: jdbc:mysql://localhost:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
-                username: root
-                password: zhangyang0311
-            # 从库数据源
-            slave:
-                # 从数据源开关/默认关闭
-                enabled: false
-                url: 
-                username: 
-                password: 
-            # 初始连接数
-            initialSize: 5
-            # 最小连接池数量
-            minIdle: 10
-            # 最大连接池数量
-            maxActive: 20
-            # 配置获取连接等待超时的时间
-            maxWait: 60000
-            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-            timeBetweenEvictionRunsMillis: 60000
-            # 配置一个连接在池中最小生存的时间,单位是毫秒
-            minEvictableIdleTimeMillis: 300000
-            # 配置一个连接在池中最大生存的时间,单位是毫秒
-            maxEvictableIdleTimeMillis: 900000
-            # 配置检测连接是否有效
-            validationQuery: SELECT 1 FROM DUAL
-            testWhileIdle: true
-            testOnBorrow: false
-            testOnReturn: false
-            webStatFilter: 
-                enabled: true
-            statViewServlet:
-                enabled: true
-                # 设置白名单,不填则允许所有访问
-                allow:
-                url-pattern: /druid/*
-                # 控制台管理用户名和密码
-                login-username: admin
-                login-password: 123456
-            filter:
-                stat:
-                    enabled: true
-                    # 慢SQL记录
-                    log-slow-sql: true
-                    slow-sql-millis: 1000
-                    merge-sql: false
-                wall:
-                    config:
-                        multi-statement-allow: true   
-    # redis 配置
-    redis:
-        # 地址
-        host: localhost
-        # 端口,默认为6379
-        port: 6379
-        # 数据库索引
-        database: 0
-        # 密码
-        password: 
-        # 连接超时时间
-        timeout: 10s
-        lettuce:
-          pool:
-            # 连接池中的最小空闲连接
-            min-idle: 0
-            # 连接池中的最大空闲连接
-            max-idle: 8
-            # 连接池的最大数据库连接数
-            max-active: 8
-            # #连接池最大阻塞等待时间(使用负值表示没有限制)
+# 数据源配置
+spring:
+    datasource:
+        type: com.alibaba.druid.pool.DruidDataSource
+        driverClassName: com.mysql.cj.jdbc.Driver
+        druid:
+            # 主库数据源
+            master:
+                url: jdbc:mysql://localhost:3306/digital post office app?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true
+                username: root
+                password: 123456
+            # 从库数据源
+            slave:
+                # 从数据源开关/默认关闭
+                enabled: false
+                url:
+                username:
+                password:
+            # 初始连接数
+            initialSize: 5
+            # 最小连接池数量
+            minIdle: 10
+            # 最大连接池数量
+            maxActive: 20
+            # 配置获取连接等待超时的时间
+            maxWait: 60000
+            # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
+            timeBetweenEvictionRunsMillis: 60000
+            # 配置一个连接在池中最小生存的时间,单位是毫秒
+            minEvictableIdleTimeMillis: 300000
+            # 配置一个连接在池中最大生存的时间,单位是毫秒
+            maxEvictableIdleTimeMillis: 900000
+            # 配置检测连接是否有效
+            validationQuery: SELECT 1 FROM DUAL
+            testWhileIdle: true
+            testOnBorrow: false
+            testOnReturn: false
+            webStatFilter:
+                enabled: true
+            statViewServlet:
+                enabled: true
+                # 设置白名单,不填则允许所有访问
+                allow:
+                url-pattern: /druid/*
+                # 控制台管理用户名和密码
+                login-username: admin
+                login-password: 123456
+            filter:
+                stat:
+                    enabled: true
+                    # 慢SQL记录
+                    log-slow-sql: true
+                    slow-sql-millis: 1000
+                    merge-sql: false
+                wall:
+                    config:
+                        multi-statement-allow: true
+    # redis 配置
+    redis:
+        # 地址
+        host: localhost
+        # 端口,默认为6379
+        port: 6379
+        # 数据库索引
+        database: 0
+        # 密码
+        password:
+        # 连接超时时间
+        timeout: 10s
+        lettuce:
+          pool:
+            # 连接池中的最小空闲连接
+            min-idle: 0
+            # 连接池中的最大空闲连接
+            max-idle: 8
+            # 连接池的最大数据库连接数
+            max-active: 8
+            # #连接池最大阻塞等待时间(使用负值表示没有限制)
             max-wait: -1ms

+ 176 - 176
ruoyi-admin/src/main/resources/application.yml

@@ -1,176 +1,176 @@
-# 项目相关配置
-ruoyi:
-  # 名称
-  name: RuoYi
-  # 版本
-  version: 3.8.5
-  # 版权年份
-  copyrightYear: 2023
-  # 实例演示开关
-  demoEnabled: true
-  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
-  profile: ./
-  # 获取ip地址开关
-  addressEnabled: false
-  # 验证码类型 math 数组计算 char 字符验证
-  captchaType: math
-
-# 开发环境配置
-server:
-  # 服务器的HTTP端口,默认为8080
-  port: 8080
-  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:
-  # 资源信息
-  messages:
-    # 国际化资源文件路径
-    basename: i18n/messages
-  profiles: 
-    active: druid
-  # 文件上传
-  servlet:
-     multipart:
-       # 单个文件大小
-       max-file-size:  10MB
-       # 设置总上传的文件大小
-       max-request-size:  20MB
-  # 服务模块
-  devtools:
-    restart:
-      # 热部署开关
-      enabled: true
-    # redis 配置
-  redis:
-    # 地址
-    host: localhost
-    # 端口,默认为6379
-    port: 6379
-    # 数据库索引
-    database: 0
-    # 密码
-    password: 
-    # 连接超时时间
-    timeout: 10s
-    lettuce:
-      pool:
-        # 连接池中的最小空闲连接
-        min-idle: 0
-        # 连接池中的最大空闲连接
-        max-idle: 8
-        # 连接池的最大数据库连接数
-        max-active: 8
-        # #连接池最大阻塞等待时间(使用负值表示没有限制)
-        max-wait: -1ms
-
-# token配置
-token:
-    # 令牌自定义标识
-    header: Authorization
-    # 令牌密钥
-    secret: abcdefghijklmnopqrstuvwxyz
-    # 令牌有效期(默认30分钟)
-    expireTime: 30
-  
-## MyBatis配置
-#mybatis:
-#    # 搜索指定包别名
-#    typeAliasesPackage: com.ruoyi.**.domain
-#    # 配置mapper的扫描,找到所有的mapper.xml映射文件
-#    mapperLocations: classpath*:mapper/**/*Mapper.xml
-#    # 加载全局的配置文件
-#    configLocation: classpath:mybatis/mybatis-config.xml
-# MyBatis Plus配置
-mybatis-plus:
-  # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
-  # 例如 com.**.**.mapper
-  mapperPackage: com.ruoyi.**.mapper
-
-
-  # 对应的 XML 文件位置
-  mapperLocations: classpath*:mapper/**/*Mapper.xml
-  # 实体扫描,多个package用逗号或者分号分隔
-  typeAliasesPackage: com.ruoyi.**.domain
-  # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
-  checkConfigLocation: false
-  configuration:
-    # 自动驼峰命名规则(camel case)映射
-    mapUnderscoreToCamelCase: true
-    # MyBatis 自动映射策略
-    # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
-    autoMappingBehavior: PARTIAL
-    # MyBatis 自动映射时未知列或未知属性处理策
-    # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
-    autoMappingUnknownColumnBehavior: NONE
-    # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
-    # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
-    # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
-    logImpl: org.apache.ibatis.logging.slf4j.Slf4jImpl
-  global-config:
-    # 是否打印 Logo banner
-    banner: false
-    dbConfig:
-      # 主键类型
-      # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
-      idType: ASSIGN_ID
-      # 逻辑已删除值
-      logicDeleteValue: 2
-      # 逻辑未删除值
-      logicNotDeleteValue: 0
-      # 字段验证策略之 insert,在 insert 的时候的字段验证策略
-      # IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
-      insertStrategy: NOT_NULL
-      # 字段验证策略之 update,在 update 的时候的字段验证策略
-      updateStrategy: NOT_NULL
-      # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
-      where-strategy: NOT_NULL
-
-
-# PageHelper分页插件
-pagehelper: 
-  helperDialect: mysql
-  supportMethodsArguments: true
-  params: count=countSql 
-
-# Swagger配置
-swagger:
-  # 是否开启swagger
-  enabled: true
-  # 请求前缀
-  pathMapping: /dev-api
-
-# 防止XSS攻击
-xss: 
-  # 过滤开关
-  enabled: true
-  # 排除链接(多个用逗号分隔)
-  excludes: /system/notice
-  # 匹配链接
-  urlPatterns: /system/*,/monitor/*,/tool/*
+# 项目相关配置
+ruoyi:
+  # 名称
+  name: RuoYi
+  # 版本
+  version: 3.8.5
+  # 版权年份
+  copyrightYear: 2023
+  # 实例演示开关
+  demoEnabled: true
+  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
+  profile: ./
+  # 获取ip地址开关
+  addressEnabled: false
+  # 验证码类型 math 数组计算 char 字符验证
+  captchaType: math
+
+# 开发环境配置
+server:
+  # 服务器的HTTP端口,默认为8080
+  port: 8080
+  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:
+  # 资源信息
+  messages:
+    # 国际化资源文件路径
+    basename: i18n/messages
+  profiles: 
+    active: druid
+  # 文件上传
+  servlet:
+     multipart:
+       # 单个文件大小
+       max-file-size:  10MB
+       # 设置总上传的文件大小
+       max-request-size:  20MB
+  # 服务模块
+  devtools:
+    restart:
+      # 热部署开关
+      enabled: true
+    # redis 配置
+  redis:
+    # 地址
+    host: localhost
+    # 端口,默认为6379
+    port: 6379
+    # 数据库索引
+    database: 0
+    # 密码
+    password: 
+    # 连接超时时间
+    timeout: 10s
+    lettuce:
+      pool:
+        # 连接池中的最小空闲连接
+        min-idle: 0
+        # 连接池中的最大空闲连接
+        max-idle: 8
+        # 连接池的最大数据库连接数
+        max-active: 8
+        # #连接池最大阻塞等待时间(使用负值表示没有限制)
+        max-wait: -1ms
+
+# token配置
+token:
+    # 令牌自定义标识
+    header: Authorization
+    # 令牌密钥
+    secret: abcdefghijklmnopqrstuvwxyz
+    # 令牌有效期(默认30分钟)
+    expireTime: 30
+  
+## MyBatis配置
+#mybatis:
+#    # 搜索指定包别名
+#    typeAliasesPackage: com.ruoyi.**.domain
+#    # 配置mapper的扫描,找到所有的mapper.xml映射文件
+#    mapperLocations: classpath*:mapper/**/*Mapper.xml
+#    # 加载全局的配置文件
+#    configLocation: classpath:mybatis/mybatis-config.xml
+# MyBatis Plus配置
+mybatis-plus:
+  # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
+  # 例如 com.**.**.mapper
+  mapperPackage: com.ruoyi.**.mapper
+
+
+  # 对应的 XML 文件位置
+  mapperLocations: classpath*:mapper/**/*Mapper.xml
+  # 实体扫描,多个package用逗号或者分号分隔
+  typeAliasesPackage: com.ruoyi.**.domain
+  # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
+  checkConfigLocation: false
+  configuration:
+    # 自动驼峰命名规则(camel case)映射
+    mapUnderscoreToCamelCase: true
+    # MyBatis 自动映射策略
+    # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
+    autoMappingBehavior: PARTIAL
+    # MyBatis 自动映射时未知列或未知属性处理策
+    # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
+    autoMappingUnknownColumnBehavior: NONE
+    # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
+    # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
+    # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
+    logImpl: org.apache.ibatis.logging.slf4j.Slf4jImpl
+  global-config:
+    # 是否打印 Logo banner
+    banner: false
+    dbConfig:
+      # 主键类型
+      # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
+      idType: ASSIGN_ID
+      # 逻辑已删除值
+      logicDeleteValue: 2
+      # 逻辑未删除值
+      logicNotDeleteValue: 0
+      # 字段验证策略之 insert,在 insert 的时候的字段验证策略
+      # IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
+      insertStrategy: NOT_NULL
+      # 字段验证策略之 update,在 update 的时候的字段验证策略
+      updateStrategy: NOT_NULL
+      # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
+      where-strategy: NOT_NULL
+
+
+# PageHelper分页插件
+pagehelper: 
+  helperDialect: mysql
+  supportMethodsArguments: true
+  params: count=countSql 
+
+# Swagger配置
+swagger:
+  # 是否开启swagger
+  enabled: true
+  # 请求前缀
+  pathMapping: /dev-api
+
+# 防止XSS攻击
+xss: 
+  # 过滤开关
+  enabled: true
+  # 排除链接(多个用逗号分隔)
+  excludes: /system/notice
+  # 匹配链接
+  urlPatterns: /system/*,/monitor/*,/tool/*

+ 111 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/PoIssuer.java

@@ -0,0 +1,111 @@
+package com.ruoyi.system.domain;
+
+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;
+
+/**
+ * 发行人对象 po_issuer
+ *
+ * @author ruoyi
+ * @date 2023-02-18
+ */
+public class PoIssuer extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 发行商Id */
+    private Long issuerId;
+
+    /** 发行商名字 */
+    @Excel(name = "发行商名字")
+    private String issuerName;
+
+    /** 发行商电话 */
+    @Excel(name = "发行商电话")
+    private String issuerPhone;
+
+    /** 发行商地址 */
+    @Excel(name = "发行商地址")
+    private String issuerAddress;
+
+    /** 藏品名称 */
+    @Excel(name = "藏品名称")
+    private String collectionTitle;
+
+    /** 是否删除(0是 1否) */
+    private String delFlag;
+
+    public void setIssuerId(Long issuerId)
+    {
+        this.issuerId = issuerId;
+    }
+
+    public Long getIssuerId()
+    {
+        return issuerId;
+    }
+    public void setIssuerName(String issuerName)
+    {
+        this.issuerName = issuerName;
+    }
+
+    public String getIssuerName()
+    {
+        return issuerName;
+    }
+    public void setIssuerPhone(String issuerPhone)
+    {
+        this.issuerPhone = issuerPhone;
+    }
+
+    public String getIssuerPhone()
+    {
+        return issuerPhone;
+    }
+    public void setIssuerAddress(String issuerAddress)
+    {
+        this.issuerAddress = issuerAddress;
+    }
+
+    public String getIssuerAddress()
+    {
+        return issuerAddress;
+    }
+    public void setCollectionTitle(String collectionTitle)
+    {
+        this.collectionTitle = collectionTitle;
+    }
+
+    public String getCollectionTitle()
+    {
+        return collectionTitle;
+    }
+    public void setDelFlag(String delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public String getDelFlag()
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("issuerId", getIssuerId())
+                .append("issuerName", getIssuerName())
+                .append("issuerPhone", getIssuerPhone())
+                .append("issuerAddress", getIssuerAddress())
+                .append("collectionTitle", getCollectionTitle())
+                .append("createBy", getCreateBy())
+                .append("createTime", getCreateTime())
+                .append("updateTime", getUpdateTime())
+                .append("updateBy", getUpdateBy())
+                .append("remark", getRemark())
+                .append("delFlag", getDelFlag())
+                .toString();
+    }
+}

+ 63 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/PoIssuerMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.PoIssuer;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * 发行人Mapper接口
+ *
+ * @author ruoyi
+ * @date 2023-02-18
+ */
+@Mapper
+public interface PoIssuerMapper
+{
+    /**
+     * 查询发行人信息
+     *
+     * @param issuerId 发行人ID
+     * @return 发行人信息
+     */
+    public PoIssuer selectPoIssuerByIssuerId(Long issuerId);
+
+    /**
+     * 查询发行人列表
+     *
+     * @param poIssuer 发行人信息
+     * @return 发行人集合
+     */
+    public List<PoIssuer> selectPoIssuerList(PoIssuer poIssuer);
+
+    /**
+     * 新增发行人
+     *
+     * @param poIssuer 发行人信息
+     * @return 结果
+     */
+    public int insertPoIssuer(PoIssuer poIssuer);
+
+    /**
+     * 修改发行人
+     *
+     * @param poIssuer 发行人信息
+     * @return 结果
+     */
+    public int updatePoIssuer(PoIssuer poIssuer);
+
+    /**
+     * 删除发行人
+     *
+     * @param issuerId 发行人信息
+     * @return 结果
+     */
+    public int deletePoIssuerByIssuerId(Long issuerId);
+
+    /**
+     * 批量删除发行人
+     *
+     * @param issuerIds 需要删除的发行人ID
+     * @return 结果
+     */
+    public int deletePoIssuerByIssuerIds(Long[] issuerIds);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IPoIssuerService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.PoIssuer;
+
+/**
+ * 发行人Service接口
+ *
+ * @author ruoyi
+ * @date 2023-02-18
+ */
+public interface IPoIssuerService
+{
+    /**
+     * 查询发行人
+     *
+     * @param issuerId 发行人ID
+     * @return 发行人信息
+     */
+    public PoIssuer selectPoIssuerByIssuerId(Long issuerId);
+
+    /**
+     * 查询发行人列表
+     *
+     * @param poIssuer
+     * @return
+     */
+    public List<PoIssuer> selectPoIssuerList(PoIssuer poIssuer);
+
+    /**
+     * 新增发行人
+     *
+     * @param poIssuer 发行人信息
+     * @return 结果
+     */
+    public int insertPoIssuer(PoIssuer poIssuer);
+
+    /**
+     * 修改发行人
+     *
+     * @param poIssuer 发行人信息
+     * @return 结果
+     */
+    public int updatePoIssuer(PoIssuer poIssuer);
+
+    /**
+     * 批量删除发行人
+     *
+     * @param issuerIds
+     * @return
+     */
+    public int deletePoIssuerByIssuerIds(Long[] issuerIds);
+
+    /**
+     * 删除发行人
+     *
+     * @param issuerId 发行人ID
+     * @return
+     */
+    public int deletePoIssuerByIssuerId(Long issuerId);
+}

+ 96 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/PoIssuerServiceImpl.java

@@ -0,0 +1,96 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.PoIssuerMapper;
+import com.ruoyi.system.domain.PoIssuer;
+import com.ruoyi.system.service.IPoIssuerService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2023-02-18
+ */
+@Service
+public class PoIssuerServiceImpl implements IPoIssuerService
+{
+    @Autowired
+    private PoIssuerMapper poIssuerMapper;
+
+    /**
+     * 查询发行人
+     *
+     * @param issuerId 发行人ID
+     * @return 发行人信息
+     */
+    @Override
+    public PoIssuer selectPoIssuerByIssuerId(Long issuerId)
+    {
+        return poIssuerMapper.selectPoIssuerByIssuerId(issuerId);
+    }
+
+    /**
+     * 查询发行人列表
+     *
+     * @param poIssuer
+     * @return
+     */
+    @Override
+    public List<PoIssuer> selectPoIssuerList(PoIssuer poIssuer)
+    {
+        return poIssuerMapper.selectPoIssuerList(poIssuer);
+    }
+
+    /**
+     * 新增发行人
+     *
+     * @param poIssuer
+     * @return
+     */
+    @Override
+    public int insertPoIssuer(PoIssuer poIssuer)
+    {
+        poIssuer.setCreateTime(DateUtils.getNowDate());
+        return poIssuerMapper.insertPoIssuer(poIssuer);
+    }
+
+    /**
+     * 修改发行人
+     *
+     * @param poIssuer
+     * @return
+     */
+    @Override
+    public int updatePoIssuer(PoIssuer poIssuer)
+    {
+        poIssuer.setUpdateTime(DateUtils.getNowDate());
+        return poIssuerMapper.updatePoIssuer(poIssuer);
+    }
+
+    /**
+     * 批量删除发行人
+     *
+     * @param issuerIds 需要删除的发行人主键
+     * @return
+     */
+    @Override
+    public int deletePoIssuerByIssuerIds(Long[] issuerIds)
+    {
+        return poIssuerMapper.deletePoIssuerByIssuerIds(issuerIds);
+    }
+
+    /**
+     * 删除发行人信息
+     *
+     * @param issuerId 发行人主键
+     * @return
+     */
+    @Override
+    public int deletePoIssuerByIssuerId(Long issuerId)
+    {
+        return poIssuerMapper.deletePoIssuerByIssuerId(issuerId);
+    }
+}

+ 95 - 0
ruoyi-system/src/main/resources/mapper/system/PoIssuerMapper.xml

@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.system.mapper.PoIssuerMapper">
+
+    <resultMap type="PoIssuer" id="PoIssuerResult">
+        <result property="issuerId"    column="issuer_id"    />
+        <result property="issuerName"    column="issuer_name"    />
+        <result property="issuerPhone"    column="issuer_phone"    />
+        <result property="issuerAddress"    column="issuer_address"    />
+        <result property="collectionTitle"    column="collection_title"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="remark"    column="remark"    />
+        <result property="delFlag"    column="del_flag"    />
+    </resultMap>
+
+    <sql id="selectPoIssuerVo">
+        select issuer_id, issuer_name, issuer_phone, issuer_address, collection_title, create_by, create_time, update_time, update_by, remark, del_flag from po_issuer
+    </sql>
+
+    <select id="selectPoIssuerList" parameterType="PoIssuer" resultMap="PoIssuerResult">
+        <include refid="selectPoIssuerVo"/>
+        <where>
+            <if test="issuerName != null  and issuerName != ''"> and issuer_name like concat('%', #{issuerName}, '%')</if>
+            <if test="issuerPhone != null  and issuerPhone != ''"> and issuer_phone = #{issuerPhone}</if>
+            <if test="issuerAddress != null  and issuerAddress != ''"> and issuer_address = #{issuerAddress}</if>
+            <if test="collectionTitle != null  and collectionTitle != ''"> and collection_title = #{collectionTitle}</if>
+        </where>
+    </select>
+
+    <select id="selectPoIssuerByIssuerId" parameterType="Long" resultMap="PoIssuerResult">
+        <include refid="selectPoIssuerVo"/>
+        where issuer_id = #{issuerId}
+    </select>
+
+    <insert id="insertPoIssuer" parameterType="PoIssuer" useGeneratedKeys="true" keyProperty="issuerId">
+        insert into po_issuer
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="issuerName != null and issuerName != ''">issuer_name,</if>
+            <if test="issuerPhone != null and issuerPhone != ''">issuer_phone,</if>
+            <if test="issuerAddress != null and issuerAddress != ''">issuer_address,</if>
+            <if test="collectionTitle != null and collectionTitle != ''">collection_title,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="remark != null">remark,</if>
+            <if test="delFlag != null">del_flag,</if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="issuerName != null and issuerName != ''">#{issuerName},</if>
+            <if test="issuerPhone != null and issuerPhone != ''">#{issuerPhone},</if>
+            <if test="issuerAddress != null and issuerAddress != ''">#{issuerAddress},</if>
+            <if test="collectionTitle != null and collectionTitle != ''">#{collectionTitle},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+        </trim>
+    </insert>
+
+    <update id="updatePoIssuer" parameterType="PoIssuer">
+        update po_issuer
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="issuerName != null and issuerName != ''">issuer_name = #{issuerName},</if>
+            <if test="issuerPhone != null and issuerPhone != ''">issuer_phone = #{issuerPhone},</if>
+            <if test="issuerAddress != null and issuerAddress != ''">issuer_address = #{issuerAddress},</if>
+            <if test="collectionTitle != null and collectionTitle != ''">collection_title = #{collectionTitle},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+        </trim>
+        where issuer_id = #{issuerId}
+    </update>
+
+    <delete id="deletePoIssuerByIssuerId" parameterType="Long">
+        delete from po_issuer where issuer_id = #{issuerId}
+    </delete>
+
+    <delete id="deletePoIssuerByIssuerIds" parameterType="String">
+        delete from po_issuer where issuer_id in
+        <foreach item="issuerId" collection="array" open="(" separator="," close=")">
+            #{issuerId}
+        </foreach>
+    </delete>
+</mapper>