Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
18076f4b
Commit
18076f4b
authored
Mar 28, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页参与任务情况统计
parent
7276931a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
12 deletions
+43
-12
TaskParticipationStatisticsVO.java
...va/com/ruoyi/domain/vo/TaskParticipationStatisticsVO.java
+14
-0
StatisticsHomeMapper.java
.../src/main/java/com/ruoyi/mapper/StatisticsHomeMapper.java
+4
-4
StatisticsHomeService.java
...rc/main/java/com/ruoyi/service/StatisticsHomeService.java
+4
-4
StatisticsHomeServiceImpl.java
...ava/com/ruoyi/service/impl/StatisticsHomeServiceImpl.java
+5
-0
StatisticsHomeController.java
...src/main/java/com/ruoyi/web/StatisticsHomeController.java
+6
-4
StatisticsHomeMapper.xml
...review/src/main/resources/mapper/StatisticsHomeMapper.xml
+10
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/vo/TaskParticipationStatisticsVO.java
0 → 100644
View file @
18076f4b
package
com
.
ruoyi
.
domain
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
"首页参与任务情况"
)
public
class
TaskParticipationStatisticsVO
{
@ApiModelProperty
(
"用户名称"
)
private
String
userName
;
@ApiModelProperty
(
"项目数量"
)
private
Integer
taskNum
;
}
quality-review/src/main/java/com/ruoyi/mapper/StatisticsHomeMapper.java
View file @
18076f4b
package
com
.
ruoyi
.
mapper
;
import
com.ruoyi.domain.vo.ConfidentialityLevelProportionVO
;
import
com.ruoyi.domain.vo.InspectionItemPassedNumVO
;
import
com.ruoyi.domain.vo.QuantityStatisticsVO
;
import
com.ruoyi.domain.vo.StandardCategoryStatisticsVO
;
import
com.ruoyi.domain.vo.*
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
...
...
@@ -22,4 +19,7 @@ public interface StatisticsHomeMapper {
// 体系审查任务通过数量
public
InspectionItemPassedNumVO
selectInspectionItemPassedNum
();
// 参与任务情况统计
public
List
<
TaskParticipationStatisticsVO
>
selectTaskParticipationStatistics
();
}
quality-review/src/main/java/com/ruoyi/service/StatisticsHomeService.java
View file @
18076f4b
package
com
.
ruoyi
.
service
;
import
com.ruoyi.domain.vo.AverageInspectionRateVO
;
import
com.ruoyi.domain.vo.ConfidentialityLevelProportionVO
;
import
com.ruoyi.domain.vo.QuantityStatisticsVO
;
import
com.ruoyi.domain.vo.StandardCategoryStatisticsVO
;
import
com.ruoyi.domain.vo.*
;
import
java.util.List
;
...
...
@@ -19,4 +16,7 @@ public interface StatisticsHomeService {
//平均检验通过率
public
List
<
AverageInspectionRateVO
>
selectAverageInspectionRate
();
// 参与任务情况统计
public
List
<
TaskParticipationStatisticsVO
>
selectTaskParticipationStatistics
();
}
quality-review/src/main/java/com/ruoyi/service/impl/StatisticsHomeServiceImpl.java
View file @
18076f4b
...
...
@@ -67,6 +67,11 @@ public class StatisticsHomeServiceImpl implements StatisticsHomeService {
return
list
;
}
@Override
public
List
<
TaskParticipationStatisticsVO
>
selectTaskParticipationStatistics
(){
return
statisticsHomeMapper
.
selectTaskParticipationStatistics
();
}
// 计算两个数各占比
public
int
percentageCalculation
(
Integer
a
,
Integer
b
){
int
total
=
a
+
b
;
...
...
quality-review/src/main/java/com/ruoyi/web/StatisticsHomeController.java
View file @
18076f4b
package
com
.
ruoyi
.
web
;
import
com.ruoyi.common.core.domain.R
;
import
com.ruoyi.domain.vo.AverageInspectionRateVO
;
import
com.ruoyi.domain.vo.ConfidentialityLevelProportionVO
;
import
com.ruoyi.domain.vo.QuantityStatisticsVO
;
import
com.ruoyi.domain.vo.StandardCategoryStatisticsVO
;
import
com.ruoyi.domain.vo.*
;
import
com.ruoyi.service.StatisticsHomeService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -44,4 +41,9 @@ public class StatisticsHomeController {
public
R
<
List
<
AverageInspectionRateVO
>>
selectAverageInspectionRate
(){
return
R
.
ok
(
statisticsHomeService
.
selectAverageInspectionRate
());
}
@ApiOperation
(
"首页任务情况安排"
)
@PostMapping
(
"/taskParticipation"
)
public
R
<
List
<
TaskParticipationStatisticsVO
>>
selectTaskParticipationStatistics
(){
return
R
.
ok
(
statisticsHomeService
.
selectTaskParticipationStatistics
());
}
}
quality-review/src/main/resources/mapper/StatisticsHomeMapper.xml
View file @
18076f4b
...
...
@@ -58,4 +58,14 @@
( SELECT COUNT( id ) FROM t_model_test_task WHERE task_status = 'FINISH' ) AS modelTestCompletedNum,
( SELECT COUNT( id ) FROM t_model_test_task WHERE task_status = 'FINISH' AND task_result = 'PASS' ) AS modelTestPassedNum
</select>
<select
id=
"selectTaskParticipationStatistics"
resultType=
"com.ruoyi.domain.vo.TaskParticipationStatisticsVO"
>
SELECT
count( task_id ) AS taskNum,
NAME AS userName
FROM
t_task_user_relation
GROUP BY
user_id,NAME
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment