Commit a7221ed5 authored by neo's avatar neo

[DEV] delete formula agent sycll dependence

parent 63c4e918
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.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import pwc.taxtech.atms.common.datasource.ShardingContextHolder;
import pwc.taxtech.atms.common.util.MyAsserts;
......@@ -15,7 +12,6 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto;
import pwc.taxtech.atms.entitiy.ProjectServiceType;
import pwc.taxtech.atms.entitiy.ProjectServiceTypeExample;
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.FormulaProjectMapper;
import pwc.taxtech.atms.vat.dao.ReportMapper;
......@@ -41,11 +37,6 @@ public class FormulaAgent extends VatAbstractService {
public ReportMapper reportMapper;
@Autowired
public CellDataMapper cellDataMapper;
@Autowired
public DistributedIDService distributedIDService;
@Qualifier("dynamicSqlSessionTemplate")
public SqlSessionTemplate jdbcTemplate;
public List<CellTemplatePerGroupDto> getCellTemplateGroupDto(Long templateGroupId, String projectId) {
ProjectServiceTypeExample pst = new ProjectServiceTypeExample();
......
......@@ -52,6 +52,9 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
@Autowired
private ProjectMapper projectMapper;
@Autowired
private FormulaAgent formulaAgent;
@Override
public String generateData(String projectId, List<Long> templateIds, Boolean ifDeleteManualDataSource,
List<String> exceptCellTemplates, Integer periodParam, String generator) {
......
......@@ -77,8 +77,6 @@ public class VatAbstractService {
@Autowired
public ModifiedReportCellMapper modifiedReportCellMapper;
@Autowired
public FormulaAgent formulaAgent;
@Autowired
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