Commit 003ed358 authored by suhuiguang's avatar suhuiguang

refeat(jyjc): 报检规则4.0开发

1.监管业务设备创建时增加是否球罐字段
parent 4621beaa
package com.yeejoin.amos.boot.module.common.api.dto; package com.yeejoin.amos.boot.module.common.api.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yeejoin.amos.boot.biz.common.annotation.FieldDisplayDefine;
import lombok.Data; import lombok.Data;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
...@@ -211,4 +213,10 @@ public class ESEquipmentCategoryDto { ...@@ -211,4 +213,10 @@ public class ESEquipmentCategoryDto {
*/ */
@Field(type = FieldType.Keyword) @Field(type = FieldType.Keyword)
private String tag1; private String tag1;
/**
* 是否球罐
*/
@Field(type = FieldType.Keyword, name = "WHETHER_SPHERICAL_TANK")
private String whetherSphericalTank;
} }
...@@ -5,6 +5,9 @@ import org.springframework.context.ApplicationEvent; ...@@ -5,6 +5,9 @@ import org.springframework.context.ApplicationEvent;
import java.util.Set; import java.util.Set;
/**
* 数据质量等级计算消息
*/
@Getter @Getter
public class EquipCreateOrEditEvent extends ApplicationEvent { public class EquipCreateOrEditEvent extends ApplicationEvent {
......
...@@ -3971,10 +3971,16 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste ...@@ -3971,10 +3971,16 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Date nextInspectDate = (Date) map.get("NEXT_INSPECT_DATE"); Date nextInspectDate = (Date) map.get("NEXT_INSPECT_DATE");
dto.setNEXT_INSPECT_DATE(DateUtil.parse(DateUtil.format(nextInspectDate, DatePattern.NORM_DATE_PATTERN)).getTime()); dto.setNEXT_INSPECT_DATE(DateUtil.parse(DateUtil.format(nextInspectDate, DatePattern.NORM_DATE_PATTERN)).getTime());
} }
this.setWhetherSphericalTank(dto);
equipmentCategoryService.saveWithImmediateRefresh(dto); equipmentCategoryService.saveWithImmediateRefresh(dto);
} }
} }
private void setWhetherSphericalTank(ESEquipmentCategoryDto dto) {
IdxBizJgRegisterInfo registerInfo = idxBizJgRegisterInfoService.getOne(new LambdaQueryWrapper<IdxBizJgRegisterInfo>().eq(IdxBizJgRegisterInfo::getRecord, dto.getSEQUENCE_NBR()).select(IdxBizJgRegisterInfo::getRecord, IdxBizJgRegisterInfo::getWhetherSphericalTank));
dto.setWhetherSphericalTank(registerInfo.getWhetherSphericalTank());
}
private List getAccessoryEntity(Map<String, Object> map, List<String> list, String subFormType, String record, Date date, String type) { private List getAccessoryEntity(Map<String, Object> map, List<String> list, String subFormType, String record, Date date, String type) {
List<IdxBizJgMainParts> mainPartsList = new ArrayList<>(); List<IdxBizJgMainParts> mainPartsList = new ArrayList<>();
List<IdxBizJgProtectionDevices> protectionDevicesList = new ArrayList<>(); List<IdxBizJgProtectionDevices> protectionDevicesList = new ArrayList<>();
......
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