|
@@ -1262,6 +1262,20 @@ public class NewOrderService extends CrudService<NewOrderDao, NewOrder> {
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ //客服确认注册机构,一天内取消有效
|
|
|
+ if (user != null && "94".equals(user.getClubStatus())) {
|
|
|
+ Integer userId = user.getUserID();
|
|
|
+ Date confirmTime = cmUserDao.findByConfirmTime(userId);
|
|
|
+ if (confirmTime != null) {
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
+ calendar.setTime(confirmTime);
|
|
|
+ calendar.add(Calendar.DATE, 1);
|
|
|
+ if (calendar.getTime().compareTo(new Date()) > 0) {
|
|
|
+ cmUserDao.updateByClubStatus(93, userId);
|
|
|
+ newCmClubDao.updateByStatus(93, userId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|