Commit d4a7c57f authored by 刘林's avatar 刘林

fix(jg):管道工程装置表生成,字段修改

parent b7f4c297
package com.yeejoin.amos.boot.module.jg.biz.service;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption;
/**
* 管道工程装置表接口类
*
* @author system_generator
* @date 2024-12-11
*/
public interface IIdxBizJgProjectContraptionService {
boolean saveOrUpdateData(IdxBizJgProjectContraption projectContraption);
}
\ No newline at end of file
package com.yeejoin.amos.boot.module.jg.biz.service.impl;
import com.yeejoin.amos.boot.module.jg.biz.service.IIdxBizJgProjectContraptionService;
import com.yeejoin.amos.boot.module.ymt.api.dto.IdxBizJgProjectContraptionDto;
import com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgProjectContraption;
import com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgProjectContraptionMapper;
import org.springframework.stereotype.Service;
import org.typroject.tyboot.core.rdbms.service.BaseService;
/**
* 管道工程装置表服务实现类
*
* @author system_generator
* @date 2024-12-11
*/
@Service
public class IdxBizJgProjectContraptionServiceImpl extends BaseService<IdxBizJgProjectContraptionDto,IdxBizJgProjectContraption, IdxBizJgProjectContraptionMapper> implements IIdxBizJgProjectContraptionService {
@Override
public boolean saveOrUpdateData(IdxBizJgProjectContraption projectContraption) {
return this.saveOrUpdate(projectContraption);
}
}
\ No newline at end of file
...@@ -1797,6 +1797,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -1797,6 +1797,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
List<Map<String, Object>> equipmentLists = (List<Map<String, Object>>) jsonObject.get("equipmentLists"); List<Map<String, Object>> equipmentLists = (List<Map<String, Object>>) jsonObject.get("equipmentLists");
List<String> records = equipmentLists.stream().map(v -> (String) v.get("record")).collect(toList()); List<String> records = equipmentLists.stream().map(v -> (String) v.get("record")).collect(toList());
jsonObject.remove("equipmentLists"); jsonObject.remove("equipmentLists");
// 查询气瓶设备详情
if (CylinderTypeEnum.CYLINDER.getCode().equals(jsonObject.get("EQU_CATEGORY_CODE"))) { if (CylinderTypeEnum.CYLINDER.getCode().equals(jsonObject.get("EQU_CATEGORY_CODE"))) {
List<DictionarieValueModel> fillingMedium = Systemctl.dictionarieClient.dictValues("FILLING_MEDIUM").getResult(); List<DictionarieValueModel> fillingMedium = Systemctl.dictionarieClient.dictValues("FILLING_MEDIUM").getResult();
Map<String, Object> fillingMediumMap = fillingMedium.stream().collect(Collectors.toMap(DictionarieValueModel::getDictDataKey, DictionarieValueModel::getDictDataValue)); Map<String, Object> fillingMediumMap = fillingMedium.stream().collect(Collectors.toMap(DictionarieValueModel::getDictDataKey, DictionarieValueModel::getDictDataValue));
...@@ -1806,6 +1807,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -1806,6 +1807,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
}); });
jsonObject.put("equipmentLists", result); jsonObject.put("equipmentLists", result);
} else { } else {
// 查询管道设备详情
jsonObject.put("equipmentLists", jgUseRegistrationMapper.queryForUnitPipelineEquipment(records)); jsonObject.put("equipmentLists", jgUseRegistrationMapper.queryForUnitPipelineEquipment(records));
} }
} }
......
...@@ -14,10 +14,10 @@ import lombok.EqualsAndHashCode; ...@@ -14,10 +14,10 @@ import lombok.EqualsAndHashCode;
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@ApiModel(value="IdxBizJgProjectContraptionDto", description="管道工程装置表") @ApiModel(value = "IdxBizJgProjectContraptionDto", description = "管道工程装置表")
public class IdxBizJgProjectContraptionDto extends BaseDto { public class IdxBizJgProjectContraptionDto extends BaseDto {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "工程装置名称") @ApiModelProperty(value = "工程装置名称")
private String projectContraption; private String projectContraption;
...@@ -112,4 +112,13 @@ public class IdxBizJgProjectContraptionDto extends BaseDto { ...@@ -112,4 +112,13 @@ public class IdxBizJgProjectContraptionDto extends BaseDto {
@ApiModelProperty(value = "监管码") @ApiModelProperty(value = "监管码")
private String supervisoryCode; private String supervisoryCode;
@ApiModelProperty(value = "使用登记证编号")
private String useRegistrationCode;
@ApiModelProperty("是否是否纳管:true - 已纳管 false-未纳管")
private Boolean isIntoManagement;
@ApiModelProperty("数据来源(新增:0、导入:1、复制:复制数据的id 、jg:从监管加入的设备)")
private String dataSource;
} }
package com.yeejoin.amos.boot.module.ymt.api.dto; package com.yeejoin.amos.boot.module.ymt.api.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
......
...@@ -2,7 +2,7 @@ package com.yeejoin.amos.boot.module.ymt.api.entity; ...@@ -2,7 +2,7 @@ package com.yeejoin.amos.boot.module.ymt.api.entity;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.yeejoin.amos.boot.biz.common.entity.TzsBaseEntity; import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
...@@ -17,7 +17,7 @@ import lombok.experimental.Accessors; ...@@ -17,7 +17,7 @@ import lombok.experimental.Accessors;
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("idx_biz_jg_project_contraption") @TableName("idx_biz_jg_project_contraption")
public class IdxBizJgProjectContraption extends TzsBaseEntity { public class IdxBizJgProjectContraption extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -58,10 +58,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity { ...@@ -58,10 +58,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity {
private String uscUnitName; private String uscUnitName;
/** /**
* 设备种类代码 * 设备种类名称
*/ */
@TableField("equ_list_code") @TableField("equ_list_name")
private String equListCode; private String equListName;
/** /**
* 设备种类 * 设备种类
...@@ -70,10 +70,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity { ...@@ -70,10 +70,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity {
private String equList; private String equList;
/** /**
* 设备类别代码 * 设备类别名称
*/ */
@TableField("equ_category_code") @TableField("equ_category_name")
private String equCategoryCode; private String equCategoryName;
/** /**
* 设备代码 * 设备代码
...@@ -82,10 +82,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity { ...@@ -82,10 +82,10 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity {
private String equCategory; private String equCategory;
/** /**
* 设备品种代码 * 设备品种名称
*/ */
@TableField("equ_define_code") @TableField("equ_define_name")
private String equDefineCode; private String equDefineName;
/** /**
* 设备品种 * 设备品种
...@@ -207,4 +207,21 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity { ...@@ -207,4 +207,21 @@ public class IdxBizJgProjectContraption extends TzsBaseEntity {
@TableField("supervisory_code") @TableField("supervisory_code")
private String supervisoryCode; private String supervisoryCode;
/**
* 使用登记证编号
*/
@TableField("use_registration_code")
private String useRegistrationCode;
/**
* 是否是否纳管:true - 已纳管 false-未纳管
*/
@TableField("is_into_management")
private Boolean isIntoManagement;
/**
* 数据来源(新增:0、导入:1、复制:复制数据的id 、jg:从监管加入的设备)
*/
@TableField("data_source")
private String dataSource;
} }
...@@ -273,4 +273,10 @@ public class IdxBizJgUseInfo extends TzsBaseEntity { ...@@ -273,4 +273,10 @@ public class IdxBizJgUseInfo extends TzsBaseEntity {
@TableField("\"O_REG_DATE\"") @TableField("\"O_REG_DATE\"")
private String oRegDate; private String oRegDate;
/**
* 工程装置ID
*/
@TableField("\"PROJECT_CONTRAPTION_ID\"")
private String projectContraptionId;
} }
package com.yeejoin.amos.boot.module.ymt.api.service; package com.yeejoin.amos.boot.module.ymt.api.service;
/** /**
* 管道工程装置表接口类 * 管道工程装置表接口类
* *
......
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