|
@@ -8,8 +8,11 @@ import com.mokamrp.privates.entity.pangu.FosterwxCashScheduleTaskListHandle;
|
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskList;
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskList;
|
|
|
|
|
+import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskMobile;
|
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
|
|
|
+import com.mokamrp.privates.service.pangu.FosterwxCashMobileService;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashScheduleTaskListService;
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashScheduleTaskListService;
|
|
|
|
|
+import com.mokamrp.privates.service.pangu.FosterwxCashScheduleTaskMobileService;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashWorkwxTaskListService;
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashWorkwxTaskListService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -18,6 +21,7 @@ import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -43,6 +47,12 @@ public class FosterwxCashScheduleTaskListController extends BaseController<Foste
|
|
|
@Autowired
|
|
@Autowired
|
|
|
public FosterwxCashWorkwxTaskListService fosterwxCashWorkwxTaskListService;
|
|
public FosterwxCashWorkwxTaskListService fosterwxCashWorkwxTaskListService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ public FosterwxCashScheduleTaskMobileService fosterwxCashScheduleTaskMobileService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ public FosterwxCashMobileService fosterwxCashMobileService;
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* @fast
|
|
* @fast
|
|
|
* 默认生成的控制器所继承的父类中有index/add/edit/del四个基础方法,均为post json请求
|
|
* 默认生成的控制器所继承的父类中有index/add/edit/del四个基础方法,均为post json请求
|
|
@@ -104,5 +114,30 @@ public class FosterwxCashScheduleTaskListController extends BaseController<Foste
|
|
|
|
|
|
|
|
return AjaxResult.success(fosterwxCashScheduleTaskLists);
|
|
return AjaxResult.success(fosterwxCashScheduleTaskLists);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/previewTask")
|
|
|
|
|
+ @ApiOperation(value = "查看任务的发送状态 页面展示的是聚合的数据 需要单独提供查看同一个任务的所有子任务")
|
|
|
|
|
+ public Object previewTask(String id) {
|
|
|
|
|
+ // 获取详细信息
|
|
|
|
|
+ FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList = fosterwxCashScheduleTaskListService.getById(id);
|
|
|
|
|
+
|
|
|
|
|
+ List<FosterwxCashScheduleTaskList> fosterwxCashScheduleTaskLists = fosterwxCashScheduleTaskListService.list(new LambdaQueryWrapper<FosterwxCashScheduleTaskList>().
|
|
|
|
|
+ eq(FosterwxCashScheduleTaskList::getScheduleId, fosterwxCashScheduleTaskList.getScheduleId()).
|
|
|
|
|
+ eq(FosterwxCashScheduleTaskList::getTemplateId, fosterwxCashScheduleTaskList.getTemplateId()).
|
|
|
|
|
+ eq(FosterwxCashScheduleTaskList::getTaskId, fosterwxCashScheduleTaskList.getTaskId()));
|
|
|
|
|
+
|
|
|
|
|
+ List<FosterwxCashScheduleTaskMobile> fosterwxCashScheduleTaskMobiles = new ArrayList<>();
|
|
|
|
|
+
|
|
|
|
|
+ fosterwxCashScheduleTaskLists.forEach(detail -> {
|
|
|
|
|
+ fosterwxCashScheduleTaskMobiles.addAll(fosterwxCashScheduleTaskMobileService.list(new LambdaQueryWrapper<FosterwxCashScheduleTaskMobile>().eq(FosterwxCashScheduleTaskMobile::getTaskId, detail.getId())));
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ fosterwxCashScheduleTaskMobiles.forEach(fosterwxCashScheduleTaskMobile -> {
|
|
|
|
|
+ fosterwxCashScheduleTaskMobile.setFosterwxCashScheduleTaskList(fosterwxCashScheduleTaskListService.getById(fosterwxCashScheduleTaskMobile.getTaskId()));
|
|
|
|
|
+ fosterwxCashScheduleTaskMobile.setFosterwxCashMobile(fosterwxCashMobileService.getById(fosterwxCashScheduleTaskMobile.getMobileId()));
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ return AjaxResult.success(fosterwxCashScheduleTaskMobiles);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|