Commit a7221ed5 authored by neo's avatar neo

[DEV] delete formula agent sycll dependence

parent 63c4e918
package pwc.taxtech.atms.vat.service.impl; package pwc.taxtech.atms.vat.service.impl;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.datasource.ShardingContextHolder; import pwc.taxtech.atms.common.datasource.ShardingContextHolder;
import pwc.taxtech.atms.common.util.MyAsserts; import pwc.taxtech.atms.common.util.MyAsserts;
...@@ -15,7 +12,6 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto; ...@@ -15,7 +12,6 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto;
import pwc.taxtech.atms.entitiy.ProjectServiceType; import pwc.taxtech.atms.entitiy.ProjectServiceType;
import pwc.taxtech.atms.entitiy.ProjectServiceTypeExample; import pwc.taxtech.atms.entitiy.ProjectServiceTypeExample;
import pwc.taxtech.atms.exception.Exceptions; import pwc.taxtech.atms.exception.Exceptions;
import pwc.taxtech.atms.service.impl.DistributedIDService;
import pwc.taxtech.atms.vat.dao.CellDataMapper; import pwc.taxtech.atms.vat.dao.CellDataMapper;
import pwc.taxtech.atms.vat.dao.FormulaProjectMapper; import pwc.taxtech.atms.vat.dao.FormulaProjectMapper;
import pwc.taxtech.atms.vat.dao.ReportMapper; import pwc.taxtech.atms.vat.dao.ReportMapper;
...@@ -41,11 +37,6 @@ public class FormulaAgent extends VatAbstractService { ...@@ -41,11 +37,6 @@ public class FormulaAgent extends VatAbstractService {
public ReportMapper reportMapper; public ReportMapper reportMapper;
@Autowired @Autowired
public CellDataMapper cellDataMapper; public CellDataMapper cellDataMapper;
@Autowired
public DistributedIDService distributedIDService;
@Qualifier("dynamicSqlSessionTemplate")
public SqlSessionTemplate jdbcTemplate;
public List<CellTemplatePerGroupDto> getCellTemplateGroupDto(Long templateGroupId, String projectId) { public List<CellTemplatePerGroupDto> getCellTemplateGroupDto(Long templateGroupId, String projectId) {
ProjectServiceTypeExample pst = new ProjectServiceTypeExample(); ProjectServiceTypeExample pst = new ProjectServiceTypeExample();
......
...@@ -52,6 +52,9 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen ...@@ -52,6 +52,9 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
@Autowired @Autowired
private ProjectMapper projectMapper; private ProjectMapper projectMapper;
@Autowired
private FormulaAgent formulaAgent;
@Override @Override
public String generateData(String projectId, List<Long> templateIds, Boolean ifDeleteManualDataSource, public String generateData(String projectId, List<Long> templateIds, Boolean ifDeleteManualDataSource,
List<String> exceptCellTemplates, Integer periodParam, String generator) { List<String> exceptCellTemplates, Integer periodParam, String generator) {
......
...@@ -77,8 +77,6 @@ public class VatAbstractService { ...@@ -77,8 +77,6 @@ public class VatAbstractService {
@Autowired @Autowired
public ModifiedReportCellMapper modifiedReportCellMapper; public ModifiedReportCellMapper modifiedReportCellMapper;
@Autowired @Autowired
public FormulaAgent formulaAgent;
@Autowired
public CellCommentMapper cellCommentMapper; public CellCommentMapper cellCommentMapper;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment