main
zhaokai 2025-10-28 17:51:09 +08:00
parent 5331d38c87
commit 771e8c032d
84 changed files with 3275 additions and 0 deletions

38
.gitignore vendored Normal file
View File

@ -0,0 +1,38 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

13
.idea/encodings.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/start/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/web-adapter/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/web-app/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/web-client/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/web-domain/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/web-infrastructure/src/main/java" charset="UTF-8" />
</component>
</project>

12
.idea/misc.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="ms-17" project-jdk-type="JavaSDK" />
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM jjb-registry-registry.cn-hangzhou.cr.aliyuncs.com/pub/jdk:1.8.0_202
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY ./start/target/start.jar /opt/app.jar
ENTRYPOINT ["java", "-jar", "/opt/app.jar"]

81
pom.xml Normal file
View File

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-parent</artifactId>
<version>2.2.0-SNAPSHOT</version>
</parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>zcloud_gbs_basic_info_gwj</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.zcloud.gbscommon</groupId>
<artifactId>zcloud_gbscommon</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!--Project modules-->
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-adapter</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-app</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-domain</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-infrastructure</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>
<!-- 统一管理插件版本 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.6.6</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.4.1</version>
</plugin>
</plugins>
</build>
<modules>
<module>web-client</module>
<module>web-adapter</module>
<module>web-app</module>
<module>web-domain</module>
<module>web-infrastructure</module>
<module>start</module>
</modules>
</project>

54
start/pom.xml Normal file
View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>start</artifactId>
<packaging>jar</packaging>
<name>start</name>
<dependencies>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-adapter</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-gateway-starter</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-web</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.zcloud.risk.Application</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,19 @@
package com.zcloud.basic.info;
import com.jjb.saas.base.starter.bootstart.JJBSpringbootApplication;
import org.springframework.boot.SpringApplication;
/**
* Spring Boot Starter
*
*/
@JJBSpringbootApplication(
scanBasePackages = {"com.zcloud","com.jjb"},
mapperPackages = {"com.zcloud.basic.info.persistence.mapper"}
)
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}

View File

@ -0,0 +1,6 @@
spring:
config:
import:
- classpath:nacos.yml
- classpath:sdk.yml
- classpath:swagger.yml

View File

@ -0,0 +1,38 @@
nacos:
url: 192.168.20.100:30290
namespace: jjb-dragon
application:
name: jjb-saas-zcloud-basic-info
version:
gateway: risk
cn-name: 统一用户管理
spring:
application:
name: ${application.name}${application.version}
profiles:
# 环境配置
active: test
cloud:
nacos:
config:
namespace: ${nacos.namespace}
server-addr: ${nacos.url}
file-extension: yml
shared-configs:
- config-common.yml
- config-port.yml
- config-mq.yml
- config-log.yml
- config-sdk-server.yml
- config-actuator.yml
- config-job.yml
- config-mysql.yml
- config-redis.yml
- config-cache.yml
- config-spring.yml
- config-mybatis.yml
- config-sdk.yml
- config-flyway.yml
discovery:
server-addr: ${spring.cloud.nacos.config.server-addr}
namespace: ${spring.cloud.nacos.config.namespace}

View File

@ -0,0 +1,36 @@
management:
endpoints:
web:
base-path: /${application.gateway}${application.version}/actuator
enabled-by-default: true
endpoint:
health:
enabled: true
info:
enabled: false
auditevents:
enabled: false
metrics:
enabled: false
loggers:
enabled: false
logfile:
enabled: false
httptrace:
enabled: false
env:
enabled: false
flyway:
enabled: false
liquidbase:
enabled: false
shutdown:
enabled: false
mappings:
enabled: false
scheduledtasks:
enabled: false
threaddump:
enabled: false
heapdump:
enabled: false

View File

@ -0,0 +1,39 @@
spring:
cache:
redis:
time-to-live: 1800s
# 二级缓存配置
# 注caffeine 不适用于数据量大,并且缓存命中率极低的业务场景,如用户维度的缓存。请慎重选择。
l2cache:
config:
# 是否存储空值默认true防止缓存穿透
allowNullValues: true
# 组合缓存配置
composite:
# 是否全部启用一级缓存默认false
l1AllOpen: false
# 一级缓存
caffeine:
# 是否自动刷新过期缓存 true 是 false 否
autoRefreshExpireCache: false
# 缓存刷新调度线程池的大小
refreshPoolSize: 2
# 缓存刷新的频率(秒)
refreshPeriod: 10
# 写入后过期时间(秒)
expireAfterWrite: 180
# 访问后过期时间(秒)
expireAfterAccess: 180
# 初始化大小
initialCapacity: 1
# 最大缓存对象个数,超过此数量时之前放入的缓存将失效
maximumSize: 3
# 二级缓存
redis:
# 全局过期时间,单位毫秒,默认不过期
defaultExpiration: 1800000
# 缓存更新时通知其他节点的topic名称 默认 cache:redis:caffeine:topic
topic: cache:redis:caffeine:topic

View File

@ -0,0 +1,44 @@
common:
mysql:
host: 192.168.2.166
port: 3306
username: root
password: root
redis:
host: 10.43.253.4
password: jjb123456
port: 6379
mq:
host: 10.43.163.23:9876
xxl-job:
address: http://10.43.98.135:8080/xxl-job-admin/
username: admin
password: jjb123456
gateway:
network:
http:
#网关的外网访问地址 必须配置为HTTPS协议
external: https://testdragon.cqjjb.cn
#网关的内网访问地址 固定配置为http://jjb-saas-gateway
intranet: http://10.43.250.65
wx:
#webSocket外网地址
external: wx://testdragon.cqjjb.cn
swagger:
#是否打开swagger 测试及UAT配置为true,生产环境配置为false
enabled: true
base:
# base应用访问外网访问地址
host-url: http://10.43.12.158
desk:
# desk工程的外网地址
host-url: http://10.43.12.158
login:
# login工程的外网访问地址
host-url: http://10.43.12.158
#所有的前端域名配置 避免iframe跨域
x-frame-options: ${common.desk.host-url}/ ${common.login.host-url}/ ${common.base.host-url}/ ${common.gateway.network.http.external}/ http://10.43.250.65/
k8s:
namespace: test-dragon

View File

@ -0,0 +1,8 @@
# JOB 配置
xxl-job:
admin:
address: ${common.xxl-job.address}
username: ${common.xxl-job.username}
password: ${common.xxl-job.password}
executor:
app-name: ${spring.application.name}

View File

@ -0,0 +1,11 @@
common:
log:
jjb-saas-system:
- com.jjb:info
jjb-saas-auth1:
- com.jjb:info
jjb-saas-user:
- com.jjb:info
gray:
log:
host: 192.168.1.1

View File

@ -0,0 +1,21 @@
mq:
topic: springcloudStream-jjb-dragon-test
server: ${common.mq.host}
spring:
cloud:
stream:
bindings:
input:
destination: springcloudStream-jjb-dragon-test
group: ${spring.application.name}-${spring.profiles.active}
output:
destination: springcloudStream-jjb-dragon-test
group: ${spring.application.name}-${spring.profiles.active}
rocketmq:
binder:
name-server: ${common.mq.host}
group: ${spring.application.name}-${spring.profiles.active}
bindings:
input:
consumer:
tags: a

View File

@ -0,0 +1,11 @@
mybatis-plus:
mapper-locations: classpath*:mapper/*.xml,classpath*:mapper/**/*Mapper.xml
type-handlers-package: com.jjb.saas.framework.datascope.handler
global-config:
banner: false
db-config:
id-type: assign_id
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl

View File

@ -0,0 +1,79 @@
mysql:
db: ${spring.application.name}
spring:
shardingsphere:
druid:
username: admin
password: jjb123456
allows:
denys:
props:
sql:
show: true
enabled: true
masterslave:
name: ms # 名字,任意,需要保证唯一
master-data-source-name: master # 主库数据源
slave-data-source-names: slave-1 # 从库数据源
datasource:
names: master,slave-1
master:
#url: jdbc:mysql://10.43.123.226:3306/${spring.application.name}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://${common.mysql.host}:${common.mysql.port}/${mysql.db}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username: ${common.mysql.username}
password: ${common.mysql.password}
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
initial-size: 6
min-idle: 4
maxActive: 40
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
#Oracle需要打开注释
#validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filters: slf4j
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
wall:
multi-statement-allow: true
slave-1:
# url: jdbc:mysql://10.43.123.226:3306/${spring.application.name}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai
url: jdbc:mysql://${common.mysql.host}:${common.mysql.port}/${mysql.db}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username: ${common.mysql.username}
password: ${common.mysql.password}
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
initial-size: 6
min-idle: 4
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
#Oracle需要打开注释
#validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙,stat已去掉
filters: slf4j
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
wall:
multi-statement-allow: true

View File

@ -0,0 +1,3 @@
server:
port: 80
debug: true

View File

@ -0,0 +1,14 @@
spring:
redis:
host: ${common.redis.host}
password: ${common.redis.password}
port: ${common.redis.port}
timeout: 15000
database: 0
prefix: dragon
jedis:
pool:
max-active: 600
max-idle: 300
max-wait: 15000
min-idle: 10

View File

@ -0,0 +1,19 @@
sdk:
server:
symmetry-url: jjb-saas-application/application/applications/server/secure/
app-key: jjb-saas-dragon
client:
security:
gateway: ${gateway.network.http.external}
appKey: ${sdk.client.app-key}
desensitization:
symmetric-key: 1234567887654321
logging:
gateway: ${sdk.client.security.gateway}
appKey: ${sdk.client.security.app-key}
clientLoggingEnable: true
level: debug
username: user
password: 123456
showConsoleLog: true
formatConsoleLogJson: true

View File

@ -0,0 +1,89 @@
spring:
zipkin:
#zipkin服务所在地址
base-url: http://jjb-saas-zipkin/
sender:
type: web #使用http的方式传输数据
#配置采样百分比
sleuth:
sampler:
probability: 1 # 将采样比例设置为 1.0也就是全部都需要。默认是0.1也就是10%一般情况下10%就够用了
web:
resources:
cache:
cachecontrol:
no-store: false
max-age: 10000
no-cache: false
autoconfigure:
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
main:
allow-bean-definition-overriding: true
mvc:
pathmatch:
matching-strategy: ant_path_matcher
messages:
basename: i18n.message
encoding: UTF-8
flyway:
# 是否启用flyway
enabled: true
# 编码格式默认UTF-8
encoding: UTF-8
# 迁移sql脚本文件存放路径默认db/migration
locations: classpath:db/migration
# 迁移sql脚本文件名称的前缀默认V
sql-migration-prefix: V
# 迁移sql脚本文件名称的分隔符默认2个下划线__
sql-migration-separator: __
# 迁移sql脚本文件名称的后缀
sql-migration-suffixes: .sql
# 迁移时是否进行校验默认true
validate-on-migrate: true
# 当迁移发现数据库非空且存在没有元数据的表时自动执行基准迁移新建schema_version表
baseline-on-migrate: true
server:
tomcat:
max-http-post-size: 200MB
connection-timeout: 180000
fastjson:
parser:
safeMode: true
mvc:
pathmatch:
matching-strategy: ANT_PATH_MATCHER
thymeleaf:
prefix: classpath:/templates/
cache: false
dubbo:
application:
name: ${spring.application.name}
registry:
timeout: 20000
address: nacos://${spring.cloud.nacos.config.server-addr}?namespace=${spring.cloud.nacos.config.namespace}-facade
check: false
filter: providerContextFilter
protocol:
port: -1
name: dubbo
consumer:
timeout: 20000
check: false
filter: consumerContextFilter
logging:
config: classpath:jjb-saas-logback-spring.xml
level:
com.alibaba.nacos.client.naming: OFF
com.alibaba.nacos.client.config.impl: OFF
com.alibaba.nacos.common.remote.client: OFF
datapermssion:
tenantcondition:
defaultversion: NEWERSION
easy-retry:
server:
host: http://jjb-saas-config
port: 1788

View File

@ -0,0 +1,18 @@
sdk:
client:
app-key: e6ab3c9abda747b39d7cc12b6dc0f5a0
gateway:
url: ${common.gateway.network.http.intranet}
swagger:
enabled: ${common.swagger.enabled}
title: 例子
description: 这是例子项目
version: ${application.version}
group-name: 例子
springfox:
documentation:
swagger-ui:
base-url: ${application.gateway}
swagger:
v2:
path: /${application.gateway}/v2/api-docs

View File

@ -0,0 +1,51 @@
sdk:
server:
app-key: 722091ff53dd4abba078c2a00efd4a42
client:
gateway:
url: ${common.gateway.network.http.external}
route:
- client:
system-code: ${application.name}
name: ${application.cn-name}-后端
group-code: public_api
service:
system-code: ${application.name}
name: ${application.cn-name}-后端
group-code: public_api
strip-prefix: 0
uri: lb://${application.name}
path: /${application.gateway}/**
- client:
system-code: ${application.name}-container
name: ${application.cn-name}-前端
group-code: public_api
service:
system-code: ${application.name}-container
name: ${application.cn-name}-前端
group-code: public_api
strip-prefix: 0
uri: lb://jjb-saas-base
path: /${application.gateway}/container/**
order: -2
openapi:
appId: 1871106785124999168
appKey: 7314ecfc11ff4d5fad1ac19284ed2ac3
appSecret: 7565ab15-a2ae-4830-9b4d-fb382cd5fb30
appPublicKey: 3059301306072a8648ce3d020106082a811ccf5501822d03420004f339671110a06681fcfd968ad9247bd3cd0d2ec6b2159d1d4b775e7ed5566b3297d82cf14b626ef11fdd6bc7ecb6bcfb3ea94ccd1f381f4116f43367be4b360f
appPrivateKey: 308193020100301306072a8648ce3d020106082a811ccf5501822d0479307702010104206b6abc8e717b7d042f1e8531190a7c18113e4a701417f2770d2150d33ba97779a00a06082a811ccf5501822da14403420004f339671110a06681fcfd968ad9247bd3cd0d2ec6b2159d1d4b775e7ed5566b3297d82cf14b626ef11fdd6bc7ecb6bcfb3ea94ccd1f381f4116f43367be4b360f
encryptType: SM2
platform:
- name: default
openPublicKey: 3059301306072a8648ce3d020106082a811ccf5501822d034200045b5d8fcad91e113910406db4caf0f5c6688048e0f46742d55f872a25855316803ddb177cc9bb5906ff0b2ad4d6b1f1378a49109104613e79b5b5512e3710e88f
url: ${common.gateway.network.http.intranet}
protocol: HTTP
defaultPlatform: true
##ciphertext plaintext
type: plaintext
apiPlatform:
- name: default
#多个可以逗号隔开
apiCode: test:01
#多个可以逗号隔开,可以为空
tenantIds: 1838408702262321152

View File

@ -0,0 +1,15 @@
swagger:
enabled: ${common.swagger.enabled}
title: ${application.cn-name}
description: ${application.cn-name},一切皆有可能
version: 1.0.0
group-name: ${application.cn-name}
springfox:
documentation:
swagger-ui:
base-url: ${application.gateway}
swagger:
v2:
path: /${application.gateway}/v2/api-docs
open-doc:
brief-introduction-url: https://ipaas-gateway.cqjjb.cn/document-foreground/container/document/detail?siteId=1729854594279215106&docTypeId=1744908406080786434&dirId=1745034145606258688

View File

@ -0,0 +1,23 @@
<!doctype html><html lang="zh"><head data-built-info="@cqsjjb/scripts@2.0.0-alpha-1 Env/production (2025/10/17 11:07:53) App/risk"><meta charset="UTF-8"/><meta name="renderer" content="webkit"/><meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/><meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover"><title>--</title><script>(function () {
const APP_ENV = {
antd: {
'ant-prefix': 'micro-temp',
fontFamily: 'PingFangSC-Regular',
colorPrimary: '#1677ff',
borderRadius: parseInt('2')
},
appKey: '',
basename: 'risk',
API_HOST: ''
};
APP_ENV.API_HOST = sessionStorage.API_HOST || APP_ENV.API_HOST || window.location.origin;
window.process = {
env: { app: APP_ENV },
NODE_ENV: 'production'
};
window.__JJB_ENVIRONMENT__ = {
API_HOST: APP_ENV.API_HOST,
redirect: '',
FRAMEWORK: APP_ENV.antd
};
})();</script><script defer="defer" src="/risk/static/js/295.21df88c875577274cecb.js"></script><script defer="defer" src="/risk/static/js/main.4c0885586ad9a06ab444.js"></script><link href="/risk/static/css/main.40fc518bb0818fe8b8ea.css" rel="stylesheet"></head><body style="overflow: hidden"><noscript>此网页需要开启JavaScript功能。</noscript><div id="root" style="width: 100%; height: 100%; position: relative"></div><script type="text/javascript">/* @cqsjjb/script 输出当前应用基本信息、构建时间 */console.log("%c@cqsjjb/scripts@2.0.0-alpha-1 Env/production (2025/10/17 11:07:53) App/risk Version/master Java/<branch-name>", "color: #1890ff; border-radius: 2px; padding: 0 4px; border: 1px solid #1890ff; background: #f9fcff")</script></body></html>

View File

@ -0,0 +1 @@
body,html{height:100%;width:100%}input::-ms-clear,input::-ms-reveal{display:none}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{font-weight:500;margin-bottom:.5em;margin-top:0}p{margin-bottom:1em;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=number],input[type=password],input[type=text],textarea{-webkit-appearance:none}dl,ol,ul{margin-bottom:1em;margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-bottom:1em;margin-top:0;overflow:auto}figure{margin:0 0 1em}img{border-style:none;vertical-align:middle}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;padding-bottom:.3em;padding-top:.75em;text-align:left}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5em;line-height:inherit;margin-bottom:.5em;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}

View File

@ -0,0 +1 @@
module.exports={compact:!1,plugins:[["@babel/plugin-proposal-decorators",{legacy:!0}]],presets:[["@babel/preset-env",{targets:{browsers:["ie >= 10"]}}],["@babel/preset-react",{runtime:"automatic"}]]};

View File

@ -0,0 +1 @@
module.exports={javaGit:"<git-url>",javaGitName:"<git-name>",environment:{development:{javaGitBranch:"<branch-name>",API_HOST:"http://192.168.20.100:30140/demo2"},production:{javaGitBranch:"<branch-name>",API_HOST:""}},appIdentifier:"risk",contextInject:{appKey:""},windowInject:{title:"微应用模板",links:[],element:{root:{id:"root"}},scripts:[]},server:{port:"8080",host:"127.0.0.1",open:!0},framework:{antd:{"ant-prefix":"micro-temp",fontFamily:"PingFangSC-Regular",colorPrimary:"#1677ff",borderRadius:2}},webpackConfig:{htmlWebpackPluginOption:{inject:!0}}};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,135 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */
/**![caret-up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1OC45IDY4OUw1MzAuNSAzMDguMmMtOS40LTEwLjktMjcuNS0xMC45LTM3IDBMMTY1LjEgNjg5Yy0xMi4yIDE0LjItMS4yIDM1IDE4LjUgMzVoNjU2LjhjMTkuNyAwIDMwLjctMjAuOCAxOC41LTM1eiIgLz48L3N2Zz4=) */
/**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY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UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */

View File

@ -0,0 +1,44 @@
{
"name": "micro-app",
"version": "2.0.0",
"description": "建教帮微应用模板",
"author": "JJB",
"license": "MIT",
"main": "index.js",
"scripts": {
"serve": "node node_modules/@cqsjjb/scripts/webpack.dev.server.js",
"build": "node node_modules/@cqsjjb/scripts/webpack.build.js",
"push": "jjb-cmd push java production",
"clean-cache": "rimraf node_modules/.cache/webpack",
"serve:development": "cross-env NODE_ENV=development npm run serve",
"serve:production": "cross-env NODE_ENV=production npm run serve",
"build:development": "cross-env NODE_ENV=development npm run build",
"build:production": "cross-env NODE_ENV=production npm run build",
"code-optimization": "node node_modules/@cqsjjb/scripts/code-optimization.js",
"lint": "eslint --ext .js,.jsx,.tsx --fix src"
},
"dependencies": {
"@ant-design/icons": "latest",
"@cqsjjb/jjb-common-decorator": "latest",
"@cqsjjb/jjb-common-lib": "latest",
"@cqsjjb/jjb-dva-runtime": "latest",
"@cqsjjb/jjb-react-admin-component": "latest",
"ahooks": "^3.9.5",
"antd": "latest",
"dayjs": "^1.11.7",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
"@babel/plugin-proposal-decorators": "^7.19.3",
"@cqsjjb/scripts": "latest",
"@eslint-react/eslint-plugin": "^2.2.2",
"cross-env": "^7.0.3",
"eslint": "^9.37.0",
"eslint-plugin-format": "^1.0.2",
"eslint-plugin-react-hooks": "^7.0.0",
"eslint-plugin-react-refresh": "^0.4.23",
"typescript": "^5.9.3"
}
}

30
web-adapter/pom.xml Normal file
View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>web-adapter</artifactId>
<packaging>jar</packaging>
<name>web-adapter</name>
<dependencies>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-adapter</artifactId>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-app</artifactId>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-client</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,78 @@
package com.zcloud.basic.info.web;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.basic.info.api.RiskPointServiceI;
import com.zcloud.basic.info.dto.RiskPointAddCmd;
import com.zcloud.basic.info.dto.RiskPointPageQry;
import com.zcloud.basic.info.dto.RiskPointUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.RiskPointCo;
import com.jjb.saas.framework.auth.model.SSOUser;
import com.jjb.saas.framework.auth.utils.AuthContext;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
/**
* @author lin
*/
@Api(tags = "风险点管理")
@RequestMapping("/risk/riskPoint")
@RestController
@AllArgsConstructor
public class RiskPointController {
private final RiskPointServiceI riskPointService;
@ApiOperation("新增")
@PostMapping("/save")
public SingleResponse<RiskPointCo> add(@Validated @RequestBody RiskPointAddCmd cmd) {
SSOUser ssoUser = AuthContext.getCurrentUser();
return riskPointService.add(cmd);
}
@ApiOperation("分页")
@PostMapping("/list")
public PageResponse<RiskPointCo> page(@RequestBody RiskPointPageQry qry) {
return riskPointService.listPage(qry);
}
@ApiOperation("所有数据")
@GetMapping("/listAll")
public MultiResponse<RiskPointCo> listAll() {
return MultiResponse.of(new ArrayList<RiskPointCo>());
}
@ApiOperation("详情")
@GetMapping("/{id}")
public SingleResponse<RiskPointCo> getInfoById(@PathVariable("id") Long id) {
return SingleResponse.of(new RiskPointCo());
}
@ApiOperation("删除")
@DeleteMapping("/{id}")
public Response remove(@PathVariable("id") Long id) {
riskPointService.remove(id);
return SingleResponse.buildSuccess();
}
@ApiOperation("删除多个")
@DeleteMapping("/ids")
public Response removeBatch(@RequestParam Long[] ids) {
riskPointService.removeBatch(ids);
return SingleResponse.buildSuccess();
}
@ApiOperation("修改")
@PutMapping("/edit")
public SingleResponse edit(@Validated @RequestBody RiskPointUpdateCmd riskPointUpdateCmd) {
riskPointService.edit(riskPointUpdateCmd);
return SingleResponse.buildSuccess();
}
}

View File

@ -0,0 +1,82 @@
package com.zcloud.basic.info.web;
import com.alibaba.cola.dto.MultiResponse;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.jjb.saas.framework.auth.model.SSOUser;
import com.jjb.saas.framework.auth.utils.AuthContext;
import com.zcloud.basic.info.api.SysUserServiceI;
import com.zcloud.basic.info.dto.SysUserAddCmd;
import com.zcloud.basic.info.dto.SysUserPageQry;
import com.zcloud.basic.info.dto.SysUserUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.SysUserCO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
/**
* web-adapter
*
* @Author zhaokai
* @Date 2025-10-28 15:44:24
*/
@Api(tags = "用户信息表")
@RequestMapping("/${application.gateway}/sysUser")
@RestController
@AllArgsConstructor
public class SysUserController {
private final SysUserServiceI sysUserService;
@ApiOperation("新增")
@PostMapping("/save")
public SingleResponse<SysUserCO> add(@Validated @RequestBody SysUserAddCmd cmd) {
SSOUser ssoUser = AuthContext.getCurrentUser();
return sysUserService.add(cmd);
}
@ApiOperation("分页")
@PostMapping("/list")
public PageResponse<SysUserCO> page(@RequestBody SysUserPageQry qry) {
return sysUserService.listPage(qry);
}
@ApiOperation("所有数据")
@GetMapping("/listAll")
public MultiResponse<SysUserCO> listAll() {
return MultiResponse.of(new ArrayList<SysUserCO>());
}
@ApiOperation("详情")
@GetMapping("/{id}")
public SingleResponse<SysUserCO> getInfoById(@PathVariable("id") Long id) {
return SingleResponse.of(new SysUserCO());
}
@ApiOperation("删除")
@DeleteMapping("/{id}")
public Response remove(@PathVariable("id") Long id) {
sysUserService.remove(id);
return SingleResponse.buildSuccess();
}
@ApiOperation("删除多个")
@DeleteMapping("/ids")
public Response removeBatch(@RequestParam Long[] ids) {
sysUserService.removeBatch(ids);
return SingleResponse.buildSuccess();
}
@ApiOperation("修改")
@PutMapping("/edit")
public SingleResponse edit(@Validated @RequestBody SysUserUpdateCmd sysUserUpdateCmd) {
sysUserService.edit(sysUserUpdateCmd);
return SingleResponse.buildSuccess();
}
}

26
web-app/pom.xml Normal file
View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>web-app</artifactId>
<packaging>jar</packaging>
<name>web-app</name>
<dependencies>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-client</artifactId>
</dependency>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-infrastructure</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,37 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.RiskPointGateway;
import com.zcloud.basic.info.domain.model.RiskPointE;
import com.zcloud.basic.info.dto.RiskPointAddCmd;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
*
*
* @author lin
*/
@Component
@AllArgsConstructor
public class RiskPointAddExe {
private final RiskPointGateway riskPointGateway;
@Transactional(rollbackFor = Exception.class)
public boolean execute(RiskPointAddCmd cmd) {
RiskPointE examTypeE = new RiskPointE();
BeanUtils.copyProperties(cmd, examTypeE);
boolean res = false;
try {
res = riskPointGateway.add(examTypeE);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (!res) {
throw new BizException("保存失败");
}
return true;
}
}

View File

@ -0,0 +1,33 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.RiskPointGateway;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
*
* @author lin
*/
@Component
@AllArgsConstructor
public class RiskPointRemoveExe {
private final RiskPointGateway riskPointGateway;
@Transactional(rollbackFor = Exception.class)
public boolean execute(Long id) {
boolean res = riskPointGateway.deletedRiskPointById(id);
if(!res){
throw new BizException("删除失败");
}
return true;
}
@Transactional(rollbackFor = Exception.class)
public boolean execute(Long[] ids) {
boolean res = riskPointGateway.deletedRiskPointByIds(ids);
if(!res){
throw new BizException("删除失败");
}
return true;
}
}

View File

@ -0,0 +1,31 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.RiskPointGateway;
import com.zcloud.basic.info.domain.model.RiskPointE;
import com.zcloud.basic.info.dto.RiskPointUpdateCmd;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
*
*
* @author lin
*/
@Component
@AllArgsConstructor
public class RiskPointUpdateExe {
private final RiskPointGateway riskPointGateway;
@Transactional(rollbackFor = Exception.class)
public void execute(RiskPointUpdateCmd riskPointUpdateCmd) {
RiskPointE riskPointE = new RiskPointE();
BeanUtils.copyProperties(riskPointUpdateCmd, riskPointE);
boolean res = riskPointGateway.update(riskPointE);
if (!res) {
throw new BizException("修改失败");
}
}
}

View File

@ -0,0 +1,40 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.SysUserGateway;
import com.zcloud.basic.info.domain.model.SysUserE;
import com.zcloud.basic.info.dto.SysUserAddCmd;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Component
@AllArgsConstructor
public class SysUserAddExe {
private final SysUserGateway sysUserGateway;
@Transactional(rollbackFor = Exception.class)
public boolean execute(SysUserAddCmd cmd) {
SysUserE examTypeE = new SysUserE();
BeanUtils.copyProperties(cmd, examTypeE);
boolean res = false;
try {
res = sysUserGateway.add(examTypeE);
} catch (Exception e) {
throw new RuntimeException(e);
}
if (!res) {
throw new BizException("保存失败");
}
return true;
}
}

View File

@ -0,0 +1,39 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.SysUserGateway;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Component
@AllArgsConstructor
public class SysUserRemoveExe {
private final SysUserGateway sysUserGateway;
@Transactional(rollbackFor = Exception.class)
public boolean execute(Long id) {
boolean res = sysUserGateway.deletedSysUserById(id);
if (!res) {
throw new BizException("删除失败");
}
return true;
}
@Transactional(rollbackFor = Exception.class)
public boolean execute(Long[] ids) {
boolean res = sysUserGateway.deletedSysUserByIds(ids);
if (!res) {
throw new BizException("删除失败");
}
return true;
}
}

View File

@ -0,0 +1,34 @@
package com.zcloud.basic.info.command;
import com.alibaba.cola.exception.BizException;
import com.zcloud.basic.info.domain.gateway.SysUserGateway;
import com.zcloud.basic.info.domain.model.SysUserE;
import com.zcloud.basic.info.dto.SysUserUpdateCmd;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Component
@AllArgsConstructor
public class SysUserUpdateExe {
private final SysUserGateway sysUserGateway;
@Transactional(rollbackFor = Exception.class)
public void execute(SysUserUpdateCmd sysUserUpdateCmd) {
SysUserE sysUserE = new SysUserE();
BeanUtils.copyProperties(sysUserUpdateCmd, sysUserE);
boolean res = sysUserGateway.update(sysUserE);
if (!res) {
throw new BizException("修改失败");
}
}
}

View File

@ -0,0 +1,16 @@
package com.zcloud.basic.info.command.convertor;
import com.zcloud.basic.info.dto.clientobject.RiskPointCo;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import org.mapstruct.Mapper;
import java.util.List;
@Mapper(componentModel = "spring")
public interface RiskPointCoConvertor {
/**
* @param riskPointE
* @return
*/
List<RiskPointCo> converDOsToCOs(List<RiskPointDO> riskPointE);
}

View File

@ -0,0 +1,24 @@
package com.zcloud.basic.info.command.convertor;
import com.zcloud.basic.info.dto.clientobject.SysUserCO;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import org.mapstruct.Mapper;
import java.util.List;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Mapper(componentModel = "spring")
public interface SysUserCoConvertor {
/**
* @param sysUserDOs
* @return
*/
List<SysUserCO> converDOsToCOs(List<SysUserDO> sysUserDOs);
}

View File

@ -0,0 +1,36 @@
package com.zcloud.basic.info.command.query;
import com.alibaba.cola.dto.PageResponse;
import com.zcloud.basic.info.command.convertor.RiskPointCoConvertor;
import com.zcloud.basic.info.dto.RiskPointPageQry;
import com.zcloud.basic.info.dto.clientobject.RiskPointCo;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import com.zcloud.basic.info.persistence.repository.RiskPointRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import java.util.List;
/**
*
*
* @author lin
*/
@Component
@AllArgsConstructor
public class RiskPointQueryExe {
private final RiskPointRepository riskPointRepository;
private final RiskPointCoConvertor riskPointCoConvertor;
/**
*
*
* @param riskPointPageQry
* @return
*/
public PageResponse<RiskPointCo> execute(RiskPointPageQry riskPointPageQry) {
PageResponse<RiskPointDO> pageResponse = riskPointRepository.listRiskPointPage(riskPointPageQry.toHashMap());
List<RiskPointCo> examCenterCOS = riskPointCoConvertor.converDOsToCOs(pageResponse.getData());
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
}
}

View File

@ -0,0 +1,42 @@
package com.zcloud.basic.info.command.query;
import com.alibaba.cola.dto.PageResponse;
import com.zcloud.basic.info.command.convertor.SysUserCoConvertor;
import com.zcloud.basic.info.dto.SysUserPageQry;
import com.zcloud.basic.info.dto.clientobject.SysUserCO;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import com.zcloud.basic.info.persistence.repository.SysUserRepository;
import com.zcloud.gbscommon.utils.PageQueryHelper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Component
@AllArgsConstructor
public class SysUserQueryExe {
private final SysUserRepository sysUserRepository;
private final SysUserCoConvertor sysUserCoConvertor;
/**
*
*
* @param sysUserPageQry
* @return
*/
public PageResponse<SysUserCO> execute(SysUserPageQry sysUserPageQry) {
Map<String, Object> parmas = PageQueryHelper.toHashMap(sysUserPageQry);
PageResponse<SysUserDO> pageResponse = sysUserRepository.listPage(parmas);
List<SysUserCO> examCenterCOS = sysUserCoConvertor.converDOsToCOs(pageResponse.getData());
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
}
}

View File

@ -0,0 +1,56 @@
package com.zcloud.basic.info.service;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.basic.info.api.RiskPointServiceI;
import com.zcloud.basic.info.command.RiskPointAddExe;
import com.zcloud.basic.info.command.RiskPointRemoveExe;
import com.zcloud.basic.info.command.RiskPointUpdateExe;
import com.zcloud.basic.info.command.query.RiskPointQueryExe;
import com.zcloud.basic.info.dto.RiskPointAddCmd;
import com.zcloud.basic.info.dto.RiskPointPageQry;
import com.zcloud.basic.info.dto.RiskPointUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.RiskPointCo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
/**
* @author lin
*/
@Service
@AllArgsConstructor
public class RiskPointServiceImpl implements RiskPointServiceI {
private final RiskPointAddExe riskPointAddExe;
private final RiskPointUpdateExe riskPointUpdateExe;
private final RiskPointRemoveExe riskPointRemoveExe;
private final RiskPointQueryExe riskPointQueryExe;
@Override
public PageResponse<RiskPointCo> listPage(RiskPointPageQry qry){
return riskPointQueryExe.execute(qry);
}
@Override
public SingleResponse add(RiskPointAddCmd cmd) {
riskPointAddExe.execute(cmd);
return SingleResponse.buildSuccess();
}
@Override
public void edit(RiskPointUpdateCmd riskPointUpdateCmd) {
riskPointUpdateExe.execute(riskPointUpdateCmd);
}
@Override
public void remove(Long id) {
riskPointRemoveExe.execute(id);
}
@Override
public void removeBatch(Long[] ids) {
riskPointRemoveExe.execute(ids);
}
}

View File

@ -0,0 +1,59 @@
package com.zcloud.basic.info.service;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.basic.info.api.SysUserServiceI;
import com.zcloud.basic.info.command.SysUserAddExe;
import com.zcloud.basic.info.command.SysUserRemoveExe;
import com.zcloud.basic.info.command.SysUserUpdateExe;
import com.zcloud.basic.info.command.query.SysUserQueryExe;
import com.zcloud.basic.info.dto.SysUserAddCmd;
import com.zcloud.basic.info.dto.SysUserPageQry;
import com.zcloud.basic.info.dto.SysUserUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.SysUserCO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
/**
* web-app
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Service
@AllArgsConstructor
public class SysUserServiceImpl implements SysUserServiceI {
private final SysUserAddExe sysUserAddExe;
private final SysUserUpdateExe sysUserUpdateExe;
private final SysUserRemoveExe sysUserRemoveExe;
private final SysUserQueryExe sysUserQueryExe;
@Override
public PageResponse<SysUserCO> listPage(SysUserPageQry qry) {
return sysUserQueryExe.execute(qry);
}
@Override
public SingleResponse add(SysUserAddCmd cmd) {
sysUserAddExe.execute(cmd);
return SingleResponse.buildSuccess();
}
@Override
public void edit(SysUserUpdateCmd sysUserUpdateCmd) {
sysUserUpdateExe.execute(sysUserUpdateCmd);
}
@Override
public void remove(Long id) {
sysUserRemoveExe.execute(id);
}
@Override
public void removeBatch(Long[] ids) {
sysUserRemoveExe.execute(ids);
}
}

50
web-client/pom.xml Normal file
View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>web-client</artifactId>
<packaging>jar</packaging>
<name>web-client</name>
<dependencies>
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-domain</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-application-client</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-system-client</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-enums</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-open-platform-sdk</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-client</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,20 @@
package com.zcloud.basic.info.api;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.basic.info.dto.RiskPointAddCmd;
import com.zcloud.basic.info.dto.RiskPointPageQry;
import com.zcloud.basic.info.dto.RiskPointUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.RiskPointCo;
public interface RiskPointServiceI {
PageResponse<RiskPointCo> listPage(RiskPointPageQry qry);
SingleResponse<RiskPointCo> add(RiskPointAddCmd cmd);
void edit(RiskPointUpdateCmd riskPointUpdateCmd);
void remove(Long id);
void removeBatch(Long[] ids);
}

View File

@ -0,0 +1,27 @@
package com.zcloud.basic.info.api;
import com.alibaba.cola.dto.PageResponse;
import com.alibaba.cola.dto.SingleResponse;
import com.zcloud.basic.info.dto.SysUserAddCmd;
import com.zcloud.basic.info.dto.SysUserPageQry;
import com.zcloud.basic.info.dto.SysUserUpdateCmd;
import com.zcloud.basic.info.dto.clientobject.SysUserCO;
/**
* web-client
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
public interface SysUserServiceI {
PageResponse<SysUserCO> listPage(SysUserPageQry qry);
SingleResponse<SysUserCO> add(SysUserAddCmd cmd);
void edit(SysUserUpdateCmd cmd);
void remove(Long id);
void removeBatch(Long[] ids);
}

View File

@ -0,0 +1,30 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
/**
*
* @author lin
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RiskPointAddCmd extends Command {
@ApiModelProperty(value = "风险点名字", name = "riskPointName", required = true)
@NotEmpty(message = "风险点名字不能为空")
private String riskPointName;
// @ApiModelProperty(value = "部门Id", name = "deptId", required = true)
// @NotEmpty
// private String deptId;
@NotEmpty(message = "部门名字不能为空")
@ApiModelProperty(value = "部门名字", name = "deptName", required = true)
private String deptName;
}

View File

@ -0,0 +1,46 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.PageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
@Data
public class RiskPointPageQry extends PageQuery {
@ApiModelProperty(value = "风险点名称")
private String likeRiskPointName;
@ApiModelProperty(value = "部门名称")
private String eqDeptName;
public Map<String, Object> toHashMap() {
Map<String, Object> map = new HashMap<>();
Class<?> clazz = this.getClass();
Field[] fields = clazz.getDeclaredFields();
for (Field field : fields) {
try {
field.setAccessible(true);
map.put(field.getName(), field.get(this));
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
Class<?> superClass = clazz.getSuperclass();
if (superClass != null) {
Field[] superFields = superClass.getDeclaredFields();
for (Field field : superFields) {
try {
field.setAccessible(true);
map.put(field.getName(), field.get(this));
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
}
return map;
}
}

View File

@ -0,0 +1,31 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
/**
*
* @author lin
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RiskPointUpdateCmd extends Command {
@ApiModelProperty(value = "风险点id", name = "id", required = true)
@NotEmpty
private String id;
@ApiModelProperty(value = "风险点名字", name = "riskPointName", required = true)
@NotEmpty
private String riskPointName;
@NotEmpty
@ApiModelProperty(value = "部门名字", name = "deptName", required = true)
private String deptName;
}

View File

@ -0,0 +1,175 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
/**
* web-client
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserAddCmd extends Command {
@ApiModelProperty(value = "GBS用户id", name = "id", required = true)
@NotEmpty(message = "GBS用户id不能为空")
private Integer id;
@ApiModelProperty(value = "用户id", name = "userId", required = true)
@NotEmpty(message = "用户id不能为空")
private String userId;
@ApiModelProperty(value = "用户名", name = "username", required = true)
@NotEmpty(message = "用户名不能为空")
private String username;
@ApiModelProperty(value = "密码", name = "password", required = true)
@NotEmpty(message = "密码不能为空")
private String password;
@ApiModelProperty(value = "姓名", name = "name", required = true)
@NotEmpty(message = "姓名不能为空")
private String name;
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
@NotEmpty(message = "企业不能为空")
private String corpinfoId;
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
@NotEmpty(message = "部门id不能为空")
private String departmentId;
@ApiModelProperty(value = "角色id", name = "roleIds", required = true)
@NotEmpty(message = "角色id不能为空")
private String roleIds;
@ApiModelProperty(value = "1监管2企业3相关方", name = "userType", required = true)
@NotEmpty(message = "1监管2企业3相关方不能为空")
private String userType;
@ApiModelProperty(value = "状态0.正常 99.锁定 2密码错误次数超过当天限制", name = "status", required = true)
@NotEmpty(message = "状态0.正常 99.锁定 2密码错误次数超过当天限制不能为空")
private String status;
@ApiModelProperty(value = "邮箱", name = "email", required = true)
@NotEmpty(message = "邮箱不能为空")
private String email;
@ApiModelProperty(value = "编码", name = "number", required = true)
@NotEmpty(message = "编码不能为空")
private String number;
@ApiModelProperty(value = "电话", name = "phone", required = true)
@NotEmpty(message = "电话不能为空")
private String phone;
@ApiModelProperty(value = "性别0男1女", name = "sex", required = true)
@NotEmpty(message = "性别0男1女不能为空")
private String sex;
@ApiModelProperty(value = "民族", name = "nation", required = true)
@NotEmpty(message = "民族不能为空")
private String nation;
@ApiModelProperty(value = "政治面貌", name = "politicalOutlook", required = true)
@NotEmpty(message = "政治面貌不能为空")
private String politicalOutlook;
@ApiModelProperty(value = "身份证号", name = "userIdCard", required = true)
@NotEmpty(message = "身份证号不能为空")
private String userIdCard;
@ApiModelProperty(value = "出生年月", name = "dateOfBirth", required = true)
@NotEmpty(message = "出生年月不能为空")
private String dateOfBirth;
@ApiModelProperty(value = "婚姻状况", name = "maritalstatus", required = true)
@NotEmpty(message = "婚姻状况不能为空")
private String maritalstatus;
@ApiModelProperty(value = "入党时间", name = "politicalTime", required = true)
@NotEmpty(message = "入党时间不能为空")
private String politicalTime;
@ApiModelProperty(value = "政治面貌", name = "politicalStatus", required = true)
@NotEmpty(message = "政治面貌不能为空")
private String politicalStatus;
@ApiModelProperty(value = "人员头像数据前缀", name = "useravatarprefix", required = true)
@NotEmpty(message = "人员头像数据前缀不能为空")
private String useravatarprefix;
@ApiModelProperty(value = "人员头像数据", name = "useravatarurl", required = true)
@NotEmpty(message = "人员头像数据不能为空")
private String useravatarurl;
@ApiModelProperty(value = "文化程度", name = "degreeOfEducation", required = true)
@NotEmpty(message = "文化程度不能为空")
private String degreeOfEducation;
@ApiModelProperty(value = "职务", name = "duties", required = true)
@NotEmpty(message = "职务不能为空")
private String duties;
@ApiModelProperty(value = "职务级别", name = "dutiesLevel", required = true)
@NotEmpty(message = "职务级别不能为空")
private String dutiesLevel;
@ApiModelProperty(value = "入职日期", name = "entryDate", required = true)
@NotEmpty(message = "入职日期不能为空")
private String entryDate;
@ApiModelProperty(value = "参加工作日期", name = "workingDate", required = true)
@NotEmpty(message = "参加工作日期不能为空")
private String workingDate;
@ApiModelProperty(value = "在职情况", name = "incumbency", required = true)
@NotEmpty(message = "在职情况不能为空")
private String incumbency;
@ApiModelProperty(value = "户口所在地", name = "hklocal", required = true)
@NotEmpty(message = "户口所在地不能为空")
private String hklocal;
@ApiModelProperty(value = "现住址", name = "address", required = true)
@NotEmpty(message = "现住址不能为空")
private String address;
@ApiModelProperty(value = "职称", name = "title", required = true)
@NotEmpty(message = "职称不能为空")
private String title;
@ApiModelProperty(value = "岗位", name = "postId", required = true)
@NotEmpty(message = "岗位不能为空")
private String postId;
@ApiModelProperty(value = "人员在部门中的排序", name = "sort", required = true)
@NotEmpty(message = "人员在部门中的排序不能为空")
private Integer sort;
@ApiModelProperty(value = "所属省", name = "province", required = true)
@NotEmpty(message = "所属省不能为空")
private String province;
@ApiModelProperty(value = "所属市", name = "city", required = true)
@NotEmpty(message = "所属市不能为空")
private String city;
@ApiModelProperty(value = "所属区县", name = "country", required = true)
@NotEmpty(message = "所属区县不能为空")
private String country;
@ApiModelProperty(value = "所属乡镇", name = "village", required = true)
@NotEmpty(message = "所属乡镇不能为空")
private String village;
@ApiModelProperty(value = "乐观锁", name = "version", required = true)
@NotEmpty(message = "乐观锁不能为空")
private Integer version;
@ApiModelProperty(value = "创建人", name = "createId", required = true)
@NotEmpty(message = "创建人不能为空")
private Integer createId;
@ApiModelProperty(value = "创建人姓名", name = "createName", required = true)
@NotEmpty(message = "创建人姓名不能为空")
private String createName;
@ApiModelProperty(value = "创建时间", name = "createTime", required = true)
@NotEmpty(message = "创建时间不能为空")
private LocalDateTime createTime;
@ApiModelProperty(value = "更新人", name = "updateId", required = true)
@NotEmpty(message = "更新人不能为空")
private Integer updateId;
@ApiModelProperty(value = "修改人名称", name = "updateName", required = true)
@NotEmpty(message = "修改人名称不能为空")
private String updateName;
@ApiModelProperty(value = "更新时间", name = "updateTime", required = true)
@NotEmpty(message = "更新时间不能为空")
private LocalDateTime updateTime;
@ApiModelProperty(value = "描述", name = "remarks", required = true)
@NotEmpty(message = "描述不能为空")
private String remarks;
@ApiModelProperty(value = "是否删除", name = "deleteEnum", required = true)
@NotEmpty(message = "是否删除不能为空")
private String deleteEnum;
@ApiModelProperty(value = "租户ID", name = "tenantId", required = true)
@NotEmpty(message = "租户ID不能为空")
private Integer tenantId;
@ApiModelProperty(value = "机构ID", name = "orgId", required = true)
@NotEmpty(message = "机构ID不能为空")
private Integer orgId;
@ApiModelProperty(value = "环境", name = "env", required = true)
@NotEmpty(message = "环境不能为空")
private String env;
}

View File

@ -0,0 +1,28 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.PageQuery;
import lombok.Data;
/**
* web-client
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Data
public class SysUserPageQry extends PageQuery {
/**
* ,
* - `like`: SQLLIKE
* - `eq`: SQL=
* - `gt`:
* - `lt`:
* - `ge`:
* - `le`:
* - `ne`: SQL!=
*/
private String likeUserId;
}

View File

@ -0,0 +1,175 @@
package com.zcloud.basic.info.dto;
import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;
/**
* web-client
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysUserUpdateCmd extends Command {
@ApiModelProperty(value = "GBS用户id", name = "id", required = true)
@NotEmpty(message = "GBS用户id不能为空")
private Integer id;
@ApiModelProperty(value = "用户id", name = "userId", required = true)
@NotEmpty(message = "用户id不能为空")
private String userId;
@ApiModelProperty(value = "用户名", name = "username", required = true)
@NotEmpty(message = "用户名不能为空")
private String username;
@ApiModelProperty(value = "密码", name = "password", required = true)
@NotEmpty(message = "密码不能为空")
private String password;
@ApiModelProperty(value = "姓名", name = "name", required = true)
@NotEmpty(message = "姓名不能为空")
private String name;
@ApiModelProperty(value = "企业", name = "corpinfoId", required = true)
@NotEmpty(message = "企业不能为空")
private String corpinfoId;
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
@NotEmpty(message = "部门id不能为空")
private String departmentId;
@ApiModelProperty(value = "角色id", name = "roleIds", required = true)
@NotEmpty(message = "角色id不能为空")
private String roleIds;
@ApiModelProperty(value = "1监管2企业3相关方", name = "userType", required = true)
@NotEmpty(message = "1监管2企业3相关方不能为空")
private String userType;
@ApiModelProperty(value = "状态0.正常 99.锁定 2密码错误次数超过当天限制", name = "status", required = true)
@NotEmpty(message = "状态0.正常 99.锁定 2密码错误次数超过当天限制不能为空")
private String status;
@ApiModelProperty(value = "邮箱", name = "email", required = true)
@NotEmpty(message = "邮箱不能为空")
private String email;
@ApiModelProperty(value = "编码", name = "number", required = true)
@NotEmpty(message = "编码不能为空")
private String number;
@ApiModelProperty(value = "电话", name = "phone", required = true)
@NotEmpty(message = "电话不能为空")
private String phone;
@ApiModelProperty(value = "性别0男1女", name = "sex", required = true)
@NotEmpty(message = "性别0男1女不能为空")
private String sex;
@ApiModelProperty(value = "民族", name = "nation", required = true)
@NotEmpty(message = "民族不能为空")
private String nation;
@ApiModelProperty(value = "政治面貌", name = "politicalOutlook", required = true)
@NotEmpty(message = "政治面貌不能为空")
private String politicalOutlook;
@ApiModelProperty(value = "身份证号", name = "userIdCard", required = true)
@NotEmpty(message = "身份证号不能为空")
private String userIdCard;
@ApiModelProperty(value = "出生年月", name = "dateOfBirth", required = true)
@NotEmpty(message = "出生年月不能为空")
private String dateOfBirth;
@ApiModelProperty(value = "婚姻状况", name = "maritalstatus", required = true)
@NotEmpty(message = "婚姻状况不能为空")
private String maritalstatus;
@ApiModelProperty(value = "入党时间", name = "politicalTime", required = true)
@NotEmpty(message = "入党时间不能为空")
private String politicalTime;
@ApiModelProperty(value = "政治面貌", name = "politicalStatus", required = true)
@NotEmpty(message = "政治面貌不能为空")
private String politicalStatus;
@ApiModelProperty(value = "人员头像数据前缀", name = "useravatarprefix", required = true)
@NotEmpty(message = "人员头像数据前缀不能为空")
private String useravatarprefix;
@ApiModelProperty(value = "人员头像数据", name = "useravatarurl", required = true)
@NotEmpty(message = "人员头像数据不能为空")
private String useravatarurl;
@ApiModelProperty(value = "文化程度", name = "degreeOfEducation", required = true)
@NotEmpty(message = "文化程度不能为空")
private String degreeOfEducation;
@ApiModelProperty(value = "职务", name = "duties", required = true)
@NotEmpty(message = "职务不能为空")
private String duties;
@ApiModelProperty(value = "职务级别", name = "dutiesLevel", required = true)
@NotEmpty(message = "职务级别不能为空")
private String dutiesLevel;
@ApiModelProperty(value = "入职日期", name = "entryDate", required = true)
@NotEmpty(message = "入职日期不能为空")
private String entryDate;
@ApiModelProperty(value = "参加工作日期", name = "workingDate", required = true)
@NotEmpty(message = "参加工作日期不能为空")
private String workingDate;
@ApiModelProperty(value = "在职情况", name = "incumbency", required = true)
@NotEmpty(message = "在职情况不能为空")
private String incumbency;
@ApiModelProperty(value = "户口所在地", name = "hklocal", required = true)
@NotEmpty(message = "户口所在地不能为空")
private String hklocal;
@ApiModelProperty(value = "现住址", name = "address", required = true)
@NotEmpty(message = "现住址不能为空")
private String address;
@ApiModelProperty(value = "职称", name = "title", required = true)
@NotEmpty(message = "职称不能为空")
private String title;
@ApiModelProperty(value = "岗位", name = "postId", required = true)
@NotEmpty(message = "岗位不能为空")
private String postId;
@ApiModelProperty(value = "人员在部门中的排序", name = "sort", required = true)
@NotEmpty(message = "人员在部门中的排序不能为空")
private Integer sort;
@ApiModelProperty(value = "所属省", name = "province", required = true)
@NotEmpty(message = "所属省不能为空")
private String province;
@ApiModelProperty(value = "所属市", name = "city", required = true)
@NotEmpty(message = "所属市不能为空")
private String city;
@ApiModelProperty(value = "所属区县", name = "country", required = true)
@NotEmpty(message = "所属区县不能为空")
private String country;
@ApiModelProperty(value = "所属乡镇", name = "village", required = true)
@NotEmpty(message = "所属乡镇不能为空")
private String village;
@ApiModelProperty(value = "乐观锁", name = "version", required = true)
@NotEmpty(message = "乐观锁不能为空")
private Integer version;
@ApiModelProperty(value = "创建人", name = "createId", required = true)
@NotEmpty(message = "创建人不能为空")
private Integer createId;
@ApiModelProperty(value = "创建人姓名", name = "createName", required = true)
@NotEmpty(message = "创建人姓名不能为空")
private String createName;
@ApiModelProperty(value = "创建时间", name = "createTime", required = true)
@NotEmpty(message = "创建时间不能为空")
private LocalDateTime createTime;
@ApiModelProperty(value = "更新人", name = "updateId", required = true)
@NotEmpty(message = "更新人不能为空")
private Integer updateId;
@ApiModelProperty(value = "修改人名称", name = "updateName", required = true)
@NotEmpty(message = "修改人名称不能为空")
private String updateName;
@ApiModelProperty(value = "更新时间", name = "updateTime", required = true)
@NotEmpty(message = "更新时间不能为空")
private LocalDateTime updateTime;
@ApiModelProperty(value = "描述", name = "remarks", required = true)
@NotEmpty(message = "描述不能为空")
private String remarks;
@ApiModelProperty(value = "是否删除", name = "deleteEnum", required = true)
@NotEmpty(message = "是否删除不能为空")
private String deleteEnum;
@ApiModelProperty(value = "租户ID", name = "tenantId", required = true)
@NotEmpty(message = "租户ID不能为空")
private Integer tenantId;
@ApiModelProperty(value = "机构ID", name = "orgId", required = true)
@NotEmpty(message = "机构ID不能为空")
private Integer orgId;
@ApiModelProperty(value = "环境", name = "env", required = true)
@NotEmpty(message = "环境不能为空")
private String env;
}

View File

@ -0,0 +1,17 @@
package com.zcloud.basic.info.dto.clientobject;
import com.alibaba.cola.dto.ClientObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class RiskPointCo extends ClientObject {
@ApiModelProperty(value = "id")
private Long id;
@ApiModelProperty(value = "风险点名称")
private String riskPointName;
@ApiModelProperty(value = "部门名称")
private String deptName;
@ApiModelProperty(value = "创建人")
private String createName;
}

View File

@ -0,0 +1,169 @@
package com.zcloud.basic.info.dto.clientobject;
import com.alibaba.cola.dto.ClientObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* web-client
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Data
public class SysUserCO extends ClientObject {
//GBS用户id
@ApiModelProperty(value = "GBS用户id")
private Integer id;
//用户id
@ApiModelProperty(value = "用户id")
private String userId;
//用户名
@ApiModelProperty(value = "用户名")
private String username;
//密码
@ApiModelProperty(value = "密码")
private String password;
//姓名
@ApiModelProperty(value = "姓名")
private String name;
//企业
@ApiModelProperty(value = "企业")
private String corpinfoId;
//部门id
@ApiModelProperty(value = "部门id")
private String departmentId;
//角色id
@ApiModelProperty(value = "角色id")
private String roleIds;
//1监管2企业3相关方
@ApiModelProperty(value = "1监管2企业3相关方")
private String userType;
//状态0.正常 99.锁定 2密码错误次数超过当天限制
@ApiModelProperty(value = "状态0.正常 99.锁定 2密码错误次数超过当天限制")
private String status;
//邮箱
@ApiModelProperty(value = "邮箱")
private String email;
//编码
@ApiModelProperty(value = "编码")
private String number;
//电话
@ApiModelProperty(value = "电话")
private String phone;
//性别0男1女
@ApiModelProperty(value = "性别0男1女")
private String sex;
//民族
@ApiModelProperty(value = "民族")
private String nation;
//政治面貌
@ApiModelProperty(value = "政治面貌")
private String politicalOutlook;
//身份证号
@ApiModelProperty(value = "身份证号")
private String userIdCard;
//出生年月
@ApiModelProperty(value = "出生年月")
private String dateOfBirth;
//婚姻状况
@ApiModelProperty(value = "婚姻状况")
private String maritalstatus;
//入党时间
@ApiModelProperty(value = "入党时间")
private String politicalTime;
//政治面貌
@ApiModelProperty(value = "政治面貌")
private String politicalStatus;
//人员头像数据前缀
@ApiModelProperty(value = "人员头像数据前缀")
private String useravatarprefix;
//人员头像数据
@ApiModelProperty(value = "人员头像数据")
private String useravatarurl;
//文化程度
@ApiModelProperty(value = "文化程度")
private String degreeOfEducation;
//职务
@ApiModelProperty(value = "职务")
private String duties;
//职务级别
@ApiModelProperty(value = "职务级别")
private String dutiesLevel;
//入职日期
@ApiModelProperty(value = "入职日期")
private String entryDate;
//参加工作日期
@ApiModelProperty(value = "参加工作日期")
private String workingDate;
//在职情况
@ApiModelProperty(value = "在职情况")
private String incumbency;
//户口所在地
@ApiModelProperty(value = "户口所在地")
private String hklocal;
//现住址
@ApiModelProperty(value = "现住址")
private String address;
//职称
@ApiModelProperty(value = "职称")
private String title;
//岗位
@ApiModelProperty(value = "岗位")
private String postId;
//人员在部门中的排序
@ApiModelProperty(value = "人员在部门中的排序")
private Integer sort;
//所属省
@ApiModelProperty(value = "所属省")
private String province;
//所属市
@ApiModelProperty(value = "所属市")
private String city;
//所属区县
@ApiModelProperty(value = "所属区县")
private String country;
//所属乡镇
@ApiModelProperty(value = "所属乡镇")
private String village;
//乐观锁
@ApiModelProperty(value = "乐观锁")
private Integer version;
//创建人
@ApiModelProperty(value = "创建人")
private Integer createId;
//创建人姓名
@ApiModelProperty(value = "创建人姓名")
private String createName;
//创建时间
@ApiModelProperty(value = "创建时间")
private Date createTime;
//更新人
@ApiModelProperty(value = "更新人")
private Integer updateId;
//修改人名称
@ApiModelProperty(value = "修改人名称")
private String updateName;
//更新时间
@ApiModelProperty(value = "更新时间")
private Date updateTime;
//描述
@ApiModelProperty(value = "描述")
private String remarks;
//是否删除
@ApiModelProperty(value = "是否删除")
private String deleteEnum;
//租户ID
@ApiModelProperty(value = "租户ID")
private Integer tenantId;
//机构ID
@ApiModelProperty(value = "机构ID")
private Integer orgId;
//环境
@ApiModelProperty(value = "环境")
private String env;
}

26
web-domain/pom.xml Normal file
View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>web-domain</artifactId>
<packaging>jar</packaging>
<name>web-domain</name>
<dependencies>
<!-- COLA Framework -->
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-domain</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-base-starter</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,33 @@
package com.zcloud.basic.info.domain.gateway;
import com.zcloud.basic.info.domain.model.RiskPointE;
/**
* getway
* @author lin
*/
public interface RiskPointGateway {
/**
*
* @param riskPointE
* @return
*/
Boolean add(RiskPointE riskPointE) ;
/**
*
* @param riskPointE
* @return
*/
Boolean update(RiskPointE riskPointE);
/**
*
* @param id
* @return
*/
Boolean deletedRiskPointById(Long id);
Boolean deletedRiskPointByIds(Long[] id);
}

View File

@ -0,0 +1,31 @@
package com.zcloud.basic.info.domain.gateway;
import com.zcloud.basic.info.domain.model.SysUserE;
/**
* web-domain
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
public interface SysUserGateway {
/**
*
*/
Boolean add(SysUserE sysUserE);
/**
*
*/
Boolean update(SysUserE sysUserE);
/**
*
*/
Boolean deletedSysUserById(Long id);
Boolean deletedSysUserByIds(Long[] id);
}

View File

@ -0,0 +1,20 @@
package com.zcloud.basic.info.domain.model;
import com.alibaba.cola.domain.Entity;
import com.jjb.saas.framework.domain.model.BaseE;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
*
*
* @author lin
*/
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class RiskPointE extends BaseE {
private Long id;
private String riskPointName;
private String deptName;
}

View File

@ -0,0 +1,121 @@
package com.zcloud.basic.info.domain.model;
import com.alibaba.cola.domain.Entity;
import com.jjb.saas.framework.domain.model.BaseE;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
import java.util.Date;
/**
*
*
* @author lin
*/
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class SysUserE extends BaseE {
//GBS用户id
private Long id;
//用户id
private String userId;
//用户名
private String username;
//密码
private String password;
//姓名
private String name;
//企业
private String corpinfoId;
//部门id
private String departmentId;
//角色id
private String roleIds;
//1监管2企业3相关方
private String userType;
//状态0.正常 99.锁定 2密码错误次数超过当天限制
private String status;
//邮箱
private String email;
//编码
private String number;
//电话
private String phone;
//性别0男1女
private String sex;
//民族
private String nation;
//政治面貌
private String politicalOutlook;
//身份证号
private String userIdCard;
//出生年月
private String dateOfBirth;
//婚姻状况
private String maritalstatus;
//入党时间
private String politicalTime;
//政治面貌
private String politicalStatus;
//人员头像数据前缀
private String useravatarprefix;
//人员头像数据
private String useravatarurl;
//文化程度
private String degreeOfEducation;
//职务
private String duties;
//职务级别
private String dutiesLevel;
//入职日期
private String entryDate;
//参加工作日期
private String workingDate;
//在职情况
private String incumbency;
//户口所在地
private String hklocal;
//现住址
private String address;
//职称
private String title;
//岗位
private String postId;
//人员在部门中的排序
private Integer sort;
//所属省
private String province;
//所属市
private String city;
//所属区县
private String country;
//所属乡镇
private String village;
//乐观锁
private Integer version;
//创建人
private Long createId;
//创建人姓名
private String createName;
//创建时间
private LocalDateTime createTime;
//更新人
private Long updateId;
//修改人名称
private String updateName;
//更新时间
private LocalDateTime updateTime;
//描述
private String remarks;
//是否删除
private String deleteEnum;
//租户ID
private Long tenantId;
//机构ID
private Long orgId;
//环境
private String env;
}

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>zcloud_gbs_basic_info_gwj</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<properties>
<zcloudGbs.service.version>1.0.0-SNAPSHOT</zcloudGbs.service.version>
</properties>
<artifactId>web-infrastructure</artifactId>
<packaging>jar</packaging>
<name>web-infrastructure</name>
<dependencies>
<!--DIP here, Infrastructure depends on Domain-->
<dependency>
<groupId>com.zcloud.basic.info</groupId>
<artifactId>web-domain</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-application-client</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-system-client</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-auth-client</artifactId>
</dependency>
<dependency>
<groupId>com.jjb.saas</groupId>
<artifactId>jjb-saas-framework-facade</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,51 @@
package com.zcloud.basic.info.gatewayimpl;
import com.zcloud.basic.info.domain.gateway.RiskPointGateway;
import com.zcloud.basic.info.domain.model.RiskPointE;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import com.zcloud.basic.info.persistence.repository.RiskPointRepository;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.Arrays;
/**
*
*
* @author lin
*/
@Service
@AllArgsConstructor
public class RiskPointGatewayImpl implements RiskPointGateway {
private final RiskPointRepository riskPointRepository;
@Override
public Boolean add(RiskPointE riskPointE) {
RiskPointDO d = new RiskPointDO();
BeanUtils.copyProperties(riskPointE, d);
riskPointRepository.save(d);
return true;
}
@Override
public Boolean update(RiskPointE riskPointE) {
RiskPointDO d = new RiskPointDO();
BeanUtils.copyProperties(riskPointE, d);
riskPointRepository.updateById(d);
return true;
}
@Override
public Boolean deletedRiskPointById(Long id) {
return riskPointRepository.removeById(id);
}
@Override
public Boolean deletedRiskPointByIds(Long[] ids) {
return riskPointRepository.removeByIds(Arrays.asList(ids));
}
}

View File

@ -0,0 +1,50 @@
package com.zcloud.basic.info.gatewayimpl;
import com.zcloud.basic.info.domain.gateway.SysUserGateway;
import com.zcloud.basic.info.domain.model.SysUserE;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import com.zcloud.basic.info.persistence.repository.SysUserRepository;
import lombok.AllArgsConstructor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.util.Collections;
/**
* web-infrastructure
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Service
@AllArgsConstructor
public class SysUserGatewayImpl implements SysUserGateway {
private final SysUserRepository sysUserRepository;
@Override
public Boolean add(SysUserE sysUserE) {
SysUserDO d = new SysUserDO();
BeanUtils.copyProperties(sysUserE, d);
sysUserRepository.save(d);
return true;
}
@Override
public Boolean update(SysUserE sysUserE) {
SysUserDO d = new SysUserDO();
BeanUtils.copyProperties(sysUserE, d);
sysUserRepository.updateById(d);
return true;
}
@Override
public Boolean deletedSysUserById(Long id) {
return sysUserRepository.removeById(id);
}
@Override
public Boolean deletedSysUserByIds(Long[] ids) {
return sysUserRepository.removeByIds(Collections.singletonList(ids));
}
}

View File

@ -0,0 +1,16 @@
package com.zcloud.basic.info.persistence.dataobject;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("risk_point")
public class RiskPointDO extends BaseDO {
private String riskPointName;
private String deptName;
}

View File

@ -0,0 +1,176 @@
package com.zcloud.basic.info.persistence.dataobject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* web-infrastructure
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Data
@TableName("sys_user")
@EqualsAndHashCode(callSuper = true)
public class SysUserDO extends BaseDO {
//GBS用户id
@ApiModelProperty(value = "GBS用户id")
private Long id;
//用户id
@ApiModelProperty(value = "用户id")
@TableId(type = IdType.ASSIGN_ID)
private String userId;
//用户名
@ApiModelProperty(value = "用户名")
private String username;
//密码
@ApiModelProperty(value = "密码")
private String password;
//姓名
@ApiModelProperty(value = "姓名")
private String name;
//企业
@ApiModelProperty(value = "企业")
private String corpinfoId;
//部门id
@ApiModelProperty(value = "部门id")
private String departmentId;
//角色id
@ApiModelProperty(value = "角色id")
private String roleIds;
//1监管2企业3相关方
@ApiModelProperty(value = "1监管2企业3相关方")
private String userType;
//状态0.正常 99.锁定 2密码错误次数超过当天限制
@ApiModelProperty(value = "状态0.正常 99.锁定 2密码错误次数超过当天限制")
private String status;
//邮箱
@ApiModelProperty(value = "邮箱")
private String email;
//编码
@ApiModelProperty(value = "编码")
private String number;
//电话
@ApiModelProperty(value = "电话")
private String phone;
//性别0男1女
@ApiModelProperty(value = "性别0男1女")
private String sex;
//民族
@ApiModelProperty(value = "民族")
private String nation;
//政治面貌
@ApiModelProperty(value = "政治面貌")
private String politicalOutlook;
//身份证号
@ApiModelProperty(value = "身份证号")
private String userIdCard;
//出生年月
@ApiModelProperty(value = "出生年月")
private String dateOfBirth;
//婚姻状况
@ApiModelProperty(value = "婚姻状况")
private String maritalstatus;
//入党时间
@ApiModelProperty(value = "入党时间")
private String politicalTime;
//政治面貌
@ApiModelProperty(value = "政治面貌")
private String politicalStatus;
//人员头像数据前缀
@ApiModelProperty(value = "人员头像数据前缀")
private String useravatarprefix;
//人员头像数据
@ApiModelProperty(value = "人员头像数据")
private String useravatarurl;
//文化程度
@ApiModelProperty(value = "文化程度")
private String degreeOfEducation;
//职务
@ApiModelProperty(value = "职务")
private String duties;
//职务级别
@ApiModelProperty(value = "职务级别")
private String dutiesLevel;
//入职日期
@ApiModelProperty(value = "入职日期")
private String entryDate;
//参加工作日期
@ApiModelProperty(value = "参加工作日期")
private String workingDate;
//在职情况
@ApiModelProperty(value = "在职情况")
private String incumbency;
//户口所在地
@ApiModelProperty(value = "户口所在地")
private String hklocal;
//现住址
@ApiModelProperty(value = "现住址")
private String address;
//职称
@ApiModelProperty(value = "职称")
private String title;
//岗位
@ApiModelProperty(value = "岗位")
private String postId;
//人员在部门中的排序
@ApiModelProperty(value = "人员在部门中的排序")
private Integer sort;
//所属省
@ApiModelProperty(value = "所属省")
private String province;
//所属市
@ApiModelProperty(value = "所属市")
private String city;
//所属区县
@ApiModelProperty(value = "所属区县")
private String country;
//所属乡镇
@ApiModelProperty(value = "所属乡镇")
private String village;
//乐观锁
@ApiModelProperty(value = "乐观锁")
private Integer version;
//创建人
@ApiModelProperty(value = "创建人")
private Long createId;
//创建人姓名
@ApiModelProperty(value = "创建人姓名")
private String createName;
//创建时间
@ApiModelProperty(value = "创建时间")
private LocalDateTime createTime;
//更新人
@ApiModelProperty(value = "更新人")
private Long updateId;
//修改人名称
@ApiModelProperty(value = "修改人名称")
private String updateName;
//更新时间
@ApiModelProperty(value = "更新时间")
private LocalDateTime updateTime;
//描述
@ApiModelProperty(value = "描述")
private String remarks;
//是否删除
@ApiModelProperty(value = "是否删除")
private String deleteEnum;
//租户ID
@ApiModelProperty(value = "租户ID")
private Long tenantId;
//机构ID
@ApiModelProperty(value = "机构ID")
private Long orgId;
//环境
@ApiModelProperty(value = "环境")
private String env;
}

View File

@ -0,0 +1,9 @@
package com.zcloud.basic.info.persistence.mapper;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface RiskPointMapper extends BaseMapper<RiskPointDO> {
}

View File

@ -0,0 +1,17 @@
package com.zcloud.basic.info.persistence.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import org.apache.ibatis.annotations.Mapper;
/**
* web-infrastructure
*
* @Author zhaokai
* @Date 2025-10-28 16:42:36
*/
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserDO> {
}

View File

@ -0,0 +1,15 @@
package com.zcloud.basic.info.persistence.repository;
import com.alibaba.cola.dto.PageResponse;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.framework.repository.repo.BaseRepository;
import java.util.Map;
/**
* @author lin
*/
public interface RiskPointRepository extends BaseRepository<RiskPointDO> {
PageResponse<RiskPointDO> listRiskPointPage(Map<String,Object> parmas);
}

View File

@ -0,0 +1,18 @@
package com.zcloud.basic.info.persistence.repository;
import com.alibaba.cola.dto.PageResponse;
import com.jjb.saas.framework.repository.repo.BaseRepository;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import java.util.Map;
/**
* web-infrastructure
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
public interface SysUserRepository extends BaseRepository<SysUserDO> {
PageResponse<SysUserDO> listPage(Map<String, Object> parmas);
}

View File

@ -0,0 +1,35 @@
package com.zcloud.basic.info.persistence.repository.impl;
import com.alibaba.cola.dto.PageResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.framework.repository.common.PageHelper;
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
import com.zcloud.basic.info.persistence.dataobject.RiskPointDO;
import com.zcloud.basic.info.persistence.mapper.RiskPointMapper;
import com.zcloud.basic.info.persistence.repository.RiskPointRepository;
import com.zcloud.basic.info.utils.PageQueryHelper;
import com.zcloud.basic.info.utils.Query;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @author lin
*/
@Service
@RequiredArgsConstructor
public class RiskPointRepositoryImpl extends BaseRepositoryImpl<RiskPointMapper, RiskPointDO> implements RiskPointRepository {
private final RiskPointMapper riskPointMapper;
@Override
public PageResponse<RiskPointDO> listRiskPointPage(Map<String, Object> parmas) {
IPage<RiskPointDO> iPage = new Query<RiskPointDO>().getPage(parmas);
QueryWrapper<RiskPointDO> queryWrapper = new QueryWrapper<>();
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
queryWrapper.orderByDesc("create_time");
IPage<RiskPointDO> result = riskPointMapper.selectPage(iPage, queryWrapper);
return PageHelper.pageToResponse(result, result.getRecords());
}
}

View File

@ -0,0 +1,39 @@
package com.zcloud.basic.info.persistence.repository.impl;
import com.alibaba.cola.dto.PageResponse;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jjb.saas.framework.repository.common.PageHelper;
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
import com.zcloud.basic.info.persistence.dataobject.SysUserDO;
import com.zcloud.basic.info.persistence.mapper.SysUserMapper;
import com.zcloud.basic.info.persistence.repository.SysUserRepository;
import com.zcloud.basic.info.utils.Query;
import com.zcloud.gbscommon.utils.PageQueryHelper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* web-infrastructure
*
* @Author zhaokai
* @Date 2025-10-28 16:42:37
*/
@Service
@RequiredArgsConstructor
public class SysUserRepositoryImpl extends BaseRepositoryImpl<SysUserMapper, SysUserDO> implements SysUserRepository {
private final SysUserMapper sysUserMapper;
@Override
public PageResponse<SysUserDO> listPage(Map<String, Object> parmas) {
IPage<SysUserDO> iPage = new Query<SysUserDO>().getPage(parmas);
QueryWrapper<SysUserDO> queryWrapper = new QueryWrapper<>();
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, parmas);
queryWrapper.orderByDesc("create_time");
IPage<SysUserDO> result = sysUserMapper.selectPage(iPage, queryWrapper);
return PageHelper.pageToResponse(result, result.getRecords());
}
}

View File

@ -0,0 +1,81 @@
package com.zcloud.basic.info.utils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author fangjiakai
* @date 2025/10/20 11:54
*/
public class PageQueryHelper {
private static final Pattern PATTERN = Pattern.compile("([a-z])([A-Z])");
/**
*
*
* @param queryWrapper
* @param pageQuery
* @return QueryWrapper
*/
public static <T> QueryWrapper<T> createPageQueryWrapper(QueryWrapper<T> queryWrapper, Map<String, Object> pageQuery) {
if (pageQuery == null || pageQuery.isEmpty()) {
return queryWrapper;
}
for (Map.Entry<String, Object> entry : pageQuery.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
// 忽略空值
if (value == null || StringUtils.isBlank(value.toString())) {
continue;
}
// 处理不同类型的查询条件
if (key.startsWith("like")) {
String columnName = toUnderlineName(key.substring(4)); // 去掉 "like" 前缀
queryWrapper.like(columnName, value);
} else if (key.startsWith("eq")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "eq" 前缀
queryWrapper.eq(columnName, value);
} else if (key.startsWith("gt")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "gt" 前缀
queryWrapper.gt(columnName, value);
} else if (key.startsWith("lt")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "lt" 前缀
queryWrapper.lt(columnName, value);
} else if (key.startsWith("ge")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "ge" 前缀
queryWrapper.ge(columnName, value);
} else if (key.startsWith("le")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "le" 前缀
queryWrapper.le(columnName, value);
} else if (key.startsWith("ne")) {
String columnName = toUnderlineName(key.substring(2)); // 去掉 "ne" 前缀
queryWrapper.ne(columnName, value);
}
}
return queryWrapper;
}
/**
* 线
*
* @param camelCaseName
* @return 线
*/
private static String toUnderlineName(String camelCaseName) {
Matcher matcher = PATTERN.matcher(camelCaseName);
StringBuffer sb = new StringBuffer();
while (matcher.find()) {
matcher.appendReplacement(sb, matcher.group(1) + "_" + matcher.group(2).toLowerCase());
}
matcher.appendTail(sb);
return sb.toString().toLowerCase();
}
}

View File

@ -0,0 +1,50 @@
package com.zcloud.basic.info.utils;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.commons.lang.StringUtils;
import java.util.Map;
/**
*
*
*
*/
public class Query<T> {
public IPage<T> getPage(Map<String, Object> params) {
return this.getPage(params, null, false);
}
public IPage<T> getPage(Map<String, Object> params, String defaultOrderField, boolean isAsc) {
//分页参数
long curPage = 1;
long limit = 10;
if(params.get("pageIndex") != null){
curPage = Long.parseLong(params.get("pageIndex").toString());
}
if(params.get("pageSize") != null){
limit = Long.parseLong(params.get("pageSize").toString());
}
//分页对象
Page<T> page = new Page<>(curPage, limit);
//没有排序字段,则不排序
if(StringUtils.isBlank(defaultOrderField)){
return page;
}
//默认排序
if(isAsc) {
page.addOrder(OrderItem.asc(defaultOrderField));
}else {
page.addOrder(OrderItem.desc(defaultOrderField));
}
return page;
}
}

View File

@ -0,0 +1,36 @@
CREATE TABLE `metric` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`user_id` varchar(64) NOT NULL COMMENT '域账号',
`main_metric` varchar(64) NOT NULL COMMENT '主度量',
`sub_metric` varchar(64) NOT NULL COMMENT '度量项',
`metric_item` json DEFAULT NULL COMMENT '度量项内容',
`creator` varchar(64) NOT NULL COMMENT '创建人',
`modifier` varchar(64) NOT NULL COMMENT '修改人',
`gmt_create` datetime NOT NULL COMMENT '创建时间',
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
`is_deleted` char(1) NOT NULL DEFAULT 'n' COMMENT '逻辑删除',
PRIMARY KEY (`id`),
KEY `idx_username` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4 COMMENT='度量表';
CREATE TABLE `user_profile` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`user_id` varchar(64) NOT NULL COMMENT '工号',
`user_name` varchar(64) NOT NULL COMMENT '名字',
`dep` varchar(128) NOT NULL COMMENT '部门',
`role` varchar(6) NOT NULL COMMENT '角色',
`total_score` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '综合得分',
`app_quality_score` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '代码质量分',
`tech_influence_score` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '技术影响力分',
`tech_contribution_score` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '技术贡献分',
`dev_quality_score` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '开发质量分',
`checkin_code_quantity` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT 'checkin代码量',
`is_manager` char(1) DEFAULT NULL COMMENT '是否主管',
`creator` varchar(64) NOT NULL COMMENT '创建人',
`modifier` varchar(64) NOT NULL COMMENT '修改人',
`gmt_create` datetime NOT NULL COMMENT '创建时间',
`gmt_modified` datetime NOT NULL COMMENT '修改时间',
`is_deleted` char(1) NOT NULL DEFAULT 'n' COMMENT '逻辑删除',
PRIMARY KEY (`id`),
KEY `idx_user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4 COMMENT='用户Profile表';

View File

@ -0,0 +1,7 @@
<?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.zcloud.basic.info.persistence.mapper.RiskPointMapper">
</mapper>

View File

@ -0,0 +1,8 @@
<?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.zcloud.basic.info.persistence.mapper.SysUserMapper">
</mapper>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- mybatis的配置文件 -->
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<mappers>
<mapper resource="mybatis/customer-mapper.xml"/>
</mappers>
</configuration>