|
|
@ -152,7 +152,7 @@ public class AdminService { |
|
|
|
List<MatrixUser> uList = userMapper.selectBatchIds(uids); |
|
|
|
uMap = uList.stream().collect(Collectors.toMap(MatrixUser::getId, x -> x)); |
|
|
|
} |
|
|
|
for(MatrixAdvRecord x: records) { |
|
|
|
for (MatrixAdvRecord x : records) { |
|
|
|
MatrixAdvRecordBo bo = new MatrixAdvRecordBo(x, appMap.get(x.getAppId())); |
|
|
|
BeanUtils.copyProperties(x, bo); |
|
|
|
if (x.getAdminId() != null) { |
|
|
@ -237,6 +237,10 @@ public class AdminService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void updateAdminHide(Integer id, Integer hide) { |
|
|
|
adminMapper.updateHide(id, hide); |
|
|
|
} |
|
|
|
|
|
|
|
public void saveApp(MatrixApp app) { |
|
|
|
if (app.getCode() != null) { |
|
|
|
appMapper.updateNameOrUrl(app); |
|
|
@ -319,7 +323,7 @@ public class AdminService { |
|
|
|
Assert.isTrue(!CollectionUtils.isEmpty(bo.scheduleTime), "时间不能为空"); |
|
|
|
Assert.isTrue(!CollectionUtils.isEmpty(bo.appId), "应用不能为空"); |
|
|
|
List<MatrixMockSchedule> list = new ArrayList<>(); |
|
|
|
for(Integer appId: bo.appId) { |
|
|
|
for (Integer appId : bo.appId) { |
|
|
|
MatrixApp app = appMapper.selectById(appId); |
|
|
|
if (app == null || !StringUtils.hasText(app.getChannel())) { |
|
|
|
throw new PaganiException(PaganiExceptionCode.ILLEGAL_REQUEST, "应用不存在或渠道为空"); |
|
|
|