dev
luotaiqian 2026-08-04 15:26:28 +08:00
parent b88ef08a8b
commit 7962d4daa6
9 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,3 @@
-- org_equipment 表新增 设备价值 字段
ALTER TABLE `org_equipment`
ADD COLUMN `equipment_value` decimal(14, 2) NULL COMMENT '设备价值' AFTER `manufacturer`;

View File

@ -45,6 +45,7 @@ public class OrgEquipmentExecutor implements OrgEquipmentApi {
entity.setDeviceTypeCode(cmd.getDeviceTypeCode());
entity.setDeviceTypeName(cmd.getDeviceTypeName());
entity.setManufacturer(cmd.getManufacturer());
entity.setEquipmentValue(cmd.getEquipmentValue());
entity.setFlowDesc(cmd.getFlowDesc());
entity.setMinFlow(cmd.getMinFlow());
entity.setMaxFlow(cmd.getMaxFlow());
@ -137,6 +138,7 @@ public class OrgEquipmentExecutor implements OrgEquipmentApi {
co.setDeviceTypeCode(entity.getDeviceTypeCode());
co.setDeviceTypeName(entity.getDeviceTypeName());
co.setManufacturer(entity.getManufacturer());
co.setEquipmentValue(entity.getEquipmentValue());
co.setFlowDesc(entity.getFlowDesc());
co.setMinFlow(entity.getMinFlow());
co.setMaxFlow(entity.getMaxFlow());

View File

@ -37,6 +37,9 @@ public class OrgEquipmentCO {
@ApiModelProperty(value = "生产厂家")
private String manufacturer;
@ApiModelProperty(value = "设备价值")
private BigDecimal equipmentValue;
@ApiModelProperty(value = "流量描述")
private String flowDesc;

View File

@ -33,6 +33,9 @@ public class OrgEquipmentAddCmd {
@ApiModelProperty(value = "厂家")
private String manufacturer;
@ApiModelProperty(value = "设备价值")
private BigDecimal equipmentValue;
@ApiModelProperty(value = "设备流量说明")
private String flowDesc;

View File

@ -36,6 +36,9 @@ public class OrgEquipmentModifyCmd {
@ApiModelProperty(value = "厂家")
private String manufacturer;
@ApiModelProperty(value = "设备价值")
private BigDecimal equipmentValue;
@ApiModelProperty(value = "设备流量说明")
private String flowDesc;

View File

@ -39,6 +39,9 @@ public class OrgEquipmentEntity {
/** 厂家 */
private String manufacturer;
/** 设备价值 */
private BigDecimal equipmentValue;
/** 设备流量说明 */
private String flowDesc;

View File

@ -24,6 +24,7 @@ public class OrgEquipmentDO {
private String deviceTypeCode;
private String deviceTypeName;
private String manufacturer;
private BigDecimal equipmentValue;
private String flowDesc;
private BigDecimal minFlow;
private BigDecimal maxFlow;

View File

@ -129,6 +129,7 @@ public class OrgEquipmentGatewayImpl implements OrgEquipmentGateway {
entity.setDeviceTypeCode(dataObject.getDeviceTypeCode());
entity.setDeviceTypeName(dataObject.getDeviceTypeName());
entity.setManufacturer(dataObject.getManufacturer());
entity.setEquipmentValue(dataObject.getEquipmentValue());
entity.setFlowDesc(dataObject.getFlowDesc());
entity.setMinFlow(dataObject.getMinFlow());
entity.setMaxFlow(dataObject.getMaxFlow());

View File

@ -37,7 +37,7 @@
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
`id`, `org_id`, `device_name`, `device_model`, `industry_code`, `instrument_type_name`, `device_type_code`, `device_type_name`, `manufacturer`, `flow_desc`, `min_flow`, `max_flow`, `calibration_unit`, `calibration_init_value`, `field_calibration_type_code`, `field_calibration_type_name`, `dual_channel_flag`, `enable_flag`, `delete_enum`, `remarks`, `create_name`, `update_name`, `tenant_id`, `version`, `create_time`, `update_time`, `create_id`, `update_id`, `env`
`id`, `org_id`, `device_name`, `device_model`, `industry_code`, `instrument_type_name`, `device_type_code`, `device_type_name`, `manufacturer`, `equipment_value`, `flow_desc`, `min_flow`, `max_flow`, `calibration_unit`, `calibration_init_value`, `field_calibration_type_code`, `field_calibration_type_name`, `dual_channel_flag`, `enable_flag`, `delete_enum`, `remarks`, `create_name`, `update_name`, `tenant_id`, `version`, `create_time`, `update_time`, `create_id`, `update_id`, `env`
</sql>
</mapper>