Commit d16cb20f authored by neo's avatar neo

[bugfix] fixed some bugs

parent 60fc2bda
...@@ -4,7 +4,7 @@ import org.apache.commons.lang3.StringUtils; ...@@ -4,7 +4,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import pwc.taxtech.atms.vat.entity.InputVatInvoice; import pwc.taxtech.atms.vat.entity.InputVatInvoice;
import pwc.taxtech.atms.vat.entity.InputVatTInvoiceExample; import pwc.taxtech.atms.vat.entity.InputVatInvoiceExample;
import java.util.List; import java.util.List;
...@@ -14,9 +14,9 @@ public class InputVatInvoiceDao { ...@@ -14,9 +14,9 @@ public class InputVatInvoiceDao {
InputVatInvoiceMapper inputVATInvoiceMapper; InputVatInvoiceMapper inputVATInvoiceMapper;
public List<InputVatInvoice> getInputVATInvoice(Integer period, Integer invoiceType, String checkPass, String scanPass, String notPass) { public List<InputVatInvoice> getInputVATInvoice(Integer period, Integer invoiceType, String checkPass, String scanPass, String notPass) {
InputVatTInvoiceExample example = new InputVatTInvoiceExample(); InputVatInvoiceExample example = new InputVatInvoiceExample();
InputVatTInvoiceExample.Criteria criteria = example.createCriteria(); InputVatInvoiceExample.Criteria criteria = example.createCriteria();
InputVatTInvoiceExample.Criteria criteria1 = example.createCriteria(); InputVatInvoiceExample.Criteria criteria1 = example.createCriteria();
if (period != null) { if (period != null) {
...@@ -28,11 +28,10 @@ public class InputVatInvoiceDao { ...@@ -28,11 +28,10 @@ public class InputVatInvoiceDao {
criteria1.andInvoiceTypeEqualTo(invoiceType); criteria1.andInvoiceTypeEqualTo(invoiceType);
} }
if(StringUtils.isNotBlank(notPass)){ if (StringUtils.isNotBlank(notPass)) {
criteria.andCertificationResultEqualTo(notPass); criteria.andCertificationResultEqualTo(notPass);
criteria1.andCertificationResultEqualTo(notPass); criteria1.andCertificationResultEqualTo(notPass);
} } else if (StringUtils.isNotBlank(checkPass) && StringUtils.isNotBlank(scanPass)) {
else if(StringUtils.isNotBlank(checkPass)&&StringUtils.isNotBlank(scanPass)){
criteria.andCertificationResultEqualTo(checkPass); criteria.andCertificationResultEqualTo(checkPass);
criteria.andCertificationResultEqualTo(scanPass); criteria.andCertificationResultEqualTo(scanPass);
example.or(criteria1); example.or(criteria1);
......
...@@ -14,7 +14,7 @@ import pwc.taxtech.atms.dto.OperationResultDto; ...@@ -14,7 +14,7 @@ import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.vatdto.InputVATInvoiceDto; import pwc.taxtech.atms.dto.vatdto.InputVATInvoiceDto;
import pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam; import pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam;
import pwc.taxtech.atms.vat.entity.InputVatInvoice; import pwc.taxtech.atms.vat.entity.InputVatInvoice;
import pwc.taxtech.atms.vat.entity.InputVatTInvoiceExample; import pwc.taxtech.atms.vat.entity.InputVatInvoiceExample;
import pwc.taxtech.atms.vat.entity.InputVatInvoiceItem; import pwc.taxtech.atms.vat.entity.InputVatInvoiceItem;
import pwc.taxtech.atms.vat.entity.InputVatInvoiceItemExample; import pwc.taxtech.atms.vat.entity.InputVatInvoiceItemExample;
...@@ -60,7 +60,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService { ...@@ -60,7 +60,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
public List<InputVATInvoiceDto> getInputInvoiceList(Integer period) { public List<InputVATInvoiceDto> getInputInvoiceList(Integer period) {
InputVatTInvoiceExample inputVATInvoiceExample = new InputVatTInvoiceExample(); InputVatInvoiceExample inputVATInvoiceExample = new InputVatInvoiceExample();
inputVATInvoiceExample.createCriteria().andPeriodIdEqualTo(period.intValue()); inputVATInvoiceExample.createCriteria().andPeriodIdEqualTo(period.intValue());
List<InputVatInvoice> inputVatEntity = inputVATInvoiceMapper.selectByExample(inputVATInvoiceExample); List<InputVatInvoice> inputVatEntity = inputVATInvoiceMapper.selectByExample(inputVATInvoiceExample);
inputVatEntity.sort(Comparator.comparing(InputVatInvoice::getInvoiceNumber)); inputVatEntity.sort(Comparator.comparing(InputVatInvoice::getInvoiceNumber));
...@@ -93,7 +93,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService { ...@@ -93,7 +93,7 @@ public class InputInvoiceDataImportServiceImpl extends VatAbstractService {
int period = inputInvoiceItemDtoList.get(0).getPeriodId(); int period = inputInvoiceItemDtoList.get(0).getPeriodId();
inputInvoiceItemDtoList.forEach(item -> { inputInvoiceItemDtoList.forEach(item -> {
//导入之前需要将汇总表的主键更新到明细表中,如果找不到汇总信息,则设置为空 //导入之前需要将汇总表的主键更新到明细表中,如果找不到汇总信息,则设置为空
InputVatTInvoiceExample example = new InputVatTInvoiceExample(); InputVatInvoiceExample example = new InputVatInvoiceExample();
example.createCriteria().andInvoiceCodeEqualTo(item.getInvoiceCode()).andInvoiceNumberEqualTo(item.getInvoiceNumber()); example.createCriteria().andInvoiceCodeEqualTo(item.getInvoiceCode()).andInvoiceNumberEqualTo(item.getInvoiceNumber());
InputVatInvoice invoiceTotal = inputVATInvoiceMapper.selectByExample(example).stream().findFirst().get(); InputVatInvoice invoiceTotal = inputVATInvoiceMapper.selectByExample(example).stream().findFirst().get();
......
...@@ -24,6 +24,8 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto; ...@@ -24,6 +24,8 @@ import pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto;
import pwc.taxtech.atms.dto.vatdto.ReportDataDto; import pwc.taxtech.atms.dto.vatdto.ReportDataDto;
import pwc.taxtech.atms.dto.vatdto.VatEnterpriseAccountResultDto; import pwc.taxtech.atms.dto.vatdto.VatEnterpriseAccountResultDto;
import pwc.taxtech.atms.entity.*; import pwc.taxtech.atms.entity.*;
import pwc.taxtech.atms.entity.EnterpriseAccount;
import pwc.taxtech.atms.entity.EnterpriseAccountExample;
import pwc.taxtech.atms.exception.NotSupportedException; import pwc.taxtech.atms.exception.NotSupportedException;
import pwc.taxtech.atms.service.impl.CellConfigTranslater; import pwc.taxtech.atms.service.impl.CellConfigTranslater;
import pwc.taxtech.atms.vat.dpo.DataSourceCellDataDto; import pwc.taxtech.atms.vat.dpo.DataSourceCellDataDto;
......
...@@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory; ...@@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import pwc.taxtech.atms.common.ftp.FtpService; import pwc.taxtech.atms.common.ftp.FtpService;
import pwc.taxtech.atms.dao.*; import pwc.taxtech.atms.dao.*;
import pwc.taxtech.atms.dao.EnterpriseAccountMapper;
import pwc.taxtech.atms.dao.ProjectDao; import pwc.taxtech.atms.dao.ProjectDao;
import pwc.taxtech.atms.service.impl.DistributedIdService; import pwc.taxtech.atms.service.impl.DistributedIdService;
import pwc.taxtech.atms.vat.dao.*; import pwc.taxtech.atms.vat.dao.*;
......
package pwc.taxtech.atms.dpo; package pwc.taxtech.atms.dpo;
public class AnalyticsModelDetail { public class AnalyticsModelDetail {
private String modelID; private String modelId;
private String code; private String code;
private String name; private String name;
private int type; private int type;
private String industry; private String industry;
private String entityName; private String entityName;
/** /**
* 机构ID * 机构Id
*/ */
private String entityID; private String entityId;
public String getModelID() { public String getModelId() {
return modelID; return modelId;
} }
public void setModelID(String modelID) { public void setModelId(String modelId) {
this.modelID = modelID; this.modelId = modelId;
} }
public String getCode() { public String getCode() {
...@@ -60,11 +60,11 @@ public class AnalyticsModelDetail { ...@@ -60,11 +60,11 @@ public class AnalyticsModelDetail {
this.industry = industry; this.industry = industry;
} }
public String getEntityID() { public String getEntityId() {
return entityID; return entityId;
} }
public void setEntityID(String entityID) { public void setEntityId(String entityId) {
this.entityID = entityID; this.entityId = entityId;
} }
} }
package pwc.taxtech.atms.dpo; package pwc.taxtech.atms.dpo;
public class CellTemplatePerGroupDto { public class CellTemplatePerGroupDto {
private String cellTemplateID ; private String cellTemplateId ;
private String reportTemplateID ; private String reportTemplateId ;
private String reportTemplateGroupID ; private String reportTemplateGroupId ;
private int rowIndex ; private int rowIndex ;
private int columnIndex ; private int columnIndex ;
private String reportCode ; private String reportCode ;
...@@ -11,28 +11,28 @@ public class CellTemplatePerGroupDto { ...@@ -11,28 +11,28 @@ public class CellTemplatePerGroupDto {
private String columnName ; private String columnName ;
private Integer resultType ; private Integer resultType ;
public String getCellTemplateID() { public String getCellTemplateId() {
return cellTemplateID; return cellTemplateId;
} }
public void setCellTemplateID(String cellTemplateID) { public void setCellTemplateId(String cellTemplateId) {
this.cellTemplateID = cellTemplateID; this.cellTemplateId = cellTemplateId;
} }
public String getReportTemplateID() { public String getReportTemplateId() {
return reportTemplateID; return reportTemplateId;
} }
public void setReportTemplateID(String reportTemplateID) { public void setReportTemplateId(String reportTemplateId) {
this.reportTemplateID = reportTemplateID; this.reportTemplateId = reportTemplateId;
} }
public String getReportTemplateGroupID() { public String getReportTemplateGroupId() {
return reportTemplateGroupID; return reportTemplateGroupId;
} }
public void setReportTemplateGroupID(String reportTemplateGroupID) { public void setReportTemplateGroupId(String reportTemplateGroupId) {
this.reportTemplateGroupID = reportTemplateGroupID; this.reportTemplateGroupId = reportTemplateGroupId;
} }
public int getRowIndex() { public int getRowIndex() {
......
...@@ -5,7 +5,7 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -5,7 +5,7 @@ import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper; import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.dpo.CellTemplatePerGroupDto; import pwc.taxtech.atms.dpo.CellTemplatePerGroupDto;
import pwc.taxtech.atms.vat.entity.PeriodTemplate; import pwc.taxtech.atms.vat.entity.PeriodTemplate;
import pwc.taxtech.atms.vat.entity.PeriodTemplateExample; import pwc.taxtech.atms.vat.entity.PeriodTemplateExample;
......
...@@ -7,11 +7,11 @@ import java.util.List; ...@@ -7,11 +7,11 @@ import java.util.List;
public class DataSourceExtendDto extends DataSource { public class DataSourceExtendDto extends DataSource {
private Integer operationType; private Integer operationType;
private Long cellTemplateID; private Long cellTemplateId;
private Long cellDataID; private Long cellDataId;
private List<String> items; private List<String> items;
private DataSource dataSource; private DataSource dataSource;
private Long reportTemplateID; private Long reportTemplateId;
private Integer dataSourceType; private Integer dataSourceType;
public DataSource getDataSource() { public DataSource getDataSource() {
...@@ -28,20 +28,20 @@ public class DataSourceExtendDto extends DataSource { ...@@ -28,20 +28,20 @@ public class DataSourceExtendDto extends DataSource {
this.operationType = operationType; this.operationType = operationType;
} }
public Long getCellTemplateID() { public Long getCellTemplateId() {
return cellTemplateID; return cellTemplateId;
} }
public void setCellTemplateID(Long cellTemplateID) { public void setCellTemplateId(Long cellTemplateId) {
this.cellTemplateID = cellTemplateID; this.cellTemplateId = cellTemplateId;
} }
public Long getCellDataID() { public Long getCellDataId() {
return cellDataID; return cellDataId;
} }
public void setCellDataID(Long cellDataID) { public void setCellDataId(Long cellDataId) {
this.cellDataID = cellDataID; this.cellDataId = cellDataId;
} }
public List<String> getItems() { public List<String> getItems() {
...@@ -56,12 +56,12 @@ public class DataSourceExtendDto extends DataSource { ...@@ -56,12 +56,12 @@ public class DataSourceExtendDto extends DataSource {
this.dataSource = dataSource; this.dataSource = dataSource;
} }
public Long getReportTemplateID() { public Long getReportTemplateId() {
return reportTemplateID; return reportTemplateId;
} }
public void setReportTemplateID(Long reportTemplateID) { public void setReportTemplateId(Long reportTemplateId) {
this.reportTemplateID = reportTemplateID; this.reportTemplateId = reportTemplateId;
} }
public Integer getDataSourceType() { public Integer getDataSourceType() {
......
...@@ -24,7 +24,7 @@ public class TemplateGroup { ...@@ -24,7 +24,7 @@ public class TemplateGroup {
private Long copyFrom; private Long copyFrom;
private Date updateTime; private Date updateTime;
private Date createTime; private Date createTime;
private Integer isSystemType; private Boolean isSystemType;
private String createBy; private String createBy;
private String updateBy; private String updateBy;
...@@ -127,11 +127,11 @@ public class TemplateGroup { ...@@ -127,11 +127,11 @@ public class TemplateGroup {
@Basic @Basic
@Column(name = "IS_SYSTEM_TYPE", nullable = false) @Column(name = "IS_SYSTEM_TYPE", nullable = false)
@ColumnDefault(DEF_DEFAULT_NUMBER) @ColumnDefault(DEF_DEFAULT_NUMBER)
public Integer getIsSystemType() { public Boolean getIsSystemType() {
return isSystemType; return isSystemType;
} }
public void setIsSystemType(Integer isSystemType) { public void setIsSystemType(Boolean isSystemType) {
this.isSystemType = isSystemType; this.isSystemType = isSystemType;
} }
......
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