Pārlūkot izejas kodu

优化前缀

master
牧羊人 pirms 4 gadiem
vecāks
revīzija
374e6dfd76
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/main/java/com/taauav/front/controller/UserAuthRuleController.java
  2. +3
    -0
      src/main/java/com/taauav/front/controller/UserDataStatisticsController.java

+ 1
- 1
src/main/java/com/taauav/front/controller/UserAuthRuleController.java Parādīt failu

@@ -24,7 +24,7 @@ import java.util.Map;
* @since 2020-05-16
*/
@RestController
@RequestMapping("/front/authrule")
@RequestMapping("/front/userauthrule")
public class UserAuthRuleController extends FrontBaseController {

@Autowired

+ 3
- 0
src/main/java/com/taauav/front/controller/UserDataStatisticsController.java Parādīt failu

@@ -67,6 +67,9 @@ public class UserDataStatisticsController {
.eq(TauvInspectQuestion::getStatus, 3)
.eq(TauvInspectQuestion::getMark, 1));
result.put("finishedNum", finishedNum);
// 未完成数
result.put("waitNum", totalNum - finishedNum);

// 已处理占比
if (totalNum > 0) {
result.put("percentage", String.format("%.2f", (float) finishedNum / (float) totalNum * 100));

Notiek ielāde…
Atcelt
Saglabāt