fix: @RequiredArgsConstructor -> @Autowired
This commit is contained in:
+11
-8
@@ -16,11 +16,11 @@ import com.jero.modules.activiti.process.common.service.ProcessSnapshotService;
|
||||
import com.jero.modules.activiti.process.standardinterpret.vo.FlowApproveInfo;
|
||||
import com.jero.modules.activiti.service.ProcessAllService;
|
||||
import com.jero.modules.activiti.service.ProcessApprovalRecordService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.activiti.engine.runtime.ProcessInstance;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -34,16 +34,19 @@ import java.util.stream.Collectors;
|
||||
* @Date: 2024-06-24 16:08
|
||||
* @Version: 1.0
|
||||
**/
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(rollbackFor = {Exception.class, JeroBootException.class})
|
||||
@Component
|
||||
public class FlowUtility {
|
||||
|
||||
private final ProcessAllService processAllService;
|
||||
private final ProcessApprovalRecordService processApprovalRecordService;
|
||||
private final ProcessDraftService processDraftService;
|
||||
private final RuntimeService runtimeService;
|
||||
private final ProcessSnapshotService processSnapshotService;
|
||||
@Autowired
|
||||
private ProcessAllService processAllService;
|
||||
@Autowired
|
||||
private ProcessApprovalRecordService processApprovalRecordService;
|
||||
@Autowired
|
||||
private ProcessDraftService processDraftService;
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
@Autowired
|
||||
private ProcessSnapshotService processSnapshotService;
|
||||
|
||||
public void flowApprovalUpdate(ProcessAll processAll, ProcessApprovalRecord processApprovalRecord){
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ package com.jero.modules.activiti.process.standardinterpret.controller;
|
||||
|
||||
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretClauseService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
@@ -12,9 +12,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* @since 2024-06-24 14:46:05
|
||||
*/
|
||||
@RestController("/processStandardInterpretClause")
|
||||
@RequiredArgsConstructor
|
||||
public class ProcessStandardInterpretClauseController {
|
||||
|
||||
private final ProcessStandardInterpretClauseService processStandardInterpretClauseService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseService processStandardInterpretClauseService;
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ package com.jero.modules.activiti.process.standardinterpret.controller;
|
||||
|
||||
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretClauseSublistService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
@@ -12,10 +12,10 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* @since 2024-06-24 14:47:59
|
||||
*/
|
||||
@RestController("/processStandardInterpretClauseSublist")
|
||||
@RequiredArgsConstructor
|
||||
public class ProcessStandardInterpretClauseSublistController {
|
||||
|
||||
private final ProcessStandardInterpretClauseSublistService processStandardInterpretClauseSublistService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseSublistService processStandardInterpretClauseSublistService;
|
||||
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@ package com.jero.modules.activiti.process.standardinterpret.controller;
|
||||
|
||||
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
@@ -11,11 +11,11 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
* @author makejava
|
||||
* @since 2024-06-24 14:41:16
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@RestController("/processStandardInterpret")
|
||||
public class ProcessStandardInterpretController {
|
||||
|
||||
private final ProcessStandardInterpretService processStandardInterpretService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretService processStandardInterpretService;
|
||||
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -18,9 +18,9 @@ import com.jero.modules.activiti.process.standardinterpret.vo.StandardInterpretF
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
@@ -37,12 +37,12 @@ import java.util.List;
|
||||
**/
|
||||
@Api(tags="标准解读流程")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("/process/standardInterpretFlow")
|
||||
public class StandardInterpretFlowController {
|
||||
|
||||
private final StandardInterpretFlowService standardInterpretFlowService;
|
||||
@Autowired
|
||||
private StandardInterpretFlowService standardInterpretFlowService;
|
||||
|
||||
/**
|
||||
* 标准解读流程-生成项目id
|
||||
|
||||
+3
-3
@@ -6,9 +6,9 @@ import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.modules.activiti.process.standardinterpret.entity.ProcessStandardInterpretClause;
|
||||
import com.jero.modules.activiti.process.standardinterpret.mapper.ProcessStandardInterpretClauseMapper;
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretClauseService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -22,13 +22,13 @@ import java.util.List;
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(rollbackFor = {Exception.class, JeroBootException.class})
|
||||
public class ProcessStandardInterpretClauseServiceImpl
|
||||
extends ServiceImpl<ProcessStandardInterpretClauseMapper, ProcessStandardInterpretClause>
|
||||
implements ProcessStandardInterpretClauseService {
|
||||
|
||||
private final ProcessStandardInterpretClauseMapper processStandardInterpretClauseMapper;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseMapper processStandardInterpretClauseMapper;
|
||||
|
||||
@Override
|
||||
public List<ProcessStandardInterpretClause> queryList(
|
||||
|
||||
+3
-3
@@ -7,8 +7,8 @@ import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.modules.activiti.process.standardinterpret.entity.ProcessStandardInterpretClauseSublist;
|
||||
import com.jero.modules.activiti.process.standardinterpret.mapper.ProcessStandardInterpretClauseSublistMapper;
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretClauseSublistService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -21,13 +21,13 @@ import java.util.List;
|
||||
* @since 2024-06-24 14:48:00
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(rollbackFor = {Exception.class, JeroBootException.class})
|
||||
public class ProcessStandardInterpretClauseSublistServiceImpl
|
||||
extends ServiceImpl<ProcessStandardInterpretClauseSublistMapper, ProcessStandardInterpretClauseSublist>
|
||||
implements ProcessStandardInterpretClauseSublistService {
|
||||
|
||||
private final ProcessStandardInterpretClauseSublistMapper processStandardInterpretClauseSublistMapper;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseSublistMapper processStandardInterpretClauseSublistMapper;
|
||||
|
||||
@Override
|
||||
public List<ProcessStandardInterpretClauseSublist> queryList(
|
||||
|
||||
+4
-4
@@ -4,10 +4,10 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.constant.CommonConstant;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.modules.activiti.process.standardinterpret.mapper.ProcessStandardInterpretMapper;
|
||||
import com.jero.modules.activiti.process.standardinterpret.entity.ProcessStandardInterpret;
|
||||
import com.jero.modules.activiti.process.standardinterpret.mapper.ProcessStandardInterpretMapper;
|
||||
import com.jero.modules.activiti.process.standardinterpret.service.ProcessStandardInterpretService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -18,13 +18,13 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* @since 2024-06-24 14:41:19
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(rollbackFor = {Exception.class, JeroBootException.class})
|
||||
public class ProcessStandardInterpretServiceImpl
|
||||
extends ServiceImpl<ProcessStandardInterpretMapper, ProcessStandardInterpret>
|
||||
implements ProcessStandardInterpretService {
|
||||
|
||||
private final ProcessStandardInterpretMapper processStandardInterpretMapper;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretMapper processStandardInterpretMapper;
|
||||
|
||||
@Override
|
||||
public ProcessStandardInterpret queryOne(ProcessStandardInterpret processStandardInterpret) {
|
||||
|
||||
+51
-29
@@ -68,7 +68,6 @@ import com.jero.modules.system.service.ISysDepartService;
|
||||
import com.jero.modules.system.service.ISysDictService;
|
||||
import com.jero.modules.tag.entity.LawsTag;
|
||||
import com.jero.modules.tag.service.ILawsTagService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.activiti.engine.ManagementService;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
@@ -86,12 +85,12 @@ import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.entity.enmus.ExcelType;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import org.springframework.web.servlet.View;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -112,42 +111,65 @@ import java.util.stream.Collectors;
|
||||
**/
|
||||
@Service
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@Transactional(rollbackFor = {Exception.class,JeroBootException.class})
|
||||
public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowService {
|
||||
|
||||
private final FlowUtility flowUtility;
|
||||
private final RuntimeService runtimeService;
|
||||
private final TaskService taskService;
|
||||
private final ProcessAllService processAllService;
|
||||
private final ProcessApprovalRecordService processApprovalRecordService;
|
||||
private final ProcessNodeLinkService processNodeLinkService;
|
||||
private final ProcessStandardInterpretService processStandardInterpretService;
|
||||
private final ProcessStandardInterpretClauseService processStandardInterpretClauseService;
|
||||
private final ProcessStandardInterpretClauseSublistService processStandardInterpretClauseSublistService;
|
||||
private final ILawsDomesticStandardService lawsDomesticStandardService;
|
||||
private final IProcessHandleService processHandleService;
|
||||
private final ISarFileSplitInfoService sarFileSplitInfoService;
|
||||
private final DocumentSplitMapper documentSplitMapper;
|
||||
private final ISysDictService sysDictService;
|
||||
private final ISysDepartService sysDepartService;
|
||||
private final ILawsPartNameService lawsPartNameService;
|
||||
private final ILawsEnterpriseStandardService lawsEnterpriseStandardService;
|
||||
private final LawsDocumentSplitMapper lawsDocumentSplitMapper;
|
||||
private final SarFileSplitItemsValEOMapper sarFileSplitItemsValEOMapper;
|
||||
private final IDocumentSplitService documentSplitService;
|
||||
private final ManagementService managementService;
|
||||
private final ILawsStandardMasterPlanService lawsStandardMasterPlanService;
|
||||
private final ProcessStandardInterpretMapper processStandardInterpretMapper;
|
||||
private final SendMessageAPI sendMessageAPI;
|
||||
private final ILawsTagService lawsTagService;
|
||||
@Autowired
|
||||
private FlowUtility flowUtility;
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
@Autowired
|
||||
private ProcessAllService processAllService;
|
||||
@Autowired
|
||||
private ProcessApprovalRecordService processApprovalRecordService;
|
||||
@Autowired
|
||||
private ProcessNodeLinkService processNodeLinkService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretService processStandardInterpretService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseService processStandardInterpretClauseService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretClauseSublistService processStandardInterpretClauseSublistService;
|
||||
@Autowired
|
||||
private ILawsDomesticStandardService lawsDomesticStandardService;
|
||||
@Autowired
|
||||
private IProcessHandleService processHandleService;
|
||||
@Autowired
|
||||
private ISarFileSplitInfoService sarFileSplitInfoService;
|
||||
@Autowired
|
||||
private DocumentSplitMapper documentSplitMapper;
|
||||
@Autowired
|
||||
private ISysDictService sysDictService;
|
||||
@Autowired
|
||||
private ISysDepartService sysDepartService;
|
||||
@Autowired
|
||||
private ILawsPartNameService lawsPartNameService;
|
||||
@Autowired
|
||||
private ILawsEnterpriseStandardService lawsEnterpriseStandardService;
|
||||
@Autowired
|
||||
private LawsDocumentSplitMapper lawsDocumentSplitMapper;
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEOMapper sarFileSplitItemsValEOMapper;
|
||||
@Autowired
|
||||
private IDocumentSplitService documentSplitService;
|
||||
@Autowired
|
||||
private ManagementService managementService;
|
||||
@Autowired
|
||||
private ILawsStandardMasterPlanService lawsStandardMasterPlanService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretMapper processStandardInterpretMapper;
|
||||
@Autowired
|
||||
private SendMessageAPI sendMessageAPI;
|
||||
@Autowired
|
||||
private ILawsTagService lawsTagService;
|
||||
|
||||
private final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
private final List<String> tempList = new ArrayList<>();
|
||||
private final int TEXT_LENGTH = 50;
|
||||
private final int TEXT_DICT_LENGTH = 500;
|
||||
private final int TEXT_AREA_LENGTH = 2000;
|
||||
private final View error;
|
||||
|
||||
@Override
|
||||
public void flowStart(StandardInterpretFlowDTO standardInterpretFlowDTO) {
|
||||
|
||||
+3
-3
@@ -15,10 +15,10 @@ import com.jero.modules.laws.standardmasterplan.vo.LawsStandardMasterPlanVO;
|
||||
import com.jero.modules.system.vo.IdMapBody;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
@@ -37,10 +37,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("/laws/StandardMasterPlan")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class LawsStandardMasterPlanController {
|
||||
|
||||
private final ILawsStandardMasterPlanService lawsStandardMasterPlanService;
|
||||
@Autowired
|
||||
private ILawsStandardMasterPlanService lawsStandardMasterPlanService;
|
||||
|
||||
/**
|
||||
* 标准主计划-分页列表查询
|
||||
|
||||
-1
@@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@RequestMapping("/laws/StandardMasterPlanSublist")
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class LawsStandardMasterPlanSublistController {
|
||||
|
||||
}
|
||||
|
||||
+27
-15
@@ -43,13 +43,13 @@ import com.jero.modules.oss.service.IOSSFileService;
|
||||
import com.jero.modules.system.entity.SysUser;
|
||||
import com.jero.modules.system.service.ISysDictService;
|
||||
import com.jero.modules.system.service.ISysUserService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecgframework.poi.excel.entity.TemplateExportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgTemplateExcelView;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -71,24 +71,36 @@ import java.util.stream.Collectors;
|
||||
@Service
|
||||
@Transactional(rollbackFor = JeroBootException.class)
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class LawsStandardMasterPlanServiceImpl
|
||||
extends ServiceImpl<LawsStandardMasterPlanMapper, LawsStandardMasterPlan>
|
||||
implements ILawsStandardMasterPlanService {
|
||||
|
||||
private final LawsStandardMasterPlanMapper lawsStandardMasterPlanMapper;
|
||||
private final ILawsStandardMasterPlanSublistService lawsStandardMasterPlanSublistService;
|
||||
private final ILawsDomesticStandardService lawsDomesticStandardService;
|
||||
private final ISysDictService sysDictService;
|
||||
private final ISysUserService sysUserService;
|
||||
private final IOSSFileService ossFileService;
|
||||
private final ILawsMarketStandardService lawsMarketStandardService;
|
||||
private final ILawsMarketStandardDetailService lawsMarketStandardDetailService;
|
||||
private final ILawsConformityAssessmentLibraryService lawsConformityAssessmentLibraryService;
|
||||
private final ILawsEvaluationNotMetLibraryService lawsEvaluationNotMetLibraryService;
|
||||
private final ProcessAllService processAllService;
|
||||
private final ProcessStandardInterpretService processStandardInterpretService;
|
||||
private final IProcessNewStandardImportService processNewStandardImportService;
|
||||
@Autowired
|
||||
private LawsStandardMasterPlanMapper lawsStandardMasterPlanMapper;
|
||||
@Autowired
|
||||
private ILawsStandardMasterPlanSublistService lawsStandardMasterPlanSublistService;
|
||||
@Autowired
|
||||
private ILawsDomesticStandardService lawsDomesticStandardService;
|
||||
@Autowired
|
||||
private ISysDictService sysDictService;
|
||||
@Autowired
|
||||
private ISysUserService sysUserService;
|
||||
@Autowired
|
||||
private IOSSFileService ossFileService;
|
||||
@Autowired
|
||||
private ILawsMarketStandardService lawsMarketStandardService;
|
||||
@Autowired
|
||||
private ILawsMarketStandardDetailService lawsMarketStandardDetailService;
|
||||
@Autowired
|
||||
private ILawsConformityAssessmentLibraryService lawsConformityAssessmentLibraryService;
|
||||
@Autowired
|
||||
private ILawsEvaluationNotMetLibraryService lawsEvaluationNotMetLibraryService;
|
||||
@Autowired
|
||||
private ProcessAllService processAllService;
|
||||
@Autowired
|
||||
private ProcessStandardInterpretService processStandardInterpretService;
|
||||
@Autowired
|
||||
private IProcessNewStandardImportService processNewStandardImportService;
|
||||
|
||||
@Value("${jero.path.exportExcelTempPath}")
|
||||
private String exportExcelTempPath;
|
||||
|
||||
Reference in New Issue
Block a user