凭证查询配置

This commit is contained in:
lvleigang 2024-08-29 10:19:01 +08:00
parent 0f8232cee9
commit f6ee41cfe5
4 changed files with 14 additions and 43 deletions

View File

@ -23,22 +23,19 @@ spring:
dynamic:
druid:
filters: stat,log4j2
validationQuery: SELECT 1 # 验证数据库服务可用性的sql.用来检测连接是否有效的sql 因数据库方言而差, 例如 oracle 应该写成 SELECT 1 FROM DUAL
datasource:
master:
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
# type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
url: jdbc:sqlserver://192.168.2.247:9433;DatabaseName=businesscenter;encrypt=false;trustServerCertificate=true
username: sa
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local

View File

@ -145,7 +145,6 @@
, ZBID
, EDID
, JFSQID
, fzdm10
, fzdm11
, fzdm12
, fzdm13

View File

@ -282,29 +282,6 @@ update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{m
<!-- 分页查询列表 采用like格式 -->
<select id="queryFzhs" resultType="com.alibaba.fastjson.JSONObject" parameterType = "com.hzya.frame.grpU8.nxproof.glfzxzl.entity.GlFzxzlEntityDto">
select
<include refid="GlFzxzlEntity_Base_Column_List" />
from GL_Fzxzl
<trim prefix="where" prefixOverrides="and">
<if test="gsdm != null and gsdm != ''"> and gsdm like concat('%',#{gsdm},'%') </if>
<if test="kjnd != null and kjnd != ''"> and kjnd like concat('%',#{kjnd},'%') </if>
<if test="lbdm != null and lbdm != ''"> and lbdm like concat('%',#{lbdm},'%') </if>
<if test="fzdm != null and fzdm != ''"> and fzdm like concat('%',#{fzdm},'%') </if>
<if test="fzmc != null and fzmc != ''"> and fzmc like concat('%',#{fzmc},'%') </if>
<if test="zjm != null and zjm != ''"> and zjm like concat('%',#{zjm},'%') </if>
<if test="f1 != null and f1 != ''"> and f1 like concat('%',#{f1},'%') </if>
<if test="f2 != null and f2 != ''"> and f2 like concat('%',#{f2},'%') </if>
<if test="syzt != null and syzt != ''"> and syzt like concat('%',#{syzt},'%') </if>
<if test="bz != null and bz != ''"> and bz like concat('%',#{bz},'%') </if>
<if test="sjly != null and sjly != ''"> and Sjly like concat('%',#{sjly},'%') </if>
<if test="jlrId != null"> and Jlr_ID like concat('%',#{jlrId},'%') </if>
<if test="jlRq != null and jlRq != ''"> and Jl_RQ like concat('%',#{jlRq},'%') </if>
<if test="xgrId != null"> and Xgr_ID like concat('%',#{xgrId},'%') </if>
<if test="xgRq != null and xgRq != ''"> and Xg_RQ like concat('%',#{xgRq},'%') </if>
<if test="sfmx != null and sfmx != ''"> and SFMX like concat('%',#{sfmx},'%') </if>
<if test="gnlb != null and gnlb != ''"> and GNLB like concat('%',#{gnlb},'%') </if>
<if test="gnlbmc != null and gnlbmc != ''"> and GNLBMC like concat('%',#{gnlbmc},'%') </if>
</trim>
SELECT
fzxlb.lbdm,
fzxlb.gsdm,
@ -314,21 +291,19 @@ update GL_Fzxzl set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{m
FROM
gl_fzxlb fzxlb
LEFT JOIN gl_fzxzl fzxzl ON fzxzl.kjnd= fzxlb.kjnd AND fzxzl.gsdm = fzxlb.gsdm AND fzxzl.lbdm = fzxlb.lbdm
WHERE
<trim prefix="where" prefixOverrides="and">
<if test="sfyz != null and sfyz != ''"> and fzxlb.SFYZ = #{sfyz} </if>
<if test="glFzxzlNrEntityDtos != null and glFzxzlNrEntityDtos.size > 0">
and (
and
<foreach collection="glFzxzlNrEntityDtos" index="index" item="item" open="(" separator="or" close=")">
fzxlb.gsdm = #{item.gsdm}
( fzxlb.gsdm = #{item.gsdm}
AND fzxlb.kjnd = #{item.kjnd}
AND (
<foreach collection="item" index="index1" item="item1" open="(" separator="or" close=")">
<foreach collection="item.glFzxzlNrDmEntityDtos" index="index1" item="item1" open="(" separator="or" close=")">
fzxlb.lbdm = #{item1.lbdm} AND fzxzl.fzdm = #{item1.fzdm}
</foreach>
) )
</foreach>
)
</if>
</trim>
</select>

View File

@ -48,7 +48,7 @@ public class FlywayConfig {
@PostConstruct
public void migrateOrder() {
if("false".equals(enabled)){
if(!"false".equals(enabled)){
String pwd = AESUtil.decrypt(password);
DynamicRoutingDataSource ds = (DynamicRoutingDataSource) dataSource;
DataSource dsDatasource = null;