初始提交
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
{
|
||||
"properties": [
|
||||
{
|
||||
"name": "spring.cloud.nacos.discovery.server-addr",
|
||||
"type": "java.lang.String",
|
||||
"description": "Description for spring.cloud.nacos.discovery.server-addr."
|
||||
}
|
||||
] }
|
||||
164
mosty-base/src/main/resources/application.yml
Normal file
164
mosty-base/src/main/resources/application.yml
Normal file
@ -0,0 +1,164 @@
|
||||
ribbon:
|
||||
ReadTimeout: 600000
|
||||
ConnectTimeout: 600000
|
||||
spring:
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
servlet:
|
||||
multipart:
|
||||
enabled: true
|
||||
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:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
dynamic:
|
||||
primary: base
|
||||
strict: false
|
||||
datasource:
|
||||
base:
|
||||
url: jdbc:mysql://172.20.19.130:33306/mosty_base?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: mostyDB1
|
||||
password: mostyDBMysql1
|
||||
jcgl:
|
||||
url: jdbc:mysql://172.20.19.130:33306/mosty_jcgl?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: mostyDB1
|
||||
password: mostyDBMysql1
|
||||
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 # ???????????????
|
||||
# driver-class-name: com.mysql.jdbc.Driver
|
||||
# url: jdbc:mysql://192.168.200.131:3306/mosty_base?autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=Asia/Shanghai
|
||||
# username: root
|
||||
# password: mosty888
|
||||
|
||||
# Redis数据库索引(默认为0)
|
||||
# redis:
|
||||
# database: 8
|
||||
# # Redis服务器地址
|
||||
# host: 192.168.200.131
|
||||
# # Redis服务器连接端口
|
||||
# port: 6379
|
||||
# # Redis服务器连接密码(默认为空)
|
||||
# password: mosty888
|
||||
# # 连接超时时间(毫秒)
|
||||
# timeout: 2000
|
||||
# jedis:
|
||||
# pool:
|
||||
# max-active: 50
|
||||
redis:
|
||||
database: 1
|
||||
# Redis服务器地址
|
||||
host: 172.20.19.130
|
||||
# Redis服务器连接端口
|
||||
port: 63799
|
||||
# Redis服务器连接密码(默认为空)
|
||||
password: redis1994Inferno
|
||||
# 连接超时时间(毫秒)
|
||||
timeout: 2000
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 50
|
||||
|
||||
|
||||
#mybatis:
|
||||
# mapper-locations: classpath:mapper/*.xml
|
||||
|
||||
swagger:
|
||||
host: 80.155.0.84
|
||||
port: 80
|
||||
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
minio:
|
||||
# endpoint: http://192.168.200.131:9009
|
||||
# downloadEndpoint: http://192.168.200.131:9009
|
||||
# accessKey: admin
|
||||
# secretKey: mosty888
|
||||
endpoint: http://172.20.19.130:29002
|
||||
downloadEndpoint: http://172.20.19.130:29002
|
||||
accessKey: minioRoot
|
||||
secretKey: minio1994Inferno
|
||||
|
||||
config:
|
||||
defaultPassword: 123456
|
||||
orgCode: 510600000000
|
||||
|
||||
login:
|
||||
check:
|
||||
kaptcha: false
|
||||
|
||||
magic-api:
|
||||
web: /magic/web
|
||||
#配置文件存储位置。当以classpath开头时,为只读模式
|
||||
resource:
|
||||
# location: /data/magic-api
|
||||
type: database
|
||||
table-name: magic_api_file_v2 # 数据库中的表名
|
||||
prefix: /magic-api # 前缀
|
||||
datasource:
|
||||
response-code:
|
||||
success: 10000
|
||||
|
||||
dict:
|
||||
element:
|
||||
# 民族
|
||||
nation: D_BZ_MZ
|
||||
# 性别
|
||||
gender: D_BZ_XB
|
||||
# 血型
|
||||
blood-type: D_BZ_XX
|
||||
# 学历
|
||||
education: D_BZ_WHCD
|
||||
# 政治面貌
|
||||
political-outlook: D_BZ_ZZMM
|
||||
# 婚姻状况
|
||||
marital-status: D_BZ_HYZK
|
||||
# 亲属关系
|
||||
relationship: D_BZ_QSGXDM
|
||||
# 车辆型号
|
||||
vehicle-model: D_JDC_CLLX
|
||||
# 车辆颜色
|
||||
vehicle-color: D_JDC_CSYS
|
||||
# 机动车号牌种类
|
||||
vehicle-number-type: D_JDC_HPZL
|
||||
# 车牌号
|
||||
car-number: D_BZ_HPSSD
|
||||
|
||||
exclude:
|
||||
pathPatterns:
|
||||
token:
|
||||
- /loginCheckKaptcha
|
||||
- /login
|
||||
- /token
|
||||
- /kaptcha
|
||||
- /loginOut
|
||||
- /sysTask/addSysTask
|
||||
- /sysTask/*
|
||||
- /idCardNoLogin
|
||||
- /sysTaskReport/*
|
||||
- /sysTaskReport/groupCount/*
|
||||
- /sysTaskReport/lineChart/*
|
||||
- /yjxx/token/*
|
||||
- /tbJq/querySgfx
|
||||
- /tbJq/queryZtfx
|
||||
- /tbYjxx/insert
|
||||
- /tbYjxx/getList
|
||||
- /image/base64
|
||||
swagger:
|
||||
- /swagger-resources/**
|
||||
- /webjars/**
|
||||
- /v2/**
|
||||
- /swagger-ui.html/**
|
||||
- /docs.html/**
|
||||
44
mosty-base/src/main/resources/bootstrap.yml
Normal file
44
mosty-base/src/main/resources/bootstrap.yml
Normal file
@ -0,0 +1,44 @@
|
||||
server:
|
||||
port: 8005
|
||||
servlet:
|
||||
context-path: /mosty-base/
|
||||
spring:
|
||||
application:
|
||||
name: mosty-base
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
# namespace: 657d1843-b590-41ac-b5e7-5d261bf00de9
|
||||
# server-addr: 192.168.200.131:8848
|
||||
register-enabled: true
|
||||
namespace: f23c13d4-0935-42e0-850e-a2216125f2ae
|
||||
server-addr: 172.20.19.130:18848
|
||||
username: nacosDev1
|
||||
password: nacosDev1
|
||||
|
||||
|
||||
|
||||
# 开启健康监控
|
||||
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
|
||||
|
||||
114
mosty-base/src/main/resources/logback-spring.xml
Normal file
114
mosty-base/src/main/resources/logback-spring.xml
Normal 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>
|
||||
23
mosty-base/src/main/resources/mapper/DeptMapper.xml
Normal file
23
mosty-base/src/main/resources/mapper/DeptMapper.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?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.base.mapper.UserDeptMapper">
|
||||
|
||||
<!--查询部门下的所有的人员信息-->
|
||||
<select id="getUserListByDeptId" resultType="com.mosty.common.core.business.entity.SysUser">
|
||||
select a.* from sys_user a ,sys_dept b,sys_user_dept c where a.id = c.user_id
|
||||
and a.xt_zxbz = '0' and b.xt_zxbz = '0'
|
||||
and c.dept_id = b.id and a.is_virtual_user = '02' and b.id in
|
||||
<foreach collection="list" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<!--查询本部门下的所有的,不包含子部门-->
|
||||
<select id="getUserListByIdAll" resultType="com.mosty.common.core.business.entity.SysUser">
|
||||
select a.* from sys_user a ,sys_dept b,sys_user_dept c where a.id = c.user_id
|
||||
and a.xt_zxbz = '0' and b.xt_zxbz = '0'
|
||||
and c.dept_id = b.id and b.id = #{deptid}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
99
mosty-base/src/main/resources/mapper/GajgSearchMapper.xml
Normal file
99
mosty-base/src/main/resources/mapper/GajgSearchMapper.xml
Normal file
@ -0,0 +1,99 @@
|
||||
<?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.base.mapper.GajgSearchMapper">
|
||||
|
||||
<!-- 映射 property实体类 column数据库字段-->
|
||||
<resultMap type="com.mosty.base.model.entity.yszx.TbYsGajg" id="tbYsGajg">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="ysdl" column="ysdl" jdbcType="VARCHAR"/>
|
||||
<result property="yszl" column="yszl" jdbcType="VARCHAR"/>
|
||||
<result property="ysxl" column="ysxl" jdbcType="VARCHAR"/>
|
||||
<result property="gajgmc" column="gajgmc" jdbcType="VARCHAR"/>
|
||||
<result property="gajgjc" column="gajgjc" jdbcType="VARCHAR"/>
|
||||
<result property="wzXzqh" column="wz_xzqh" jdbcType="VARCHAR"/>
|
||||
<result property="wzXz" column="wz_xz" jdbcType="VARCHAR"/>
|
||||
<result property="wzBc" column="wz_bc" jdbcType="VARCHAR"/>
|
||||
<result property="jd" column="jd" jdbcType="NUMERIC"/>
|
||||
<result property="wd" column="wd" jdbcType="NUMERIC"/>
|
||||
<result property="zb" column="zb" typeHandler="com.mosty.base.feign.handle.PointTypeHandler"/>
|
||||
<result property="zbhash" column="zbhash" jdbcType="VARCHAR"/>
|
||||
<result property="dtm" column="dtm" typeHandler="com.mosty.base.feign.handle.PolygonTypeHandler"/>
|
||||
<result property="dtm1" column="dtm1" typeHandler="com.mosty.base.feign.handle.PolygonTypeHandler"/>
|
||||
<result property="dtm2" column="dtm2" typeHandler="com.mosty.base.feign.handle.PolygonTypeHandler"/>
|
||||
<result property="lybm" column="lybm" jdbcType="VARCHAR"/>
|
||||
<result property="lyid" column="lyid" jdbcType="VARCHAR"/>
|
||||
<result property="jsnr" column="jsnr" jdbcType="VARCHAR"/>
|
||||
<result property="ssbm" column="ssbm" jdbcType="VARCHAR"/>
|
||||
<result property="ssbmdm" column="ssbmdm" jdbcType="VARCHAR"/>
|
||||
<result property="ssxgaj" column="ssxgaj" jdbcType="VARCHAR"/>
|
||||
<result property="ssxgajdm" column="ssxgajdm" jdbcType="VARCHAR"/>
|
||||
<result property="sssgaj" column="sssgaj" jdbcType="VARCHAR"/>
|
||||
<result property="sssgajdm" column="sssgajdm" jdbcType="VARCHAR"/>
|
||||
<result property="xtSjly" column="xt_sjly" jdbcType="VARCHAR"/>
|
||||
<result property="xtSjzt" column="xt_sjzt" jdbcType="VARCHAR"/>
|
||||
<result property="xtScbz" column="xt_scbz" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjip" column="xt_cjip" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjsj" column="xt_cjsj" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjrId" column="xt_cjr_id" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjr" column="xt_cjr" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjbmdm" column="xt_cjbmdm" jdbcType="VARCHAR"/>
|
||||
<result property="xtCjbmmc" column="xt_cjbmmc" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxip" column="xt_zhgxip" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxsj" column="xt_zhgxsj" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxrid" column="xt_zhgxrid" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxr" column="xt_zhgxr" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxbmdm" column="xt_zhgxbmdm" jdbcType="VARCHAR"/>
|
||||
<result property="xtZhgxbm" column="xt_zhgxbm" jdbcType="VARCHAR"/>
|
||||
<result property="bz" column="bz" jdbcType="VARCHAR"/>
|
||||
<result property="sssgajid" column="sssgajid" jdbcType="VARCHAR"/>
|
||||
<result property="ssxgajid" column="ssxgajid" jdbcType="VARCHAR"/>
|
||||
<result property="ssbmid" column="ssbmid" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 公共sql 全部字段-->
|
||||
<sql id="base_column_list">
|
||||
id
|
||||
,ysdl,yszl,ysxl,gajgmc,gajgjc,wz_xzqh,wz_xz,wz_bc,jd,wd,ssbmid,ssxgajid,sssgajid,
|
||||
zbhash,lybm,lyid,jsnr,ssbm, ssbmdm, ssxgaj, ssxgajdm, sssgaj, sssgajdm, xt_sjly, xt_sjzt, xt_scbz,
|
||||
xt_cjip, xt_cjsj, xt_cjr_id, xt_cjr, xt_cjbmdm, xt_cjbmmc, xt_zhgxip, xt_zhgxsj, xt_zhgxrid,
|
||||
xt_zhgxr, xt_zhgxbmdm, xt_zhgxbm, bz
|
||||
</sql>
|
||||
|
||||
<!-- 公共sql 面 , 业务层转成了point点:jd、wd-->
|
||||
<sql id="zb_sql">
|
||||
ST_ASWKT
|
||||
(zb)
|
||||
as zb,
|
||||
ST_ASWKT(dtm) as dtm,
|
||||
ST_ASWKT(dtm1) as dtm1,
|
||||
ST_ASWKT(dtm2) as dtm2
|
||||
</sql>
|
||||
|
||||
<!-- 从子表中关联查询到公安机关主键Id -->
|
||||
<select id="getGajgFromGlbl" resultType="String">
|
||||
select gajg_id from mosty_yszx.tb_ys_gajg_glbm where ssbmid = #{ssbmid} and
|
||||
xt_scbz = '0' and xt_sjzt = '1'
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<!-- 引用映射 通过主表查询全部信息-->
|
||||
<select id="getGajg" resultMap="tbYsGajg">
|
||||
select
|
||||
<include refid="base_column_list"/>,
|
||||
<include refid="zb_sql"/>
|
||||
from mosty_yszx.tb_ys_gajg where ssbmid = #{ssbmid}
|
||||
and (ysxl = '001001003' or ysxl = '001001004') and xt_scbz = '0' and xt_sjzt = '1'
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<!-- 引用映射 通过子表查询全部信息-->
|
||||
<select id="getGajgById" resultMap="tbYsGajg">
|
||||
select
|
||||
<include refid="base_column_list"/>,
|
||||
<include refid="zb_sql"/>
|
||||
from mosty_yszx.tb_ys_gajg where xt_scbz = '0' and xt_sjzt = '1'
|
||||
and id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
|
||||
16
mosty-base/src/main/resources/rebel.xml
Normal file
16
mosty-base/src/main/resources/rebel.xml
Normal 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-base</id>
|
||||
|
||||
<classpath>
|
||||
<dir name="E:/project/rs/mosty-dyga-cloud/mosty-base/target/classes">
|
||||
</dir>
|
||||
</classpath>
|
||||
|
||||
</application>
|
||||
Reference in New Issue
Block a user