|
@@ -13,11 +13,14 @@ import com.ruoyi.common.exception.base.BaseException;
|
13
|
13
|
import com.ruoyi.common.utils.DateUtils;
|
14
|
14
|
import com.ruoyi.postCheck.domain.PostAssessmentRating;
|
15
|
15
|
import com.ruoyi.postCheck.domain.PostAssessmentRules;
|
|
16
|
+import com.ruoyi.postCheck.domain.PostList;
|
16
|
17
|
import com.ruoyi.postCheck.domain.PostPlan;
|
17
|
18
|
import com.ruoyi.postCheck.domain.PostPlanInfo;
|
|
19
|
+import com.ruoyi.postCheck.domain.homePage.PostTotalView;
|
18
|
20
|
import com.ruoyi.postCheck.domain.join.PostPlanJoinProblem;
|
19
|
21
|
import com.ruoyi.postCheck.mapper.PostAssessmentRatingMapper;
|
20
|
22
|
import com.ruoyi.postCheck.mapper.PostAssessmentRulesMapper;
|
|
23
|
+import com.ruoyi.postCheck.mapper.PostListMapper;
|
21
|
24
|
import com.ruoyi.postCheck.mapper.PostPlanInfoMapper;
|
22
|
25
|
import com.ruoyi.postCheck.mapper.PostPlanMapper;
|
23
|
26
|
import com.ruoyi.postCheck.service.IPostPlanJoinProblemService;
|
|
@@ -61,6 +64,8 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
|
61
|
64
|
private PostAssessmentRulesMapper postAssessmentRulesMapper;
|
62
|
65
|
@Autowired
|
63
|
66
|
private IPostPlanJoinProblemService postPlanJoinProblemService;
|
|
67
|
+ @Autowired
|
|
68
|
+ private PostListMapper postListMapper;
|
64
|
69
|
/**
|
65
|
70
|
* 查询岗检问题表
|
66
|
71
|
*
|
|
@@ -474,5 +479,28 @@ public class PostCheckedProblemServiceImpl extends ServiceImpl<PostCheckedProble
|
474
|
479
|
data.setReviewDepartmentReviewerTime(new Date());
|
475
|
480
|
return postCheckedProblemMapper.updatePostCheckedProblem(data);
|
476
|
481
|
}
|
|
482
|
+
|
|
483
|
+ /**
|
|
484
|
+ * 1、责任制清单:post_list表
|
|
485
|
+ * 2、检查出的问题:post_checked_problem表
|
|
486
|
+ * 3、岗检数量-已查:post_plan t1 inner join post_plan_info t2 两张表连接,t2.status(岗检状态:1-未检;2-已检;)
|
|
487
|
+ * 4、岗检数量-未查:post_plan t1 inner join post_plan_info t2 两张表连接,t2.status(岗检状态:1-未检;2-已检;)
|
|
488
|
+ */
|
|
489
|
+ @Override
|
|
490
|
+ public PostTotalView totalView() {
|
|
491
|
+ PostTotalView postTotalView = new PostTotalView();
|
|
492
|
+ // 1
|
|
493
|
+ List<PostList> postLists = postListMapper.selectList(Wrappers.lambdaQuery());
|
|
494
|
+ postTotalView.setListCount(postLists.size());
|
|
495
|
+ // 2
|
|
496
|
+ List<PostCheckedProblem> postCheckedProblems = postCheckedProblemMapper.selectList(Wrappers.lambdaQuery());
|
|
497
|
+ postTotalView.setProblemCount(postCheckedProblems.size());
|
|
498
|
+ // 3
|
|
499
|
+ Integer checkedPostCount = postCheckedProblemMapper.selectCheckedPostCount(1);
|
|
500
|
+ postTotalView.setCheckedPostCount(checkedPostCount);
|
|
501
|
+ Integer uncheckedPostCount = postCheckedProblemMapper.selectCheckedPostCount(2);
|
|
502
|
+ postTotalView.setUncheckedPostCount(uncheckedPostCount);
|
|
503
|
+ return postTotalView;
|
|
504
|
+ }
|
477
|
505
|
}
|
478
|
506
|
|