卡座前端功能
This commit is contained in:
parent
233d0ccaef
commit
af992b181b
|
@ -47,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="query.userId != null "> and bb.user_id = #{query.userId}</if>
|
||||
<if test="query.deleted != null "> and bb.deleted = #{query.deleted}</if>
|
||||
<if test="query.boothId != null "> and bb.booth_id = #{query.boothId}</if>
|
||||
<if test="query.storeId != null "> and bs.store_id = #{query.storeId}</if>
|
||||
<if test="query.boothName != null and query.boothName != ''"> and bb.booth_name like concat('%', #{query.boothName}, '%')</if>
|
||||
<if test="query.picture != null and query.picture != ''"> and bb.picture = #{query.picture}</if>
|
||||
<if test="query.partName != null and query.partName != ''"> and bp.part_name like concat('%', #{query.partName}, '%') </if>
|
||||
|
|
|
@ -267,7 +267,6 @@ public class BoothServiceImpl implements BoothService {
|
|||
|
||||
// 操作校验
|
||||
ServiceUtil.assertion(booth.getStoreId() == null, "当前卡座未绑定店铺");
|
||||
ServiceUtil.assertion(booth.getExpiredTime().isBefore(LocalDateTime.now()), "请重新绑定卡座");
|
||||
|
||||
// 判断当前用户是否在该店铺下有余额
|
||||
LightingNumVO vo = lightingNumMapper.selectLightingNumByUserId(userId, booth.getStoreId());
|
||||
|
@ -340,7 +339,7 @@ public class BoothServiceImpl implements BoothService {
|
|||
ServiceUtil.assertion(res == null, "设备爆灯失败:未知错误");
|
||||
return IotUtil.isSuccess(res);
|
||||
} else {
|
||||
ServiceUtil.assertion(true, "爆灯频繁,请稍等后再进行爆灯");
|
||||
ServiceUtil.assertion(true, "当前设备正在爆灯,请等待爆灯结束后再进行操作");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -41,12 +41,6 @@ public class AppBoothController extends BaseController {
|
|||
if (booth == null) {
|
||||
return error("当前卡座信息不存在");
|
||||
}
|
||||
if (booth.getUserId()==null) {
|
||||
return error("您无权操作当前卡座设备");
|
||||
}
|
||||
if (!booth.getUserId().equals(getUserId())){
|
||||
return error("您无权操作当前卡座设备");
|
||||
}
|
||||
return success(boothService.lighting(booth,getUserId(),requiredIot));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user