提交 5d921ef0 authored 作者: kxjia's avatar kxjia

完善风险监测

上级 b3bccb9d
...@@ -32,7 +32,6 @@ public class MetricMonitorSetHistory implements Serializable { ...@@ -32,7 +32,6 @@ public class MetricMonitorSetHistory implements Serializable {
/**id*/ /**id*/
@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO)
private java.lang.Integer id; private java.lang.Integer id;
/**指标名称*/ /**指标名称*/
...@@ -147,20 +146,13 @@ public class MetricMonitorSetHistory implements Serializable { ...@@ -147,20 +146,13 @@ public class MetricMonitorSetHistory implements Serializable {
private java.lang.String noticeReceiveMiddle; private java.lang.String noticeReceiveMiddle;
@Excel(name = "高风险消息接收人", width = 15) @Excel(name = "高风险消息接收人", width = 15)
private java.lang.String noticeReceiveHight; private java.lang.String noticeReceiveHight;
private java.lang.String createBy; private java.lang.String createBy;
private java.util.Date createTime; private java.util.Date createTime;
@TableField(exist = false) @TableField(exist = false)
private String domainName; private String domainName;
} }
package org.jeecg.modules.stm.metric.entity; package org.jeecg.modules.stm.metric.entity;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
...@@ -108,4 +109,7 @@ public class MetricStatReport implements Serializable { ...@@ -108,4 +109,7 @@ public class MetricStatReport implements Serializable {
@Dict(dicCode="metric_sta_method") @Dict(dicCode="metric_sta_method")
private Integer statMethod; private Integer statMethod;
@TableField(exist = false)
private String[] otherData;
} }
<?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="org.jeecg.modules.stm.metric.mapper.MetricMonitorSetHightMapper">
</mapper>
\ No newline at end of file
...@@ -172,7 +172,7 @@ public class CreateWordUtil { ...@@ -172,7 +172,7 @@ public class CreateWordUtil {
out.flush(); out.flush();
out.close(); out.close();
template.close(); template.close();
return StmConstans.METRIC_REPORT_SAVE_PATH + File.separator + fileName; return StmConstans.METRIC_REPORT_SAVE_PATH + "/" + fileName;
} catch (Exception e) { } catch (Exception e) {
throw e; throw e;
} finally { } finally {
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.stm.metric.mapper.MetricStatReportMapper"> <mapper namespace="org.jeecg.modules.stm.metric.mapper.MetricStatReportMapper">
<select id="queryMetricStatByDomain" resultType="java.util.Map"> <select id="queryMetricStatByDomain" resultType="java.util.Map">
SELECT SELECT
IFNULL(D.domain_code, -1) AS code, IFNULL(D.domain_code, -1) AS code,
......
...@@ -75,9 +75,7 @@ public class LoginController { ...@@ -75,9 +75,7 @@ public class LoginController {
* 线程池用于异步发送纪要 * 线程池用于异步发送纪要
*/ */
public static ExecutorService cachedThreadPool = new ShiroThreadPoolExecutor(0, 1024, 60L, TimeUnit.SECONDS, new SynchronousQueue<>()); public static ExecutorService cachedThreadPool = new ShiroThreadPoolExecutor(0, 1024, 60L, TimeUnit.SECONDS, new SynchronousQueue<>());
@Operation(summary="登录接口") @Operation(summary="登录接口")
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
public Result<JSONObject> login(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){ public Result<JSONObject> login(@RequestBody SysLoginModel sysLoginModel, HttpServletRequest request){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论