add 查询充电桩报文列表方法

This commit is contained in:
bl\GQS02
2025-11-06 15:39:04 +08:00
parent 66ba4ce4a3
commit 7eb3b12013
3 changed files with 20 additions and 0 deletions

View File

@@ -20,4 +20,7 @@ public interface PileMsgRecordMapper {
List<PileMsgRecord> getPileFeedListV2(@Param("pileSn") String pileSn, @Param("frameType") String frameType,
@Param("startTime") Date startTime, @Param("endTime") Date endTime);
List<PileMsgRecord> queryPileFeedList(@Param("pileSn") String pileSn, @Param("frameType") String frameType,
@Param("transactionCode") String transactionCode);
}

View File

@@ -167,6 +167,10 @@ public class PileMsgRecordServiceImpl implements PileMsgRecordService {
return this.getPileFeedListV2(pileSn, frameType, DateUtils.localDateTime2Date(startTime), DateUtils.localDateTime2Date(endTime));
}
public List<PileMsgRecord> queryPileFeedList(String pileSn, String frameType, String transactionCode) {
return pileMsgRecordMapper.queryPileFeedList(pileSn, frameType, transactionCode);
}
/**
* 解析登录报文
* @param jsonMsg

View File

@@ -152,4 +152,17 @@
</if>
order by create_time desc
</select>
<select id="queryPileFeedList" resultType="com.jsowell.pile.domain.PileMsgRecord">
select
<include refid="Base_Column_List" />
from pile_msg_record
where pile_sn = #{pileSn,jdbcType=VARCHAR}
<if test="frameType != null and frameType != ''">
and frame_type = #{frameType,jdbcType=VARCHAR}
</if>
<if test="transactionCode != null and transactionCode != ''" >
and transaction_code = #{transactionCode,jdbcType=VARCHAR}
</if>
</select>
</mapper>