Browse Source

20210429v1.1

recovery
zy_Java 4 years ago
parent
commit
b905fc8ab0
  1. 4
      tall/src/main/java/com/ccsens/tall/service/LwbsService.java
  2. 3
      tall/src/main/java/com/ccsens/tall/service/UserInfoService.java
  3. 4
      tall/src/main/resources/application.yml

4
tall/src/main/java/com/ccsens/tall/service/LwbsService.java

@ -1,13 +1,9 @@
package com.ccsens.tall.service; package com.ccsens.tall.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import com.ccsens.tall.bean.dto.LwbsDto; import com.ccsens.tall.bean.dto.LwbsDto;
import com.ccsens.tall.bean.po.ProRole; import com.ccsens.tall.bean.po.ProRole;
import com.ccsens.tall.bean.po.ProShow;
import com.ccsens.tall.bean.po.ProShowExample;
import com.ccsens.tall.bean.po.ProSubTimeMember;
import com.ccsens.tall.bean.vo.LwbsVo; import com.ccsens.tall.bean.vo.LwbsVo;
import com.ccsens.tall.bean.vo.TaskVo; import com.ccsens.tall.bean.vo.TaskVo;
import com.ccsens.tall.persist.dao.SysProjectDao; import com.ccsens.tall.persist.dao.SysProjectDao;

3
tall/src/main/java/com/ccsens/tall/service/UserInfoService.java

@ -67,9 +67,10 @@ public class UserInfoService implements IUserInfoService{
//检查数据库内账号是否存在 //检查数据库内账号是否存在
SysAuthExample sysAuthExample = new SysAuthExample(); SysAuthExample sysAuthExample = new SysAuthExample();
sysAuthExample.createCriteria().andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value) sysAuthExample.createCriteria().andIdentifyTypeEqualTo((byte) WebConstant.IDENTIFY_TYPE.Account.value)
.andIdentifierEqualTo(changeAccount.getAccount()); .andIdentifierEqualTo(changeAccount.getAccount()).andUserIdNotEqualTo(userId);
List<SysAuth> sysAuthList = sysAuthDao.selectByExample(sysAuthExample); List<SysAuth> sysAuthList = sysAuthDao.selectByExample(sysAuthExample);
if(CollectionUtil.isNotEmpty(sysAuthList)){ if(CollectionUtil.isNotEmpty(sysAuthList)){
redisUtil.del(accountKey);
throw new BaseException(CodeEnum.ALREADY_EXIST_ACCOUNT); throw new BaseException(CodeEnum.ALREADY_EXIST_ACCOUNT);
} }
//修改账号 //修改账号

4
tall/src/main/resources/application.yml

@ -1,5 +1,5 @@
spring: spring:
profiles: profiles:
active: test active: greenvalley
include: util-test,common include: util-greenvalley,common

Loading…
Cancel
Save