调通用户工程查询。
This commit is contained in:
parent
e506ef262a
commit
5cb52e3252
|
|
@ -144,7 +144,6 @@ public class CommonService {
|
|||
LambdaQueryWrapper<EdFileInfo> queryWrapper = Wrappers.lambdaQuery(EdFileInfo.class)
|
||||
.eq(EdFileInfo::getEffectFlag, EffectFlagEnum.EFFECT.code)
|
||||
.eq(EdFileInfo::getDataType, EleDataTypeEnum.FOLDER.code)
|
||||
.eq(EdFileInfo::getDataOwn, DataOwnEnum.SYS_PRJ.code)
|
||||
.likeRight(EdFileInfo::getFilePath, id);
|
||||
if (dataOwnCode == DataOwnEnum.COMMON.code) {
|
||||
queryWrapper.eq(EdFileInfo::getDataOwn, DataOwnEnum.SYS_PRJ.code);
|
||||
|
|
|
|||
|
|
@ -93,7 +93,8 @@ public class UserServiceImpl implements UserService {
|
|||
|| Objects.equals(user.getEffectFlag(), EffectFlagEnum.NOT_EFFECTIVE.code)
|
||||
) {
|
||||
return false;
|
||||
} else return user.getInternshipEndDate() == null || !user.getInternshipEndDate().before(now());
|
||||
}
|
||||
return user.getInternshipEndDate() == null || !user.getInternshipEndDate().before(now());
|
||||
}
|
||||
|
||||
public String createToken(UserLoginInfo loginInfo) {
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
import com.electromagnetic.industry.software.common.enums.DataOwnEnum;
|
||||
import com.electromagnetic.industry.software.common.resp.ElectromagneticResult;
|
||||
import com.electromagnetic.industry.software.manage.Application;
|
||||
import com.electromagnetic.industry.software.manage.service.EdFileInfoService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@SpringBootTest(classes = Application.class)
|
||||
public class Test1 {
|
||||
|
||||
@Resource
|
||||
private EdFileInfoService edFileInfoService;
|
||||
|
||||
@Test
|
||||
public void testFollow() {
|
||||
ElectromagneticResult<?> tree = edFileInfoService.tree(DataOwnEnum.USER_FILE.code);
|
||||
System.out.println("tree = " + tree);
|
||||
}
|
||||
|
||||
}
|
||||
//import com.electromagnetic.industry.software.common.enums.DataOwnEnum;
|
||||
//import com.electromagnetic.industry.software.common.resp.ElectromagneticResult;
|
||||
//import com.electromagnetic.industry.software.manage.Application;
|
||||
//import com.electromagnetic.industry.software.manage.service.EdFileInfoService;
|
||||
//import org.junit.jupiter.api.Test;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//
|
||||
//import javax.annotation.Resource;
|
||||
//
|
||||
//@SpringBootTest(classes = Application.class)
|
||||
//public class Test1 {
|
||||
//
|
||||
// @Resource
|
||||
// private EdFileInfoService edFileInfoService;
|
||||
//
|
||||
// @Test
|
||||
// public void testTree() {
|
||||
// ElectromagneticResult<?> tree = edFileInfoService.tree(DataOwnEnum.USER_FILE.code);
|
||||
// System.out.println("tree = " + tree);
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
|
|
|||
Loading…
Reference in New Issue