Browse Source

BUG修复

master
wxc 2 years ago
parent
commit
aac849b8cd
  1. 2
      mailbox-lan/src/main/java/com/biutag/lan/controller/HomeController.java
  2. 2
      mailbox-lan/src/main/java/com/biutag/lan/domain/MailCategory.java
  3. 2
      mailbox-lan/src/main/java/com/biutag/lan/enums/MailCategory.java
  4. 4
      mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java
  5. 4
      mailbox-lan/src/main/java/com/biutag/lan/service/MailCategoryService.java
  6. 0
      sql/0308.sql

2
mailbox-lan/src/main/java/com/biutag/lan/controller/HomeController.java

@ -104,7 +104,7 @@ public class HomeController {
// 累计办结 // 累计办结
long completedTotal = mailMarkService.countByCompleted(); long completedTotal = mailMarkService.countByCompleted();
// 累计办结 // 累计办结
long thankTotal = mailService.countByMailCategory("感谢信"); long thankTotal = mailService.countByMailCategory("感谢信");
return AjaxResult.success(JSONObject.of("mailToday", mailToday, return AjaxResult.success(JSONObject.of("mailToday", mailToday,
"completedToday", completedToday, "completedToday", completedToday,
"mailTotal", mailTotal, "mailTotal", mailTotal,

2
mailbox-lan/src/main/java/com/biutag/lan/domain/MailCategory.java

@ -26,7 +26,7 @@ public class MailCategory {
/** /**
* 序号 * 序号
*/ */
private String orderNo; private Integer orderNo;
} }

2
mailbox-lan/src/main/java/com/biutag/lan/enums/MailCategory.java

@ -12,7 +12,7 @@ public enum MailCategory {
WORK_SUGGESTIONS("工作建议类"), WORK_SUGGESTIONS("工作建议类"),
INVALID("无效类"), INVALID("无效类"),
TERMINATION("终止类"), TERMINATION("终止类"),
THANK_MAIL("感谢信"); THANK_MAIL("感谢信");
private String name; private String name;
} }

4
mailbox-lan/src/main/java/com/biutag/lan/service/DataScreenService.java

@ -125,7 +125,7 @@ public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> {
Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(null);//获取长沙市局 满意率 Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(null);//获取长沙市局 满意率
// Integer allSum = baseMapper.getAllMailCount(null); // Integer allSum = baseMapper.getAllMailCount(null);
Long allSum = mailMapper.selectCount(new LambdaQueryWrapper<Mail>().ne(Mail::getMailFirstCategory, "无效类").ne(Mail::getMailFirstCategory, "终止类") Long allSum = mailMapper.selectCount(new LambdaQueryWrapper<Mail>().ne(Mail::getMailFirstCategory, "无效类").ne(Mail::getMailFirstCategory, "终止类")
.ne(Mail::getMailFirstCategory, "感谢信")); .ne(Mail::getMailFirstCategory, "感谢信"));
Integer toDayCount = baseMapper.getTodayMailCount(null); Integer toDayCount = baseMapper.getTodayMailCount(null);
mapCompleted.putAll(mapResolved); mapCompleted.putAll(mapResolved);
@ -140,7 +140,7 @@ public class DataScreenService extends ServiceImpl<DataScreenMapper, Mail> {
Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(deptId);//获取长沙市局 满意率 Map<String, Object> mapSatisfied = baseMapper.getAllSatisfiedRate(deptId);//获取长沙市局 满意率
// Integer allSum = baseMapper.getAllMailCount(deptId); // Integer allSum = baseMapper.getAllMailCount(deptId);
Long allSum = mailMapper.selectCount(new LambdaQueryWrapper<Mail>().ne(Mail::getMailFirstCategory, "无效类").ne(Mail::getMailFirstCategory, "终止类") Long allSum = mailMapper.selectCount(new LambdaQueryWrapper<Mail>().ne(Mail::getMailFirstCategory, "无效类").ne(Mail::getMailFirstCategory, "终止类")
.ne(Mail::getMailFirstCategory, "感谢信")); .ne(Mail::getMailFirstCategory, "感谢信"));
Integer toDayCount = baseMapper.getTodayMailCount(deptId); Integer toDayCount = baseMapper.getTodayMailCount(deptId);
mapCompleted.putAll(mapResolved); mapCompleted.putAll(mapResolved);

4
mailbox-lan/src/main/java/com/biutag/lan/service/MailCategoryService.java

@ -1,5 +1,6 @@
package com.biutag.lan.service; package com.biutag.lan.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.lan.domain.MailCategory; import com.biutag.lan.domain.MailCategory;
import com.biutag.lan.domain.vo.MailCategoryTreeNode; import com.biutag.lan.domain.vo.MailCategoryTreeNode;
@ -13,7 +14,8 @@ import java.util.stream.Collectors;
public class MailCategoryService extends ServiceImpl<MailCategoryMapper, MailCategory> { public class MailCategoryService extends ServiceImpl<MailCategoryMapper, MailCategory> {
public List<MailCategoryTreeNode> tree() { public List<MailCategoryTreeNode> tree() {
List<MailCategory> list = list(); LambdaQueryWrapper<MailCategory> queryWrapper = new LambdaQueryWrapper<MailCategory>().orderByAsc(MailCategory::getOrderNo);
List<MailCategory> list = list(queryWrapper);
return buildTree(list); return buildTree(list);
} }

0
sql/0308.sql

Loading…
Cancel
Save