Commit 359072bb authored by litengwei's avatar litengwei

Merge remote-tracking branch 'origin/dev_upgrade' into dev_upgrade

parents 8d62bd84 57488c62
...@@ -146,6 +146,9 @@ public class ContingencyAction implements CustomerAction { ...@@ -146,6 +146,9 @@ public class ContingencyAction implements CustomerAction {
@Value("${plan.default.roleCode}") @Value("${plan.default.roleCode}")
private String defaultRoleCode; private String defaultRoleCode;
@Value("${plan.web.isUpdatePlanStep}")
private Boolean isUpdatePlanStep;
private static Map<String, String> OPERATE_RECORD_ID = new HashMap<>(); private static Map<String, String> OPERATE_RECORD_ID = new HashMap<>();
private static Map<String, Map<String, String>> stringStringMap = new HashMap<>(); private static Map<String, Map<String, String>> stringStringMap = new HashMap<>();
...@@ -468,6 +471,7 @@ public class ContingencyAction implements CustomerAction { ...@@ -468,6 +471,7 @@ public class ContingencyAction implements CustomerAction {
result.add(tempmap1); result.add(tempmap1);
this.sendcmd("optionarea", paramObj, result); this.sendcmd("optionarea", paramObj, result);
if (!isUpdatePlanStep) {
try { try {
System.out.println("======optionarea 加入队列参数信息======action====="); System.out.println("======optionarea 加入队列参数信息======action=====");
...@@ -482,6 +486,7 @@ public class ContingencyAction implements CustomerAction { ...@@ -482,6 +486,7 @@ public class ContingencyAction implements CustomerAction {
} catch (Exception e) { } catch (Exception e) {
log.error("optionarea 加入队列失败-->" + e.getMessage()); log.error("optionarea 加入队列失败-->" + e.getMessage());
} }
}
MessageVO messageVO = new MessageVO(); MessageVO messageVO = new MessageVO();
messageVO.setTitle("应急处置事项提醒"); messageVO.setTitle("应急处置事项提醒");
......
...@@ -5,6 +5,7 @@ import java.util.Collections; ...@@ -5,6 +5,7 @@ import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.yeejoin.amos.component.robot.BadRequest;
import com.yeejoin.amos.fas.business.util.ExcelUtils; import com.yeejoin.amos.fas.business.util.ExcelUtils;
import com.yeejoin.amos.fas.core.util.*; import com.yeejoin.amos.fas.core.util.*;
import com.yeejoin.amos.fas.dao.entity.EquipmentExcelData; import com.yeejoin.amos.fas.dao.entity.EquipmentExcelData;
...@@ -351,6 +352,9 @@ public class EquipmentController extends BaseController { ...@@ -351,6 +352,9 @@ public class EquipmentController extends BaseController {
@ApiOperation(httpMethod = "POST", value = "导入", notes = "导入") @ApiOperation(httpMethod = "POST", value = "导入", notes = "导入")
public Object uploadList(MultipartFile file) { public Object uploadList(MultipartFile file) {
List<EquipmentExcelData> list = ExcelUtils.importExcel(file, 1, 1, EquipmentExcelData.class); List<EquipmentExcelData> list = ExcelUtils.importExcel(file, 1, 1, EquipmentExcelData.class);
if (list.isEmpty()) {
throw new BadRequest("导入模板不正确或导入内容为空");
}
iEquipService.uploadList(list, getOrgCode(getSelectedOrgInfo())); iEquipService.uploadList(list, getOrgCode(getSelectedOrgInfo()));
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
......
#DB properties: #DB properties:
spring.datasource.url = jdbc:mysql://172.16.11.201:3306/dl_business_v3.0.1.3?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8 spring.datasource.url = jdbc:mysql://172.16.11.201:3307/dl_business_v3.0.1.3?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=Yeejoin@2020 spring.datasource.password=Yeejoin@2020
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
...@@ -99,6 +99,9 @@ integrated3Dtype =web ...@@ -99,6 +99,9 @@ integrated3Dtype =web
#数据同步开关 #数据同步开关
systemctl.sync.switch=false systemctl.sync.switch=false
#数字化应急预案V1.0.0.2版本,WEB数据组装,值为true,默认false
plan.web.isUpdatePlanStep=false
#地图动作区域展示 #地图动作区域展示
maparea.action.is-area=action1-2,action1-6 maparea.action.is-area=action1-2,action1-6
......
...@@ -821,4 +821,37 @@ ...@@ -821,4 +821,37 @@
MODIFY COLUMN `update_date` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) AFTER `create_user`; MODIFY COLUMN `update_date` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) AFTER `create_user`;
</sql> </sql>
</changeSet> </changeSet>
<changeSet author="gaojianqiang" id="20221216-01">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="cb_org_usr" columnName="personImg"/>
</not>
</preConditions>
<comment>cb_org_usr add column personImg</comment>
<sql>
alter table `cb_org_usr` add column `personImg` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '人员照片';
</sql>
</changeSet>
<changeSet author="gaojianqiang" id="20221216-02">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="cb_org_usr" columnName="job_title"/>
</not>
</preConditions>
<comment>cb_org_usr add column job_title</comment>
<sql>
alter table `cb_org_usr` add column job_title text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '岗位名称';
</sql>
</changeSet>
<changeSet author="gaojianqiang" id="20221216-03">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="cb_org_usr" columnName="telephone"/>
</not>
</preConditions>
<comment>cb_org_usr add column telephone</comment>
<sql>
alter table `cb_org_usr` add column `telephone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '人员电话';
</sql>
</changeSet>
</databaseChangeLog> </databaseChangeLog>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment