数据库配置修改

master
徐杰盟 2023-09-14 10:58:35 +08:00
parent e64f7a0de5
commit cdd4f29989
6 changed files with 21 additions and 21 deletions

View File

@ -32,7 +32,7 @@ import static com.whdc.model.MyConstant.REC;
@Data @Data
@ApiModel(description = "正常范围规则表") @ApiModel(description = "正常范围规则表")
@Accessors(chain = true) @Accessors(chain = true)
@TableName("E_RULE") @TableName("SHZH_IOT.E_RULE")
public class ERule extends Model<ERule> { public class ERule extends Model<ERule> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**

View File

@ -29,7 +29,7 @@ import static com.whdc.model.MyConstant.REC;
@Data @Data
@ApiModel(description = "测站关联规则表") @ApiModel(description = "测站关联规则表")
@Accessors(chain = true) @Accessors(chain = true)
@TableName("E_STATION_RULES") @TableName("SHZH_IOT.E_STATION_RULES")
public class EStationRules extends Model<EStationRules> { public class EStationRules extends Model<EStationRules> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**

View File

@ -17,7 +17,7 @@ public interface ValidateMapper {
* @param stcd * @param stcd
* @return * @return
*/ */
@Select("SELECT E.ITEM,E.MIN,E.MAX,E.DIFF_MAX,E.DURATION,E.LEADING_TIME,E.LAG_TIME,T.SORT FROM E_STATION_RULES T LEFT JOIN E_RULE E ON T.RULE_ID = E.ID WHERE T.DEL = 1 AND E.DEL = 1 AND T.STCD = #{stcd} ORDER BY T.SORT ASC;") @Select("SELECT E.ITEM,E.MIN,E.MAX,E.DIFF_MAX,E.DURATION,E.LEADING_TIME,E.LAG_TIME,T.SORT FROM SHZH_IOT.E_STATION_RULES T LEFT JOIN SHZH_IOT.E_RULE E ON T.RULE_ID = E.ID WHERE T.DEL = 1 AND E.DEL = 1 AND T.STCD = #{stcd} ORDER BY T.SORT ASC;")
List<ValidateVo> getRuleByStcd(String stcd); List<ValidateVo> getRuleByStcd(String stcd);

View File

@ -6,12 +6,12 @@ spring:
datasource: datasource:
type: com.alibaba.druid.pool.DruidDataSource type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: dm.jdbc.driver.DmDriver driver-class-name: dm.jdbc.driver.DmDriver
url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA # url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA
username: SYSDBA # username: SYSDBA
password: 199999999 # password: 199999999
# url: jdbc:dm://10.42.6.142:5236?schema=SHZH url: jdbc:dm://10.42.6.247:5236?schema=SHZH
# username: SHZH username: SHZH
# password: Shzh_890 password: Shzh_890
druid: druid:
initialSize: 5 initialSize: 5
minIdle: 5 minIdle: 5
@ -35,20 +35,20 @@ spring:
# Redis # Redis
redis: redis:
database: 5 database: 5
# host: 10.42.6.75 host: 10.42.6.75
host: 127.0.0.1 # host: 127.0.0.1
port: 6379 port: 6379
password: # password:
# password: Whdc_890 password: Whdc_890
# 数据清洗专用redis # 数据清洗专用redis
redisRules: redisRules:
database: 6 database: 6
# host: 10.42.6.75 host: 10.42.6.75
host: 127.0.0.1 # host: 127.0.0.1
port: 6379 port: 6379
password: Whdc_890 # password: Whdc_890
# password: password:
timeout: 60000 timeout: 60000
lettuce: lettuce:
pool: pool:

View File

@ -6,7 +6,7 @@
SELECT SELECT
E.* E.*
FROM FROM
E_RULE E SHZH_IOT.E_RULE E
WHERE 1=1 E.DEL = 1 WHERE 1=1 E.DEL = 1
<if test="findDto.stm != null and findDto.stm != '' and findDto.etm != null and findDto.etm != ''"> <if test="findDto.stm != null and findDto.stm != '' and findDto.etm != null and findDto.etm != ''">
AND E.CREATETIME &gt;= '${findDto.stm}' and E.CREATETIME &lt;= AND E.CREATETIME &gt;= '${findDto.stm}' and E.CREATETIME &lt;=

View File

@ -5,7 +5,7 @@
<select id="find" resultType="com.whdc.model.entity.EStationRules"> <select id="find" resultType="com.whdc.model.entity.EStationRules">
SELECT * FROM E_STATION_RULES T SELECT * FROM SHZH_IOT.E_STATION_RULES T
WHERE 1 = 1 AND T.DEL = 1 WHERE 1 = 1 AND T.DEL = 1
<if test="findDto.name != null and findDto.name != '' "> <if test="findDto.name != null and findDto.name != '' ">
@ -20,8 +20,8 @@
<select id="page" resultType="com.whdc.model.vo.EStationRulesVo"> <select id="page" resultType="com.whdc.model.vo.EStationRulesVo">
SELECT * FROM E_STATION_RULES T SELECT * FROM SHZH_IOT.E_STATION_RULES T
LEFT JOIN E_RULE E ON T.RULE_ID = E.ID LEFT JOIN SHZH_IOT.E_RULE E ON T.RULE_ID = E.ID
WHERE 1 = 1 AND T.DEL = 1 WHERE 1 = 1 AND T.DEL = 1
<if test="findDto.name != null and findDto.name != '' "> <if test="findDto.name != null and findDto.name != '' ">
AND T.NAME LIKE CONCAT('%', #{findDto.name}, '%') AND T.NAME LIKE CONCAT('%', #{findDto.name}, '%')