Commit 934ca0d6 authored by tianbo's avatar tianbo

feat(cylinder): 添加气瓶种类和类别信息字段

- 在CylinderInfoMapper.xml中增加equList、equCategory等字段及对应的名称查询
parent 7ad89fcb
...@@ -158,8 +158,12 @@ public class CylinderService { ...@@ -158,8 +158,12 @@ public class CylinderService {
esCylinderFillingInfo.setFillingUnitCreditCode(bizTokenModel.getApiCompanyCode()); esCylinderFillingInfo.setFillingUnitCreditCode(bizTokenModel.getApiCompanyCode());
Map<String, String> cylinder = cylinderInfoList.stream().filter(cylinderInfo -> cylinderInfo.get("sequenceCode").equals(fillingInfo.getSequenceCode())).findFirst().orElse(new HashMap<>()); Map<String, String> cylinder = cylinderInfoList.stream().filter(cylinderInfo -> cylinderInfo.get("sequenceCode").equals(fillingInfo.getSequenceCode())).findFirst().orElse(new HashMap<>());
esCylinderFillingInfo.setDefineCode(cylinder.get("equDefine")); esCylinderFillingInfo.setEquList(cylinder.get("equList"));
esCylinderFillingInfo.setDefineName(cylinder.get("equDefineName")); esCylinderFillingInfo.setEquListName(cylinder.get("equListName"));
esCylinderFillingInfo.setEquCategory(cylinder.get("equCategory"));
esCylinderFillingInfo.setEquCategoryName(cylinder.get("equCategoryName"));
esCylinderFillingInfo.setEquDefine(cylinder.get("equDefine"));
esCylinderFillingInfo.setEquDefineName(cylinder.get("equDefineName"));
esCylinderFillingInfo.setFactoryNum(cylinder.get("factoryNum")); esCylinderFillingInfo.setFactoryNum(cylinder.get("factoryNum"));
esCylinderFillingInfo.setOrgBranchCode(cylinder.get("orgBranchCode")); esCylinderFillingInfo.setOrgBranchCode(cylinder.get("orgBranchCode"));
esCylinderFillingInfo.setOrgBranchName(cylinder.get("orgBranchName")); esCylinderFillingInfo.setOrgBranchName(cylinder.get("orgBranchName"));
......
...@@ -32,15 +32,35 @@ public class ESCylinderFillingInfoDto { ...@@ -32,15 +32,35 @@ public class ESCylinderFillingInfoDto {
@ApiModelProperty(value = "出厂编号") @ApiModelProperty(value = "出厂编号")
private String factoryNum; private String factoryNum;
// 气瓶种类code
@Field(type = FieldType.Keyword)
@ApiModelProperty(value = "气瓶种类代码")
private String equList;
// 气瓶种类名称
@Field(type = FieldType.Text)
@ApiModelProperty(value = "气瓶种类名称")
private String equListName;
// 气瓶类别code
@Field(type = FieldType.Keyword)
@ApiModelProperty(value = "气瓶类别代码")
private String equCategory;
// 气瓶类别名称
@Field(type = FieldType.Text)
@ApiModelProperty(value = "气瓶类别名称")
private String equCategoryName;
// 气瓶品种code // 气瓶品种code
@Field(type = FieldType.Keyword) @Field(type = FieldType.Keyword)
@ApiModelProperty(value = "气瓶品种代码") @ApiModelProperty(value = "气瓶品种代码")
private String defineCode; private String equDefine;
// 气瓶品种名称 // 气瓶品种名称
@Field(type = FieldType.Text) @Field(type = FieldType.Text)
@ApiModelProperty(value = "气瓶品种名称") @ApiModelProperty(value = "气瓶品种名称")
private String defineName; private String equDefineName;
// 二维码编号 // 二维码编号
@Field(type = FieldType.Keyword) @Field(type = FieldType.Keyword)
......
...@@ -655,6 +655,10 @@ ...@@ -655,6 +655,10 @@
ui."EQU_STATE" cylinderStatus, ui."EQU_STATE" cylinderStatus,
(select name from cb_data_dictionary where type = 'SHZT' and code = ui."EQU_STATE") cylinderStatusName, (select name from cb_data_dictionary where type = 'SHZT' and code = ui."EQU_STATE") cylinderStatusName,
ri."USE_ORG_CODE" useOrgCode, ri."USE_ORG_CODE" useOrgCode,
ui."EQU_LIST" equList,
(select name from tz_equipment_category where code = ri."EQU_LIST") equListName,
ri."EQU_CATEGORY" equCategory,
(select name from tz_equipment_category where code = ri."EQU_CATEGORY") equCategoryName,
ri."EQU_DEFINE" equDefine, ri."EQU_DEFINE" equDefine,
(select name from tz_equipment_category where code = ri."EQU_DEFINE") equDefineName, (select name from tz_equipment_category where code = ri."EQU_DEFINE") equDefineName,
ui."USE_INNER_CODE" unitInnerCode, ui."USE_INNER_CODE" unitInnerCode,
......
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