删除class 添加calss忽略

main
zhanglb 2 years ago
parent 3bd42fc31b
commit 9ec8703729

1
.gitignore vendored

@ -0,0 +1 @@
/target/

@ -1,94 +0,0 @@
#version:1.3
server:
port: 9511
# http
mybatis-plus:
configuration:
map-underscore-to-camel-case: true
call-setters-on-nulls: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
field-strategy: NOT_EMPTY
db-type: MYSQL
spring:
resources:
static-locations: classpath:/,file:./lib/
profiles:
active: dev
application:
name: jp2demo
datasource:
dynamic:
primary: mysql #设置默认的数据源默认值为mysql
strict: false #是否弃用严格模式,如果启用在味匹配到指定数据源时抛出异常
datasource:
#公司病案的文件服务数据库
mysql:
url: jdbc:log4jdbc:mysql://db.docus.cn:3306/docus_archivefile?autoReconnect=true&allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: docus
password: docus702
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
type: com.alibaba.druid.pool.DruidDataSource
# 初始化配置
initial-size: 3
# 最小连接数
min-idle: 3
# 最大连接数
max-active: 15
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间
time-between-eviction-runs-millis: 90000
# 最大空闲时间
min-evictable-idle-time-millis: 1800000
test-while-idle: true
test-on-borrow: false
test-on-return: false
validation-query: select 1
#联众数据库
sqlserver:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: sa
password: 17931
url: jdbc:sqlserver://192.168.8.74:1433;DatabaseName=u_medrecord
# 初始化配置
initial-size: 3
# 最小连接数
min-idle: 3
# 最大连接数
max-active: 15
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间
time-between-eviction-runs-millis: 90000
# 最大空闲时间
min-evictable-idle-time-millis: 1800000
test-while-idle: true
test-on-borrow: false
test-on-return: false
validation-query: select 1
#省厅数据库
sqlserver1:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: sa
password: 17931
url: jdbc:sqlserver://192.168.8.74:1433;DatabaseName=u_medrecord
# 初始化配置
initial-size: 3
# 最小连接数
min-idle: 3
# 最大连接数
max-active: 15
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间
time-between-eviction-runs-millis: 90000
# 最大空闲时间
min-evictable-idle-time-millis: 1800000
test-while-idle: true
test-on-borrow: false
test-on-return: false
validation-query: select 1

@ -1,2 +0,0 @@
# If you use SLF4J. First, you need to tell log4jdbc-log4j2 that you want to use the SLF4J logger
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator

@ -1,9 +0,0 @@
<?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.docus.demo.mapper.mysql.ArchiveFileMapper">
</mapper>

@ -1,42 +0,0 @@
<?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.docus.demo.mapper.mysql.BasicMapper">
<select id="getBasicVoList" resultType="com.docus.demo.vo.BasicVo">
SELECT
patient_id as patient_id,
admiss_times AS admissTimes,
inpatient_no AS inpatientNo,
dis_date AS disDate,
b_column5 as bColumn5
FROM docus_medicalrecord.t_basic
<where>
b_column5 is not null
AND b_column8 = 1
<!-- <if test="dto.inpatientNoList !=null and dto.inpatientNoList.size() != 0 ">-->
<!-- AND inpatient_no in-->
<!-- <foreach collection="dto.inpatientNoList" item="inpatientNo" separator="," open="(" close=")">-->
<!-- #{inpatientNo}-->
<!-- </foreach>-->
<!-- </if>-->
<if test="dto.startDate !=null and dto.startDate != ''">
AND dis_date &gt;=#{dto.startDate}
</if>
<if test="dto.startDate !=null and dto.startDate != ''">
AND dis_date &lt;= #{dto.endDate}
</if>
</where>
limit #{pageStart} ,#{pageEnd}
</select>
</mapper>

@ -1,46 +0,0 @@
<?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.docus.demo.mapper.mysql.ScanAssortMapper">
<insert id="insertBatch">
insert into docus_archivefile.t_scan_assort
(id,patient_id,assort_id,file_title,image_path,scan_page,file_source,file_storage_type,file_pages,creater,create_time,sort)
values
<foreach collection="list" item="item" separator=",">
(#{item.id},#{item.patientId},#{item.assortId},#{item.fileTitle},#{item.imagePath},#{item.scanPage},#{item.fileSource},#{item.fileStorageType},#{item.filePages},#{item.creater},#{item.createTime},#{item.sort})
</foreach>
</insert>
<insert id="insertOrUpdateBatch">
insert into docus_archivefile.t_scan_assort
(id,patient_id,assort_id,file_title,image_path,scan_page,file_source,file_storage_type,file_pages,creater,create_time,sort)
values
<foreach collection="list" item="item" index="index"
separator=",">
(#{item.id},#{item.patientId},#{item.assortId},#{item.fileTitle},#{item.imagePath},#{item.scanPage},#{item.fileSource},#{item.fileStorageType},#{item.filePages},#{item.creater},#{item.createTime},#{item.sort})
</foreach>
ON DUPLICATE KEY UPDATE file_pages = VALUES(file_pages), update_time = NOW(),sort = VALUES(sort);
</insert>
<select id="getListByPid" resultType="com.docus.demo.entity.ScanAssort">
SELECT id,
patient_id,
assort_id,
file_title,
image_path,
scan_page,
file_source,
file_storage_type,
file_pages,
creater,
create_time,
sort
FROM docus_archivefile.t_scan_assort
WHERE patient_id = #{pid}
</select>
</mapper>

@ -1,17 +0,0 @@
<?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.docus.demo.mapper.sqlserver.PictureMapper">
<select id="getPictureInfoByCid" resultType="com.docus.demo.entity.TPicture">
SELECT
PicName,
PicKind,
RotateDegree
FROM
T_picture
where cuid = #{cuid}
</select>
</mapper>

@ -1,32 +0,0 @@
<?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.docus.demo.mapper.sqlserver1.PaintVisitMapper">
<select id="getTpatientVisitList" resultType="com.docus.demo.entity.sqlserver1.Tpatientvisit">
SELECT * FROM Tpatientvisit
<where>
<if test="dto.inpatientNoList !=null and dto.inpatientNoList.size() != 0 ">
AND fprn in
<foreach collection="dto.inpatientNoList" item="inpatientNo" separator="," open="(" close=")">
#{inpatientNo}
</foreach>
</if>
<if test="dto.startDate !=null and dto.startDate != ''">
AND fcydate &gt;=#{dto.startDate}
</if>
<if test="dto.startDate !=null and dto.startDate != ''">
AND fcydate &lt;= #{dto.endDate}
</if>
</where>
</select>
</mapper>

@ -1,9 +0,0 @@
<?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.docus.demo.mapper.sqlserver1.TdiagnoseMapper">
</mapper>

@ -1,9 +0,0 @@
<?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.docus.demo.mapper.sqlserver1.TopreationMapper">
</mapper>

@ -1,8 +0,0 @@
<?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.docus.demo.mapper.sqlserver2.TscanMapper">
</mapper>
Loading…
Cancel
Save