1.运营时间判断
This commit is contained in:
parent
4e2b80caf5
commit
8149a84581
|
@ -283,6 +283,10 @@ public class AppVerifyController extends BaseController
|
||||||
public AjaxResult deviceAppointment(EtOrderVo appointmentVo)
|
public AjaxResult deviceAppointment(EtOrderVo appointmentVo)
|
||||||
{
|
{
|
||||||
logger.info("【车辆预约信息】:{}", JSON.toJSON(appointmentVo));
|
logger.info("【车辆预约信息】:{}", JSON.toJSON(appointmentVo));
|
||||||
|
//运营时间判断
|
||||||
|
if(!asDeviceService.isOperatingTime(appointmentVo.getSn())){
|
||||||
|
return error("不在营业时间内,不得骑行");
|
||||||
|
}
|
||||||
if(etOrderService.isInOrder(appointmentVo.getUserId(),appointmentVo.getOrderNo()).size()>0){
|
if(etOrderService.isInOrder(appointmentVo.getUserId(),appointmentVo.getOrderNo()).size()>0){
|
||||||
throw new ServiceException("您有未完成的订单,请先完成订单");
|
throw new ServiceException("您有未完成的订单,请先完成订单");
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="phone" column="phone" />
|
<result property="phone" column="phone" />
|
||||||
<result property="status" column="status" />
|
<result property="status" column="status" />
|
||||||
<result property="areaTime" column="area_time" />
|
<result property="areaTime" column="area_time" />
|
||||||
|
<result property="areaTimeStart" column="area_time_start" />
|
||||||
|
<result property="areaTimeEnd" column="area_time_end" />
|
||||||
<result property="servicePhone" column="service_phone" />
|
<result property="servicePhone" column="service_phone" />
|
||||||
<result property="slogan" column="slogan" />
|
<result property="slogan" column="slogan" />
|
||||||
<result property="province" column="province" />
|
<result property="province" column="province" />
|
||||||
|
@ -46,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
contact, phone, status, area_time, service_phone, slogan, province,city,
|
contact, phone, status, area_time, service_phone, slogan, province,city,
|
||||||
county, area_out_outage, parking_out_dispatch, area_out_dispatch,
|
county, area_out_outage, parking_out_dispatch, area_out_dispatch,
|
||||||
no_riding_outage, authentication, msg_switch, undercharge, error, agreement, deposit,
|
no_riding_outage, authentication, msg_switch, undercharge, error, agreement, deposit,
|
||||||
outage, appointment_service_fee, dispatch_fee, vehicle_management_fee, timeout_minutes, auto_replacement_order from et_operating_area
|
outage, appointment_service_fee, dispatch_fee, vehicle_management_fee, timeout_minutes, auto_replacement_order, area_time_start, area_time_end from et_operating_area
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEtOperatingAreaList" parameterType="EtOperatingArea" resultMap="EtOperatingAreaResult">
|
<select id="selectEtOperatingAreaList" parameterType="EtOperatingArea" resultMap="EtOperatingAreaResult">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user