|
@@ -113,7 +113,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
* @param newsList
|
|
* @param newsList
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public void create(List<FosterwxCashScheduleTaskList> newsList) {
|
|
|
|
|
|
|
+ public void create(List<FosterwxCashScheduleTaskList> newsList) throws Exception {
|
|
|
if (newsList.isEmpty()) return;
|
|
if (newsList.isEmpty()) return;
|
|
|
List<FosterwxCashScheduleTaskList> editList = new ArrayList<>();
|
|
List<FosterwxCashScheduleTaskList> editList = new ArrayList<>();
|
|
|
newsList.forEach(fosterwxCashScheduleTaskList -> editList.add(fosterwxCashScheduleTaskList));
|
|
newsList.forEach(fosterwxCashScheduleTaskList -> editList.add(fosterwxCashScheduleTaskList));
|
|
@@ -150,7 +150,10 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
fosterwxCashScheduleTaskList.setSendUrl("");
|
|
fosterwxCashScheduleTaskList.setSendUrl("");
|
|
|
|
|
|
|
|
if (fosterwxCashScheduleTaskList.getTaskType() == 1) {
|
|
if (fosterwxCashScheduleTaskList.getTaskType() == 1) {
|
|
|
- fosterwxCashScheduleTaskList.setBoxInfo(coralApiService.getBoxInfo(fosterwxCashScheduleTaskList.getBoxGhid()));
|
|
|
|
|
|
|
+ Object obj = coralApiService.getBoxInfo(fosterwxCashScheduleTaskList.getBoxGhid());
|
|
|
|
|
+ if (obj == null)
|
|
|
|
|
+ throw new Exception("小程序:" + fosterwxCashScheduleTaskList.getBoxGhid() + "无法从珊瑚云获取信息,请录入");
|
|
|
|
|
+ fosterwxCashScheduleTaskList.setBoxInfo(obj);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
|
|
fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
|