parent
d67cf3db42
commit
7bcd905806
43 changed files with 15508 additions and 487 deletions
Binary file not shown.
@ -0,0 +1,50 @@ |
||||
package com.hisense.hiatmp.base.controller; |
||||
|
||||
import com.hisense.hiatmp.base.mapper.HighDangerMapper; |
||||
import com.hisense.hiatmp.base.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.base.model.OperatorDTO; |
||||
import com.hisense.hiatmp.model.common.HighDangerBase; |
||||
import com.hisense.hiatmp.model.common.HighDangerBaseNum; |
||||
import com.hisense.hiatmp.model.common.HighDangerBaseVO; |
||||
import com.hisense.hiatmp.model.common.ServerResponse; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
|
||||
@RestController |
||||
@RequestMapping(value = "/highDanger") |
||||
public class HighDangerController { |
||||
|
||||
@Autowired |
||||
OperatorMapper operatorMapper; |
||||
|
||||
@Autowired |
||||
HighDangerMapper highDangerMapper; |
||||
|
||||
// 查询各个状态的数据情况
|
||||
@GetMapping("/getHighDangerStatusNum/{nuserid}") |
||||
public ServerResponse<?> getHighStatusNum(@PathVariable String nuserid){ |
||||
|
||||
OperatorDTO operatorById = operatorMapper.getOperatorById(nuserid); |
||||
String cdepartmentid = operatorById.getCdepartmentid(); |
||||
|
||||
List<HighDangerBaseNum> statusCounts = highDangerMapper.getStatusCounts(cdepartmentid); |
||||
|
||||
return ServerResponse.ok(statusCounts); |
||||
} |
||||
|
||||
// 查询各状态列表
|
||||
@GetMapping("/getHigDangerDealt") |
||||
public ServerResponse<?> getHighDealt(@RequestBody HighDangerBaseVO highDangerBaseVO){ |
||||
|
||||
OperatorDTO operatorById = operatorMapper.getOperatorById(highDangerBaseVO.getNuserid()); |
||||
String cdepartmentid = operatorById.getCdepartmentid(); |
||||
|
||||
List<HighDangerBase> statusCounts = highDangerMapper.getHigDangerDealt(highDangerBaseVO.getStatus(),cdepartmentid); |
||||
|
||||
return ServerResponse.ok(statusCounts); |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,32 @@ |
||||
package com.hisense.hiatmp.base.controller; |
||||
|
||||
import com.hisense.hiatmp.base.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.base.model.OperatorDTO; |
||||
import com.hisense.hiatmp.model.common.ServerResponse; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
@RestController |
||||
@RequestMapping("/operator") |
||||
public class OperatorController { |
||||
|
||||
@Autowired |
||||
OperatorMapper operatorMapper; |
||||
|
||||
// 查询指定用户
|
||||
@GetMapping("/getOperatorById/{nuserid}") |
||||
public ServerResponse<?> getOperatorById(@PathVariable String nuserid){ |
||||
OperatorDTO operatorById = operatorMapper.getOperatorById(nuserid); |
||||
if(operatorById != null){ |
||||
return ServerResponse.ok(operatorById); |
||||
}else{ |
||||
return ServerResponse.error("未查询到用户信息"); |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,27 @@ |
||||
package com.hisense.hiatmp.base.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.hisense.hiatmp.model.common.HighDangerBase; |
||||
import com.hisense.hiatmp.model.common.HighDangerBaseNum; |
||||
import com.hisense.hiatmp.model.common.HighDangerBaseVO; |
||||
import org.apache.ibatis.annotations.Mapper; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
@Repository |
||||
public interface HighDangerMapper { |
||||
|
||||
// String getHighDangerStatusNum(@Param("postId") String postId);
|
||||
List<HighDangerBaseNum> getStatusCounts(String cdepartmentid); |
||||
|
||||
List<HighDangerBase> getHigDangerDealt(String status, String cdepartmentid); |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,11 @@ |
||||
package com.hisense.hiatmp.base.mapper; |
||||
|
||||
import com.hisense.hiatmp.base.model.OperatorDTO; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.stereotype.Repository; |
||||
|
||||
@Repository |
||||
public interface OperatorMapper { |
||||
|
||||
OperatorDTO getOperatorById(@Param("nuserid") String nuserid); |
||||
} |
||||
@ -0,0 +1,25 @@ |
||||
package com.hisense.hiatmp.base.model; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
public class OperatorDTO implements Serializable { |
||||
private static final long serialVersionUID = -8763233643579533470L; |
||||
// 用户警号
|
||||
private String nuserid; |
||||
// 用户名称
|
||||
private String cusername; |
||||
|
||||
// 用户密码
|
||||
@JsonIgnore |
||||
private String cuserpwd; |
||||
// 客户端ip
|
||||
private String ip; |
||||
private String cdescription; |
||||
private String phone; |
||||
private String cdepartmentid; |
||||
|
||||
} |
||||
@ -0,0 +1,14 @@ |
||||
package com.hisense.hiatmp.base.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hisense.hiatmp.model.common.HighDangerBase; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
@Service |
||||
public interface HighDangerService { |
||||
|
||||
List<Map<String, String>> getHighDangerStatusNum(String nuserid); |
||||
} |
||||
@ -0,0 +1,10 @@ |
||||
package com.hisense.hiatmp.base.service; |
||||
|
||||
import com.hisense.hiatmp.base.model.OperatorDTO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
public interface OperatorService { |
||||
|
||||
public OperatorDTO getOperatorById(String nuserid); |
||||
} |
||||
@ -0,0 +1,26 @@ |
||||
package com.hisense.hiatmp.base.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.hisense.hiatmp.base.mapper.CommonMapper; |
||||
import com.hisense.hiatmp.base.mapper.HighDangerMapper; |
||||
import com.hisense.hiatmp.base.service.HighDangerService; |
||||
import com.hisense.hiatmp.model.common.HighDangerBase; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.Collections; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
@Service |
||||
public class HighDangerBaseServiceImpl implements HighDangerService { |
||||
|
||||
@Autowired |
||||
private HighDangerMapper highDangerMapper; |
||||
|
||||
@Override |
||||
public List<Map<String, String>> getHighDangerStatusNum(String nuserid) { |
||||
|
||||
return Collections.emptyList(); |
||||
} |
||||
} |
||||
@ -0,0 +1,19 @@ |
||||
package com.hisense.hiatmp.base.service.impl; |
||||
|
||||
import com.hisense.hiatmp.base.mapper.OperatorMapper; |
||||
import com.hisense.hiatmp.base.model.OperatorDTO; |
||||
import com.hisense.hiatmp.base.service.OperatorService; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
@Service |
||||
public class OperatorServiceImpl implements OperatorService { |
||||
|
||||
@Autowired |
||||
OperatorMapper operatorMapper; |
||||
|
||||
@Override |
||||
public OperatorDTO getOperatorById(String nuserid) { |
||||
return operatorMapper.getOperatorById(nuserid); |
||||
} |
||||
} |
||||
@ -1,77 +1,59 @@ |
||||
server: |
||||
port: 1959 |
||||
servlet: |
||||
context-path: /HiatmpPro/commond |
||||
port: 1959 |
||||
servlet: |
||||
context-path: /HiatmpPro/commond |
||||
#运行模式 开发环境:dev 测试环境:test 生产环境: production |
||||
run-mode: dev |
||||
spring: |
||||
application: |
||||
name: urbantraffic-hiatmp-base |
||||
# cloud: |
||||
# nacos:` |
||||
# discovery: |
||||
## server-addr: 10.16.3.178:8848 |
||||
# server-addr: localhost:8848 |
||||
#6.1管控平台数据库地址、账号、密码,根据项目现场进行修改 |
||||
datasource: |
||||
driver-class-name: org.postgresql.Driver |
||||
url: jdbc:postgresql://118.89.79.160:5432/postgres |
||||
username: postgres |
||||
password: postgres123 |
||||
|
||||
type: com.alibaba.druid.pool.DruidDataSource |
||||
# 配置获取连接等待超时的时间,单位毫秒 |
||||
maxWait: 60000 |
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 |
||||
time-between-eviction-runs-millis: 60000 |
||||
# 配置一个连接在池中最小生存的时间,单位毫秒 |
||||
min-evictable-idle-time-millis: 300000 |
||||
validation-query: SELECT 1 FROM DUAL |
||||
test-while-idle: true |
||||
test-on-borrow: false |
||||
test-on-return: false |
||||
# datasource: |
||||
# primary: |
||||
# jdbc-url: jdbc:postgresql://118.89.79.160:5432/postgres |
||||
# username: postgres |
||||
# password: postgres123 |
||||
# # 下面为数据库连接池相关参数,一般不需修改 |
||||
# driver-class-name: org.postgresql.Driver |
||||
# type: com.alibaba.druid.pool.DruidDataSource |
||||
# # 配置获取连接等待超时的时间,单位毫秒 |
||||
# maxWait: 60000 |
||||
# # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 |
||||
# time-between-eviction-runs-millis: 60000 |
||||
# # 配置一个连接在池中最小生存的时间,单位毫秒 |
||||
# min-evictable-idle-time-millis: 300000 |
||||
# validation-query: SELECT 1 FROM DUAL |
||||
# test-while-idle: true |
||||
# test-on-borrow: false |
||||
# test-on-return: false |
||||
redis: |
||||
database: 0 |
||||
# host: 10.16.3.179 |
||||
host: 127.0.0.1 |
||||
port: 6379 |
||||
password: |
||||
timeout: 10000 |
||||
application: |
||||
name: urbantraffic-hiatmp-base |
||||
cloud: |
||||
nacos: |
||||
discovery: |
||||
server-addr: 10.16.3.178:8848 |
||||
#server-addr: localhost:8848 |
||||
#6.1管控平台数据库地址、账号、密码,根据项目现场进行修改 |
||||
datasource: |
||||
primary: |
||||
jdbc-url: jdbc:postgresql://118.89.79.160:5432/postgres |
||||
username: postgres |
||||
password: postgres123 |
||||
# 下面为数据库连接池相关参数,一般不需修改 |
||||
driver-class-name: org.postgresql.Driver |
||||
type: com.alibaba.druid.pool.DruidDataSource |
||||
# 配置获取连接等待超时的时间,单位毫秒 |
||||
maxWait: 60000 |
||||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒 |
||||
time-between-eviction-runs-millis: 60000 |
||||
# 配置一个连接在池中最小生存的时间,单位毫秒 |
||||
min-evictable-idle-time-millis: 300000 |
||||
validation-query: SELECT 1 FROM DUAL |
||||
test-while-idle: true |
||||
test-on-borrow: false |
||||
test-on-return: false |
||||
redis: |
||||
database: 0 |
||||
host: 10.16.3.179 |
||||
port: 6379 |
||||
password: Hiface.1 |
||||
timeout: 10000 |
||||
|
||||
ssoUrl: http://10.16.3.178:801 |
||||
# 下面部分为mybatis及log配置,一般不需修改 |
||||
mybatis: |
||||
mapper-locations: classpath*:sql-mapper/*.xml |
||||
mapUnderscoreToCamelCase: true |
||||
mapper-locations: classpath*:sql-mapper/*.xml |
||||
mapUnderscoreToCamelCase: true |
||||
logging: |
||||
config: classpath:log4j2.xml |
||||
config: classpath:log4j2.xml |
||||
jasypt: |
||||
encryptor: |
||||
password: G0CvDz7oJn6 |
||||
encrypted: 0 |
||||
keys: |
||||
- spring.datasource.primary.password |
||||
- spring.datasource.primary.username |
||||
- spring.datasource2.password |
||||
- spring.datasource2.username |
||||
- spring.datasource3.password |
||||
- spring.datasource3.username |
||||
encryptor: |
||||
password: G0CvDz7oJn6 |
||||
encrypted: 0 |
||||
keys: |
||||
- spring.datasource.primary.password |
||||
- spring.datasource.primary.username |
||||
- spring.datasource2.password |
||||
- spring.datasource2.username |
||||
- spring.datasource3.password |
||||
- spring.datasource3.username |
||||
addUserUrl: 157.3.132.31:50083/system/user/gs/add |
||||
@ -0,0 +1,69 @@ |
||||
<?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.hisense.hiatmp.base.mapper.HighDangerMapper"> |
||||
|
||||
<select id="getStatusCounts" resultType="com.hisense.hiatmp.model.common.HighDangerBaseNum"> |
||||
SELECT 'Unconfirmed' AS status, SUM(CASE WHEN hdb.status = '0' THEN 1 ELSE 0 END) AS count |
||||
FROM tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' AND et.enumvalue = hdb.status |
||||
WHERE hdb.handle_dept = #{cdepartmentid} |
||||
|
||||
UNION ALL |
||||
|
||||
SELECT 'UnderInvestigation' AS status, SUM(CASE WHEN hdb.status = '10' THEN 1 ELSE 0 END) AS count |
||||
FROM tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' AND et.enumvalue = hdb.status |
||||
WHERE hdb.handle_dept = #{cdepartmentid} |
||||
|
||||
UNION ALL |
||||
|
||||
SELECT 'InGovernance' AS status, SUM(CASE WHEN hdb.status = '20' THEN 1 ELSE 0 END) AS count |
||||
FROM tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' AND et.enumvalue = hdb.status |
||||
WHERE hdb.handle_dept = #{cdepartmentid} |
||||
|
||||
UNION ALL |
||||
|
||||
SELECT 'Tracking' AS status, SUM(CASE WHEN hdb.status = '30' THEN 1 ELSE 0 END) AS count |
||||
FROM tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' AND et.enumvalue = hdb.status |
||||
WHERE hdb.handle_dept = #{cdepartmentid} |
||||
|
||||
UNION ALL |
||||
|
||||
SELECT 'NonHazard' AS status, SUM(CASE WHEN hdb.status = '50' THEN 1 ELSE 0 END) AS count |
||||
FROM tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' AND et.enumvalue = hdb.status |
||||
WHERE hdb.handle_dept = #{cdepartmentid} |
||||
</select> |
||||
|
||||
<select id="getHigDangerDealt" resultType="com.hisense.hiatmp.model.common.HighDangerBase"> |
||||
SELECT |
||||
* |
||||
FROM |
||||
tht_hidden_danger_base hdb |
||||
LEFT JOIN tht_hidden_danger_road hdr ON hdb.business_id = hdr.business_id |
||||
AND hdb.pc_count = hdr.pc_count |
||||
LEFT JOIN department dp ON hdb.handle_dept = dp.cdepartmentid |
||||
LEFT JOIN enum_type et ON et.ENUMTYPEID = '6601' |
||||
AND et.enumvalue = hdb.status |
||||
WHERE |
||||
hdb.handle_dept = #{cdepartmentid} |
||||
AND hdb.status = #{statuss} |
||||
|
||||
</select> |
||||
|
||||
|
||||
</mapper> |
||||
@ -0,0 +1,11 @@ |
||||
<?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.hisense.hiatmp.base.mapper.OperatorMapper"> |
||||
|
||||
<select id="getOperatorById" resultType="com.hisense.hiatmp.base.model.OperatorDTO"> |
||||
select * from operator where nuserid = #{nuserid} |
||||
</select> |
||||
|
||||
</mapper> |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,166 @@ |
||||
package com.hisense.hiatmp.model.common; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
public class HighDangerBase implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@TableId(type = IdType.AUTO) |
||||
/** |
||||
* nid |
||||
*/ |
||||
private String nid; |
||||
|
||||
/** |
||||
* business_id |
||||
*/ |
||||
private String businessId; |
||||
|
||||
/** |
||||
* name |
||||
*/ |
||||
private String name; |
||||
|
||||
/** |
||||
* type |
||||
*/ |
||||
private String type; |
||||
|
||||
/** |
||||
* source |
||||
*/ |
||||
private String source; |
||||
|
||||
/** |
||||
* find_way |
||||
*/ |
||||
private String findWay; |
||||
|
||||
/** |
||||
* area |
||||
*/ |
||||
private String area; |
||||
|
||||
/** |
||||
* status |
||||
*/ |
||||
private String status; |
||||
|
||||
/** |
||||
* find_time |
||||
*/ |
||||
private String findTime; |
||||
|
||||
/** |
||||
* operator |
||||
*/ |
||||
private String operator; |
||||
|
||||
/** |
||||
* insert_time |
||||
*/ |
||||
private String insertTime; |
||||
|
||||
/** |
||||
* pc_start_time |
||||
*/ |
||||
private String pcStartTime; |
||||
|
||||
/** |
||||
* pc_end_time |
||||
*/ |
||||
private String pcEndTime; |
||||
|
||||
/** |
||||
* zl_start_time |
||||
*/ |
||||
private String zlStartTime; |
||||
|
||||
/** |
||||
* zl_end_time |
||||
*/ |
||||
private String zlEndTime; |
||||
|
||||
/** |
||||
* gz_start_time |
||||
*/ |
||||
private String gzStartTime; |
||||
|
||||
/** |
||||
* gz_end_time |
||||
*/ |
||||
private String gzEndTime; |
||||
|
||||
/** |
||||
* report_dept |
||||
*/ |
||||
private String reportDept; |
||||
|
||||
/** |
||||
* handle_dept |
||||
*/ |
||||
private String handleDept; |
||||
|
||||
/** |
||||
* delay_status |
||||
*/ |
||||
private String delayStatus; |
||||
|
||||
/** |
||||
* delay_count |
||||
*/ |
||||
private String delayCount; |
||||
|
||||
/** |
||||
* delay_day |
||||
*/ |
||||
private String delayDay; |
||||
|
||||
/** |
||||
* pc_count |
||||
*/ |
||||
private String pcCount; |
||||
|
||||
/** |
||||
* split_id |
||||
*/ |
||||
private String splitId; |
||||
|
||||
/** |
||||
* risk_hd_desc |
||||
*/ |
||||
private String riskHdDesc; |
||||
|
||||
/** |
||||
* road_condition |
||||
*/ |
||||
private String roadCondition; |
||||
|
||||
/** |
||||
* fa_start_time |
||||
*/ |
||||
private String faStartTime; |
||||
|
||||
/** |
||||
* fa_end_time |
||||
*/ |
||||
private String faEndTime; |
||||
|
||||
/** |
||||
* approve_status |
||||
*/ |
||||
private String approveStatus; |
||||
|
||||
/** |
||||
* last_mod_date |
||||
*/ |
||||
private String lastModDate; |
||||
|
||||
} |
||||
@ -0,0 +1,43 @@ |
||||
package com.hisense.hiatmp.model.common; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
public class HighDangerBaseNum implements Serializable { |
||||
|
||||
private static final long serialVersionUID = -8763233643579533472L; |
||||
|
||||
private String status; |
||||
private int count; |
||||
|
||||
// Getters and Setters
|
||||
public String getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public void setStatus(String status) { |
||||
this.status = status; |
||||
} |
||||
|
||||
public int getCount() { |
||||
return count; |
||||
} |
||||
|
||||
public void setCount(int count) { |
||||
this.count = count; |
||||
} |
||||
// // 用户警号
|
||||
// private String unconfirmedCount;
|
||||
// // 用户名称
|
||||
// private String underInvestigationCount;
|
||||
//
|
||||
// private String inGovernanceCount;
|
||||
//
|
||||
// private String trackingCount;
|
||||
//
|
||||
// private String nonHazardCount;
|
||||
|
||||
} |
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,13 +1,81 @@ |
||||
2024-07-09 08:05:14,191 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Starting AdminServerMain on Lyblue_mc with PID 32680 (D:\DEV\Code\highDanger\urbantraffic-parent\hiatmp-admin-server\target\classes started by 云曦 in D:\DEV\Code\highDanger\urbantraffic-parent) |
||||
2024-07-09 08:05:14,197 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - No active profile set, falling back to default profiles: default |
||||
2024-07-09 08:05:15,089 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-31002"] |
||||
2024-07-09 08:05:15,090 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] |
||||
2024-07-09 08:05:15,090 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.33] |
||||
2024-07-09 08:05:15,171 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext |
||||
2024-07-09 08:05:16,057 [main] WARN com.baomidou.mybatisplus.core.metadata.TableInfoHelper - Can not find table primary key in Class: "com.hisense.hiatmp.adminServer.entity.User". |
||||
2024-07-09 08:05:16,064 [main] WARN com.baomidou.mybatisplus.core.injector.DefaultSqlInjector - class com.hisense.hiatmp.adminServer.entity.User ,Not found @TableId annotation, Cannot use Mybatis-Plus 'xxById' Method. |
||||
2024-07-09 08:05:16,976 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-31002"] |
||||
2024-07-09 08:05:16,995 [main] INFO com.hisense.hiatmp.adminServer.AdminServerMain - Started AdminServerMain in 3.068 seconds (JVM running for 4.117) |
||||
2024-07-09 08:05:17,402 [RMI TCP Connection(1)-192.168.3.52] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet' |
||||
2024-07-09 08:05:17,404 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... |
||||
2024-07-09 08:05:18,038 [RMI TCP Connection(2)-192.168.3.52] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. |
||||
2024-07-09 17:30:27,249 [main] INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}} |
||||
2024-07-09 17:30:27,255 [main] INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer - [Nacos Config Boot] : The preload configuration is not enabled |
||||
2024-07-09 17:30:27,489 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor - Post-processing PropertySource instances |
||||
2024-07-09 17:30:27,538 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy |
||||
2024-07-09 17:30:27,539 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource bootstrap [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:27,539 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:27,539 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:27,540 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper |
||||
2024-07-09 17:30:27,540 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:27,575 [main] INFO com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter |
||||
2024-07-09 17:30:27,595 [main] INFO com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver |
||||
2024-07-09 17:30:27,597 [main] INFO com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector |
||||
2024-07-09 17:30:28,093 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesConfiguration - Bootstraping jasypt-string-boot auto configuration in context: application-1 |
||||
2024-07-09 17:30:28,093 [main] INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}} |
||||
2024-07-09 17:30:28,094 [main] INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer - [Nacos Config Boot] : The preload configuration is not enabled |
||||
2024-07-09 17:30:28,094 [main] INFO com.hisense.hiatmp.base.BaseApplication - No active profile set, falling back to default profiles: default |
||||
2024-07-09 17:30:29,492 [main] INFO com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesBeanFactoryPostProcessor - Post-processing PropertySource instances |
||||
2024-07-09 17:30:29,509 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource configurationProperties [org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertySource] to AOP Proxy |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource servletConfigInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource servletContextInitParams [org.springframework.core.env.PropertySource$StubPropertySource] to EncryptablePropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource systemEnvironment [org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor$OriginAwareSystemEnvironmentPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource random [org.springframework.boot.env.RandomValuePropertySource] to EncryptablePropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource applicationConfig: [classpath:/application.properties] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource applicationConfig: [classpath:/application.yml] [org.springframework.boot.env.OriginTrackedMapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,510 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource springCloudClientHostInfo [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,511 [main] INFO com.ulisesbocchio.jasyptspringboot.EncryptablePropertySourceConverter - Converting PropertySource defaultProperties [org.springframework.core.env.MapPropertySource] to EncryptableMapPropertySourceWrapper |
||||
2024-07-09 17:30:29,552 [main] INFO com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter - Property Filter custom Bean not found with name 'encryptablePropertyFilter'. Initializing Default Property Filter |
||||
2024-07-09 17:30:29,836 [main] INFO com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver - Property Resolver custom Bean not found with name 'encryptablePropertyResolver'. Initializing Default Property Resolver |
||||
2024-07-09 17:30:29,838 [main] INFO com.ulisesbocchio.jasyptspringboot.detector.DefaultLazyPropertyDetector - Property Detector custom Bean not found with name 'encryptablePropertyDetector'. Initializing Default Property Detector |
||||
2024-07-09 17:30:30,187 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-1959"] |
||||
2024-07-09 17:30:30,198 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat] |
||||
2024-07-09 17:30:30,200 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.17] |
||||
2024-07-09 17:30:30,373 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/HiatmpPro/commond] - Initializing Spring embedded WebApplicationContext |
||||
2024-07-09 17:30:30,546 [main] INFO com.hisense.hiatmp.common.config.DataSourceConfig - 第一数据库连接池创建中....... |
||||
2024-07-09 17:30:32,846 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] |
||||
2024-07-09 17:30:32,917 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. |
||||
2024-07-09 17:30:32,918 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. |
||||
2024-07-09 17:30:32,925 [main] WARN com.netflix.config.sources.URLConfigurationSource - No URLs will be polled as dynamic configuration sources. |
||||
2024-07-09 17:30:32,925 [main] INFO com.netflix.config.sources.URLConfigurationSource - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. |
||||
2024-07-09 17:30:35,595 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper - Context refreshed |
||||
2024-07-09 17:30:35,639 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper - Found 1 custom documentation plugin(s) |
||||
2024-07-09 17:30:35,724 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner - Scanning for api listing references |
||||
2024-07-09 17:30:36,179 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-1959"] |
||||
2024-07-09 17:30:36,709 [http-nio-1959-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/HiatmpPro/commond] - Initializing Spring DispatcherServlet 'dispatcherServlet' |
||||
2024-07-09 17:30:36,845 [http-nio-1959-exec-2] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... |
||||
2024-07-09 17:30:37,760 [http-nio-1959-exec-2] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. |
||||
2024-07-09 17:30:39,456 [main] ERROR com.alibaba.cloud.nacos.registry.NacosServiceRegistry - nacos registry, urbantraffic-hiatmp-base register failed...NacosRegistration{nacosDiscoveryProperties=NacosDiscoveryProperties{serverAddr='10.16.3.178:8848', endpoint='', namespace='', watchDelay=30000, logName='', service='urbantraffic-hiatmp-base', weight=1.0, clusterName='DEFAULT', namingLoadCacheAtStart='false', metadata={preserved.register.source=SPRING_CLOUD}, registerEnabled=true, ip='192.168.64.1', networkInterface='', port=1959, secure=false, accessKey='', secretKey=''}}, |
||||
java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([10.16.3.178:8848]) tried: failed to req API:10.16.3.178:8848/nacos/v1/ns/instance. code:500 msg: java.net.SocketTimeoutException: connect timed out |
||||
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:464) ~[nacos-client-1.1.1.jar:?] |
||||
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:386) ~[nacos-client-1.1.1.jar:?] |
||||
at com.alibaba.nacos.client.naming.net.NamingProxy.registerService(NamingProxy.java:188) ~[nacos-client-1.1.1.jar:?] |
||||
at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:205) ~[nacos-client-1.1.1.jar:?] |
||||
at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:184) ~[nacos-client-1.1.1.jar:?] |
||||
at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:61) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] |
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:239) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] |
||||
at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:74) [spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE] |
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:138) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] |
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.bind(AbstractAutoServiceRegistration.java:101) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] |
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:88) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] |
||||
at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:47) [spring-cloud-commons-2.1.1.RELEASE.jar:2.1.1.RELEASE] |
||||
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:402) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:166) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) [spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] |
||||
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] |
||||
at com.hisense.hiatmp.base.BaseApplication.main(BaseApplication.java:19) [classes/:?] |
||||
2024-07-09 17:30:39,462 [main] INFO com.hisense.hiatmp.base.BaseApplication - Started BaseApplication in 12.818 seconds (JVM running for 14.431) |
||||
2024-07-09 17:30:39,464 [main] INFO com.hisense.hiatmp.common.encrypt.EncryptedDetector - ==============配置项自动加密已触发============ |
||||
2024-07-09 17:30:39,464 [main] INFO com.hisense.hiatmp.common.encrypt.EncryptedDetector - ==============配置项自动加密已结束,未用脚本启动或者yml参数未配置正确,加密失败!============ |
||||
2024-07-09 17:31:01,929 [http-nio-1959-exec-4] INFO com.hisense.hiatmp.common.controller.HiatmpController - HiatmpController:::user id is: admin1 |
||||
2024-07-09 17:31:05,484 [http-nio-1959-exec-4] INFO com.hisense.hiatmp.common.service.impl.CommonUserServiceImpl - CommonUserServiceImpl::::userId=admin1 |
||||
2024-07-09 17:31:05,536 [http-nio-1959-exec-4] INFO com.hisense.hiatmp.common.service.impl.CommonUserServiceImpl - CommonUserServiceImpl::::Operator=Operator(nuserid=admin1, cusername=管理员, cuserpwd=101830814915fa66ec21741baacb0db76d14ecb8f0083c4b21148808bd55401bb15ed71584a986b5e69af33383142ab79a448e8171b4d73f1b429311dd3e66e9, ip=null, cdescription=320924197006030018, phone=1501112111, cdepartmentid=370200000000) |
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue