Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -23,8 +23,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
public class AppApiMethodAspect {
|
||||
|
||||
@Pointcut("!execution(public * (com.sqx.modules.sys.controller.SysLoginController).*(..)) " +
|
||||
"&& (execution(public * (com.sqx.modules.*.controller.*).*(..)) " +
|
||||
"|| execution(public * (com.sqx.modules.app.*.controller.*).*(..)))")
|
||||
"&& execution(public * (com.sqx.modules.*.controller..*).*(..)))")
|
||||
public void pkg() {
|
||||
}
|
||||
|
||||
|
||||
@@ -49,22 +49,11 @@ public class ShardingConfig {
|
||||
*/
|
||||
private String centerTablesDataNode;
|
||||
|
||||
@Value("${center-tables}")
|
||||
private String tableNamesAsString;
|
||||
|
||||
/**
|
||||
* 中心表,不进行分库操作
|
||||
*/
|
||||
// @Value("${center-tables}")
|
||||
private Set<String> centerTables;
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
// 使用换行符进行分割,然后去除空白字符,收集到Set集合中
|
||||
centerTables = Arrays.stream(tableNamesAsString.split(","))
|
||||
.map(String::trim)
|
||||
.collect(Collectors.toSet());
|
||||
}
|
||||
private List<String> centerTables;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -907,13 +907,17 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
||||
if (StringUtils.isEmpty(msg)) {
|
||||
return Result.error("验证码不能为空!");
|
||||
}
|
||||
Msg msg1 = null;
|
||||
if (!"prod".equals(profiles) && !"61626364".equals(msg)) {
|
||||
msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
if (msg1 == null) {
|
||||
return Result.error("验证码不正确!");
|
||||
}
|
||||
Msg msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
if (msg1 == null) {
|
||||
return Result.error("验证码不正确!");
|
||||
}
|
||||
// Msg msg1 = null;
|
||||
// if (!"prod".equals(profiles) || !"61626364".equals(msg)) {
|
||||
// msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||
// if (msg1 == null) {
|
||||
// return Result.error("验证码不正确!");
|
||||
// }
|
||||
// }
|
||||
|
||||
userInfo = new UserEntity();
|
||||
UserEntity userEntity = null;
|
||||
|
||||
@@ -17,9 +17,9 @@ public class UserVipServiceImpl extends ServiceImpl<UserVipDao, UserVip> impleme
|
||||
return baseMapper.selectOne(queryWrapper);
|
||||
}
|
||||
|
||||
@Scheduled(cron="0 */1 * * * ?")
|
||||
// @Scheduled(cron="0 */1 * * * ?")
|
||||
public void getEndVip() {
|
||||
baseMapper.updateUserVipByEndTime();
|
||||
// baseMapper.updateUserVipByEndTime();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -217,9 +217,11 @@ public class TaskCenterServiceImpl extends ServiceImpl<TaskCenterDao, TaskCenter
|
||||
}
|
||||
} else if (taskCenter.getType().equals(3) && taskCenter.getId().equals(1L)) {
|
||||
InviteAchievement inviteAchievement = inviteAchievementService.getByUserId(userId);
|
||||
|
||||
Integer sumOrderNum = 0;
|
||||
if (inviteAchievement != null) {
|
||||
sumOrderNum = inviteAchievement.getCount();
|
||||
}
|
||||
// Integer sumOrderNum = ordersService.countOrderNum(userId, null);
|
||||
Integer sumOrderNum = inviteAchievement.getCount();
|
||||
if (sumOrderNum != null && sumOrderNum < taskCenter.getNumber()) {
|
||||
return Result.error("领取失败,未达成领取条件");
|
||||
} else if (recordService.countTaskNum(userId, taskCenter.getId(), null) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user