| | |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | order_id,pole_id,c3_mac, |
| | | order_id |
| | | ,pole_id,c3_mac, |
| | | pole_mac,out_trade_no,order_type, |
| | | total_amount,receipt_amount,refund_amount, |
| | | ali_buyer_logon_id,subscribe_charging_capacity,actual_charging_capacity, |
| | |
| | | order_status,c3_name,pole_name, |
| | | changing_states,user_code |
| | | </sql> |
| | | |
| | | <select id="orderList" resultType="com.sandu.ximon.dao.bo.C3mOrderBo" parameterType="java.lang.Long"> |
| | | SELECT |
| | | t1.* |
| | | FROM |
| | | c3_order t1 |
| | | LEFT JOIN pole t2 ON t1.pole_id = t2.id |
| | | <if test="userId != null"> |
| | | WHERE (t1.userId = #{userId} OR t1.client_id= #{userId}) |
| | | </if> |
| | | </select> |
| | | </mapper> |