mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 15:19:52 +08:00
add 查询充电桩报文列表方法
This commit is contained in:
@@ -20,4 +20,7 @@ public interface PileMsgRecordMapper {
|
|||||||
|
|
||||||
List<PileMsgRecord> getPileFeedListV2(@Param("pileSn") String pileSn, @Param("frameType") String frameType,
|
List<PileMsgRecord> getPileFeedListV2(@Param("pileSn") String pileSn, @Param("frameType") String frameType,
|
||||||
@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
@Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||||
|
|
||||||
|
List<PileMsgRecord> queryPileFeedList(@Param("pileSn") String pileSn, @Param("frameType") String frameType,
|
||||||
|
@Param("transactionCode") String transactionCode);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,6 +167,10 @@ public class PileMsgRecordServiceImpl implements PileMsgRecordService {
|
|||||||
return this.getPileFeedListV2(pileSn, frameType, DateUtils.localDateTime2Date(startTime), DateUtils.localDateTime2Date(endTime));
|
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
|
* @param jsonMsg
|
||||||
|
|||||||
@@ -152,4 +152,17 @@
|
|||||||
</if>
|
</if>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user