zhibing.pu
2024-04-19 2d3b7304911a393e73ec0dd48712f22ddfa8053a
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/smallLogistics/dao/mapping/OrderLogisticsMapper.xml
@@ -242,6 +242,7 @@
      a.discountMoney as discountMoney,
      a.payMoney as payMoney,
        a.remark as remark,
        a.companyId,
      b.headImgUrl as driverAvatar,
      CONCAT(b.firstName, " ", b.lastName) as driverName,
      c.carLicensePlate as licensePlate,
@@ -273,4 +274,14 @@
      left join t_order_cancel h on (a.id = h.orderId and h.orderType = a.type and h.state = 2)
      where a.id = #{orderId}
    </select>
    <select id="queryRedEnvelope" resultType="map">
        select
            redPacketMoney as money,
            DATE_FORMAT(insertTime, '%Y-%m-%d %H:%i') as time,
        ('包裹') as name,
        UNIX_TIMESTAMP(insertTime) as insertTime
        from t_order_logistics where userId = #{uid} and state in (8, 9) and redPacketId is not null
    </select>
</mapper>