初始提交

This commit is contained in:
2025-09-04 18:25:00 +08:00
commit 07ffe495a7
1939 changed files with 166154 additions and 0 deletions

View File

@ -0,0 +1,75 @@
ribbon:
ReadTimeout: 600000
ConnectTimeout: 600000
spring:
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
jackson:
serialization:
write-dates-as-timestamps: false
# # 格式化返回时间 yyyy-MM-dd HH:mm:ss
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.200.131:3306/mosty_bkzx?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
username: root
password: mosty888
hikari:
minimum-idle: 10 # ??????????10???0???maximum-pool-size??????maximum-pool-size
maximum-pool-size: 20 # ??????????0????????10??????1?????minimum-idle??
idle-timeout: 500000 # ????????????600000?10????????max-lifetime?max-lifetime>0??????0????0???10???????10??
max-lifetime: 540000 # ????????????0???30??????????30??.?????mysql????????
connection-timeout: 60000 # ????????????250????????????30?
connection-test-query: SELECT 1 # ???????????????
# Redis数据库索引默认为0
redis:
database: 8
# Redis服务器地址
host: 192.168.200.131
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码默认为空
password: mosty888
# 连接超时时间(毫秒)
timeout: 2000
jedis:
pool:
max-active: 50
swagger:
host: 80.155.0.84
port: 8010
mybatis-plus:
global-config:
db-config:
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
magic-api:
web: /magic/web
#配置文件存储位置。当以classpath开头时为只读模式
resource:
# location: /data/magic-api
type: database
table-name: magic_api # 数据库中的表名
prefix: /magic-api # 前缀
datasource:
response-code:
success: 10000
exclude:
pathPatterns:
swagger:
- /swagger-resources/**
- /webjars/**
- /v2/**
- /swagger-ui.html/**
- /docs.html/**
config:
orgCode: 510600000000

View File

@ -0,0 +1,39 @@
server:
port: 8013
servlet:
context-path: /mosty-bkzx/
spring:
application:
name: mosty-bkzx
cloud:
nacos:
discovery:
namespace: 657d1843-b590-41ac-b5e7-5d261bf00de9
server-addr: 192.168.200.131:8848
register-enabled: true # 是否将自己注册到配置中心,让其他服务发现调用(本地调试使用)
# 开启健康监控
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always
auditevents:
enabled: true
#swagger:
# enable: true
# title: 基础微服务
# version: 1.0.0
# name: 基础微服务
# url: ''
# email: ''
# 日志
#logging:
# file: /application/applogs/admin.log

View File

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8" ?>
<configuration scan="true" scanPeriod="60 seconds" debug="false">
<jmxConfigurator/>
<property name="PROJECT_NAME" value="msxf-retail-sort" />
<property name="LOG_FILE_INFO" value="${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/msxf-retail-sort-info.log" />
<property name="LOG_FILE_WARN" value="${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/msxf-retail-sort-warn.log" />
<property name="LOG_FILE_ERR" value="${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/msxf-retail-sort-error.log" />
<property name="LOG_BUSINESS" value="${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/business/business-2de.log"/>
<include resource="org/springframework/boot/logging/logback/defaults.xml" />
<include resource="org/springframework/boot/logging/logback/console-appender.xml" />
<contextName>${PROJECT_NAME}</contextName>
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}</pattern>
</encoder>
</appender>
<appender name="LOG_FILE_INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}</pattern>
</encoder>
<file>${LOG_FILE_INFO}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE_INFO}-7de.%d{yyyy-MM-dd}.%i</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>1024MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<appender name="LOG_FILE_WARN"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}</pattern>
</encoder>
<file>${LOG_FILE_WARN}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE_WARN}-30de.%d{yyyy-MM-dd}.%i</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>1024MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<appender name="LOG_FILE_ERROR"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>ERROR</level>
</filter>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} ${LOG_LEVEL_PATTERN:-%5p} ${PID:- } --- [%t] %-40.40logger{39} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}</pattern>
</encoder>
<file>${LOG_FILE_ERR}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>${LOG_FILE_ERR}.%d{yyyy-MM-dd}.%i</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>512MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<!--添加监控日志 -->
<appender name="business-log-appender"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>info</level>
</filter>
<file>${LOG_BUSINESS}</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${LOG_BUSINESS}.%d{yyyy-MM-dd}.%i
</fileNamePattern>
<maxFileSize>1024MB</maxFileSize>
</rollingPolicy>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<logger name="business-log" additivity="false" level="info">
<appender-ref ref="business-log-appender"/>
<appender-ref ref="CONSOLE" />
</logger>
<!-- show parameters for hibernate sql 专为 Hibernate 定制 -->
<logger name="logging.level.jdbc" level="INFO" />
<logger name="logging.level.jdbc.sqlonly" level="INFO" />
<logger name="org.springframework" level="INFO" additivity="true" />
<Logger name="jdbc.sqlonly" level="info" />
<Logger name="jdbc.sqltiming" level="warn" />
<Logger name="jdbc.audit" level="warn" />
<Logger name="jdbc.resultset" level="warn" />
<Logger name="jdbc.resultsettable" level="warn" />
<logger name="jdbc.connection" level="warn" />
<Logger name="log4jdbc.debug" level="warn" />
<Logger name="org.apache.kafka.clients.NetworkClient" level="ERROR" />
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="LOG_FILE_INFO" />
<appender-ref ref="LOG_FILE_WARN" />
<appender-ref ref="LOG_FILE_ERROR" />
</root>
</configuration>

View File

@ -0,0 +1,151 @@
<?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.mosty.bkzx.mapper.XdxxMapper">
<select id="queryXdxxBYSzfhCount" resultType="int">
select count(1) from tb_xdxx where xt_scbz = '0'
and id in (
select xd_id from tb_xdxx_ry where xt_scbz = '0'
<if test="dto.xm != null and dto.xm != ''">
and xm like concat('%',#{dto.xm},'%')
</if>
<if test="dto.sfzh != null and dto.sfzh != ''">
and sfzh = #{dto.sfzh}
</if>
<if test="dto.kssj != null and dto.kssj != ''">
and xjcjsj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xjcjsj &lt;= #{dto.jssj}
</if>
)
</select>
<select id="queryXdxxBYSzfh" resultType="java.util.Map">
select * from tb_xdxx where xt_scbz = '0'
and id in (
select xd_id from tb_xdxx_ry where xt_scbz = '0'
<if test="dto.xm != null and dto.xm != ''">
and xm like concat('%',#{dto.xm},'%')
</if>
<if test="dto.sfzh != null and dto.sfzh != ''">
and sfzh = #{dto.sfzh}
</if>
<if test="dto.kssj != null and dto.kssj != ''">
and xjcjsj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xjcjsj &lt;= #{dto.jssj}
</if>
)
order by xdlysj desc
limit #{pageIndex},#{pageSize}
</select>
<select id="xdrylbCount" resultType="int">
select count(1) from tb_xdxx_ry where xt_scbz = '0'
<if test="dto.xm != null and dto.xm != ''">
and xm like concat('%',#{dto.xm},'%')
</if>
<if test="dto.sfzh != null and dto.sfzh != ''">
and sfzh = #{dto.sfzh}
</if>
<if test="dto.xdbm != null and dto.xdbm != ''">
and xdbm = #{dto.xdbm}
</if>
<if test="dto.xdId != null and dto.xdId != ''">
and xd_id = #{dto.xdId}
</if>
<if test="dto.kssj != null and dto.kssj != ''">
and xjcjsj >= #{dto.kssj}
</if>
<if test="jssj != null and jssj != ''">
and xjcjsj &lt;= #{jssj}
</if>
</select>
<select id="xdrylb" resultType="java.util.Map">
select * from tb_xdxx_ry where xt_scbz = '0'
<if test="dto.xm != null and dto.xm != ''">
and xm like concat('%',#{dto.xm},'%')
</if>
<if test="dto.sfzh != null and dto.sfzh != ''">
and sfzh = #{dto.sfzh}
</if>
<if test="dto.xdbm != null and dto.xdbm != ''">
and xdbm = #{dto.xdbm}
</if>
<if test="dto.xdId != null and dto.xdId != ''">
and xd_id = #{dto.xdId}
</if>
<if test="dto.kssj != null and dto.kssj != ''">
and xjcjsj >= #{dto.kssj}
</if>
<if test="jssj != null and jssj != ''">
and xjcjsj &lt;= #{jssj}
</if>
order by xjcjsj desc
limit #{pageIndex},#{pageSize}
</select>
<select id="xdrytj" resultType="java.util.Map">
select count(1) as sl from tb_xdxx_ry where xt_scbz = '0'
<if test="dto.xm != null and dto.xm != ''">
and xm like concat('%',#{dto.xm},'%')
</if>
<if test="dto.sfzh != null and dto.sfzh != ''">
and sfzh = #{dto.sfzh}
</if>
<if test="dto.xdbm != null and dto.xdbm != ''">
and xdbm = #{dto.xdbm}
</if>
<if test="dto.xdId != null and dto.xdId != ''">
and xd_id = #{dto.xdId}
</if>
<if test="dto.kssj != null and dto.kssj != ''">
and xjcjsj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xjcjsj &lt;= #{dto.jssj}
</if>
order by xjcjsj desc
</select>
<select id="xdxxlbCount" resultType="int">
select count(1) from tb_xdxx where xt_scbz = '0'
<if test="dto.kssj != null and dto.kssj != ''">
and xdlysj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xdlysj &lt;= #{dto.jssj}
</if>
<if test="dto.xdid != null and dto.xdid != ''">
and id in ( #{dto.xdid} )
</if>
order by xdlysj desc
</select>
<select id="xdxxlb" resultType="java.util.Map">
select * from tb_xdxx where xt_scbz = '0'
<if test="dto.kssj != null and dto.kssj != ''">
and xdlysj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xdlysj &lt;= #{dto.jssj}
</if>
<if test="dto.xdid != null and dto.xdid != ''">
and id in ( #{dto.xdid} )
</if>
order by xdlysj desc
limit #{pageIndex},#{pageSize}
</select>
<select id="xdxxtj" resultType="java.util.Map">
select count(1) as sl from tb_xdxx where xt_scbz = '0'
<if test="dto.kssj != null and dto.kssj != ''">
and xdlysj >= #{dto.kssj}
</if>
<if test="dto.jssj != null and dto.jssj != ''">
and xdlysj &lt;= #{dto.jssj}
</if>
</select>
</mapper>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information.
-->
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_3.xsd">
<id>mosty-bkzx</id>
<classpath>
<dir name="E:/project/rs/mosty-dyga-cloud/mosty-bkzx/target/classes">
</dir>
</classpath>
</application>