parent
973f00ec7e
commit
04c253c66f
300 changed files with 126482 additions and 11715 deletions
@ -0,0 +1,6 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="CoolRequestCookiePersistent"> |
||||
<option name="cookies" value="[]" /> |
||||
</component> |
||||
</project> |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,18 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true"> |
||||
<data-source source="LOCAL" name="postgres@118.89.79.160" uuid="9cfa0527-82ae-4e09-9095-364b1cb650bd"> |
||||
<driver-ref>postgresql</driver-ref> |
||||
<synchronize>true</synchronize> |
||||
<jdbc-driver>org.postgresql.Driver</jdbc-driver> |
||||
<jdbc-url>jdbc:postgresql://118.89.79.160:5432/postgres</jdbc-url> |
||||
<jdbc-additional-properties> |
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" /> |
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" /> |
||||
<property name="com.intellij.clouds.kubernetes.db.resource.type" value="Deployment" /> |
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" /> |
||||
</jdbc-additional-properties> |
||||
<working-dir>$ProjectFileDir$</working-dir> |
||||
</data-source> |
||||
</component> |
||||
</project> |
||||
@ -1,6 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project version="4"> |
||||
<component name="SqlDialectMappings"> |
||||
<file url="file://$PROJECT_DIR$/hiatmp-hidden-danger-server/src/main/resources/sql-mapper/HighDangerMapper.xml" dialect="GenericSQL" /> |
||||
</component> |
||||
</project> |
||||
@ -1,13 +0,0 @@ |
||||
server: |
||||
port: 31002 |
||||
|
||||
####服务监控server端 |
||||
spring: |
||||
application: |
||||
name: hiatmp-admin-server |
||||
|
||||
security: |
||||
user: |
||||
name: hisense |
||||
password: N5HWw9Hn3jxD |
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,101 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!--Configuration后面的status,这个用于设置log4j2自身内部的信息输出,可以不设置,当设置成trace时,你会看到log4j2内部各种详细输出--> |
||||
<!--monitorInterval:Log4j能够自动检测修改配置 文件和重新配置本身,设置间隔秒数--> |
||||
<configuration monitorInterval="5"> |
||||
<!--日志级别以及优先级排序: OFF > FATAL > ERROR > WARN > INFO > DEBUG > TRACE > ALL --> |
||||
|
||||
<!--变量配置--> |
||||
<Properties> |
||||
<!-- 格式化输出:%date表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度 %msg:日志消息,%n是换行符--> |
||||
<!-- %logger{36} 表示 Logger 名字最长36个字符 --> |
||||
<property name="LOG_PATTERN" value="%d{yyyy-MM-dd HH:mm:ss,SSS} [%thread] %-5level %logger{60} - %msg%n" /> |
||||
<!-- 定义日志存储的路径 --> |
||||
<property name="FILE_PATH" value="./log" /> |
||||
<!-- 应用简称 --> |
||||
<property name="APP_NAME" value="monitor"/> |
||||
<!-- 定义项目名称 --> |
||||
<property name="FILE_NAME" value="hiatmp-admin-server" /> |
||||
</Properties> |
||||
|
||||
<appenders> |
||||
|
||||
<console name="Console" target="SYSTEM_OUT"> |
||||
<!--输出日志的格式--> |
||||
<PatternLayout pattern="${LOG_PATTERN}"/> |
||||
<!--控制台只输出level及其以上级别的信息(onMatch),其他的直接拒绝(onMismatch)--> |
||||
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/> |
||||
</console> |
||||
|
||||
<!--文件会打印出所有信息,这个log每次运行程序会自动清空,由append属性决定,适合临时测试用--> |
||||
<File name="Filelog" fileName="${FILE_PATH}/test.log" append="false"> |
||||
<PatternLayout pattern="${LOG_PATTERN}"/> |
||||
</File> |
||||
|
||||
<!-- 这个会打印出所有的info及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档--> |
||||
<RollingFile name="RollingFileInfo" fileName="${FILE_PATH}/${APP_NAME}-info.log" filePattern="${FILE_PATH}/${FILE_NAME}-INFO-%d{yyyy-MM-dd}_%i.log.gz"> |
||||
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)--> |
||||
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/> |
||||
<PatternLayout pattern="${LOG_PATTERN}"/> |
||||
<Policies> |
||||
<TimeBasedTriggeringPolicy interval="1"/> |
||||
<SizeBasedTriggeringPolicy size="200MB"/> |
||||
</Policies> |
||||
<!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件开始覆盖--> |
||||
<DefaultRolloverStrategy max="15"/> |
||||
</RollingFile> |
||||
|
||||
<!-- 这个会打印出所有的warn及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档--> |
||||
<RollingFile name="RollingFileWarn" fileName="${FILE_PATH}/warn.log" filePattern="${FILE_PATH}/${FILE_NAME}-WARN-%d{yyyy-MM-dd}_%i.log.gz"> |
||||
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)--> |
||||
<ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/> |
||||
<PatternLayout pattern="${LOG_PATTERN}"/> |
||||
<Policies> |
||||
<TimeBasedTriggeringPolicy interval="1"/> |
||||
<SizeBasedTriggeringPolicy size="200MB"/> |
||||
</Policies> |
||||
<DefaultRolloverStrategy max="15"/> |
||||
</RollingFile> |
||||
|
||||
<!-- 这个会打印出所有的error及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档--> |
||||
<RollingFile name="RollingFileError" fileName="${FILE_PATH}/error.log" filePattern="${FILE_PATH}/${FILE_NAME}-ERROR-%d{yyyy-MM-dd}_%i.log.gz"> |
||||
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)--> |
||||
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/> |
||||
<PatternLayout pattern="${LOG_PATTERN}"/> |
||||
<Policies> |
||||
<!--interval属性用来指定多久滚动一次,默认是1 hour--> |
||||
<TimeBasedTriggeringPolicy interval="1"/> |
||||
<SizeBasedTriggeringPolicy size="200MB"/> |
||||
</Policies> |
||||
<!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件开始覆盖--> |
||||
<DefaultRolloverStrategy max="15"/> |
||||
</RollingFile> |
||||
|
||||
</appenders> |
||||
|
||||
<!--Logger节点用来单独指定日志的形式,比如要为指定包下的class指定不同的日志级别等。--> |
||||
<!--然后定义loggers,只有定义了logger并引入的appender,appender才会生效--> |
||||
<loggers> |
||||
|
||||
<!--过滤掉spring和mybatis的一些无用的DEBUG信息 name="org.mybatis"--> |
||||
<logger name="org.mybatis" level="INFO" additivity="false"> |
||||
<AppenderRef ref="Console"/> |
||||
</logger> |
||||
<!--<logger name="mapper" level="DEBUG" additivity="false"> |
||||
<appender-ref ref="Console" /> |
||||
</logger>--> |
||||
<!--监控系统信息--> |
||||
<!--若是additivity设为false,则 子Logger 只会在自己的appender里输出,而不会在 父Logger 的appender里输出。--> |
||||
<Logger name="org.springframework" level="info" additivity="false"> |
||||
<AppenderRef ref="Console"/> |
||||
</Logger> |
||||
|
||||
<root level="info"> |
||||
<appender-ref ref="Console"/> |
||||
<appender-ref ref="Filelog"/> |
||||
<appender-ref ref="RollingFileInfo"/> |
||||
<appender-ref ref="RollingFileWarn"/> |
||||
<appender-ref ref="RollingFileError"/> |
||||
</root> |
||||
</loggers> |
||||
|
||||
</configuration> |
||||
@ -0,0 +1,20 @@ |
||||
package com.hisense.hiatmp.server_api.cache; |
||||
|
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.util.concurrent.ConcurrentHashMap; |
||||
|
||||
@Component |
||||
public class DistenceCache { |
||||
|
||||
private final ConcurrentHashMap<String,Object> distanceCache = new ConcurrentHashMap<>(); |
||||
|
||||
public Object getDistanceCache(String key){ |
||||
return distanceCache.get(key); |
||||
} |
||||
|
||||
public void setDistanceCache(String key, Object value){ |
||||
distanceCache.put(key, value); |
||||
} |
||||
|
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,22 @@ |
||||
package com.hisense.hiatmp.server_api.job; |
||||
|
||||
import com.hisense.hiatmp.server_api.cache.DistenceCache; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.scheduling.annotation.Scheduled; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
@Component |
||||
public class DistanceCacheJob { |
||||
|
||||
|
||||
@Autowired |
||||
DistenceCache distenceCache; |
||||
|
||||
// @Scheduled(cron = "0/3 * * * * ?")
|
||||
// public void refreshUserCache() {
|
||||
// userCache.setUserCache("username", username);
|
||||
// log.info("更新username任务执行完毕,username:{}", username);
|
||||
// }
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,7 @@ |
||||
package com.hisense.hiatmp.server_api.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.hisense.hiatmp.model.common.Department; |
||||
|
||||
public interface DepartmentMapper extends BaseMapper<Department> { |
||||
} |
||||
@ -0,0 +1,38 @@ |
||||
package com.hisense.hiatmp.model.common.DTO; |
||||
|
||||
import com.hisense.hiatmp.model.common.VO.GovernmentProgrammeVO; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.List; |
||||
|
||||
@Data |
||||
public class GovernmentProgrammeDTO implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
// 牵头单位
|
||||
private String leadUnit; |
||||
|
||||
// 行政辖区 code
|
||||
private String area; |
||||
|
||||
// 行政辖区 name
|
||||
private String areaStr; |
||||
|
||||
// 所属行业
|
||||
private String industry; |
||||
private String industryStr; |
||||
|
||||
// 治理目标
|
||||
private String zlTarget; |
||||
// 治理方法
|
||||
private String zlMethod; |
||||
// 预计治理时间
|
||||
private String zlDay; |
||||
// 治理方案(附件)
|
||||
private String zlProgramme; |
||||
|
||||
// 每条隐患问题
|
||||
private List<GovernmentProgrammeVO> governmentProgramme; |
||||
} |
||||
@ -0,0 +1,10 @@ |
||||
package com.hisense.hiatmp.model.common.VO; |
||||
|
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class GovernmentProgrammeVO { |
||||
|
||||
private String zlUnit; |
||||
private String zlMeasure; |
||||
} |
||||
@ -1,18 +1,29 @@ |
||||
package com.hisense.hiatmp.model.common.VO; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.hisense.hiatmp.model.common.HiddenDangerDTO; |
||||
import com.hisense.hiatmp.model.common.ThtHiddenDataCollectConfigExtra; |
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
@Data |
||||
public class GovernmentVO { |
||||
|
||||
// 隐患主键
|
||||
String businessId; |
||||
// 用户id`
|
||||
String nuserid; |
||||
// 验收图片
|
||||
String acceptancePhotos; |
||||
// 验收材料
|
||||
String acceptanceData; |
||||
List<HiddenDangerDTO> describe; |
||||
// 暂存标识
|
||||
String temporary; |
||||
|
||||
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm") |
||||
Date zlEndTime; |
||||
|
||||
// 治理内容
|
||||
List<HiddenDangerDTO> describe; |
||||
} |
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue