1.controller层

latestParkingInfo=mchEtongpayOrderService.fetchLatestParkingRow(carNo);

2.dao层

@Mapper
public interface O2oMemberScoreMapper extends BaseMapper<O2oMemberScore> {

    List<ScoreInfo> queryScoreInfoList(@Param("platformMemberId") String platformMemberId);

    LatestParkingInfo fetchLatestParkingRow(@Param("carNo") String carNo);
}

3.sql

<select id="fetchLatestParkingRow" resultMap="latestParkingInfoMap">

        SELECT TIMESTAMPDIFF(MINUTE,a.addtime,NOW()) as  bet ,a.operation_score_id from o2o_member_score a
        where JSON_UNQUOTE(pay_info->"$.carNo")  = #{carNo} and TIMESTAMPDIFF(MINUTE,a.addtime,NOW())&lt;30 ORDER BY bet  LIMIT 1
    </select>

4.备注

GitHub 加速计划 / js / json
41.72 K
6.61 K
下载
适用于现代 C++ 的 JSON。
最近提交(Master分支:1 个月前 )
960b763e 4 个月前
8c391e04 6 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐