数据库配置修改
parent
e64f7a0de5
commit
cdd4f29989
|
|
@ -32,7 +32,7 @@ import static com.whdc.model.MyConstant.REC;
|
|||
@Data
|
||||
@ApiModel(description = "正常范围规则表")
|
||||
@Accessors(chain = true)
|
||||
@TableName("E_RULE")
|
||||
@TableName("SHZH_IOT.E_RULE")
|
||||
public class ERule extends Model<ERule> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import static com.whdc.model.MyConstant.REC;
|
|||
@Data
|
||||
@ApiModel(description = "测站关联规则表")
|
||||
@Accessors(chain = true)
|
||||
@TableName("E_STATION_RULES")
|
||||
@TableName("SHZH_IOT.E_STATION_RULES")
|
||||
public class EStationRules extends Model<EStationRules> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public interface ValidateMapper {
|
|||
* @param stcd
|
||||
* @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);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ spring:
|
|||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: dm.jdbc.driver.DmDriver
|
||||
url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA
|
||||
username: SYSDBA
|
||||
password: 199999999
|
||||
# url: jdbc:dm://10.42.6.142:5236?schema=SHZH
|
||||
# username: SHZH
|
||||
# password: Shzh_890
|
||||
# url: jdbc:dm://127.0.0.1:5236?schema=SYSDBA
|
||||
# username: SYSDBA
|
||||
# password: 199999999
|
||||
url: jdbc:dm://10.42.6.247:5236?schema=SHZH
|
||||
username: SHZH
|
||||
password: Shzh_890
|
||||
druid:
|
||||
initialSize: 5
|
||||
minIdle: 5
|
||||
|
|
@ -35,20 +35,20 @@ spring:
|
|||
# Redis
|
||||
redis:
|
||||
database: 5
|
||||
# host: 10.42.6.75
|
||||
host: 127.0.0.1
|
||||
host: 10.42.6.75
|
||||
# host: 127.0.0.1
|
||||
port: 6379
|
||||
password:
|
||||
# password: Whdc_890
|
||||
# password:
|
||||
password: Whdc_890
|
||||
|
||||
# 数据清洗专用redis
|
||||
redisRules:
|
||||
database: 6
|
||||
# host: 10.42.6.75
|
||||
host: 127.0.0.1
|
||||
host: 10.42.6.75
|
||||
# host: 127.0.0.1
|
||||
port: 6379
|
||||
password: Whdc_890
|
||||
# password:
|
||||
# password: Whdc_890
|
||||
password:
|
||||
timeout: 60000
|
||||
lettuce:
|
||||
pool:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
SELECT
|
||||
E.*
|
||||
FROM
|
||||
E_RULE E
|
||||
SHZH_IOT.E_RULE E
|
||||
WHERE 1=1 E.DEL = 1
|
||||
<if test="findDto.stm != null and findDto.stm != '' and findDto.etm != null and findDto.etm != ''">
|
||||
AND E.CREATETIME >= '${findDto.stm}' and E.CREATETIME <=
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
<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
|
||||
<if test="findDto.name != null and findDto.name != '' ">
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
|
||||
|
||||
<select id="page" resultType="com.whdc.model.vo.EStationRulesVo">
|
||||
SELECT * FROM E_STATION_RULES T
|
||||
LEFT JOIN E_RULE E ON T.RULE_ID = E.ID
|
||||
SELECT * FROM SHZH_IOT.E_STATION_RULES T
|
||||
LEFT JOIN SHZH_IOT.E_RULE E ON T.RULE_ID = E.ID
|
||||
WHERE 1 = 1 AND T.DEL = 1
|
||||
<if test="findDto.name != null and findDto.name != '' ">
|
||||
AND T.NAME LIKE CONCAT('%', #{findDto.name}, '%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue