mitao
2025-03-19 6a2a6d21631737a39c2266612812919310f23967
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java
@@ -42,13 +42,14 @@
    public void createFlow(ComplaintAuditRecord record, Integer type,Long userId) {
        //获取流程部门名称
        String name = getFlowName(record.getReportType(), record.getSuperiorId());
        Integer count = this.lambdaQuery().eq(ComplaintFlow::getComplaintId, record.getComplaintId()).count();
        ComplaintFlow complaintFlow = new ComplaintFlow();
        complaintFlow.setComplaintId(record.getComplaintId());
        complaintFlow.setLevel(record.getReportType());
        complaintFlow.setName(name);
        complaintFlow.setCreateTime(new Date(System.currentTimeMillis()));
        complaintFlow.setType(type);
        complaintFlow.setSort(count + 1);
        save(complaintFlow);
    }