Commit 3cf990ef authored by KeYong's avatar KeYong

更新装备保存

parent 2b8bd32f
......@@ -98,7 +98,7 @@ public interface EquipmentSpecificIndexMapper extends BaseMapper<EquipmentSpecif
* @param equipmentIndexId 指标业务id
* @param value 更新的值
*/
void updateIndexValueBatch(@Param("equipmentSpecificId") Long equipmentSpecificId, @Param("list") List<EquipmentSpecificIndex> equipmentSpecificIndices);
void updateIndexValueBatch(@Param("equipmentSpecificId") Long equipmentSpecificId, @Param("list") List<EquipmentSpecificIndex> list);
List<EquipmentIndexVO> getEquipSpecificIndexList(EquipmentIndexVO equipmentIndexVo);
......
......@@ -26,10 +26,9 @@
</resultMap>
<update id="updateIndexValueBatch">
<foreach collection="list" item="item" index="index" separator=";">
update wl_equipment_specific_index set
value = #{item.value}
where equipment_specific_id = #{item.equipmentSpecificId}
and equipment_index_id = #{item.equipmentIndexId}
update wl_equipment_specific_index wesi set wesi.`value` = #{item.value}
where wesi.equipment_specific_id = #{item.equipmentSpecificId}
and wesi.equipment_index_id = #{item.equipmentIndexId}
</foreach>
</update>
<select id="getEquipmentSpeIndexBySpeIotCode"
......
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