Commit b9a98e4a authored by chenhao's avatar chenhao

Merge branch 'develop_ccs' of http://172.16.10.76/moa/amos-boot-biz into develop_ccs

parents e41f1864 19ffb583
......@@ -86,16 +86,16 @@ public class ControllerAop {
return;
}
}
//TODO tyboot 框架拦截器已缓存数据
String token = RequestContext.getToken();
// 不需要校验token的接口直接返回
if (joinPoint.getSignature() instanceof MethodSignature) {
if (!((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(TycloudOperation.class).needAuth() && !request.getParameterMap().containsKey("token")) {
if (!((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(TycloudOperation.class).needAuth() && !request.getParameterMap().containsKey("token") && ValidationUtil.isEmpty(token)) {
return;
}
}
//TODO tyboot 框架拦截器已缓存数据
String token = RequestContext.getToken();
// 平台studio配置的下载接口token从url里取
if (ValidationUtil.isEmpty(token)) {
fillRequestContext(request);
......
......@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.common.api.excel;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.poi.ss.usermodel.DataValidation;
import org.apache.poi.ss.usermodel.DataValidationConstraint;
......@@ -70,8 +71,9 @@ public class TemplateDynamicCellWriteHandlerDate implements SheetWriteHandler{
// 如果下拉值总数大于100,则使用一个新sheet存储,避免生成的导入模板下拉值获取不到
if (v.length > LIMIT_NUMBER) {
//定义sheet的名称
//1.创建一个隐藏的sheet 名称为 hidden + k
String sheetName = "hidden" +startIndex + k;
//1.创建一个隐藏的sheet 名称为 hidden + k+随机数防止数据过多造成的名字重复
Random random = new Random();
String sheetName = "hidden" +startIndex + k+random.nextInt(1000);
Workbook workbook = writeWorkbookHolder.getWorkbook();
Sheet hiddenSheet = workbook.createSheet(sheetName);
for (int i = 0, length = v.length; i < length; i++) {
......
......@@ -77,6 +77,10 @@ public class FireEquipment implements Serializable {
@TableField("workarea")
private String workArea;
@ApiModelProperty(value = "所属区域id")
@TableField("areaid")
private String areaid;
@ApiModelProperty(value = "所在建筑ID")
@TableField("buildid")
private String buildId;
......@@ -87,23 +91,23 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "所属消防系统Ids")
@TableField("fightingsystemids")
private String fightingSystemIds;
private String fightingSystemIds = "";
@ApiModelProperty(value = "位置")
@TableField("position")
private String position;
private String position = "";
@ApiModelProperty(value = "使用日期")
@TableField("inusedate")
private LocalDateTime inUseDate;
private LocalDateTime inUseDate ;
@ApiModelProperty(value = "状态")
@TableField("status")
private String status;
private String status = "正常";
@ApiModelProperty(value = "使用状态")
@TableField("inusestate")
private String inUseState;
private String inUseState= "在位";
@ApiModelProperty(value = "创建时间")
@TableField("createdate")
......@@ -115,23 +119,23 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "别名")
@TableField("aliasname")
private String aliasname;
private String aliasname = "";
@ApiModelProperty(value = "描述")
@TableField("description")
private String description;
private String description = "";
@ApiModelProperty(value = "辅助监控设备类型")
@TableField("kind")
private String kind;
private String kind = "";
@ApiModelProperty(value = "资产性质")
@TableField("assetsnature")
private String assetsnature;
private String assetsnature = "";
@ApiModelProperty(value = "设备来源种类")
@TableField("assetsource")
private String assetsource;
private String assetsource = "";
@ApiModelProperty(value = "是否组合设备")
@TableField("combinedequipment")
......@@ -139,15 +143,15 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "出厂编号")
@TableField("factorynumber")
private String factorynumber;
private String factorynumber = "";
@ApiModelProperty(value = "制造国家")
@TableField("manufacturecountry")
private String manufacturecountry;
private String manufacturecountry = "";
@ApiModelProperty(value = "经营方式")
@TableField("operationmodel")
private String operationmodel;
private String operationmodel = "";
@ApiModelProperty(value = "运行编号")
@TableField("operationno")
......@@ -155,11 +159,11 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "验收测试的信息")
@TableField("acceptancetest")
private String acceptancetest;
private String acceptancetest = "";
@ApiModelProperty(value = "基线状态")
@TableField("baselinecondition")
private String baselinecondition;
private String baselinecondition = "";
@ApiModelProperty(value = "基线生命损耗")
@TableField("baselinelossoflife")
......@@ -175,38 +179,43 @@ public class FireEquipment implements Serializable {
@ApiModelProperty(value = "资产生命周期日期")
@TableField("lifecycledate")
private String lifecycledate;
private String lifecycledate = "";
@ApiModelProperty(value = "资产生命周期状态")
@TableField("lifecyclestate")
private String lifecyclestate;
private String lifecyclestate = "";
@ApiModelProperty(value = "批号")
@TableField("lotnumber")
private String lotnumber;
private String lotnumber = "";
@ApiModelProperty(value = "采购价格")
@TableField("purchaseprice")
private String purchaseprice;
private String purchaseprice = "";
@ApiModelProperty(value = "退役原因")
@TableField("retiredreason")
private String retiredreason;
private String retiredreason = "";
@ApiModelProperty(value = "编号")
@TableField("serialnumber")
private String serialnumber;
private String serialnumber = "";
@ApiModelProperty(value = "类型")
@TableField("type")
private String type;
private String type = "";
@ApiModelProperty(value = "UTC编号")
@TableField("utcnumber")
private String utcnumber;
private String utcnumber = "";
@ApiModelProperty(value = "所关联的设备信息")
@TableField("fireequipmentinfo")
private String fireequipmentinfo;
private String fireequipmentinfo = "";
@ApiModelProperty(value = "二维码")
@TableField(exist = false)
private String qrCode;
}
\ No newline at end of file
......@@ -278,11 +278,11 @@ public class FireTeamServiceImpl extends BaseService<FireTeamDto, FireTeam, Fire
i.setCompany(fireTeam.getCompany());
i.setCompanyName(fireTeam.getCompanyName());
i.setCompanyCode(fireTeam.getCompanyCode());
updateById(i);
this.updateById(i);
});
}
/*如果修改的队伍有下级队伍,所属单位一起修改 2021-10-18 陈召 结束*/
updateById(fireTeam);
this.updateById(fireTeam);
}
return fireTeam;
}
......
......@@ -1750,7 +1750,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
* @return
*/
@Override
public List<Map<String, Object>> getPersonDetailByCompanyIds(List<String> ids) {
/* public List<Map<String, Object>> getPersonDetailByCompanyIds(List<String> ids) {
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<OrgUsr>();
......@@ -1758,6 +1758,17 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
wrapper.eq(OrgUsr::getBizOrgType, OrgPersonEnum.人员.getKey());
wrapper.in(OrgUsr::getParentId, ids);
List<OrgUsr> orgPersonList = this.baseMapper.selectList(wrapper);
List<String> fireStationSimpleList = new ArrayList<String>();
ids.forEach(id-> {
List<Map<String, Object>> maps = fireStationServiceImpl
.queryForFireStationListByCompanyId(Long.parseLong(id));
maps.stream().forEach(i -> {
String tagertString = i.get("name").toString() + "@" + i.get("sequence_nbr").toString();
fireStationSimpleList.add(tagertString);
});
});
for (OrgUsr orgUsr : orgPersonList) {
Map<String, Object> map = new HashMap<String, Object>();
List<DynamicFormInstanceDto> dyList = alertFormValueServiceImpl.queryByCalledId(orgUsr.getSequenceNbr());
......@@ -1792,12 +1803,66 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
if (ObjectUtils.isEmpty(fireStationList)) {
continue;
}
if (!map.containsKey("fireStation")){
map.put("fireStation", fireStationSimpleList);
}
list.add(map);
}
return list;
}*/
public List<Map<String, Object>> getPersonDetailByCompanyIds(List<String> ids) {
List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<OrgUsr>();
wrapper.eq(OrgUsr::getIsDelete, false);
wrapper.eq(OrgUsr::getBizOrgType, OrgPersonEnum.人员.getKey());
wrapper.in(OrgUsr::getParentId, ids);
List<OrgUsr> orgPersonList = this.baseMapper.selectList(wrapper);
List<String> fireStationSimpleList = new ArrayList<String>();
fireStationList.stream().forEach(i -> {
ids.forEach(id-> {
List<Map<String, Object>> maps = fireStationServiceImpl
.queryForFireStationListByCompanyId(Long.parseLong(id));
maps.stream().forEach(i -> {
String tagertString = i.get("name").toString() + "@" + i.get("sequence_nbr").toString();
fireStationSimpleList.add(tagertString);
});
});
for (OrgUsr orgUsr : orgPersonList) {
Map<String, Object> map = new HashMap<String, Object>();
List<DynamicFormInstanceDto> dyList = alertFormValueServiceImpl.queryByCalledId(orgUsr.getSequenceNbr());
if (ObjectUtils.isEmpty(dyList)) {
continue;
}
for (DynamicFormInstanceDto dto : dyList) {
if ("positionType".equals(dto.getFieldCode())) {
map.put("postType", dto.getFieldValue());
map.put("postTypeName", dto.getFieldValueLabel());
break;
}
}
if (!map.containsKey("postType") || map.get("postType") == null
|| StringUtils.isBlank(map.get("postType").toString())) {
continue;
}
map.put("userName", orgUsr.getBizOrgName());
map.put("userId", orgUsr.getSequenceNbr().toString());
LambdaQueryWrapper<OrgUsr> wrapper1 = new LambdaQueryWrapper<OrgUsr>();
wrapper1.eq(OrgUsr::getIsDelete, false);
wrapper1.in(OrgUsr::getBizOrgType, OrgPersonEnum.公司.getKey(),OrgPersonEnum.部门.getKey());
wrapper1.eq(OrgUsr::getSequenceNbr, Long.parseLong(orgUsr.getParentId()));
OrgUsr orgCompany = this.baseMapper.selectOne(wrapper1);
if (ObjectUtils.isEmpty(orgCompany)) {
continue;
}
map.put("teamName", orgCompany.getBizOrgName());
map.put("teamId", orgCompany.getSequenceNbr().toString());
if (!map.containsKey("fireStation")){
map.put("fireStation", fireStationSimpleList);
}
list.add(map);
}
return list;
......@@ -2139,7 +2204,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
public OrgUsr getCompanyByUserId(Long userId) {
LambdaQueryWrapper<OrgUsr> wrapper = new LambdaQueryWrapper<OrgUsr>();
wrapper.eq(OrgUsr::getIsDelete, false);
wrapper.eq(OrgUsr::getSequenceNbr, userId);
wrapper.eq(OrgUsr::getAmosOrgId, userId);
wrapper.eq(OrgUsr::getBizOrgType, CommonConstant.BIZ_ORG_TYPE_PERSON);
OrgUsr orgUsr = baseMapper.selectOne(wrapper);
return getCompanyByParentId(orgUsr.getParentId());
......
......@@ -1152,7 +1152,7 @@ public class CarController extends AbstractBaseController {
+ "&productKey=" + prefix + "&deviceName=" + suffix,
HttpMethod.GET, httpEntity, FeignClientResult.class);
} catch (Exception e) {
e.printStackTrace();
log.error(e.getMessage());
}
if (null != feignClientResult && feignClientResult.getBody().getStatus() == 200) {
return CommonResponseUtil.success(feignClientResult.getBody().getResult());
......@@ -1160,7 +1160,6 @@ public class CarController extends AbstractBaseController {
log.error("注:iotCode为 (" + iotCode + ") 的车辆不存在于物联系统或物联系统车辆历史轨迹接口出错!");
return CommonResponseUtil.success();
}
}
/**
......
......@@ -509,6 +509,7 @@ public class FireFightingSystemController extends AbstractBaseController {
try {
return CommonResponseUtil.success(fireFightingSystemService.update(vo));
} catch (Exception e) {
log.error(e.getMessage(),e);
return CommonResponseUtil.failure(e.getMessage());
}
}
......
......@@ -138,7 +138,7 @@ public interface FormInstanceMapper extends BaseMapper<FormInstance> {
/**
* 修改仓库
*/
int updateStr(@Param("id") Long id,@Param("name") String name,@Param("fullName") String fullName,@Param("parentId")String parentId, @Param("code")String code);
int updateStr(@Param("id") Long id,@Param("name") String name,@Param("fullName") String fullName,@Param("parentId")String parentId, @Param("code")String code, @Param("bizOrgCode")String bizOrgCode);
/**
......
......@@ -343,10 +343,11 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
String fullName = name;
String code = (String) map.get("code");
String parentName = formInstanceMapper.getStuctureName(parentId);
String bizOrgCode = map.get("bizOrgCode").toString();
if (!"0".equals(parentId)) {
fullName = parentName + '-' + name;
}
formInstanceMapper.updateStr(instanceId, name, fullName, parentId, code);
formInstanceMapper.updateStr(instanceId, name, fullName, parentId, code,bizOrgCode);
//3.修改仓库对应子数据
fullName = "0".equals(parentId) ? name + "-" : "-" + name;
name = beforFullName + "-";
......
......@@ -146,12 +146,20 @@ public class EqEqDynamicFormServiceImpl implements IEqDynamicFormService {
this.fillFormColumnWithFiledValue(dynamicFormGroupVo, formInstanceMap);
//3.处理子分组数据
List<DynamicFormGroup> groupList = iEqDynamicFormGroupService.list(new LambdaQueryWrapper<DynamicFormGroup>()
.eq(DynamicFormGroup::getParentId, dynamicFormGroupVo.getId()).orderByAsc(DynamicFormGroup::getSort));
List<DynamicFormGroupVo> formGroupVos = groupList.stream().map(s -> {
.eq(DynamicFormGroup::getParentId, dynamicFormGroupVo.getId()).eq(DynamicFormGroup::getParentId, dynamicFormGroupVo.getId()).orderByAsc(DynamicFormGroup::getSort));
List<DynamicFormGroupVo> formGroupVos=new ArrayList<>();
List<DynamicFormGroupVo> formGroupVos1 = groupList.stream().map(s -> {
this.stringToJsonGroupConfig(s);
JSONObject jsonObject =s.getGroupConfig();
if((jsonObject.get("isSelect").toString()).equals("true")){
DynamicFormGroupVo target = new DynamicFormGroupVo();
Bean.copyExistPropertis(s, target);
formGroupVos.add(target);
return target;
}
return null;
}).collect(Collectors.toList());
formGroupVos.forEach(v -> {
this.fillFormColumnWithFiledValue(v, formInstanceMap);
......
......@@ -935,14 +935,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
int res = this.baseMapper.deleteById(id);
if (res > 0 && syncSwitch) {
//数据同步
syncDataService.syncDeletedEquipmentSpecific(Arrays.asList(id));
List<EquipmentIndexVO> indexBySpecificIdIn = equipmentSpecificIndexSerivce.getEquipIndexBySpecificIdIn(Arrays.asList(String.valueOf(id)));
if (!indexBySpecificIdIn.isEmpty()) {
List<Long> fireEquipmentInfoCollect = indexBySpecificIdIn.stream().filter(vo -> 0 == vo.getIsIot()).map(EquipmentIndexVO::getId).collect(Collectors.toList());
List<Long> fireEquipMeasurementCollect = indexBySpecificIdIn.stream().filter(vo -> 1 == vo.getIsIot()).map(EquipmentIndexVO::getId).collect(Collectors.toList());
syncDataService.syncDeletedEquipmentSpecificInfo(fireEquipmentInfoCollect);
syncDataService.syncDeletedFireEquipMeasurement(fireEquipMeasurementCollect);
}
delEquipmentSpecificSyncData(id);
}
//判断装备表剩余数量,无剩余删除模板
QueryWrapper<EquipmentSpecific> wrapper = new QueryWrapper<>();
......@@ -993,6 +986,18 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
public void delEquipmentSpecificSyncData(Long id){
//数据同步
syncDataService.syncDeletedEquipmentSpecific(Arrays.asList(id));
List<EquipmentIndexVO> indexBySpecificIdIn = equipmentSpecificIndexSerivce.getEquipIndexBySpecificIdIn(Arrays.asList(String.valueOf(id)));
if (!indexBySpecificIdIn.isEmpty()) {
List<Long> fireEquipmentInfoCollect = indexBySpecificIdIn.stream().filter(vo -> 0 == vo.getIsIot()).map(EquipmentIndexVO::getId).collect(Collectors.toList());
List<Long> fireEquipMeasurementCollect = indexBySpecificIdIn.stream().filter(vo -> 1 == vo.getIsIot()).map(EquipmentIndexVO::getId).collect(Collectors.toList());
syncDataService.syncDeletedEquipmentSpecificInfo(fireEquipmentInfoCollect);
syncDataService.syncDeletedFireEquipMeasurement(fireEquipMeasurementCollect);
}
}
@Override
public Object getOneCard(Long id, String type) {
if (BitmapEnum.video.getKey().equals(type)) {
......@@ -1212,6 +1217,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
equipmentSpecific.getStockDetail().setEquipmentSpecificId(equipmentSpecific.getId());
equipmentSpecific.getStockDetail().setQrCode(qrCode);
equipmentSpecific.getStockDetail().setBatchNum(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
equipmentSpecific.getStockDetail().setDescription(equipmentData.getEquipmentDetail().getArea());
stockDetailService.save(equipmentSpecific.getStockDetail());
//4.3生成入库单
......@@ -1524,6 +1530,11 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
this.baseMapper.deleteEquipDataByStockDetailId(stockDetail.getId(), specificId);
}
if (syncSwitch) {
//数据同步
delEquipmentSpecificSyncData(specificId);
}
return Boolean.TRUE;
}
......
......@@ -839,8 +839,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
if (!StringUtil.isNotEmpty(SystemTypeEnum.getEnum(systemCode))) {
return null;
}
Map<String, Object> data = null;
Map<String, Object> data;
if (isUpdate) {
data = saveIntegrationPageSysData(systemCode);
} else {
......
......@@ -771,9 +771,13 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
action.setStatus(AlarmStatusEnum.HF.getCode());
}
action.setUpdateDate(new Date());
// 更新所在系统,设备可能编辑过
// 更新所在系统,设备可能编辑过,更新所在系统、装备名称、装备定义code
action.setSystemIds(equipmentSpcIndex.getSystemId());
action.setSystemCodes(this.getSystemCodeBySpeId(equipmentSpcIndex.getSystemId()));
action.setEquipmentSpecificName(equipmentSpcIndex.getEquipmentSpecificName());
action.setEquipmentCode(equipmentSpcIndex.getEquipmentCode());
// 冗余字段,alarm_log表更新时使用
action.setCode(equipmentSpcIndex.getEquipmentSpecificCode());
equipmentSpecificAlarms.add(action);
});
}
......
......@@ -305,7 +305,7 @@ public class SyncDataUtil {
fireEquipMeasurement.setValue(i.getValue());
fireEquipMeasurement.setTypeCode(i.getTypeCode());
fireEquipMeasurement.setTypeName(i.getTypeName());
fireEquipMeasurement.setMRid(i.getTypeCode());
fireEquipMeasurement.setMRid(i.getIndexId());
return fireEquipMeasurement;
}
).collect(Collectors.toList());
......
......@@ -43,9 +43,7 @@ public class EquipmentServiceImpl {
ResponseModel<Object> response = equipFeignClient.getFireSystemListAll();
List<Map<String, Object>> fireSystemMapList = (List<Map<String, Object>>) response.getResult();
List<MenuFrom> fireSystemDtoList = Lists.newArrayList();
fireSystemMapList.stream().filter(
result -> result.get("bizOrgCode") != null && result.get("bizOrgCode").toString().startsWith(reginParams.getPersonIdentity().getBizOrgCode()))
.forEach(
fireSystemMapList.stream().forEach(
system -> {
MenuFrom menuFrom = new MenuFrom((String) system.get("id"), (String) system.get("name"), "0", "0");
fireSystemDtoList.add(menuFrom);
......
......@@ -23,6 +23,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import org.springframework.web.multipart.MultipartFile;
import org.typroject.tyboot.core.foundation.context.RequestContext;
......@@ -413,6 +414,7 @@ public class ExcelServiceImpl {
}
}
@Transactional
public void commonUpload(MultipartFile multipartFile, ExcelDto excelDto,String uuidString) throws Exception {
switch (excelDto.getType()) {
......
......@@ -136,7 +136,7 @@ public class VoiceRecordFileController extends BaseController {
sortRule = "desc";
}
}else {
sortParam = "call_time";
sortParam = "tel_start_time";
sortRule = "desc";
}
Page<VoiceRecordFileDto> pageBean = voiceRecordFileServiceImpl.queryRecordListByQueryDto(page,
......
......@@ -1006,6 +1006,7 @@
wl_equipment_index.is_iot=1) b on b.equipment_id=wl_equipment_detail.equipment_id
LEFT JOIN wl_stock_detail on wl_equipment_detail.id =wl_stock_detail.equipment_detail_id
LEFT JOIN wl_warehouse_structure on wl_stock_detail.warehouse_structure_id = wl_warehouse_structure.id
LEFT JOIN wl_equipment on wl_equipment.id = wl_equipment_detail.equipment_id where wl_equipment.is_iot = 1
)b
)m
<where>
......
......@@ -364,7 +364,7 @@ WHERE wles.id=#{id}
si.update_date,
ei.type_code AS typeCode,
ei.type_name AS typeName,
es.`code` AS indexId
ei.`id` AS indexId
FROM
wl_equipment_specific_index si
LEFT JOIN wl_equipment_index ei ON si.equipment_index_id = ei.id
......
......@@ -738,6 +738,7 @@
SELECT
es.id,
es.`code` AS mrid,
es.`code` AS materialObjectId,
es.`name`,
es.`name` AS aliasname,
es.`code`,
......@@ -757,7 +758,8 @@
NOW( ) AS updatedate,
es.area_id AS areaid,
ws.`name` AS buildname,
a.`name` AS workarea
a.`name` AS workarea,
es.qr_code as qrCode
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
......@@ -772,14 +774,28 @@
SELECT
es.id,
ed.`name`,
es.`code`,
es.`code` AS mRid,
es.system_id AS fightingSystemIds,
es.iot_code AS iotCode,
ed.`name` as aliasname,
IFNULL(es.`code`,'') as `code`,
IFNULL(es.`code`,'') AS mRid,
IFNULL(es.system_id,'') AS fightingSystemIds,
IFNULL(es.iot_code,'') AS iotCode,
e.`name` AS categoryName,
e.`code` AS categoryCode,
ws.source_id AS buildId,
ws.`name` AS buildName,
IFNULL(ws.source_id,'') AS buildId,
IFNULL(ws.`name`,'') AS buildName,
IFNULL(a.`name`,'') as `workArea`,
IFNULL(a.`id`,'') as `areaid`,
(SELECT
`name`
FROM
f_station_info
LIMIT 1) as stationname,
(SELECT
station_code
FROM
f_station_info
LIMIT 1) as stationCode,
es.create_date as inUseDate,
TRIM( CONCAT( IFNULL( ws.full_name, '' ), ' ', IFNULL( sd.description, '' ) ) ) AS position
FROM
wl_equipment_specific es
......@@ -788,6 +804,7 @@
LEFT JOIN f_fire_fighting_system fs ON fs.id = es.system_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 a.id = es.area_id
<where>
<if test="equipmentId != null">
ed.equipment_id = #{equipmentId}
......
......@@ -796,6 +796,7 @@
<select id="getFireFightingSystemDetail"
resultType="com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem">
SELECT
fs.id,
f.`name` AS stationname,
f.`code` AS stationcode,
......@@ -803,7 +804,7 @@
fs.`name` AS aliasname,
fs.`code`,
fg.group_name AS systemtype,
IFNULL(fs.install_date,'') AS installdate,
fs.install_date AS installdate,
IFNULL(p.`name`,'') AS chargeperson,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(mi.`name`,'') AS constructionunit,
......@@ -823,8 +824,8 @@
LEFT JOIN rpm_person p ON p.id = fs.charge_person,
f_station_info f
<where>
<if test="id != null and id !=''">
fs.id = #{id}
<if test="fireFightingSystemVo != null and fireFightingSystemVo.id != null and fireFightingSystemVo.id !=''">
fs.id = #{fireFightingSystemVo.id}
</if>
</where>
</select>
......@@ -962,7 +963,7 @@
from
`wl_equipment_specific_index` si
where
si.equipment_index_key = 'FAS_AirSampler_FireAlarm') as sgbjqnum,
si.equipment_index_key = 'FAS_SoundLightAlarm_FireAlarm') as sgbjqnum,
(SELECT
count(1)
from
......
......@@ -389,7 +389,8 @@
set name = #{name} ,
full_name = #{fullName},
parent_id = #{parentId},
code = #{code}
code = #{code},
biz_org_code = #{bizOrgCode}
where id = #{id}
</update>
<update id="updateStrFullName">
......
......@@ -10,6 +10,7 @@ logging.config=classpath:logback-${spring.profiles.active}.xml
## mybatis-plus配置控制台打印完整带参数SQL语句
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.global-config.db-config.update-strategy=ignored
## redis失效时间
redis.cache.failure.time=10800
......
......@@ -2817,5 +2817,16 @@
END#
</sql>
</changeSet>
<changeSet author="tw" id="2022-02-22-tw-1">
<preConditions onFail="MARK_RAN">
<tableExists tableName="cb_dynamic_form_column" />
</preConditions>
<comment>update data cb_dynamic_form_column</comment>
<sql>
update cb_dynamic_form_column set is_delete =0 where sequence_nbr=132828674812099;
</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