Commit d16cb20f authored by neo's avatar neo

[bugfix] fixed some bugs

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