management/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TCancelOrderMapper.xml
@@ -55,5 +55,20 @@ </where> ORDER BY co.createTime </select> <select id="userCancelOrderList" resultType="com.stylefeng.guns.modular.system.controller.resp.TOrderResp"> select co.createTime,o.code,o.startAddress,o.endAddress from t_cancel_order co left join t_order o on co.orderId = o.id <where> <if test="userId != null"> AND co.userId = #{userId} </if> <if test="orderId != null"> AND co.orderId = #{orderId} </if> AND co.userType = 1 </where> ORDER BY co.createTime DESC </select> </mapper>