|
@@ -8,8 +8,10 @@ import com.tofly.pms.working.dto.FeedBackPlanDto;
|
|
|
import com.tofly.pms.working.dto.FeedBackQueryDto;
|
|
|
import com.tofly.pms.working.entity.FeedBackPlan;
|
|
|
import com.tofly.pms.working.entity.Feedback;
|
|
|
+import com.tofly.pms.working.entity.TaskW;
|
|
|
import com.tofly.pms.working.service.FeedBackPlanService;
|
|
|
import com.tofly.pms.working.service.FeedBackService;
|
|
|
+import com.tofly.pms.working.service.TaskWService;
|
|
|
import com.tofly.pms.working.vo.FeedBackWithPlanVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -33,6 +35,8 @@ public class FeedBackPlanController {
|
|
|
private FeedBackPlanService feedBackPlanService;
|
|
|
@Autowired
|
|
|
private FeedBackService feedBackService;
|
|
|
+ @Autowired
|
|
|
+ private TaskWService taskWService;
|
|
|
|
|
|
|
|
|
* 通过ID查询单条数据
|
|
@@ -90,6 +94,15 @@ public class FeedBackPlanController {
|
|
|
feedBackWithPlanVo.setFeedBackPlan(plans.get(0));
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ Integer id = record.getId();
|
|
|
+ long tatalTask = taskWService.count(Wrappers.<TaskW>lambdaQuery().eq(TaskW::getFeedbackId, id)
|
|
|
+ .eq(TaskW::getDeleted,0));
|
|
|
+ long completedTask = taskWService.count(Wrappers.<TaskW>lambdaQuery().eq(TaskW::getFeedbackId, id)
|
|
|
+ .eq(TaskW::getDeleted,0)
|
|
|
+ .eq(TaskW::getStatus,'3'));
|
|
|
+ feedBackWithPlanVo.setTotalTask(tatalTask);
|
|
|
+ feedBackWithPlanVo.setCompletedTask(completedTask);
|
|
|
datas.add(feedBackWithPlanVo);
|
|
|
}
|
|
|
page1.setRecords(datas);
|