feat(ems): 能源设备添加电表产线和总表标识字段
- 在 EmsMeter 实体类中新增 productionLine 和 isTotalMeter 字段 - 在 EmsMeterBo 业务对象中添加对应的产线和总表标识属性 - 更新 EmsMeterMapper.xml 映射文件以支持新字段的数据库映射 - 在查询条件中增加产线模糊匹配和总表标识精确匹配功能 - 在 EmsMeterVo 视图对象中添加 Excel 导出支持的新字段
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="productionLine" column="production_line"/>
|
||||
<result property="isTotalMeter" column="is_total_meter"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.klp.ems.domain.vo.EmsMeterVo" id="EmsMeterVoResult">
|
||||
@@ -35,6 +37,8 @@
|
||||
<result property="lastCalibrationDate" column="last_calibration_date"/>
|
||||
<result property="thresholdValue" column="threshold_value"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="productionLine" column="production_line"/>
|
||||
<result property="isTotalMeter" column="is_total_meter"/>
|
||||
<result property="warehouseId" column="warehouse_id"/>
|
||||
<result property="warehouseName" column="warehouse_name"/>
|
||||
</resultMap>
|
||||
@@ -77,6 +81,8 @@
|
||||
m.last_calibration_date,
|
||||
m.threshold_value,
|
||||
m.remark,
|
||||
m.production_line,
|
||||
m.is_total_meter,
|
||||
COALESCE(w.warehouse_id, 0) as warehouse_id,
|
||||
COALESCE(w.warehouse_name, '') as warehouse_name
|
||||
FROM ems_meter m
|
||||
@@ -95,6 +101,12 @@
|
||||
<if test="status != null">
|
||||
AND m.status = #{status}
|
||||
</if>
|
||||
<if test="productionLine != null and productionLine != ''">
|
||||
AND m.production_line LIKE CONCAT('%', #{productionLine}, '%')
|
||||
</if>
|
||||
<if test="isTotalMeter != null">
|
||||
AND m.is_total_meter = #{isTotalMeter}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectMeterIds" parameterType="com.klp.ems.domain.bo.MeterFilterBo" resultType="java.lang.Long">
|
||||
|
||||
Reference in New Issue
Block a user