Commit 7d756585 authored by helinlin's avatar helinlin

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

parents 438003ec fff429a4
......@@ -23,6 +23,7 @@ public class MessageAction {
MessageModel messageModel = JSON.parseObject(JSON.toJSONString(msgObj), MessageModel.class);
messageModel.setTitle(title);
messageModel.setBody(RuleUtils.instedParams(content, msgObj));
log.info(String.format("接收规则返回数据: %s", JSON.toJSONString(msgObj)));
if (!ValidationUtil.isEmpty(messageModel)) {
try {
Systemctl.messageClient.create(messageModel);
......
......@@ -167,14 +167,18 @@ public class ExcelUtil {
String[] postTypeNamestrings = new String[postTypeNameDetailList.size()];
List<String> userNameDetailList = (List<String>) detail.get(detail.size()-3);
String[] userNamestrings = new String[userNameDetailList.size()];
List<String> companyNameList = (List<String>) detail.get(detail.size()-4);
String[] companyNameLists = new String[companyNameList.size()];
map.put(4, fireStationDetailList.toArray(strings));
map.put(3, postTypeNameDetailList.toArray(postTypeNamestrings));
map.put(2, userNameDetailList.toArray(userNamestrings));
map.put(1, companyNameList.toArray(companyNameLists));
map.putAll(explicitListConstraintMap);
fireStationExplicitListConstraintMap.add(map);
detail.remove(detail.size()-1);
detail.remove(detail.size()-1);
detail.remove(detail.size()-1);
detail.remove(detail.size()-1);
resultList.add(detail);
});
excelWriterSheetBuilder
......
......@@ -4,6 +4,7 @@ import com.yeejoin.equipmanage.common.entity.*;
import com.yeejoin.equipmanage.common.vo.BuildingTreeVo;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
......@@ -18,47 +19,47 @@ public class AppDownloadVO {
/**
* 装备
*/
private List<DownloadEquipmentDataVO> downloadEquipmentDatas;
private List<DownloadEquipmentDataVO> downloadEquipmentDatas = new ArrayList<>();
/**
* 车辆
*/
private List<Car> downloadCarDatas;
private List<Car> downloadCarDatas = new ArrayList<>();
/**
* 建筑
*/
private List<BuildingTreeVo> buildTree;
private List<BuildingTreeVo> buildTree = new ArrayList<>();
/**
*设备对应性能指标
*/
private List<EquipmentSpecificIndex> equipmentSpecificIndexs;
private List<EquipmentSpecificIndex> equipmentSpecificIndexs = new ArrayList<>();
/**
*性能指标模板
*/
private List<EquipmentIndex> equipmentIndex;
private List<EquipmentIndex> equipmentIndex = new ArrayList<>();
/**
*货位
*/
private List<WarehouseStructure> warehouseStructure;
private List<WarehouseStructure> warehouseStructure = new ArrayList<>();
/**
* 车载装备
*/
private List<EquipmentOnCar> equipmentOnCar;
private List<EquipmentOnCar> equipmentOnCar = new ArrayList<>();
/**
* 车载灭火药剂
*/
private List<ExtinguishantOnCar> extinguishantOnCar;
private List<ExtinguishantOnCar> extinguishantOnCar = new ArrayList<>();
/**
*报废原因
*/
private List<SystemDic> reason;
private List<SystemDic> reason = new ArrayList<>();
}
......@@ -82,6 +82,6 @@ public class CylinderInfoDto extends BaseDto {
private Boolean syncState;
@ApiModelProperty(value = "对接公司编码")
private String apiCompanyCode;
private String appId;
}
......@@ -90,8 +90,8 @@ public class CylinderUnitDto extends BaseDto {
@ApiModelProperty(value = "1初次同步数据 2上层系统已同步数据 0已删除数据")
private Boolean syncState;
@ApiModelProperty(value = "对接公司编码")
private String apiCompanyCode;
@ApiModelProperty(value = "对接公司编码")
private String appId;
@ApiModelProperty(value = "气瓶数量")
private Long cylinderNumber;
......
......@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
......@@ -150,7 +151,6 @@ public class CylinderInfo {
/**
* 对接公司编码
*/
@TableField("api_company_code")
private String apiCompanyCode;
@TableField("app_id")
private String appId;
}
......@@ -168,8 +168,8 @@ public class CylinderUnit {
/**
* 对接公司编码
*/
@TableField("api_company_code")
private String apiCompanyCode;
@TableField("app_id")
private String appId;
/**
* 经度
......
......@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.flc.api.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import com.yeejoin.amos.boot.module.tzs.flc.api.dto.EquipmentInformDto;
import java.util.List;
......@@ -19,4 +20,12 @@ public interface IEquipmentInformService {
Page<EquipmentInformDto> queryDtoList(Page<EquipmentInformDto> page, EquipmentInformDto equipmentInformDto, String sortParam, String sortRule);
Boolean batchDelete(List<Long> sequenceNbrList);
Boolean acceptInform(Long sequenceNbr);
EquipmentInformDto updateEquipmentInform(EquipmentInformDto model);
EquipmentInformDto queryDtoBySeq(Long sequenceNbr);
Boolean startWorkflow(Long sequenceNbr, ReginParams userInfo) throws Exception;
}
......@@ -11,9 +11,9 @@
tz_cylinder_info t
WHERE
t.sequence_nbr IN ( SELECT max( tt.sequence_nbr ) FROM tz_cylinder_info tt GROUP BY tt.sequence_code )
AND t.api_company_code = (
AND t.app_id = (
SELECT
u.api_company_code
u.app_id
FROM
tz_cylinder_unit u
WHERE
......
......@@ -122,11 +122,16 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
public List< Map<String, Object>> getFirstAidExportData(List<String> ids) {
List< Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
List< Map<String, Object>> result = new ArrayList<Map<String, Object>>();
List<String> userNameList= new ArrayList<String>();
List<String> firstAidSimpleList = new ArrayList<String>();
List<String> companyNameList = new ArrayList<String>();
String typeString = "JJZ";
ids.stream().forEach(i->{
Map<String, Object> detailMap = new HashMap<String, Object>();
List<OrgUsr> personList = orgUsrServiceImpl.getPersonListByParentId(Long.parseLong(i));
List<String> userNameList= new ArrayList<String>();
personList.stream().forEach(m -> {
String userNameString =m.getBizOrgName()+ "@" +m.getSequenceNbr();
userNameList.add(userNameString);
......@@ -134,28 +139,29 @@ public class DutyFirstAidServiceImpl extends DutyCommonServiceImpl implements ID
detailMap.put("userName", userNameList);
OrgUsr companyDetail = orgUsrServiceImpl.getDetailById(Long.parseLong(i));
String companyNameString = companyDetail.getBizOrgName()+ "@" +companyDetail.getSequenceNbr();
detailMap.put("companyName", companyNameString);
companyNameList.add(companyNameString);
detailMap.put("companyName", companyNameList);
List<DataDictionary> dataDicList= dataDictionaryService.getByType(typeString);
List<String> dataDicSimpleList = new ArrayList<String>();
dataDicList.stream().forEach(l->{
String dataDic = l.getName() + "@" +l.getCode();
dataDicSimpleList.add(dataDic);
});
dataDicList.stream().forEach(l->{
String dataDic = l.getName() + "@" +l.getCode();
dataDicSimpleList.add(dataDic);
});
detailMap.put("postTypeName",dataDicSimpleList);
List<Map<String, Object>> list = dutyPersonShiftMapper.getFirstAidForTypeCodeAndCompanyId(
Long.parseLong(i));
List<String> firstAidSimpleList = new ArrayList<String>();
list.stream().forEach(m -> {
String firstAidNameString = m.get("name").toString() + "@" + m.get("sequence_nbr").toString();
firstAidSimpleList.add(firstAidNameString);
});
if( firstAidSimpleList != null && firstAidSimpleList.size() > 1 ) {
if( firstAidSimpleList != null && firstAidSimpleList.size() >= 1 ) {
detailMap.put("firstAidName", firstAidSimpleList);
resultList.add(detailMap);
}
});
return resultList;
result.add(resultList.get(0));
return result;
}
}
......@@ -643,7 +643,7 @@ public class MaintenanceCompanyServiceImpl
MaintenanceCompany maintenanceCompany = new MaintenanceCompany();
if (ValidationUtil.isEmpty(seq)) {
maintenanceCompany = getMaintenanceCompany(amosUserId);
seq = maintenanceCompany.getSequenceNbr();
seq = maintenanceCompany.getParentId();
}
// 机场单位列表基本信息
if (pageNum == -1 || pageSize == -1) {
......
......@@ -1174,10 +1174,14 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
public String getParentId(String amosOrgId) {
List<OrgUsrDto> orgUsrDtos = queryForList("", false, amosOrgId);
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(BaseEntity::getIsDelete,false);
wrapper.eq(OrgUsr::getAmosOrgId,amosOrgId);
List<OrgUsr> orgUsrs = orgUsrMapper.selectList(wrapper);
String parentId = null;
if (orgUsrDtos.size() >= 1) {
parentId = orgUsrDtos.get(0).getParentId();
if (orgUsrs.size() >= 1) {
parentId = orgUsrs.get(0).getParentId();
} else {
return null;
}
......@@ -1239,7 +1243,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
// 业主单位人员
List<UserUnitDto> list = orgUsrMapper.getUserUnit(userId, typeArr[0], null);
// 维保单位人员
List<MaintenanceCompany> maintenancePersons = maintenanceCompanyService.findPersonByAmosOrgId(CODE, userId);
// maintenanceCompanyService.findPerssonByAmosOrgId(typeArr[0], userId);
List<MaintenanceCompany> maintenancePersons = null;
if (!CollectionUtils.isEmpty(list) && !CollectionUtils.isEmpty(maintenancePersons)) {
throw new RuntimeException("人员绑定单位重复!");
}
......
......@@ -261,14 +261,14 @@ public class ConfirmAlarmServiceImpl extends ServiceImpl<ConfirmAlarmMapper, Equ
} catch (Exception e) {
log.error("查询机场人员为空,检查机场人员是否绑定单位!");
}
confirmAlamVo.setFireLocation(ent.getLocation());
List<UserDto> infoList = equipmentSpecificSerivce.getEquipSpecificLocationInfo(ent.getEquipmentSpecificId(), FIELD_NAME.split(","));
if (CollectionUtils.isNotEmpty(infoList)) {
infoList.stream().forEach(dto -> {
String name = dto.getPersonName();
// String name = dto.getPersonName();
// confirmAlamVo.setFireLocation(name);
String code = dto.getFieldCode();
String value = dto.getFieldValue();
confirmAlamVo.setFireLocation(name);
switch (code) {
case "longitude":
confirmAlamVo.setFloorLongitude(getVal(value));
......
package com.yeejoin.equipmanage.service.impl;
import javax.annotation.Resource;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yeejoin.equipmanage.common.entity.FormGroup;
import com.yeejoin.equipmanage.common.entity.SystemDic;
import com.yeejoin.equipmanage.common.entity.vo.AppDownloadVO;
import com.yeejoin.equipmanage.common.enums.GroupCodeEnum;
import com.yeejoin.equipmanage.common.utils.FileUploadFactory;
import com.yeejoin.equipmanage.common.utils.FileUploadTypeEnum;
import com.yeejoin.equipmanage.common.utils.ImportFile;
import com.yeejoin.equipmanage.common.vo.BuildingTreeVo;
import com.yeejoin.equipmanage.mapper.EquipmentMapper;
import com.yeejoin.equipmanage.mapper.ExtinguishantOnCarMapper;
import com.yeejoin.equipmanage.service.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import com.yeejoin.equipmanage.common.utils.FileUploadFactory;
import com.yeejoin.equipmanage.common.utils.FileUploadTypeEnum;
import com.yeejoin.equipmanage.common.utils.ImportFile;
import org.typroject.tyboot.core.foundation.utils.Bean;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class DownloadFileService implements IDownloadFileService {
@Autowired
@Lazy
@Autowired
@Lazy
private FileUploadFactory factory;
@Autowired
private IFormInstanceService iFormInstanceService;
private IFormInstanceService iFormInstanceService;
@Autowired
private IFormGroupService iFormGroupService;
private IFormGroupService iFormGroupService;
@Autowired
private ICarService carService;
private ICarService carService;
@Autowired
private EquipmentMapper equipmentMapper;
private EquipmentMapper equipmentMapper;
@Autowired
private IExtinguishantOnCarService extinguishantOnCarService;
private IExtinguishantOnCarService extinguishantOnCarService;
@Autowired
private IEquipmentIndexService equipmentIndexService;
private IEquipmentIndexService equipmentIndexService;
@Autowired
private IEquipmentSpecificIndexSerivce equipmentSpecificIndexSerivce;
private IEquipmentSpecificIndexSerivce equipmentSpecificIndexSerivce;
@Autowired
private IWarehouseStructureService warehouseStructureService;
private IWarehouseStructureService warehouseStructureService;
@Autowired
private ISystemDicService systemDicService;
private ISystemDicService systemDicService;
@Autowired
private IEquipmentOnCarService equipmentOnCarService;
@Resource(name = "fileUploadFactory")
public void setFactory(FileUploadFactory factory) {
this.factory = factory;
}
@Override
public HSSFWorkbook DownloadFile(String type) {
ImportFile up = factory.create(FileUploadTypeEnum.getEnum(type));
HSSFWorkbook workbook =(HSSFWorkbook) up.downloadImportFile();
return workbook;
}
@Override
public AppDownloadVO appDownloadDatas() {
AppDownloadVO appDownload = new AppDownloadVO();
//建筑信息
FormGroup formGroup = iFormGroupService.getByUniqueKey(GroupCodeEnum.ALL_BUILDING.getGroupCode());
List<Map<String, Object>> allList = iFormInstanceService.getSpecialChildrenList(null);
List<BuildingTreeVo> allListVo = buildBuildingData(formGroup, allList);
appDownload.setBuildTree(allListVo);
//车辆信息
appDownload.setDownloadCarDatas(carService.list());
//装备信息
appDownload.setDownloadEquipmentDatas(equipmentMapper.getDownloadEquipmentData());
//性能指标模板
appDownload.setEquipmentIndex(equipmentIndexService.list());
//性能指标
appDownload.setEquipmentSpecificIndexs(equipmentSpecificIndexSerivce.list());
//仓库
appDownload.setWarehouseStructure(warehouseStructureService.list());
//车载装备
appDownload.setEquipmentOnCar(equipmentOnCarService.list());
//车载灭火药剂
appDownload.setExtinguishantOnCar(extinguishantOnCarService.list());
//报废原因
appDownload.setReason(systemDicService.list(new QueryWrapper<SystemDic>().eq("type", "ScrapReason")));
return appDownload;
}
/**
* 建筑树数据处理
* @param formGroup
* @param allList
* @return
*/
private List<BuildingTreeVo> buildBuildingData(FormGroup formGroup, List<Map<String, Object>> allList) {
List<BuildingTreeVo> allListVo = Bean.listMap2ListBean(allList, BuildingTreeVo.class);
BuildingTreeVo treeNode = new BuildingTreeVo();
treeNode.setInstanceId(formGroup.getId());
treeNode.setInstanceName(formGroup.getGroupName());
treeNode.setParentId("-1");
treeNode.setGroupType(formGroup.getGroupType());
treeNode.setGroupCode(formGroup.getGroupCode());
allListVo.add(treeNode);
return allListVo;
}
private IEquipmentOnCarService equipmentOnCarService;
@Resource(name = "fileUploadFactory")
public void setFactory(FileUploadFactory factory) {
this.factory = factory;
}
@Override
public HSSFWorkbook DownloadFile(String type) {
ImportFile up = factory.create(FileUploadTypeEnum.getEnum(type));
HSSFWorkbook workbook = (HSSFWorkbook) up.downloadImportFile();
return workbook;
}
@Override
public AppDownloadVO appDownloadDatas() {
AppDownloadVO appDownload = new AppDownloadVO();
//建筑信息
FormGroup formGroup = iFormGroupService.getByUniqueKey(GroupCodeEnum.ALL_BUILDING.getGroupCode());
List<Map<String, Object>> allList = iFormInstanceService.getSpecialChildrenList(null);
List<BuildingTreeVo> allListVo = buildBuildingData(formGroup, allList);
appDownload.setBuildTree(allListVo);
//车辆信息
appDownload.setDownloadCarDatas(carService.list());
//装备信息
// appDownload.setDownloadEquipmentDatas(equipmentMapper.getDownloadEquipmentData());
//
// //性能指标模板
// appDownload.setEquipmentIndex(equipmentIndexService.list(queryWrapper1));
//
// //性能指标
// appDownload.setEquipmentSpecificIndexs(equipmentSpecificIndexSerivce.list(queryWrapper));
//仓库
appDownload.setWarehouseStructure(warehouseStructureService.list());
//车载装备
appDownload.setEquipmentOnCar(equipmentOnCarService.list());
//车载灭火药剂
appDownload.setExtinguishantOnCar(extinguishantOnCarService.list());
//报废原因
appDownload.setReason(systemDicService.list(new QueryWrapper<SystemDic>().eq("type", "ScrapReason")));
return appDownload;
}
/**
* 建筑树数据处理
*
* @param formGroup
* @param allList
* @return
*/
private List<BuildingTreeVo> buildBuildingData(FormGroup formGroup, List<Map<String, Object>> allList) {
List<BuildingTreeVo> allListVo = Bean.listMap2ListBean(allList, BuildingTreeVo.class);
BuildingTreeVo treeNode = new BuildingTreeVo();
treeNode.setInstanceId(formGroup.getId());
treeNode.setInstanceName(formGroup.getGroupName());
treeNode.setParentId("-1");
treeNode.setGroupType(formGroup.getGroupType());
treeNode.setGroupCode(formGroup.getGroupCode());
allListVo.add(treeNode);
return allListVo;
}
}
......@@ -440,6 +440,9 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
equipmentSpecificAlarmService.saveOrUpdate(action);
if (AlarmStatusEnum.BJ.getCode() == action.getStatus()) {
equipmentAlarmLogs.add(addEquipAlarmLogRecord(action));
if (ValidationUtil.isEmpty(action.getAlamContent())){
action.setAlamContent(action.getEquipmentSpecificName() + action.getEquipmentSpecificIndexName());
}
mqttSendGateway.sendToMqtt(TopicEnum.EQDQR.getTopic(), JSONArray.toJSON(action).toString());
}
specificAlarmIds.add(action.getId());
......
package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.alibaba.fastjson.JSONArray;
import org.apache.commons.lang3.StringUtils;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
......@@ -109,7 +113,7 @@ public class AlertFormController extends BaseController {
/**
* 根据表态类型code查询表单数据项
* @param id
* @param
* @return
*/
......@@ -120,7 +124,18 @@ public class AlertFormController extends BaseController {
List<AlertFormInitDto> list=new ArrayList<AlertFormInitDto>();
if(redisUtils.hasKey(RedisKey.FORM_CODE+code)){
Object obj= redisUtils.get(RedisKey.FORM_CODE+code);
return ResponseHelper.buildResponse(obj);
JSONArray arr = (JSONArray) obj;
List<AlertFormInitDto> list1 = arr.toJavaList(AlertFormInitDto.class);
for (AlertFormInitDto alertFormInitDto: list1) {
if(alertFormInitDto.getKey().equals("fireTime")) {
Date date = new Date();
alertFormInitDto.setDefaultValue(date);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateString = formatter.format(date);
alertFormInitDto.getFormItemDescr().setFieldValue(dateString);
}
}
return ResponseHelper.buildResponse(JSON.toJSON(list1));
}else{
list= iAlertFormService.getFormlist(code);
redisUtils.set(RedisKey.FORM_CODE+code,JSON.toJSON(list),time);
......
......@@ -267,13 +267,13 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
for (AlertFormValue alertFormValue : list) {
if("flightNumber".equals(alertFormValue.getFieldCode())) {
FormValue value = new FormValue(alertFormValue.getFieldCode(), alertFormValue.getFieldName(),
"text", alertFormValue.getFieldValueCode(), alertFormValue.getBlock());
"text", ValidationUtil.isEmpty(alertFormValue.getFieldValueCode()) ? alertFormValue.getFieldValue() : alertFormValue.getFieldValueCode() , alertFormValue.getBlock());
formValue.add(value);
continue;
}
if("aircraftModel".equals(alertFormValue.getFieldCode())) {
FormValue value = new FormValue(alertFormValue.getFieldCode(), alertFormValue.getFieldName(),
"text", alertFormValue.getFieldValueCode(), alertFormValue.getBlock());
"text", ValidationUtil.isEmpty(alertFormValue.getFieldValueCode()) ? alertFormValue.getFieldValue() : alertFormValue.getFieldValueCode() , alertFormValue.getBlock());
formValue.add(value);
continue;
}
......@@ -615,11 +615,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
/*
* if(null == valueCode) { valueCode = alertFormValue.getFieldValue(); }
*/
if("flightNumber".equals(alertFormValue.getFieldCode()) || "aircraftModel".equals(alertFormValue.getFieldCode())) {
listdate.add(new KeyValueLabel(alertFormValue.getFieldName(), alertFormValue.getFieldCode(), alertFormValue.getFieldValueCode()));
} else {
// if("flightNumber".equals(alertFormValue.getFieldCode()) || "aircraftModel".equals(alertFormValue.getFieldCode())) {
// listdate.add(new KeyValueLabel(alertFormValue.getFieldName(), alertFormValue.getFieldCode(), alertFormValue.getFieldValueCode()));
// } else {
listdate.add(new KeyValueLabel(alertFormValue.getFieldName(), alertFormValue.getFieldCode(), valueCode));
}
// }
});
map.put("data", listdate);
......
......@@ -531,7 +531,7 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
smsParams.put("feedback", calledRo.getFeedback());
}
// 短信报送对象
// alertSubmittedObjectServiceImpl.saveBatch(alertSubmittedObjectList);
alertSubmittedObjectServiceImpl.saveBatch(alertSubmittedObjectList);
// 发送任务消息
// 组织短信内容
// 调用短信发送接口
......
......@@ -126,10 +126,10 @@ public class RuleAlertCalledService {
}
//航空器救援
if (alertFormValue.getFieldCode().equals("flightNumber")) {
alertCalledRo.setFlightNumber(alertFormValue.getFieldValueCode());
alertCalledRo.setFlightNumber(ValidationUtil.isEmpty(alertFormValue.getFieldValueCode()) ? alertFormValue.getFieldValue() : alertFormValue.getFieldValueCode());
}
if (alertFormValue.getFieldCode().equals("aircraftModel")) {
alertCalledRo.setAircraftModel(alertFormValue.getFieldValueCode());
alertCalledRo.setAircraftModel(ValidationUtil.isEmpty(alertFormValue.getFieldValueCode()) ? alertFormValue.getFieldValue() : alertFormValue.getFieldValueCode());
}
if (alertFormValue.getFieldCode().equals("landingTime")) {
alertCalledRo.setLandingTime(alertFormValue.getFieldValue());
......@@ -160,7 +160,7 @@ public class RuleAlertCalledService {
//漏油现场安全保障
if (alertFormValue.getFieldCode().equals("flightNumber")) {
alertCalledRo.setFlightNumberLy(alertFormValue.getFieldValue());
alertCalledRo.setFlightNumberLy(ValidationUtil.isEmpty(alertFormValue.getFieldValueCode()) ? alertFormValue.getFieldValue() : alertFormValue.getFieldValueCode());
}
if (alertFormValue.getFieldCode().equals("seat")) {
alertCalledRo.setSeat(alertFormValue.getFieldValue());
......
......@@ -81,6 +81,7 @@ public class AsyncTask {
if (pointName != null) {
body += "关联检查点:" + pointName + TAB;
}
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state, "");
}
......
......@@ -184,6 +184,7 @@ public class AsyncTask {
if (pointName != null) {
body += "关联检查点:" + pointName + TAB;
}
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, state,"");
}
......
......@@ -155,6 +155,7 @@ public class AsyncTask {
if (pointName != null) {
body += "关联检查点:" + pointName + TAB;
}
body = body.replaceAll(null, "").replaceAll("null", "");
saveAndSendMsg(orgCode, informerList, msgTypeEnum.getTitle(), body, msgTypeEnum.getMsgType(), latentDangerId, taskId, state,"");
}
......
......@@ -10,13 +10,16 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
import org.typroject.tyboot.core.restful.exception.GlobalExceptionHandler;
import com.yeejoin.amos.boot.biz.common.utils.oConvertUtils;
......@@ -48,4 +51,10 @@ public class AmostEquipApplication {
+ "Application Amos-Biz-Boot is running! Access URLs:\n\t" + "Swagger文档: \thttp://" + ip + ":" + port
+ path + "/doc.html\n" + "----------------------------------------------------------");
}
@Bean
@LoadBalanced
RestTemplate restTemplate(){
return new RestTemplate();
}
}
......@@ -18,6 +18,8 @@ pagehelper.params=count=countSql
pagehelper.reasonable=false
pagehelper.support-methods-arguments=true
spring.main.allow-bean-definition-overriding=true
#liquibase
spring.liquibase.change-log = classpath:/changelog/changelog-master.xml
spring.liquibase.enabled= true
......
......@@ -734,18 +734,18 @@
</select>
<select id="getEquipSpecificDetail"
resultType="com.yeejoin.equipmanage.common.datasync.entity.FireEquipment">
SELECT
SELECT
es.id,
es.`code` AS mrid,
ed.`name`,
ed.`name` AS aliasname,
es.`name`,
es.`name` AS aliasname,
es.`code`,
e.`name` AS categoryname,
e.`code` AS categorycode,
ed.equipment_name AS categoryname,
ed.`code` AS categorycode,
( SELECT GROUP_CONCAT( url ) FROM wl_upload_file WHERE file_type = 'image' AND object_type = 'equipment' AND object_id = ed.id ) AS img,
es.iot_code AS iotcode,
f.`name` AS stationname,
f.`code` AS stationcode,
'' AS stationname,
'' AS stationcode,
ws.source_id AS buildid,
es.system_id AS fightingsystemids,
TRIM(CONCAT_WS(' ',ws.full_name,sd.description)) AS position,
......@@ -760,11 +760,9 @@
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
LEFT JOIN wl_stock_detail sd ON sd.equipment_specific_id = es.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = sd.warehouse_structure_id
LEFT JOIN wl_area a ON es.area_id = a.id,
f_station_info f
LEFT JOIN wl_area a ON es.area_id = a.id
WHERE
es.id = #{id}
</select>
......
......@@ -71,10 +71,11 @@
p_point_inputitem pi
LEFT JOIN p_input_item ii ON ii.id = pi.input_item_id
LEFT JOIN p_point_classify pc ON FIND_IN_SET(pc.id, pi.classify_ids) > 0
LEFT JOIN p_route_point prp ON prp.point_id = pi.point_id
WHERE
pi.point_id = #{pointId}
AND NOT FIND_IN_SET(pi.id,prp.exclude_items)
AND IF(prp.id, NOT FIND_IN_SET(pi.id,prp.exclude_items),' 1=1 ')
ORDER BY
pi.order_no
</select>
......
......@@ -494,6 +494,291 @@
</changeSet>
<changeSet author="kongfm" id="2021-12-22-01">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tcb_equipment"/>
</not>
</preConditions>
<comment>add tcb_equipment table </comment>
<sql>
CREATE TABLE `tcb_equipment` (
`sequence_nbr` bigint(50) NOT NULL COMMENT '主键',
`equip_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备id',
`code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备编号',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备名称',
`category_id` bigint(50) NOT NULL COMMENT '设备类别id',
`category_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备类别名称',
`type_id` bigint(50) NOT NULL COMMENT '设备种类id',
`type_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备种类名称',
`variety_id` bigint(50) NULL DEFAULT NULL COMMENT '设备品种id',
`variety_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备品种名称',
`brand` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备品牌',
`model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '规格型号',
`inner_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位内部编号',
`design_unit_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计单位名称',
`manufacturer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '制造单位名称',
`design_life` int(10) NULL DEFAULT NULL COMMENT '设计使用年限',
`factory_date` datetime NULL DEFAULT NULL COMMENT '出厂日期',
`product_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品编号(出厂编号)',
`supervision_agency` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '监督检验机构',
`inspection_report_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '检验报告编号',
`status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '设备状态(未安装,已安装...)',
`rec_user_id` int(11) NULL DEFAULT NULL COMMENT '更新人id',
`rec_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人名称',
`rec_date` datetime NULL DEFAULT NULL COMMENT '更新日期',
`is_delete` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除(0未删除,1删除)',
`equip_unit_id` bigint(32) NULL DEFAULT NULL COMMENT '设备所属单位id',
`equip_unit` varchar(104) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备所属单位',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '装备信息表' ROW_FORMAT = DYNAMIC;
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-22-02">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tcb_equipment_associated"/>
</not>
</preConditions>
<comment>add tcb_equipment_associated table </comment>
<sql>
CREATE TABLE `tcb_equipment_associated` (
`sequence_nbr` bigint(50) NOT NULL COMMENT '主键',
`equipment_id` bigint(50) NULL DEFAULT NULL COMMENT '设备id',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名称',
`model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '型号',
`specifications` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '规格',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号',
`amount` int(10) NULL DEFAULT NULL COMMENT '数量',
`manufacturer` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '制造单位',
`production_date` datetime NULL DEFAULT NULL COMMENT '制造日期',
`part_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部件/装置号',
`certificate_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '型式试验合格证号',
`remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`appraisal_agency_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鉴定机构名称',
`appraisal_date` datetime NULL DEFAULT NULL COMMENT '设计文件鉴定日期',
`appraisal_report_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '鉴定报告书编号',
`supervisory_inspection_agency` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '监检检验机构',
`social_credit_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '统一社会信用代码',
`approval_certificate_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构核准证编号',
`rec_user_id` bigint(50) NULL DEFAULT NULL COMMENT '更新人id',
`rec_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人名称',
`rec_date` datetime NULL DEFAULT NULL COMMENT '更新日期',
`is_delete` bit(1) NULL DEFAULT NULL COMMENT '是否删除(1删除,0未删除)',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '配套设备/设施/部件' ROW_FORMAT = DYNAMIC;
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-22-03">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tcb_equipment_index"/>
</not>
</preConditions>
<comment>add tcb_equipment_index table </comment>
<sql>
CREATE TABLE `tcb_equipment_index` (
`sequence_nbr` bigint(50) NOT NULL COMMENT '主键',
`equipment_id` bigint(50) NOT NULL COMMENT '设备id',
`equipment_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设备名称',
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '指标值',
`def_index_id` bigint(50) NULL DEFAULT NULL COMMENT '装备定义指标id',
`def_index_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '装备定义指标名称',
`def_index_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '装备定义指标key',
`rec_user_id` bigint(50) NULL DEFAULT NULL COMMENT '更新人id',
`rec_user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人名称',
`rec_date` datetime NULL DEFAULT NULL COMMENT '更新时间',
`is_delete` bit(1) NULL DEFAULT NULL COMMENT '是否删除(1删除,0未删除)',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '设备指标' ROW_FORMAT = DYNAMIC;
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-23-01">
<preConditions onFail="MARK_RAN">
<tableExists tableName="tcb_equipment"/>
</preConditions>
<comment>modify table tcb_equipment add address columns</comment>
<sql>
ALTER TABLE `tcb_equipment` add address varchar(500) COMMENT '详细地址';
ALTER TABLE `tcb_equipment` add longitude varchar(30) COMMENT '经度';
ALTER TABLE `tcb_equipment` add latitude varchar(30) COMMENT '纬度';
ALTER TABLE `tcb_equipment` add region_code varchar(30) COMMENT '所属区域代码';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-23-02">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tcb_inform_equipment"/>
</not>
</preConditions>
<comment>add tcb_inform_equipment table </comment>
<sql>
CREATE TABLE `tcb_inform_equipment` (
`sequence_nbr` bigint(50) NOT NULL COMMENT '主键',
`equip_id` varchar(50) NOT NULL COMMENT '设备id',
`code` varchar(50) DEFAULT NULL COMMENT '设备编号',
`name` varchar(255) NOT NULL COMMENT '设备名称',
`category_id` bigint(50) NOT NULL COMMENT '设备类别id',
`category_name` varchar(255) DEFAULT NULL COMMENT '设备类别名称',
`type_id` bigint(50) NOT NULL COMMENT '设备种类id',
`type_name` varchar(255) DEFAULT NULL COMMENT '设备种类名称',
`variety_id` bigint(50) DEFAULT NULL COMMENT '设备品种id',
`variety_name` varchar(255) DEFAULT NULL COMMENT '设备品种名称',
`brand` varchar(255) DEFAULT NULL COMMENT '设备品牌',
`model` varchar(255) DEFAULT NULL COMMENT '规格型号',
`inner_code` varchar(50) DEFAULT NULL COMMENT '单位内部编号',
`design_unit_name` varchar(255) DEFAULT NULL COMMENT '设计单位名称',
`manufacturer` varchar(255) DEFAULT NULL COMMENT '制造单位名称',
`design_life` int(10) DEFAULT NULL COMMENT '设计使用年限',
`factory_date` datetime DEFAULT NULL COMMENT '出厂日期',
`product_code` varchar(255) DEFAULT NULL COMMENT '产品编号(出厂编号)',
`supervision_agency` bigint(50) DEFAULT NULL COMMENT '监督检验机构',
`inspection_report_code` varchar(255) DEFAULT NULL COMMENT '检验报告编号',
`status` varchar(50) NOT NULL COMMENT '设备状态(未安装,已安装...)',
`rec_user_id` int(11) DEFAULT NULL COMMENT '更新人id',
`rec_user_name` varchar(255) DEFAULT NULL COMMENT '更新人名称',
`rec_date` datetime DEFAULT NULL COMMENT '更新日期',
`is_delete` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除(0未删除,1删除)',
`equip_unit_id` bigint(32) DEFAULT NULL COMMENT '设备所属单位id',
`equip_unit` varchar(104) DEFAULT NULL COMMENT '设备所属单位',
`inform_id` bigint(32) DEFAULT NULL COMMENT '告知单id',
`source_equipment_id` bigint(32) DEFAULT NULL COMMENT '原设备id',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='告知申请-设备信息表';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-23-03">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tz_equipment_inform"/>
</not>
</preConditions>
<comment>add tz_equipment_inform table </comment>
<sql>
CREATE TABLE `tz_equipment_inform` (
`sequence_nbr` bigint(19) NOT NULL DEFAULT '0' COMMENT 'id',
`product_code` varchar(20) DEFAULT NULL COMMENT '施工告知编号',
`product_inform_date` datetime DEFAULT NULL COMMENT '施工告知日期',
`product_unit` varchar(50) DEFAULT NULL COMMENT '施工单位',
`product_unit_id` bigint(32) DEFAULT NULL COMMENT '施工单位id',
`product_type` varchar(20) DEFAULT NULL COMMENT '施工类型',
`product_type_code` varchar(25) DEFAULT NULL COMMENT '施工类型code',
`licence_code` varchar(50) DEFAULT NULL COMMENT '生产许可证编号',
`licence_date` datetime DEFAULT NULL COMMENT '生产许可证有效期',
`region_code` varchar(100) DEFAULT NULL COMMENT '区域编码',
`province` varchar(50) DEFAULT NULL COMMENT '省',
`city` varchar(50) DEFAULT NULL COMMENT '市',
`district` varchar(50) DEFAULT NULL COMMENT '县区',
`stree` varchar(50) DEFAULT NULL COMMENT '街道',
`community` varchar(50) DEFAULT NULL COMMENT '小区',
`address` varchar(100) DEFAULT NULL COMMENT '详细地址',
`longitude` varchar(50) DEFAULT NULL COMMENT '经度',
`latitude` varchar(50) DEFAULT NULL COMMENT '纬度',
`principal` varchar(20) DEFAULT NULL COMMENT '施工负责人',
`principal_id` bigint(32) DEFAULT NULL COMMENT '施工负责人id',
`principal_phone` varchar(20) DEFAULT NULL COMMENT '施工负责人电话',
`plan_product_date` datetime DEFAULT NULL COMMENT '计划施工日期',
`accept_unit` varchar(50) DEFAULT NULL COMMENT '接收机构',
`accept_unit_id` bigint(32) DEFAULT NULL COMMENT '接收机构id',
`inspecton_unit` varchar(50) DEFAULT NULL COMMENT '检验机构',
`inspecton_unit_id` bigint(32) DEFAULT NULL COMMENT '检验机构id',
`use_unit` varchar(50) DEFAULT NULL COMMENT '使用单位',
`use_unit_id` bigint(32) DEFAULT NULL COMMENT '使用单位id',
`property_unit` varchar(50) DEFAULT NULL COMMENT '产权单位',
`property_unit_id` bigint(32) DEFAULT NULL COMMENT '产权单位id',
`use_site` varchar(50) DEFAULT NULL COMMENT '使用场所',
`use_site_code` varchar(50) DEFAULT NULL COMMENT '使用场所code',
`inform_code` varchar(50) DEFAULT NULL COMMENT '告知书编号',
`inform_status` varchar(50) DEFAULT NULL COMMENT '告知单状态 0 暂存 1未接收 9已接收',
`rec_user_name` varchar(15) CHARACTER SET utf8 DEFAULT NULL COMMENT '接警人名称',
`rec_user_id` varchar(19) CHARACTER SET utf8 DEFAULT NULL COMMENT '接警人',
`rec_date` datetime DEFAULT NULL COMMENT '接警时间',
`is_delete` bit(1) DEFAULT b'0' COMMENT '是否删除',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='设备告知单';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-23-04">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from cb_data_dictionary where sequence_nbr = 1108</sqlCheck>
</preConditions>
<comment>add data_dictionary inform </comment>
<sql>
INSERT INTO `cb_data_dictionary` (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES (1108, '1108', '改造', 'BUILD_TYPE', NULL, NULL, NULL, NULL, NULL, b'0', 1);
INSERT INTO `cb_data_dictionary` (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES (1109, '1109', '维修', 'BUILD_TYPE', NULL, NULL, NULL, NULL, NULL, b'0', 1);
INSERT INTO `cb_data_dictionary` (`sequence_nbr`, `code`, `name`, `type`, `type_desc`, `parent`, `rec_user_name`, `rec_user_id`, `rec_date`, `is_delete`, `sort_num`) VALUES (1110, '1110', '移装', 'BUILD_TYPE', NULL, NULL, NULL, NULL, NULL, b'0', 1);
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-23-05">
<preConditions onFail="MARK_RAN">
<tableExists tableName="tcb_inform_equipment"/>
</preConditions>
<comment>modify table tcb_inform_equipment add address columns</comment>
<sql>
ALTER TABLE `tcb_inform_equipment` add address varchar(500) COMMENT '详细地址';
ALTER TABLE `tcb_inform_equipment` add longitude varchar(30) COMMENT '经度';
ALTER TABLE `tcb_inform_equipment` add latitude varchar(30) COMMENT '纬度';
ALTER TABLE `tcb_inform_equipment` add region_code varchar(30) COMMENT '所属区域代码';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-24-01">
<preConditions onFail="MARK_RAN">
<tableExists tableName="tz_equipment_inform"/>
</preConditions>
<comment>modify table tz_equipment_inform add processInfo columns</comment>
<sql>
ALTER TABLE `tz_equipment_inform` add process_id varchar(50) COMMENT '流程id';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-27-01">
<preConditions onFail="MARK_RAN">
<tableExists tableName="tz_equipment_inform"/>
</preConditions>
<comment>modify table tz_equipment_inform add processInfo columns</comment>
<sql>
ALTER TABLE `tz_equipment_inform` add process_status varchar(50) COMMENT '流程状态';
</sql>
</changeSet>
<changeSet author="kongfm" id="2021-12-27-02">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="tz_inform_process_info"/>
</not>
</preConditions>
<comment>add tz_inform_process_info table </comment>
<sql>
CREATE TABLE `tz_inform_process_info` (
`sequence_nbr` bigint(30) NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`process_info` varchar(255) NOT NULL COMMENT '流转内容',
`handler` varchar(255) NOT NULL COMMENT '流程操作人',
`handler_unit_id` bigint(32) NOT NULL COMMENT '操作人所属单位id',
`rec_user_id` bigint(30) DEFAULT NULL COMMENT '更新人id',
`rec_user_name` varchar(100) DEFAULT NULL COMMENT '更新人名称',
`rec_date` datetime DEFAULT NULL COMMENT '更新时间',
`is_delete` bit(1) DEFAULT b'0' COMMENT '是否删除(0:未删除,1:已删除)',
`process_status` varchar(15) NOT NULL COMMENT '流程状态',
`handler_id` bigint(32) DEFAULT NULL COMMENT '流程操作人id',
`handler_unit` varchar(255) DEFAULT NULL COMMENT '操作人所属单位',
`process_id` varchar(50) DEFAULT NULL COMMENT '流程id',
`inform_id` bigint(32) DEFAULT NULL COMMENT '告知书id',
PRIMARY KEY (`sequence_nbr`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1458324621349306370 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='通话记录附件';
</sql>
</changeSet>
</databaseChangeLog>
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