|
|
@ -293,10 +293,14 @@ public class AdminService { |
|
|
|
} |
|
|
|
|
|
|
|
public void addMockSchedule(AddMockScheduleReq bo) { |
|
|
|
MatrixApp app = appMapper.selectById(bo.appId); |
|
|
|
if (app == null || !StringUtils.hasText(app.getChannel())) { |
|
|
|
throw new PaganiException(PaganiExceptionCode.ILLEGAL_REQUEST, "应用不存在或渠道为空"); |
|
|
|
} |
|
|
|
MatrixMockSchedule schedule = new MatrixMockSchedule(); |
|
|
|
schedule.setAppId(bo.appId); |
|
|
|
schedule.setScheduleTime(new Timestamp(bo.scheduleTime)); |
|
|
|
schedule.setChannel(bo.channel); |
|
|
|
schedule.setChannel(app.getChannel()); |
|
|
|
schedule.setIncomeYuan(bo.incomeYuan); |
|
|
|
mockScheduleMapper.insert(schedule); |
|
|
|
} |
|
|
|