使用交易流水号查询0x3b报文

This commit is contained in:
bl\GQS02
2025-11-06 20:08:41 +08:00
parent 874a0768a7
commit 3d6aa9eb98
4 changed files with 11 additions and 15 deletions

View File

@@ -35,4 +35,6 @@ public interface PileMsgRecordService {
List<PileMsgRecord> getPileFeedListV2(String pileSn, String frameType, Date startTime, Date endTime);
List<PileMsgRecord> getPileFeedListV2(String pileSn, String frameType, LocalDateTime startTime, LocalDateTime endTime);
List<PileMsgRecord> queryPileFeedList(String pileSn, String frameType, String transactionCode);
}

View File

@@ -173,6 +173,7 @@ public class PileMsgRecordServiceImpl implements PileMsgRecordService {
return this.getPileFeedListV2(pileSn, frameType, DateUtils.localDateTime2Date(startTime), DateUtils.localDateTime2Date(endTime));
}
@Override
public List<PileMsgRecord> queryPileFeedList(String pileSn, String frameType, String transactionCode) {
return pileMsgRecordMapper.queryPileFeedList(pileSn, frameType, transactionCode);
}

View File

@@ -162,7 +162,7 @@
and frame_type = #{frameType,jdbcType=VARCHAR}
</if>
<if test="transactionCode != null and transactionCode != ''" >
and transaction_code = #{transactionCode,jdbcType=VARCHAR}
and json_msg->>'$.transactionCode' LIKE CONCAT('%', #{transactionCode}, '%')
</if>
</select>
</mapper>