|
@@ -53,7 +53,7 @@ public class UserController extends BaseController {
|
|
|
|
|
|
ApplyInfo userByPhone = applyInfoService.findUserByPhone(phone, null);
|
|
ApplyInfo userByPhone = applyInfoService.findUserByPhone(phone, null);
|
|
|
|
|
|
- if (userByPhone == null && applyInfoService.mecUserIsExist(phone)) {
|
|
|
|
|
|
+ if (userByPhone == null && applyInfoService.mecUserIsExist(phone)!=null) {
|
|
return failed(Constants.PARAM_EXIST_ERROR_MSG);
|
|
return failed(Constants.PARAM_EXIST_ERROR_MSG);
|
|
}
|
|
}
|
|
if (userByPhone != null && !userByPhone.getClassId().equals(clazzId)) {//如果改用户存在其他团中
|
|
if (userByPhone != null && !userByPhone.getClassId().equals(clazzId)) {//如果改用户存在其他团中
|
|
@@ -72,6 +72,27 @@ public class UserController extends BaseController {
|
|
}
|
|
}
|
|
return succeed(userByPhone);
|
|
return succeed(userByPhone);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询用户详情
|
|
|
|
+ *
|
|
|
|
+ * @param phone
|
|
|
|
+ * @param clazzId
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getMecUser")
|
|
|
|
+ public Object getMecUser(String phone) {
|
|
|
|
+ if (StringUtils.isEmpty(phone)) {
|
|
|
|
+ return failed(Constants.PARAM_VERIFY_ERROR_MSG);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ MecUserInfo mecUser = applyInfoService.mecUserIsExist(phone);
|
|
|
|
+ MecUser user = null;
|
|
|
|
+ if(mecUser != null){
|
|
|
|
+ user = applyInfoService.findMecUser(mecUser.getUserId());
|
|
|
|
+ }
|
|
|
|
+ return succeed(user);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 用户报名
|
|
* 用户报名
|
|
@@ -221,11 +242,11 @@ public class UserController extends BaseController {
|
|
*/
|
|
*/
|
|
// @ApiOperation(value = "开启乐团缴费功能")
|
|
// @ApiOperation(value = "开启乐团缴费功能")
|
|
@PostMapping("/openClassPay")
|
|
@PostMapping("/openClassPay")
|
|
- public Object openClassPay(Integer id, String smsMsg, int type, int isSingle) {//1是线上 2 线下
|
|
|
|
|
|
+ public Object openClassPay(Integer id, String smsMsg, int type, int isSingle, int amountType) {//1是线上 2 线下 amountType 1-800 2-1500
|
|
if (id == null || (isSingle > 1 || isSingle < 0) || (type == 2 && StringUtils.isEmpty(smsMsg))) {
|
|
if (id == null || (isSingle > 1 || isSingle < 0) || (type == 2 && StringUtils.isEmpty(smsMsg))) {
|
|
return failed(Constants.PARAM_VERIFY_ERROR_MSG);
|
|
return failed(Constants.PARAM_VERIFY_ERROR_MSG);
|
|
}
|
|
}
|
|
- schoolService.openClassPay(id, smsMsg, type, isSingle);
|
|
|
|
|
|
+ schoolService.openClassPay(id, smsMsg, type, isSingle, amountType);
|
|
return succeed();
|
|
return succeed();
|
|
}
|
|
}
|
|
|
|
|