fixbug 提示调整
This commit is contained in:
@@ -217,7 +217,6 @@ public class VenueService extends BaseServiceImpl {
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public BarCodeResult join(Integer memberId, Integer venueId) {
|
||||
BarCodeResult barCodeResult = new BarCodeResult();
|
||||
Integer flag = 0;
|
||||
// 判断用户是否登录
|
||||
if (memberId == null) {
|
||||
throw new ServiceException(com.ydd.framework.core.exception.ExceptionCodeTemplate.NEED_LOGIN);
|
||||
@@ -245,7 +244,13 @@ public class VenueService extends BaseServiceImpl {
|
||||
if (memberCards.size() == 0) {
|
||||
Member member = memberService.findById(memberId);
|
||||
if (member.getMoney().compareTo(price) == -1) {
|
||||
flag = 2;
|
||||
barCodeResult.setFlg(2);
|
||||
if (PayStyleEnum.HOUR.getValue() == venue.getPayStyle()){
|
||||
// 按时入场余额需要包含两个小时的场地费
|
||||
barCodeResult.setMsg("请保证账户至少有两个小时余额:" + price + "元,余额不足,请先充值");
|
||||
}else {
|
||||
barCodeResult.setMsg("此次订单金额为:" + price + "元,余额不足,请先充值");
|
||||
}
|
||||
}
|
||||
}
|
||||
if(PayStyleEnum.TIME.getValue() == venue.getPayStyle()){
|
||||
@@ -267,13 +272,11 @@ public class VenueService extends BaseServiceImpl {
|
||||
} else {
|
||||
//余额不足
|
||||
logger.error("用户" + memberId + "余额不足核销失败");
|
||||
barCodeResult.setFlg(2);
|
||||
barCodeResult.setMsg("此次订单金额为:" + price + "元,余额不足,请先充值");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
barCodeResult.setFlg(flag);
|
||||
// 3.判断用户有没有人脸识别的图像,根据用户ID查找,一个用户只能有一条
|
||||
// MemberFaceInfo memberFaceInfo = memberFaceInfoService.findByMemberId(memberId);
|
||||
// if (memberFaceInfo == null) {
|
||||
|
||||
Reference in New Issue
Block a user