Browse Source

Merge remote-tracking branch 'origin/prod-5.1.3' into prod-5.1.3

zhongwei
haungxing 3 months ago
parent
commit
a4120dbfda
  1. 5
      hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/history/vo/HistoryTabulationParamVo.java
  2. 9
      hzims-service/equipment/src/main/java/com/hnac/hzims/history/controller/HistoryTemplateController.java
  3. 11
      hzims-service/equipment/src/main/java/com/hnac/hzims/history/service/impl/HistoryDeviceServiceImpl.java
  4. 2
      hzims-service/equipment/src/main/resources/template/template.yml
  5. 6
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfigHzims.java
  6. 6
      hzims-service/hzims-basic/src/main/resources/template/template.yml
  7. 2
      hzims-service/hzims-big-model/src/main/resources/template/template.yml
  8. 2
      hzims-service/hzims-scheduled/src/main/resources/template/template.yml
  9. 2
      hzims-service/inspect/src/main/resources/template/template.yml
  10. 8
      hzims-service/operational/src/main/resources/db/3.0.1.sql
  11. 12
      hzims-service/operational/src/main/resources/template/template.yml
  12. 12
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainPlanServiceImpl.java
  13. 2
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java
  14. 104
      hzims-service/safeproduct/src/main/resources/db/3.0.1.sql
  15. 2
      hzims-service/safeproduct/src/main/resources/template/template.yml
  16. 2
      hzims-service/ticket/src/main/resources/template/template.yml
  17. 2
      hzims-service/weather/src/main/resources/template/template.yml

5
hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/history/vo/HistoryTabulationParamVo.java

@ -10,6 +10,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* @author ysj * @author ysj
@ -21,8 +22,8 @@ public class HistoryTabulationParamVo {
@ApiModelProperty(value = "站点Id") @ApiModelProperty(value = "站点Id")
private String projectId; private String projectId;
@ApiModelProperty(value = "站点Id") @ApiModelProperty(value = "查询点位")
private List<String> facDeivceAttrIds; private Map<String,String> attrs;
@ApiModelProperty(value = "开始时间") @ApiModelProperty(value = "开始时间")
@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME) @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)

9
hzims-service/equipment/src/main/java/com/hnac/hzims/history/controller/HistoryTemplateController.java

@ -9,11 +9,13 @@ import com.hnac.hzims.safeproduct.train.entity.InstitutionalEntity;
import com.hnac.hzims.safeproduct.train.vo.InstitutionalParamVo; import com.hnac.hzims.safeproduct.train.vo.InstitutionalParamVo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
/** /**
@ -34,6 +36,13 @@ public class HistoryTemplateController extends BladeController {
return R.status(service.save(entity)); return R.status(service.save(entity));
} }
@PostMapping("/remove")
@ApiOperationSupport(order = 10)
@ApiOperation(value = "删除历史数据模板")
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
return R.status(service.removeByIds(Func.toLongList(ids)));
}
@GetMapping("/pages") @GetMapping("/pages")
@ApiOperationSupport(order = 5) @ApiOperationSupport(order = 5)
@ApiOperation(value = "分页历史数据模板", notes = "查询条件:params、query") @ApiOperation(value = "分页历史数据模板", notes = "查询条件:params、query")

11
hzims-service/equipment/src/main/java/com/hnac/hzims/history/service/impl/HistoryDeviceServiceImpl.java

@ -272,7 +272,7 @@ public class HistoryDeviceServiceImpl implements IHistoryDeviceService {
public List<Map<String, Object>> historyTabulation(HistoryTabulationParamVo param) { public List<Map<String, Object>> historyTabulation(HistoryTabulationParamVo param) {
HisFacSourceDataDTO source = new HisFacSourceDataDTO(); HisFacSourceDataDTO source = new HisFacSourceDataDTO();
source.setProjectId(param.getProjectId()); source.setProjectId(param.getProjectId());
source.setFacDeivceAttrIds(param.getFacDeivceAttrIds()); source.setFacDeivceAttrIds(new ArrayList<>(param.getAttrs().keySet()));
source.setBeginTime(param.getStartTime()); source.setBeginTime(param.getStartTime());
source.setFinishTime(param.getEndTime()); source.setFinishTime(param.getEndTime());
source.setIsPage(true); source.setIsPage(true);
@ -282,7 +282,14 @@ public class HistoryDeviceServiceImpl implements IHistoryDeviceService {
if(!tabulations.isSuccess() || CollectionUtil.isEmpty(tabulations.getData())){ if(!tabulations.isSuccess() || CollectionUtil.isEmpty(tabulations.getData())){
return new ArrayList<>(); return new ArrayList<>();
} }
return tabulations.getData(); return tabulations.getData().stream().map(tabulation->{
Map<String,Object> map = JSONObject.parseObject(JSONObject.toJSONString(tabulation.get("attr")),Map.class);
String key = map.get("id").toString();
String name = param.getAttrs().get(key);
map.put("name",name);
tabulation.put("attr",map);
return tabulation;
}).collect(Collectors.toList());
} }

2
hzims-service/equipment/src/main/resources/template/template.yml

@ -51,6 +51,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin addresses: http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin

6
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfigHzims.java

@ -60,11 +60,11 @@ public class MqttConfigHzims {
log.info(fdpClient.toString()+fdpClient.getClientId()); log.info(fdpClient.toString()+fdpClient.getClientId());
//drools //drools
DroolsSoeSubscribe droolsSoeSubscribe = new DroolsSoeSubscribe(); DroolsSoeSubscribe droolsSoeSubscribe = new DroolsSoeSubscribe();
MqttAsyncClient droolsClient = droolsSoeSubscribe.subscribe(mqttConfig, "#",Collections.singletonList("#"), droolsMqttConsumer); MqttAsyncClient droolsClient = droolsSoeSubscribe.subscribe(mqttConfig, "+",Collections.singletonList("+"), droolsMqttConsumer);
log.info(droolsClient.toString()+droolsClient.getClientId()); log.info(droolsClient.toString()+droolsClient.getClientId());
//Soe //Soe
SoeSubscribe soeSubscribe = new SoeSubscribe(); SoeSubscribe soeSubscribe = new SoeSubscribe();
MqttAsyncClient soeClient = soeSubscribe.subscribe(mqttConfig,"#", Collections.singletonList("#"), soeMqttConsumer); MqttAsyncClient soeClient = soeSubscribe.subscribe(mqttConfig,"+", Collections.singletonList("+"), soeMqttConsumer);
log.info(soeClient.toString()+soeClient.getClientId()); log.info(soeClient.toString()+soeClient.getClientId());
//hz3000 //hz3000
HZ3000SoeSubscribe hz3000SoeSubscribe = new HZ3000SoeSubscribe(); HZ3000SoeSubscribe hz3000SoeSubscribe = new HZ3000SoeSubscribe();
@ -72,7 +72,7 @@ public class MqttConfigHzims {
log.info(hz3000Client.toString()+hz3000Client.getClientId()); log.info(hz3000Client.toString()+hz3000Client.getClientId());
//视频 //视频
SoeSubscribe subscribe = new SoeSubscribe(); SoeSubscribe subscribe = new SoeSubscribe();
MqttAsyncClient videoClient = subscribe.subscribe(mqttConfig,"#" , Collections.singletonList("#"), videoMqttConsumer); MqttAsyncClient videoClient = subscribe.subscribe(mqttConfig,"+" , Collections.singletonList("+"), videoMqttConsumer);
log.info(videoClient.toString()+videoClient.getClientId()); log.info(videoClient.toString()+videoClient.getClientId());
}catch (Exception e){ }catch (Exception e){
log.error(e.toString()) ; log.error(e.toString()) ;

6
hzims-service/hzims-basic/src/main/resources/template/template.yml

@ -31,15 +31,17 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"
executor: executor:
appname: hzims-safeproduct appname: hzims-basic
ip: ${hzims.server.ip} ip: ${hzims.server.ip}
logpath: /data/applogs/xxl-job/jobhandler logpath: /data/applogs/xxl-job/jobhandler
logretentiondays: 7 logretentiondays: 7
port: 28200 port: 28550
blade: blade:
data-scope: data-scope:

2
hzims-service/hzims-big-model/src/main/resources/template/template.yml

@ -69,6 +69,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: http://${hzims.server.ip}:${hzims.xxljob.port}/xxl-job-admin addresses: http://${hzims.server.ip}:${hzims.xxljob.port}/xxl-job-admin

2
hzims-service/hzims-scheduled/src/main/resources/template/template.yml

@ -55,6 +55,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"

2
hzims-service/inspect/src/main/resources/template/template.yml

@ -35,6 +35,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin addresses: http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin

8
hzims-service/operational/src/main/resources/db/3.0.1.sql

@ -20,3 +20,11 @@ ALTER TABLE `hzims_oper_access_plan`
ADD COLUMN `remark` text NULL ; ADD COLUMN `remark` text NULL ;
ALTER TABLE `hzims_oper_maintenance_task` ALTER TABLE `hzims_oper_maintenance_task`
ADD COLUMN `remark` text NULL ; ADD COLUMN `remark` text NULL ;
ALTER TABLE `hzims_oper_defect`
MODIFY COLUMN `TICKET_ID` varchar(255) NULL DEFAULT NULL COMMENT '工作票ID';
ALTER TABLE `hzims_oper_defect_statistics`
MODIFY COLUMN `TICKET_ID` varchar(255) NULL DEFAULT NULL COMMENT '工作票ID';
ALTER TABLE `hzims_oper_phenomenon`
MODIFY COLUMN `TICKET_ID` varchar(255) NULL DEFAULT NULL COMMENT '工作票ID';

12
hzims-service/operational/src/main/resources/template/template.yml

@ -30,6 +30,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"
@ -72,11 +74,6 @@ hzims:
task-key: hzims:operation:access:task task-key: hzims:operation:access:task
alert: alert:
saveDefectIsOpen: true saveDefectIsOpen: true
save:
area:
url: http://49.234.126.72:8255/apiIntroduction/demo/saveHzimsArea
station:
url: http://49.234.126.72:8255/apiIntroduction/demo/saveHzimsStation
defect: defect:
repair: /data/hzims/operational/defect/repair/应急抢修单.docx repair: /data/hzims/operational/defect/repair/应急抢修单.docx
area: area:
@ -131,6 +128,11 @@ category:
id: 1384429129110360065 id: 1384429129110360065
feign: feign:
compression:
request:
enabled: false
response:
enabled: false
hystrix: hystrix:
enabled: true enabled: true

12
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/service/impl/TrainPlanServiceImpl.java

@ -20,6 +20,7 @@ import com.hnac.hzims.safeproduct.service.ITrainPlanService;
import com.hnac.hzims.safeproduct.service.ITrainRecordService; import com.hnac.hzims.safeproduct.service.ITrainRecordService;
import com.hnac.hzims.safeproduct.vo.TrainMonthVO; import com.hnac.hzims.safeproduct.vo.TrainMonthVO;
import com.hnac.hzims.safeproduct.vo.TrainYearVO; import com.hnac.hzims.safeproduct.vo.TrainYearVO;
import org.apache.commons.collections4.map.HashedMap;
import org.springblade.core.log.exception.ServiceException; import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.utils.DateUtil; import org.springblade.core.tool.utils.DateUtil;
@ -34,10 +35,7 @@ import java.io.IOException;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.math.RoundingMode; import java.math.RoundingMode;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.util.ArrayList; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -105,7 +103,7 @@ public class TrainPlanServiceImpl extends ServiceImpl<TrainPlanMapper, TrainPlan
// 查询各单位全年已完成的培训计划数 // 查询各单位全年已完成的培训计划数
List<AnalysisYearDTO> unitMonthDataList = baseMapper.selectFinishedDataByUnit(unitList, year); List<AnalysisYearDTO> unitMonthDataList = baseMapper.selectFinishedDataByUnit(unitList, year);
// 将各单位每个月的培训计划数据写入统计列表 // 将各单位每个月的培训计划数据写入统计列表
List<TrainYearVO> res = new ArrayList<>(); HashedMap<String, TrainYearVO> map = new HashedMap<>();
unitMonthDataList.forEach(data -> { unitMonthDataList.forEach(data -> {
TrainYearVO trainYearVO = records.stream().filter(x -> x.getUnit().equals(data.getUnit())) TrainYearVO trainYearVO = records.stream().filter(x -> x.getUnit().equals(data.getUnit()))
.collect(Collectors.toList()).get(0); .collect(Collectors.toList()).get(0);
@ -161,9 +159,11 @@ public class TrainPlanServiceImpl extends ServiceImpl<TrainPlanMapper, TrainPlan
trainYearVO.setSum(sum + data.getFinishedNum()); trainYearVO.setSum(sum + data.getFinishedNum());
} }
if (trainYearVO.getSum() != 0) { if (trainYearVO.getSum() != 0) {
res.add(trainYearVO); map.put(trainYearVO.getUnit(), trainYearVO);
} }
}); });
List<TrainYearVO> list = new ArrayList<>(map.values());
List<TrainYearVO> res = list.stream().sorted(Comparator.comparing(TrainYearVO::getUnit)).collect(Collectors.toList());
unitPage.setRecords(res); unitPage.setRecords(res);
return unitPage; return unitPage;
} }

2
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/utils/BaseUtil.java

@ -240,7 +240,7 @@ public class BaseUtil {
String encodeName = URLEncoder.encode(name, "UTF-8").replaceAll("\\+", "%20"); String encodeName = URLEncoder.encode(name, "UTF-8").replaceAll("\\+", "%20");
String prefixString = url.substring(0, url.lastIndexOf("/") + 1); String prefixString = url.substring(0, url.lastIndexOf("/") + 1);
String encodeUrl = prefixString + encodeName; String encodeUrl = prefixString + encodeName;
String id = paragraph.getDocument().getPackagePart().addExternalRelationship(encodeUrl, String id = paragraph.getDocument().getPackagePart().addExternalRelationship(url,
XWPFRelation.HYPERLINK.getRelation()).getId(); XWPFRelation.HYPERLINK.getRelation()).getId();
CTHyperlink cLink = paragraph.getCTP().addNewHyperlink(); CTHyperlink cLink = paragraph.getCTP().addNewHyperlink();
cLink.setId(id); cLink.setId(id);

104
hzims-service/safeproduct/src/main/resources/db/3.0.1.sql

@ -0,0 +1,104 @@
CREATE TABLE `hzims_institutional_information` (
`ID` bigint(20) NOT NULL COMMENT '主键ID',
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码',
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称',
`DATA_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '资料类型 : 0-制度 1-资料',
`FILE_PURVIEW` tinyint(4) NULL DEFAULT NULL COMMENT '文档权限范围 : 0-厂站 1- 完全公开',
`FILE_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档名称',
`FILE_EXPLAIN` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件说明',
`DATA_ATTACHMENT_PATH` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件上传地址',
`DATA_ATTACHMENT_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附件名称',
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID',
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID',
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间',
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人',
`CREATE_USER_ID` bigint(20) NULL DEFAULT NULL COMMENT '添加人ID',
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名称',
`UPDATE_USER` bigint(20) NOT NULL COMMENT '更新人',
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除',
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `hzims_rectification_supervision` (
`ID` bigint(20) NOT NULL COMMENT '主键ID',
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码',
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称',
`PERSON_LIABLE` bigint(20) NULL DEFAULT NULL COMMENT '责任人ID',
`PERSON_LIABLE_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任人名称',
`RECTIFICATION_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '整改类型: 0-整改闭环 1-会议督办',
`LIMIT_TIME` datetime NULL DEFAULT NULL COMMENT '限时日期',
`REMIND_TIME` datetime NULL DEFAULT NULL COMMENT '提醒日期',
`COMPLETE_TIME` datetime NULL DEFAULT NULL COMMENT '完成日期',
`PROBLEM_MATTERS` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题事项',
`MEASURES` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '措施',
`PROBLEM_ATTACHMENT_PATH` varchar(516) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题附件路径',
`PROBLEM_ATTACHMENT_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题附件名称',
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID',
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID',
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间',
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人',
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '添加人名称',
`CREATE_USER_ID` bigint(20) NULL DEFAULT NULL COMMENT '添加人ID',
`UPDATE_USER` bigint(20) NOT NULL COMMENT '更新人',
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除',
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态: 0-未整改 1-已整改',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `hzims_safety_train` (
`ID` bigint(20) NOT NULL COMMENT '主键ID',
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码',
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称',
`SPEAKER` bigint(20) NULL DEFAULT NULL COMMENT '主讲人ID',
`SPEAKER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '主讲人名称',
`TRAIN_CONTENT` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '培训内容',
`ANSWER_COUNT` tinyint(4) NULL DEFAULT NULL COMMENT '应到人数',
`ACTUAL_COUNT` tinyint(4) NULL DEFAULT NULL COMMENT '实到人数',
`LATE_REASON` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '迟到/缺席人数及原因',
`TRAIN_ATTACHMENT_PATH` varchar(516) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '培训附件上次路径',
`TRAIN_ATTACHMENT_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '培训附件名称',
`TRAIN_START_TIME` datetime NULL DEFAULT NULL COMMENT '培训开始时间',
`TRAIN_END_TIME` datetime NULL DEFAULT NULL COMMENT '培训结束时间',
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID',
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID',
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间',
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人',
`CREATE_USER_ID` bigint(20) NULL DEFAULT NULL COMMENT '添加人ID',
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名称',
`UPDATE_USER` bigint(20) NOT NULL COMMENT '更新人',
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除',
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
CREATE TABLE `hzims_violation_assessment` (
`ID` bigint(20) NOT NULL COMMENT '主键ID',
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码',
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称',
`DISCOVERER` bigint(20) NULL DEFAULT NULL COMMENT '发现人ID',
`DISCOVERER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发现人名称',
`ASSESSOR_COVER` bigint(20) NULL DEFAULT NULL COMMENT '被考核人ID',
`ASSESSOR_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被考核人名称',
`DISCOVER_TIME` datetime NULL DEFAULT NULL COMMENT '发现时间',
`PROBLEM_MATTERS` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '问题事项',
`VIOLATION_LEVEL` tinyint(4) NULL DEFAULT NULL COMMENT '违规级别 : 0-严重 1-一般',
`PROCESSING_RESULTS` varchar(516) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理结果',
`NOTICE_ATTACHMENT_PATH` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知单附件地址',
`NOTICE_ATTACHMENT_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '通知单附件名称',
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID',
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID',
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间',
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人',
`CREATE_USER_ID` bigint(20) NULL DEFAULT NULL COMMENT '添加人ID',
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名称',
`UPDATE_USER` bigint(20) NOT NULL COMMENT '更新人',
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除',
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

2
hzims-service/safeproduct/src/main/resources/template/template.yml

@ -40,6 +40,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"

2
hzims-service/ticket/src/main/resources/template/template.yml

@ -34,6 +34,8 @@ swagger:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"

2
hzims-service/weather/src/main/resources/template/template.yml

@ -29,6 +29,8 @@ mybatis-plus:
xxl: xxl:
job: job:
auto:
registry: 0
accessToken: '' accessToken: ''
admin: admin:
addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin" addresses: "http://${hzims.xxljob.ip}:${hzims.xxljob.port}/xxl-job-admin"

Loading…
Cancel
Save