Browse Source

首页大屏后端1.0

main
parent
commit
046c52609e
  1. 5
      src/main/java/com/biutag/supervision/controller/data/DataCaseVerifController.java
  2. 2
      src/main/java/com/biutag/supervision/controller/data/DataPetitionComplaint12337Controller.java
  3. 136
      src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java
  4. 7
      src/main/java/com/biutag/supervision/controller/datav/DataPetitionComplaintViewController.java
  5. 67
      src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java
  6. 9
      src/main/java/com/biutag/supervision/controller/work/NegativeController.java
  7. 4
      src/main/java/com/biutag/supervision/flow/action/SaveAction.java
  8. 18
      src/main/java/com/biutag/supervision/mapper/DataSupervisionNotifyMapper.java
  9. 36
      src/main/java/com/biutag/supervision/mapper/NegativeMapper.java
  10. 4
      src/main/java/com/biutag/supervision/pojo/entity/DataPetition12337.java
  11. 139
      src/main/java/com/biutag/supervision/pojo/entity/DataSupervisionNotify.java
  12. 3
      src/main/java/com/biutag/supervision/pojo/entity/FlowNode.java
  13. 2
      src/main/java/com/biutag/supervision/pojo/param/DataPetitionComplaintQueryParam.java
  14. 5
      src/main/java/com/biutag/supervision/pojo/vo/DataPetition12337Vo.java
  15. 15
      src/main/java/com/biutag/supervision/pojo/vo/EchartsVo.java
  16. 15
      src/main/java/com/biutag/supervision/pojo/vo/OrganizeProblemRankVo.java
  17. 19
      src/main/java/com/biutag/supervision/pojo/vo/RankVo.java
  18. 15
      src/main/java/com/biutag/supervision/pojo/vo/RecentTrendByMonthVo.java
  19. 22
      src/main/java/com/biutag/supervision/service/DataCaseVerifService.java
  20. 117
      src/main/java/com/biutag/supervision/service/DataGobalService.java
  21. 2
      src/main/java/com/biutag/supervision/service/DataPetition12337Service.java
  22. 18
      src/main/java/com/biutag/supervision/service/DataScreenService.java
  23. 148
      src/main/java/com/biutag/supervision/service/DataSupervisionNotifyServiceImpl.java
  24. 12
      src/main/java/com/biutag/supervision/service/NegativeService.java
  25. 1
      src/main/resources/application-dev.yml

5
src/main/java/com/biutag/supervision/controller/data/DataCaseVerifController.java

@ -111,6 +111,11 @@ public class DataCaseVerifController {
return Result.success(dataCaseVerifService.removeById(id)); return Result.success(dataCaseVerifService.removeById(id));
} }
/**
* 下发
* @param dataDistribute 页面数据 办理时限 审核流程
* @return
*/
@PostMapping("distribute") @PostMapping("distribute")
public Result<Boolean> distribute(@RequestBody DataCaseVerifDistribute dataDistribute) { public Result<Boolean> distribute(@RequestBody DataCaseVerifDistribute dataDistribute) {
return Result.success(dataCaseVerifService.distribution(dataDistribute)); return Result.success(dataCaseVerifService.distribution(dataDistribute));

2
src/main/java/com/biutag/supervision/controller/data/DataPetitionComplaint12337Controller.java

@ -10,6 +10,7 @@ import com.biutag.supervision.pojo.entity.DataPetitionComplaint;
import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam; import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam;
import com.biutag.supervision.pojo.vo.DataPetition12337Vo; import com.biutag.supervision.pojo.vo.DataPetition12337Vo;
import com.biutag.supervision.service.DataPetition12337Service; import com.biutag.supervision.service.DataPetition12337Service;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
@ -19,6 +20,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Tag(name = "12337信访投诉菜单")
@Slf4j @Slf4j
@RequiredArgsConstructor @RequiredArgsConstructor
@RequestMapping("data/petitionComplaint12337") @RequestMapping("data/petitionComplaint12337")

136
src/main/java/com/biutag/supervision/controller/datav/DataGobalController.java

@ -0,0 +1,136 @@
package com.biutag.supervision.controller.datav;
import com.alibaba.fastjson.JSONObject;
import com.biutag.supervision.pojo.Result;
import com.biutag.supervision.pojo.vo.EchartsVo;
import com.biutag.supervision.pojo.vo.OrganizeProblemRankVo;
import com.biutag.supervision.pojo.vo.RecentMailTrendByMonthVo;
import com.biutag.supervision.pojo.vo.RecentTrendByMonthVo;
import com.biutag.supervision.service.DataGobalService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;
import java.time.YearMonth;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
/**
* 数据大屏首页
*
* @author: sh
* @date: 2024/11/7
*/
@Tag(name = "数据大屏首页", description = "数据大屏首页")
@RestController
@RequiredArgsConstructor
@RequestMapping("datav/dataGobalScreen")
public class DataGobalController {
private final DataGobalService dataGobalService;
/**
* 获取数据大屏总数概览
*
* @param beginTime
* @param endTime
* @return
*/
@Operation(summary = "初始化大屏中央数据")
@GetMapping
public Result<JSONObject> getAllGobalCount(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {
// 获取数据大屏中央总数概览
JSONObject overview = dataGobalService.getAllGobalCount(beginTime, endTime);
// 获取数据大屏各机构问题排名
List<OrganizeProblemRankVo> fxsjlist = dataGobalService.getOrganizeProblemRank(3, beginTime, endTime);
List<OrganizeProblemRankVo> jsdwlist = dataGobalService.getOrganizeProblemRank(4, beginTime, endTime);
// 业务类型占比
List<EchartsVo> ywzblist = dataGobalService.getBusinessRate(beginTime, endTime);
// 问题趋势
JSONObject data = new JSONObject().fluentPut("overview", overview)
.fluentPut("fxsjlist", fxsjlist)
.fluentPut("jsdwlist", jsdwlist)
.fluentPut("ywzblist", ywzblist);
return Result.success(data);
}
@Operation(summary = "机构问题排名")
@GetMapping("{groupType}")
public Result<JSONObject> getOrganizeProblemRank(
@PathVariable Integer groupType,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {
List<OrganizeProblemRankVo> fxsjlist = dataGobalService.getOrganizeProblemRank(groupType, beginTime, endTime);
List<OrganizeProblemRankVo> jsdwlist = dataGobalService.getOrganizeProblemRank(groupType, beginTime, endTime);
JSONObject data = new JSONObject()
.fluentPut("fxsjlist", fxsjlist)
.fluentPut("jsdwlist", jsdwlist);
return Result.success(data);
}
/**
* 数据大屏问题趋势统计按月
* @param year
* @return
*/
@Operation(summary = "数据大屏问题趋势统计(按月)")
@GetMapping("/getGobalRecentlyTrendByMonth")
public Result<JSONObject> getGobalRecentlyTrendByMonth(@RequestParam Integer year) {
List<RecentTrendByMonthVo> recentTrendVoList = dataGobalService.getGobalRecentlyTrendByMonth(String.valueOf(year));
ArrayList<String> monthList = new ArrayList<>();
ArrayList<String> totalList = new ArrayList<>();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM");
// 要展示到的月份 从那个月开始
YearMonth endMonth = YearMonth.of(year, new Date().getMonth());
YearMonth startMonth = YearMonth.of(year, 1);
for (RecentTrendByMonthVo recentTrendByMonthVo : recentTrendVoList) {
YearMonth trendMonth = YearMonth.parse(recentTrendByMonthVo.getMonthTime(), formatter);
while (startMonth.isBefore(trendMonth)) {
String res = startMonth.format(formatter);
monthList.add(res); // 添加到monthList
totalList.add("0"); // 插入没有数据的月份,总数为0
startMonth = startMonth.plusMonths(1);
}
String res = trendMonth.format(formatter);
monthList.add(res);
totalList.add(recentTrendByMonthVo.getTotal());
startMonth = trendMonth.plusMonths(1);
}
// 添加从最后一个有数据的月份到当前月份的缺失月份
while (!startMonth.isAfter(endMonth)) {
String res = startMonth.format(formatter);
monthList.add(res); // 添加到monthList
totalList.add("0"); // 插入没有数据的月份,总数为0
startMonth = startMonth.plusMonths(1);
}
// 截取月份
List<String> monthOnlyList = monthList.stream()
.map(date -> date.substring(date.indexOf('-') + 1)+"月")
.collect(Collectors.toList());
JSONObject jsonObject = new JSONObject()
.fluentPut("monthList", monthOnlyList)
.fluentPut("totalList", totalList);
return Result.success(jsonObject);
}
}

7
src/main/java/com/biutag/supervision/controller/datav/DataPetitionComplaintViewController.java

@ -10,6 +10,8 @@ import com.biutag.supervision.pojo.dto.CaseVerifDepart;
import com.biutag.supervision.pojo.vo.RecentMailTrendByDayVo; import com.biutag.supervision.pojo.vo.RecentMailTrendByDayVo;
import com.biutag.supervision.pojo.vo.RecentMailTrendByMonthVo; import com.biutag.supervision.pojo.vo.RecentMailTrendByMonthVo;
import com.biutag.supervision.service.DataPetitionComplaintService; import com.biutag.supervision.service.DataPetitionComplaintService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -31,6 +33,7 @@ import java.util.stream.Collectors;
* @author: sh * @author: sh
* @date: 2024/10/31 * @date: 2024/10/31
*/ */
@Tag(name = "信访数据大屏选相关")
@RequestMapping("datav/mailVisits") @RequestMapping("datav/mailVisits")
@RequiredArgsConstructor @RequiredArgsConstructor
@RestController @RestController
@ -45,6 +48,7 @@ public class DataPetitionComplaintViewController {
* @param endTime * @param endTime
* @return * @return
*/ */
@Operation(summary = "信访数据大屏中央数据统计")
@GetMapping @GetMapping
public Result<JSONObject> mailVisits(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { public Result<JSONObject> mailVisits(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {
// 信访数据总数概览 // 信访数据总数概览
@ -80,6 +84,7 @@ public class DataPetitionComplaintViewController {
/** /**
* 信访数据大屏信访趋势统计按日 * 信访数据大屏信访趋势统计按日
*/ */
@Operation(summary = "信访数据大屏信访趋势统计(按日)")
@GetMapping("/getRecentlyMailTrendByDay") @GetMapping("/getRecentlyMailTrendByDay")
public Result<JSONObject> getRecentlyMailTrendByDay(@RequestParam Integer sourcesCode, @RequestParam Integer days, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { public Result<JSONObject> getRecentlyMailTrendByDay(@RequestParam Integer sourcesCode, @RequestParam Integer days, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date startTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
@ -118,6 +123,7 @@ public class DataPetitionComplaintViewController {
* @param year * @param year
* @return * @return
*/ */
@Operation(summary = "信访数据大屏信访趋势统计(按月)")
@GetMapping("/getRecentlyMailTrendMonth") @GetMapping("/getRecentlyMailTrendMonth")
public Result<JSONObject> getRecentlyMailTrendByMonth(@RequestParam Integer sourcesCode, @RequestParam Integer year) { public Result<JSONObject> getRecentlyMailTrendByMonth(@RequestParam Integer sourcesCode, @RequestParam Integer year) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
@ -140,6 +146,7 @@ public class DataPetitionComplaintViewController {
* @param year * @param year
* @return * @return
*/ */
@Operation(summary = "信访数据大屏12337信访趋势统计(按月)")
@GetMapping("/getRecentlyMailTrendByMonth12337") @GetMapping("/getRecentlyMailTrendByMonth12337")
public Result<JSONObject> getRecentlyMailTrendByMonth12337(@RequestParam Integer year) { public Result<JSONObject> getRecentlyMailTrendByMonth12337(@RequestParam Integer year) {
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();

67
src/main/java/com/biutag/supervision/controller/datav/SupervisionNotifyController.java

@ -0,0 +1,67 @@
package com.biutag.supervision.controller.datav;
import com.alibaba.fastjson.JSONObject;
import com.biutag.supervision.pojo.Result;
import com.biutag.supervision.pojo.dto.CaseVerifDepart;
import com.biutag.supervision.pojo.vo.RankVo;
import com.biutag.supervision.service.DataSupervisionNotifyServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.List;
/**
* @Auther: sh
* @Date: 2024/11/7 10:30
* @Description: 现场督察相关
*/
@Slf4j
@RestController
@RequiredArgsConstructor
@RequestMapping("datav/supervisonNotify")
@Tag(name = "现场督察相关")
public class SupervisionNotifyController {
private final DataSupervisionNotifyServiceImpl dataSupervisionNotifyService;
/**
* 获取所有现场督察钟中央总数数量
* @return
*/
@Operation(summary = "获取所有督察通知相关数量")
@GetMapping
public Result<JSONObject> getAllSupervisionNotifyCount(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){
JSONObject overview = dataSupervisionNotifyService.getAllSupervisionNotifyCount(beginTime, endTime);
JSONObject data = new JSONObject().fluentPut("overview", overview);
return Result.success(data);
}
/**
* 获取日常督察排行
* @param groupType 分组类型 1: 分县市局 2: 局属单位
* @return
*/
@Operation(summary = "获取日常督察排行")
@GetMapping("/rank")
public Result<JSONObject> getChangedRank(@RequestParam Integer groupType,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime,
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){
List<RankVo> changedRank = dataSupervisionNotifyService.getChangedRank(groupType, beginTime, endTime);
JSONObject data = new JSONObject().fluentPut("changedRank", changedRank);
return Result.success(data);
}
}

9
src/main/java/com/biutag/supervision/controller/work/NegativeController.java

@ -49,6 +49,12 @@ public class NegativeController {
return Result.success(negativeQueryService.page(queryParam)); return Result.success(negativeQueryService.page(queryParam));
} }
/**
* 获取 negative blame negative_history negative_file ...
* @param id
* @param workId
* @return NegativeDetail
*/
@GetMapping("{id}") @GetMapping("{id}")
public Result<NegativeDetail> get(@PathVariable String id, Integer workId) { public Result<NegativeDetail> get(@PathVariable String id, Integer workId) {
return Result.success(negativeService.get(id, workId)); return Result.success(negativeService.get(id, workId));
@ -86,6 +92,9 @@ public class NegativeController {
return Result.success(); return Result.success();
} }
/**
* 确定签收 提交审核
*/
@PostMapping("{id}/execute") @PostMapping("{id}/execute")
public Result<Boolean> execute(@PathVariable String id, @RequestBody ActionDto action) { public Result<Boolean> execute(@PathVariable String id, @RequestBody ActionDto action) {
action.setNegativeId(id); action.setNegativeId(id);

4
src/main/java/com/biutag/supervision/flow/action/SaveAction.java

@ -68,7 +68,9 @@ public class SaveAction implements Action {
.set(Negative::getInvolveDepartName, depart.getShortName()); .set(Negative::getInvolveDepartName, depart.getShortName());
} }
negativeService.update(updateWrapper); negativeService.update(updateWrapper);
/**
* 如果涉及不为空则先删除原有数据再新增
*/
if (!verifyData.getBlames().isEmpty()) { if (!verifyData.getBlames().isEmpty()) {
negativeBlameService.remove(negativeId); negativeBlameService.remove(negativeId);
List<NegativeProblemRelation> problemRelations = new ArrayList<>(); List<NegativeProblemRelation> problemRelations = new ArrayList<>();

18
src/main/java/com/biutag/supervision/mapper/DataSupervisionNotifyMapper.java

@ -0,0 +1,18 @@
package com.biutag.supervision.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.supervision.pojo.entity.DataSupervisionNotify;
/**
* @author 舒云
* @description 针对表data_supervision_notify的数据库操作Mapper
* @createDate 2024-11-07 09:38:29
* @Entity generator.domain.DataSupervisionNotify
*/
public interface DataSupervisionNotifyMapper extends BaseMapper<DataSupervisionNotify> {
}

36
src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

@ -2,6 +2,42 @@ package com.biutag.supervision.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.biutag.supervision.pojo.entity.Negative; import com.biutag.supervision.pojo.entity.Negative;
import com.biutag.supervision.pojo.vo.EchartsVo;
import com.biutag.supervision.pojo.vo.OrganizeProblemRankVo;
import com.biutag.supervision.pojo.vo.RankVo;
import com.biutag.supervision.pojo.vo.RecentTrendByMonthVo;
import org.apache.ibatis.annotations.Select;
import java.util.Date;
import java.util.List;
public interface NegativeMapper extends BaseMapper<Negative> { public interface NegativeMapper extends BaseMapper<Negative> {
/**
* 查询组织问题排名
* @param beginTime
* @param endTime
*/
@Select("SELECT sd.short_name as label, sd.statistics_group_id, count(*) as value FROM sup_depart sd INNER JOIN " +
"(SELECT ng.handle_second_depart_id, ng.handle_second_depart_name FROM negative ng WHERE " +
" crtTime BETWEEN #{beginTime} and #{endTime} and checkStatus=1 ) temp " +
" on sd.id=temp.handle_second_depart_id GROUP BY short_name HAVING statistics_group_id=#{groupType} " +
" ORDER BY value desc")
List<OrganizeProblemRankVo> selectOrganizeProblemRank(Integer groupType, Date beginTime, Date endTime);
@Select("SELECT businessTypeName as name, count(*) value FROM negative " +
"WHERE " +
"crtTime BETWEEN #{beginTime} and #{endTime} and checkStatus=1 " +
"GROUP BY businessTypeName")
List<EchartsVo> selectBusinessRate(Date beginTime,Date endTime);
@Select("SELECT DATE_FORMAT(ng.crtTime, '%Y-%m') AS monthTime, COUNT(*) total FROM negative ng " +
"WHERE YEAR(ng.crtTime)=#{year} and checkStatus=1 " +
"GROUP BY monthTime " +
"order BY monthTime asc")
List<RecentTrendByMonthVo> selectRecentTrendByMonth(String year);
} }

4
src/main/java/com/biutag/supervision/pojo/entity/DataPetition12337.java

@ -607,6 +607,10 @@ public class DataPetition12337 implements Serializable {
private String distributionState; private String distributionState;
@TableField(value="is_real")
private Integer isReal;
@TableField(exist = false) @TableField(exist = false)
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

139
src/main/java/com/biutag/supervision/pojo/entity/DataSupervisionNotify.java

@ -0,0 +1,139 @@
package com.biutag.supervision.pojo.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
*
* @TableName data_supervision_notify
*/
@TableName(value ="data_supervision_notify")
@Data
public class DataSupervisionNotify implements Serializable {
/**
* 序号
*/
@TableId(value = "id")
private Integer id;
/**
* 通报名称
*/
@TableField(value = "tb_name")
private String tbName;
/**
* 监督单位
*/
@TableField(value = "tb_unit")
private String tbUnit;
/**
* 被监督二级机构
*/
@TableField(value = "sec_org_name")
private String secOrgName;
/**
* 被监督三级机构
*/
@TableField(value = "th_org_name")
private String thOrgName;
/**
* 监督发现问题日期
*/
@TableField(value = "dis_date")
private String disDate;
/**
* 问题内容
*/
@TableField(value = "pro_content")
private String proContent;
/**
* 问题类型
*/
@TableField(value = "pro_type")
private String proType;
/**
* 具体问题
*/
@TableField(value = "pro_specific")
private String proSpecific;
/**
* 回复期限
*/
@TableField(value = "rep_date_limit")
private String repDateLimit;
/**
* 回复日期
*/
@TableField(value = "rep_date")
private String repDate;
/**
* 是否及时回复
*/
@TableField(value = "is_rep_timely")
private String isRepTimely;
/**
* 回复情况
*/
@TableField(value = "rep_content")
private String repContent;
/**
* 是否属实1属实 2部分属实 3不属实
*/
@TableField(value = "is_real")
private Integer isReal;
/**
* 被问责人员姓名
*/
@TableField(value = "pro_person_name")
private String proPersonName;
/**
* 人员类型
*/
@TableField(value = "person_type")
private String personType;
/**
* 问责情况个人
*/
@TableField(value = "wz_content_single")
private String wzContentSingle;
/**
* 问责情况单位
*/
@TableField(value = "wz_content_org")
private String wzContentOrg;
/**
* 被监督二级机构id
*/
@TableField(value = "second_depart_id")
private String secondDepartId;
/**
* 被监督三级机构id
*/
@TableField(value = "third_depart_id")
private String thirdDepartId;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
}

3
src/main/java/com/biutag/supervision/pojo/entity/FlowNode.java

@ -7,6 +7,9 @@ import lombok.Setter;
import java.time.LocalDateTime; import java.time.LocalDateTime;
/**
* 流程节点表
*/
@Setter @Setter
@Getter @Getter
public class FlowNode { public class FlowNode {

2
src/main/java/com/biutag/supervision/pojo/param/DataPetitionComplaintQueryParam.java

@ -24,6 +24,8 @@ public class DataPetitionComplaintQueryParam extends BasePage {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private List<Date> discoveryTime = new ArrayList<>(); private List<Date> discoveryTime = new ArrayList<>();
private String checkStatus; // 是否属实 1属实 2部分属实 3不属实
private String thingDesc; private String thingDesc;
} }

5
src/main/java/com/biutag/supervision/pojo/vo/DataPetition12337Vo.java

@ -168,6 +168,11 @@ public class DataPetition12337Vo implements Serializable {
*/ */
private String distributionState; private String distributionState;
/**
* 是否属实
*/
private Integer isReal;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

15
src/main/java/com/biutag/supervision/pojo/vo/EchartsVo.java

@ -0,0 +1,15 @@
package com.biutag.supervision.pojo.vo;
import lombok.Data;
/**
* @Auther: sh
* @Date: 2024/11/11 18:21
* @Description:
*/
@Data
public class EchartsVo {
private String name;
private Integer value;
}

15
src/main/java/com/biutag/supervision/pojo/vo/OrganizeProblemRankVo.java

@ -0,0 +1,15 @@
package com.biutag.supervision.pojo.vo;
import lombok.Data;
/**
* @Auther: sh
* @Date: 2024/11/8 11:17
* @Description: 首页大屏机构问题排名VO
*/
@Data
public class OrganizeProblemRankVo {
private String label; // 部门名
private String value; // 问题数
}

19
src/main/java/com/biutag/supervision/pojo/vo/RankVo.java

@ -0,0 +1,19 @@
package com.biutag.supervision.pojo.vo;
import lombok.Data;
/**
* @Auther: sh
* @Date: 2024/11/7 19:32
* @Description: 带排名的部门 VO
*/
@Data
public class RankVo {
private String label; // 部门名称
private String departId; // 部门id
private Integer value; // 数量
private String numerator; // 分子 已整改
private String denominator; // 分母 问题数
}

15
src/main/java/com/biutag/supervision/pojo/vo/RecentTrendByMonthVo.java

@ -0,0 +1,15 @@
package com.biutag.supervision.pojo.vo;
import lombok.Data;
/**
* @Auther: sh
* @Date: 2024/11/11 19:21
* @Description:
*/
@Data
public class RecentTrendByMonthVo {
private String MonthTime; // 24/01
private String total; // 10
}

22
src/main/java/com/biutag/supervision/service/DataCaseVerifService.java

@ -57,19 +57,24 @@ public class DataCaseVerifService extends ServiceImpl<DataCaseVerifMapper, DataC
return true; return true;
} }
/**
* 案件核查下发
* @param dataDistribute 页面数据 办理时限 审核流程
* @return
*/
public boolean distribution(DataCaseVerifDistribute dataDistribute) { public boolean distribution(DataCaseVerifDistribute dataDistribute) {
dataDistribute.getData().forEach(item -> { dataDistribute.getData().forEach(item -> {
NegativeDto negativeDto = new NegativeDto(); NegativeDto negativeDto = new NegativeDto();
negativeDto.setOriginId(item.getOriginId()); negativeDto.setOriginId(item.getOriginId()); // 设置数据源id
negativeDto.setHappenTime(item.getHappenTime()); negativeDto.setHappenTime(item.getHappenTime());
negativeDto.setDiscoveryTime(item.getDiscoveryTime()); negativeDto.setDiscoveryTime(item.getDiscoveryTime());
negativeDto.setProblemSourcesCode(ProblemSourcesEnum.A12389.getValue()); negativeDto.setProblemSourcesCode(ProblemSourcesEnum.A12389.getValue()); // 来源分类
negativeDto.setProblemSources(ProblemSourcesEnum.A12389.getLabel()); negativeDto.setProblemSources(ProblemSourcesEnum.A12389.getLabel());
// negativeDto.setBusinessTypeCode(BusinessTypeEnum.ABWW); // negativeDto.setBusinessTypeCode(BusinessTypeEnum.ABWW);
// negativeDto.setBusinessTypeName(); // negativeDto.setBusinessTypeName();
negativeDto.setResponderName(item.getResponderName()); negativeDto.setResponderName(item.getResponderName()); // 投诉人
negativeDto.setContactPhone(item.getResponderPhone()); negativeDto.setContactPhone(item.getResponderPhone());
negativeDto.setThingDesc(item.getThingDesc()); negativeDto.setThingDesc(item.getThingDesc()); // 投诉详情
String departId; String departId;
String departName; String departName;
if (StrUtil.isBlank(item.getThirdDepartId())) { if (StrUtil.isBlank(item.getThirdDepartId())) {
@ -79,18 +84,17 @@ public class DataCaseVerifService extends ServiceImpl<DataCaseVerifMapper, DataC
departId = item.getThirdDepartId(); departId = item.getThirdDepartId();
departName = item.getThirdDepartName(); departName = item.getThirdDepartName();
} }
negativeDto.setInvolveDepartId(departId); negativeDto.setInvolveDepartId(departId); // 涉及单位
negativeDto.setInvolveDepartName(departName); negativeDto.setInvolveDepartName(departName);
negativeDto.setHostLevel(HostLevelEnums.SECOND.getValue()); negativeDto.setHostLevel(HostLevelEnums.SECOND.getValue());
negativeDto.setApprovalFlow(dataDistribute.getApprovalFlow()); // 审批流程
negativeDto.setApprovalFlow(dataDistribute.getApprovalFlow());
negativeDto.setDepartId(departId); negativeDto.setDepartId(departId);
negativeDto.setDepartName(departName); negativeDto.setDepartName(departName);
negativeDto.setTimeLimit(dataDistribute.getTimeLimit()); negativeDto.setTimeLimit(dataDistribute.getTimeLimit()); // 办理时限
negativeDto.setMaxSignDuration(dataDistribute.getMaxSignDuration()); negativeDto.setMaxSignDuration(dataDistribute.getMaxSignDuration());
negativeDto.setMaxHandleDuration(dataDistribute.getMaxHandleDuration()); negativeDto.setMaxHandleDuration(dataDistribute.getMaxHandleDuration());
negativeDto.setMaxExtensionDuration(dataDistribute.getMaxExtensionDuration()); negativeDto.setMaxExtensionDuration(dataDistribute.getMaxExtensionDuration());
negativeDto.setCaseNumber(item.getOriginId()); negativeDto.setCaseNumber(item.getOriginId()); //涉及案件/警情编号
negativeService.save(negativeDto); negativeService.save(negativeDto);
update(new LambdaUpdateWrapper<DataCaseVerif>().eq(DataCaseVerif::getOriginId, item.getOriginId()) update(new LambdaUpdateWrapper<DataCaseVerif>().eq(DataCaseVerif::getOriginId, item.getOriginId())
.set(DataCaseVerif::getDistributionState, DistributionStateEnum.DISTRIBUTED.getValue())); .set(DataCaseVerif::getDistributionState, DistributionStateEnum.DISTRIBUTED.getValue()));

117
src/main/java/com/biutag/supervision/service/DataGobalService.java

@ -0,0 +1,117 @@
package com.biutag.supervision.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.biutag.supervision.constants.enums.InspectCaseEnum;
import com.biutag.supervision.mapper.DataCaseVerifMapper;
import com.biutag.supervision.mapper.DataSupervisionNotifyMapper;
import com.biutag.supervision.mapper.NegativeMapper;
import com.biutag.supervision.pojo.dto.CaseVerifDepart;
import com.biutag.supervision.pojo.entity.DataCaseVerif;
import com.biutag.supervision.pojo.entity.DataSupervisionNotify;
import com.biutag.supervision.pojo.entity.Negative;
import com.biutag.supervision.pojo.vo.EchartsVo;
import com.biutag.supervision.pojo.vo.OrganizeProblemRankVo;
import com.biutag.supervision.pojo.vo.RecentTrendByMonthVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
/**
* 数据大屏服务层
*
* @author sh
* @date 2024/11/6
*/
@RequiredArgsConstructor
@Service
public class DataGobalService {
private final NegativeMapper negativeMapper;
/**
* 获取所有大屏统计数据
*
* @param beginTime 开始时间
* @param endTime 结束时间
* @return 返回所有大屏统计数据
*/
public JSONObject getAllGobalCount(Date beginTime, Date endTime) {
// 获取案件核查问题数量(查实版本)
Long caseVerificationPro = getCountByConditions(
Integer.parseInt(InspectCaseEnum.TRUE.getValue()),
beginTime, endTime,
17, 18, 19, 20);
// 督察问题数量(查实版本)
Long supervisionPro = getCountByConditions(
Integer.parseInt(InspectCaseEnum.TRUE.getValue()),
beginTime, endTime,
13, 15, 16);
// 信访投诉问题数量(查实版本)
Long complaintPro = getCountByConditions(
Integer.parseInt(InspectCaseEnum.TRUE.getValue()),
beginTime, endTime,
21, 22, 23, 24, 25);
// 警务评议问题数量(查实版本)
Long reviewPro = getCountByConditions(
Integer.parseInt(InspectCaseEnum.TRUE.getValue()),
beginTime, endTime,
2);
// 审计监督问题数量(查实版本)
Long auditPro = getCountByConditions(
Integer.parseInt(InspectCaseEnum.TRUE.getValue()),
beginTime, endTime,
26);
JSONObject overview = new JSONObject();
overview.fluentPut("caseVerificationPro", caseVerificationPro)
.fluentPut("supervisionPro", supervisionPro)
.fluentPut("complaintPro", complaintPro)
.fluentPut("reviewPro", reviewPro)
.fluentPut("auditPro", auditPro);
return overview;
}
/**
* 查询核查属实的公共方法
*
* @param checkStatus 检查状态
* @param startTime 开始时间
* @param endTime 结束时间
* @param problemSourcesCodes 问题来源代码数组
* @return 满足条件的记录数
*/
public Long getCountByConditions(Integer checkStatus, Date startTime, Date endTime, Integer... problemSourcesCodes) {
QueryWrapper<Negative> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("checkStatus", checkStatus)
.between("happenTime", startTime, endTime)
.and(wrapper -> {
for (int i = 0; i < problemSourcesCodes.length; i++) {
if (i == 0) {
wrapper.eq("problemSourcesCode", problemSourcesCodes[i]);
} else {
wrapper.or().eq("problemSourcesCode", problemSourcesCodes[i]);
}
}
});
return negativeMapper.selectCount(queryWrapper);
}
public List<OrganizeProblemRankVo> getOrganizeProblemRank(Integer groupType, Date beginTime, Date endTime) {
List<OrganizeProblemRankVo> res = negativeMapper.selectOrganizeProblemRank(groupType, beginTime, endTime);
return res;
}
public List<EchartsVo> getBusinessRate(Date beginTime,Date endTime) {
List<EchartsVo> res= negativeMapper.selectBusinessRate(beginTime, endTime);
return res;
}
public List<RecentTrendByMonthVo> getGobalRecentlyTrendByMonth(String year) {
List<RecentTrendByMonthVo> trendByMonthVoList = negativeMapper.selectRecentTrendByMonth(year);
return trendByMonthVoList;
}
}

2
src/main/java/com/biutag/supervision/service/DataPetition12337Service.java

@ -12,6 +12,7 @@ import com.biutag.supervision.mapper.DataPetition12337Mapper;
import com.biutag.supervision.pojo.dto.DataDataPetitionComplainDistribute; import com.biutag.supervision.pojo.dto.DataDataPetitionComplainDistribute;
import com.biutag.supervision.pojo.dto.DataDataPetitionComplainDistribute12337; import com.biutag.supervision.pojo.dto.DataDataPetitionComplainDistribute12337;
import com.biutag.supervision.pojo.dto.NegativeDto; import com.biutag.supervision.pojo.dto.NegativeDto;
import com.biutag.supervision.pojo.entity.DataCaseVerif;
import com.biutag.supervision.pojo.entity.DataPetition12337; import com.biutag.supervision.pojo.entity.DataPetition12337;
import com.biutag.supervision.pojo.entity.DataPetitionComplaint; import com.biutag.supervision.pojo.entity.DataPetitionComplaint;
import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam; import com.biutag.supervision.pojo.param.DataPetitionComplaintQueryParam;
@ -32,6 +33,7 @@ public class DataPetition12337Service extends ServiceImpl<DataPetition12337Mappe
LambdaQueryWrapper<DataPetition12337> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<DataPetition12337> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.like(StrUtil.isNotBlank(queryParam.getOriginId()), DataPetition12337::getOnlyId, queryParam.getOriginId()) queryWrapper.like(StrUtil.isNotBlank(queryParam.getOriginId()), DataPetition12337::getOnlyId, queryParam.getOriginId())
.like(StrUtil.isNotBlank(queryParam.getThingDesc()), DataPetition12337::getWjwfProject, queryParam.getThingDesc()) .like(StrUtil.isNotBlank(queryParam.getThingDesc()), DataPetition12337::getWjwfProject, queryParam.getThingDesc())
.eq(StrUtil.isNotBlank(queryParam.getCheckStatus()), DataPetition12337::getIsReal, queryParam.getCheckStatus())
// 按创建时间倒序排序 // 按创建时间倒序排序
.orderByDesc(DataPetition12337::getDiscoverTime); .orderByDesc(DataPetition12337::getDiscoverTime);
// 如果 discoveryTime 有两个值(表示时间范围),则添加范围查询条件 // 如果 discoveryTime 有两个值(表示时间范围),则添加范围查询条件

18
src/main/java/com/biutag/supervision/service/DataScreenService.java

@ -1,18 +0,0 @@
//package com.biutag.supervision.service;
//
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import lombok.RequiredArgsConstructor;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//import java.util.Map;
//
//@RequiredArgsConstructor
//@Service
//public class DataScreenService extends ServiceImpl {
//
//
// public List<Map<String, Object>> mapData() {
// return null;
// }
//}

148
src/main/java/com/biutag/supervision/service/DataSupervisionNotifyServiceImpl.java

@ -0,0 +1,148 @@
package com.biutag.supervision.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.biutag.supervision.constants.enums.DepartGroupEnum;
import com.biutag.supervision.constants.enums.ProblemSourcesEnum;
import com.biutag.supervision.constants.enums.RepeatEnum;
import com.biutag.supervision.mapper.DataSupervisionNotifyMapper;
import com.biutag.supervision.mapper.NegativeBlameMapper;
import com.biutag.supervision.mapper.NegativeMapper;
import com.biutag.supervision.pojo.dto.CaseVerifDepart;
import com.biutag.supervision.pojo.entity.DataSupervisionNotify;
import com.biutag.supervision.pojo.entity.Negative;
import com.biutag.supervision.pojo.entity.NegativeBlame;
import com.biutag.supervision.pojo.vo.RankVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author 舒云
* @description 针对表data_supervision_notify的数据库操作Service实现
* @createDate 2024-11-07 09:38:29
*/
@RequiredArgsConstructor
@Service
public class DataSupervisionNotifyServiceImpl extends ServiceImpl<DataSupervisionNotifyMapper, DataSupervisionNotify> {
private final DataSupervisionNotifyMapper dataSupervisionNotifyMapper;
private final NegativeMapper negativeMapper;
private final NegativeBlameMapper negativeBlameMapper;
private final NegativeBlameService blameService;
/**
* 获取所有现场督察的数量
* 现场督察代码 13
* @param beginTime
* @param endTime
* @return
*/
public JSONObject getAllSupervisionNotifyCount(Date beginTime, Date endTime) {
QueryWrapper<Negative> negativeQueryWrapper = new QueryWrapper<>();
negativeQueryWrapper.between("crtTime", beginTime, endTime);
negativeQueryWrapper.eq("problemSourcesCode", ProblemSourcesEnum.XCDC.getValue());
Long supervisionNotifyTotal = negativeMapper.selectCount(negativeQueryWrapper); // 通报问题数
/* QueryWrapper<Negative> changingQueryWrapper = new QueryWrapper<>();
changingQueryWrapper.between("crtTime", beginTime, endTime);
changingQueryWrapper.eq("problemSourcesCode", ProblemSourcesEnum.XCDC.getValue());
changingQueryWrapper.eq("isRectifyCode", 1);
Long supervisionNotifyChangingTotal = negativeMapper.selectCount(changingQueryWrapper); */ // 整改中问题数
QueryWrapper<Negative> changedQueryWrapper = new QueryWrapper<>();
changedQueryWrapper.between("crtTime", beginTime, endTime);
changedQueryWrapper.eq("problemSourcesCode", ProblemSourcesEnum.XCDC.getValue());
changedQueryWrapper.eq("isRectifyCode", 1);
Long supervisionNotifyChangedTotal = negativeMapper.selectCount(changedQueryWrapper); // 已整改问题数
QueryWrapper<Negative> orgQueryWrapper = new QueryWrapper<>();
orgQueryWrapper.between("crtTime", beginTime, endTime);
orgQueryWrapper.eq("problemSourcesCode", ProblemSourcesEnum.XCDC.getValue());
orgQueryWrapper.select("distinct involveDepartId");
Long supervisionNotifyOrgTotal = negativeMapper.selectCount(orgQueryWrapper); // 涉及单位数
/**
* 涉及人数
* 1查出在 negative中的id集合
* 2查出集合在blame中的涉及人数
*/
QueryWrapper<Negative> preQueryWrapper = new QueryWrapper<>();
preQueryWrapper.eq("problemSourcesCode", ProblemSourcesEnum.XCDC.getValue());
ArrayList<Negative> negatives = (ArrayList<Negative>) negativeMapper.selectList(preQueryWrapper);
Long supervisionNotifyPreTotal = 0L;
for (Negative negative : negatives) {
String id = negative.getId();
QueryWrapper<NegativeBlame> totalWrapper = new QueryWrapper<>();
totalWrapper.eq("negativeId", id);
supervisionNotifyPreTotal += negativeBlameMapper.selectCount(totalWrapper);
}
double correctionRate = supervisionNotifyTotal != 0 ? (supervisionNotifyChangedTotal * 1.0 / supervisionNotifyTotal) * 100 : 0; // 整改率
JSONObject jsonObject = new JSONObject();
jsonObject.fluentPut("supervisionNotifyTotal", supervisionNotifyTotal)
.fluentPut("supervisionNotifyOrgTotal", supervisionNotifyOrgTotal)
.fluentPut("supervisionNotifyPreTotal", supervisionNotifyPreTotal)
// .fluentPut("supervisionNotifyChangingTotal", supervisionNotifyChangingTotal)
.fluentPut("supervisionNotifyChangedTotal", supervisionNotifyChangedTotal)
.fluentPut("correctionRate", correctionRate);
return jsonObject;
}
public List<RankVo> getChangedRank(Integer groupType, Date beginTime, Date endTime) {
// List<RankVo> changedList = negativeMapper.rank(groupType, beginTime, endTime);
// 计算整改率
// return changedList;
return null;
}
private JSONObject getJsonObject(Date beginTime, Date endTime) {
// 通报问题数
QueryWrapper<DataSupervisionNotify> queryWrapper = new QueryWrapper<>();
queryWrapper.between("dis_date", beginTime, endTime);
queryWrapper.select("distinct tb_name");
Long supervisionNotifyTotal = dataSupervisionNotifyMapper.selectCount(queryWrapper);
// 涉及单位数
QueryWrapper<DataSupervisionNotify> orgQueryWrapper = new QueryWrapper<>();
orgQueryWrapper.between("dis_date", beginTime, endTime);
orgQueryWrapper.select("distinct th_org_name");
Long supervisionNotifyOrgTotal = dataSupervisionNotifyMapper.selectCount(orgQueryWrapper);
// 涉及人数
QueryWrapper<DataSupervisionNotify> preQueryWrapper = new QueryWrapper<>();
preQueryWrapper.between("dis_date", beginTime, endTime);
preQueryWrapper.select("distinct pro_person_name");
Long supervisionNotifyPreTotal = dataSupervisionNotifyMapper.selectCount(preQueryWrapper);
// 整改中
QueryWrapper<DataSupervisionNotify> changingQueryWrapper = new QueryWrapper<>();
changingQueryWrapper.between("dis_date", beginTime, endTime);
changingQueryWrapper.isNull("rep_content");
Long supervisionNotifyChangingTotal = dataSupervisionNotifyMapper.selectCount(changingQueryWrapper);
// 已整改
QueryWrapper<DataSupervisionNotify> changedQueryWrapper = new QueryWrapper<>();
changedQueryWrapper.between("dis_date", beginTime, endTime);
changedQueryWrapper.isNotNull("rep_content");
Long supervisionNotifyChangedTotal = dataSupervisionNotifyMapper.selectCount(changedQueryWrapper);
// 整改率
long count = this.count(); // 库里面总数
double correctionRate = count != 0 ? (supervisionNotifyChangedTotal * 1.0 / count) * 100 : 0;
JSONObject jsonObject = new JSONObject();
jsonObject.fluentPut("supervisionNotifyTotal", supervisionNotifyTotal)
.fluentPut("supervisionNotifyOrgTotal", supervisionNotifyOrgTotal)
.fluentPut("supervisionNotifyPreTotal", supervisionNotifyPreTotal)
.fluentPut("supervisionNotifyChangingTotal", supervisionNotifyChangingTotal)
.fluentPut("supervisionNotifyChangedTotal", supervisionNotifyChangedTotal)
.fluentPut("correctionRate", correctionRate);
return jsonObject;
}
}

12
src/main/java/com/biutag/supervision/service/NegativeService.java

@ -166,18 +166,18 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
BeanUtil.copyProperties(negativeDto, negative); BeanUtil.copyProperties(negativeDto, negative);
if (StrUtil.isBlank(negativeDto.getOriginId())) { if (StrUtil.isBlank(negativeDto.getOriginId())) {
String originId = generateOriginId(negativeDto.getProblemSourcesCode(), negativeDto.getBusinessTypeCode()); String originId = generateOriginId(negativeDto.getProblemSourcesCode(), negativeDto.getBusinessTypeCode());
negative.setOriginId(originId); negative.setOriginId(originId); // 如果是空就生成随机的线索源
} }
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
negative.setId(IdUtil.getSnowflakeNextIdStr()) negative.setId(IdUtil.getSnowflakeNextIdStr()) // negative唯一标识 雪花
.setProcessingStatus(ProcessingStatusEnum.signing.name()) .setProcessingStatus(ProcessingStatusEnum.signing.name())
.setFlowKey(FlowNodeEnum.FIRST_DISTRIBUTE.getKey()) .setFlowKey(FlowNodeEnum.FIRST_DISTRIBUTE.getKey()) // 市局下发
.setCrtTime(now) .setCrtTime(now)
.setUpdTime(now); .setUpdTime(now);
if (Objects.nonNull(negativeDto.getInvolveProblem())) { if (Objects.nonNull(negativeDto.getInvolveProblem())) {
negative.setInvolveProblem(JSON.toJSONString(negativeDto.getInvolveProblem())); negative.setInvolveProblem(JSON.toJSONString(negativeDto.getInvolveProblem()));
} }
save(negative); save(negative); // 添加一条 negative 数据
negativeDto.setId(negative.getId()); negativeDto.setId(negative.getId());
if (!negativeDto.getThingFiles().isEmpty()) { if (!negativeDto.getThingFiles().isEmpty()) {
List<NegativeThingFile> files = negativeDto.getThingFiles().stream().map(item -> { List<NegativeThingFile> files = negativeDto.getThingFiles().stream().map(item -> {
@ -199,7 +199,7 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
.setProblemSourcesCode(negative.getProblemSourcesCode()) .setProblemSourcesCode(negative.getProblemSourcesCode())
.setUpdateTime(now) .setUpdateTime(now)
.setCreateTime(now); .setCreateTime(now);
workService.save(work); workService.save(work); // 添加一条 negative_work 数据 工作状态
// 下发 // 下发
FirstDistributeData firstDistributeData = new FirstDistributeData(); FirstDistributeData firstDistributeData = new FirstDistributeData();
@ -211,7 +211,7 @@ public class NegativeService extends ServiceImpl<NegativeMapper, Negative> {
.setWorkId(work.getId()) .setWorkId(work.getId())
.setNextFlowKey(FlowNodeEnum.SECOND_SIGN.getKey()) .setNextFlowKey(FlowNodeEnum.SECOND_SIGN.getKey())
.setData(firstDistributeData); .setData(firstDistributeData);
SpringUtil.getBean(FlowService.class).execute(actionDto); SpringUtil.getBean(FlowService.class).execute(actionDto); // 创建一条历史数据
return true; return true;
} }

1
src/main/resources/application-dev.yml

@ -63,3 +63,4 @@ springdoc:
paths-to-match: paths-to-match:
- '/api/plugin/**' - '/api/plugin/**'
- '/login' - '/login'
- '/**'

Loading…
Cancel
Save