mitao
2025-03-17 38f1a806a4e1d8e1560f07a5a26b51cf6a4692be
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/ComplaintFlowServiceImpl.java
@@ -37,14 +37,13 @@
    private final UserService userService;
    @Override
    public void createFlow(Long complaintId , Long superiorId, Integer reportType, Integer type, Long userId) {
        String name = getFlowName(reportType, superiorId);
    public void createFlow(ComplaintAuditRecord record, Integer type,Long userId) {
        //获取流程部门名称
        String name = getFlowName(record.getReportType(), record.getSuperiorId());
        ComplaintFlow complaintFlow = new ComplaintFlow();
        complaintFlow.setComplaintId(complaintId);
        complaintFlow.setLevel(reportType);
        complaintFlow.setComplaintId(record.getComplaintId());
        complaintFlow.setLevel(record.getReportType());
        complaintFlow.setName(name);
        complaintFlow.setCreateTime(new Date(System.currentTimeMillis()));
        complaintFlow.setType(type);
@@ -65,7 +64,7 @@
            name = bcRegion.getRegionName();
        } else {
            R<LoginUserInfoVO> userR = userService.getUserInfoByUserId(String.valueOf(superiorId));
            if (R.isOk(userR)) {
            if (!R.isOk(userR)) {
                throw new ServiceException("获取用户信息失败");
            }
            name =  null == userR.getData() ? "" : userR.getData().getNickName();