Commit 8d2b4f76 authored by gary's avatar gary

1、数据校验日志

parent d4cf5f97
...@@ -219,11 +219,11 @@ public class DataImportController extends BaseController { ...@@ -219,11 +219,11 @@ public class DataImportController extends BaseController {
return new CamelPagingResultDto<>(dataImportService.displayImportLog(param)); return new CamelPagingResultDto<>(dataImportService.displayImportLog(param));
} }
/* @ResponseBody @ResponseBody
@RequestMapping(value = "displayProcessLog", method = RequestMethod.POST) @RequestMapping(value = "displayProcessLog", method = RequestMethod.POST)
public CamelPagingResultDto<DataProcessLogDto> displayProcessLog(@RequestBody DataProcessParam param) { public CamelPagingResultDto<DataValidateLogDto> displayProcessLog(@RequestBody DataProcessParam param) {
return new CamelPagingResultDto<>(dataImportService.displayProcessLog(param)); return new CamelPagingResultDto<>(dataImportService.displayProcessLog(param));
}*/ }
@ResponseBody @ResponseBody
@RequestMapping(value = "callExtractFinancialData", method = RequestMethod.POST) @RequestMapping(value = "callExtractFinancialData", method = RequestMethod.POST)
......
...@@ -23,8 +23,10 @@ import pwc.taxtech.atms.dao.*; ...@@ -23,8 +23,10 @@ import pwc.taxtech.atms.dao.*;
import pwc.taxtech.atms.dpo.OrgSelectDto; import pwc.taxtech.atms.dpo.OrgSelectDto;
import pwc.taxtech.atms.dto.DataExtractParam; import pwc.taxtech.atms.dto.DataExtractParam;
import pwc.taxtech.atms.dto.DataImportLogDto; import pwc.taxtech.atms.dto.DataImportLogDto;
import pwc.taxtech.atms.dto.DataValidateLogDto;
import pwc.taxtech.atms.dto.OperationResultDto; import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.dataimport.DataImportParam; import pwc.taxtech.atms.dto.dataimport.DataImportParam;
import pwc.taxtech.atms.dto.dataimport.DataProcessParam;
import pwc.taxtech.atms.dto.vatdto.TrialBalanceDto; import pwc.taxtech.atms.dto.vatdto.TrialBalanceDto;
import pwc.taxtech.atms.dto.vatdto.TrialBalanceParam; import pwc.taxtech.atms.dto.vatdto.TrialBalanceParam;
import pwc.taxtech.atms.entity.*; import pwc.taxtech.atms.entity.*;
...@@ -55,6 +57,8 @@ public class DataImportService extends BaseService { ...@@ -55,6 +57,8 @@ public class DataImportService extends BaseService {
@Resource @Resource
private DataImportLogMapper dataImportLogMapper; private DataImportLogMapper dataImportLogMapper;
@Resource @Resource
private DataValidateLogMapper dataValidateLogMapper;
@Resource
private ProfitLossStatementMapper profitLossStatementMapper; private ProfitLossStatementMapper profitLossStatementMapper;
@Resource @Resource
private BalanceSheetManualMapper balanceSheetManualMapper; private BalanceSheetManualMapper balanceSheetManualMapper;
...@@ -1628,7 +1632,6 @@ public class DataImportService extends BaseService { ...@@ -1628,7 +1632,6 @@ public class DataImportService extends BaseService {
return res; return res;
} }
/** /**
* 25/02/2019 18:52 * 25/02/2019 18:52
* *
...@@ -1662,6 +1665,35 @@ public class DataImportService extends BaseService { ...@@ -1662,6 +1665,35 @@ public class DataImportService extends BaseService {
return pageInfo; return pageInfo;
} }
/**
* 25/02/2019 18:52
*
* [type]
* @author Gary J Li
* @return
*
*/
public PageInfo<DataValidateLogDto> displayProcessLog(DataProcessParam param) {
DataValidateLogExample example = new DataValidateLogExample();
DataValidateLogExample.Criteria criteria =example.createCriteria();
Page page = PageHelper.startPage(param.getPageInfo().getPageIndex(), param.getPageInfo().getPageSize());
List<String> orgIds = organizationService.getMyOrgList().stream().map(OrgSelectDto::getId).collect(Collectors.toList());
// 这里会导致任何人都可以看到未映射到主体的数据
orgIds.add("");
criteria.andOrganizationIdIn(orgIds);
example.setOrderByClause("update_time desc");
PageInfo<DataValidateLogDto> pageInfo = new PageInfo<>(dataValidateLogMapper.selectByExample(example).stream()
.map(o -> beanUtil.copyProperties(o, new DataValidateLogDto())).collect(Collectors.toList()));
pageInfo.setTotal(page.getTotal());
return pageInfo;
}
public OperationResultDto callExtractFinancialData(DataExtractParam dataExtractParam) { public OperationResultDto callExtractFinancialData(DataExtractParam dataExtractParam) {
// todo 调用滴滴的http财务数据抽取调用接口 List<String> codes, Integer period, List<Integer> dataTypes // todo 调用滴滴的http财务数据抽取调用接口 List<String> codes, Integer period, List<Integer> dataTypes
OrganizationExample example = new OrganizationExample(); OrganizationExample example = new OrganizationExample();
......
package pwc.taxtech.atms.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.entity.DataValidateLog;
import pwc.taxtech.atms.entity.DataValidateLogExample;
@Mapper
public interface DataValidateLogMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
long countByExample(DataValidateLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int deleteByExample(DataValidateLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int insert(DataValidateLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int insertSelective(DataValidateLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
List<DataValidateLog> selectByExampleWithRowbounds(DataValidateLogExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
List<DataValidateLog> selectByExample(DataValidateLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
DataValidateLog selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") DataValidateLog record, @Param("example") DataValidateLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int updateByExample(@Param("record") DataValidateLog record, @Param("example") DataValidateLogExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(DataValidateLog record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table data_validate_log
*
* @mbg.generated
*/
int updateByPrimaryKey(DataValidateLog record);
}
\ No newline at end of file
...@@ -80,9 +80,6 @@ webservices.factory('dataProcessService', ['$log', 'vatReportService', function ...@@ -80,9 +80,6 @@ webservices.factory('dataProcessService', ['$log', 'vatReportService', function
_status = status; _status = status;
_cb = cb; _cb = cb;
setTimeout(heartBeat, timeInterval); setTimeout(heartBeat, timeInterval);
},
displayProcessLog: function (queryParams) {
return $http.post('/DataImport/displayProcessLog', queryParams, apiConfig.create());
} }
}; };
......
...@@ -402,6 +402,9 @@ ...@@ -402,6 +402,9 @@
displayImportLog: function (pageInfo, type) { displayImportLog: function (pageInfo, type) {
return $http.post('/DataImport/displayImportLog', {pageInfo: pageInfo, type: type}, apiConfig.create()); return $http.post('/DataImport/displayImportLog', {pageInfo: pageInfo, type: type}, apiConfig.create());
},
displayProcessLog: function (queryParams) {
return $http.post('/DataImport/displayProcessLog', queryParams, apiConfig.create());
} }
/***************************************批量数据导入服务(真) end**************************************************************/ /***************************************批量数据导入服务(真) end**************************************************************/
......
...@@ -63,49 +63,50 @@ ...@@ -63,49 +63,50 @@
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: $translate.instant('id') caption: $translate.instant('id')
}, { }, {
dataField: "taxpayerIdNum", dataField: "companyCode",
width: '15%', width: '15%',
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: $translate.instant('CompanyCode') caption: $translate.instant('CompanyCode')
}, { }, {
dataField: "companyCode", dataField: "companyName",
allowHeaderFiltering: false, allowHeaderFiltering: false,
caption: $translate.instant('CompanyName'), caption: $translate.instant('CompanyName'),
width: '15%' width: '14%'
}, { }, {
dataField: "companyName", dataField: "tmsPeriod",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '8%',
caption: $translate.instant('YearPeriod') caption: $translate.instant('TMSPeriod')
}, { }, {
dataField: "periodYear", dataField: "period",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '5%', width: '8%',
caption: $translate.instant('Period') caption: $translate.instant('Period')
}, { }, {
dataField: "periodMonth", dataField: "validateContent",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '15%',
caption: $translate.instant('ValidateContent') caption: $translate.instant('ValidateContent')
}, { }, {
dataField: "periodMonth", dataField: "validateResult",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '5%', width: '10%',
caption: $translate.instant('ValidateResult') caption: $translate.instant('ValidateResult')
}, { }, {
dataField: "recordSize", dataField: "result",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', width: '15%',
caption: $translate.instant('ResultMsg') caption: $translate.instant('ResultMsg')
}, { }, {
dataField: "errorMsg", dataField: "validateUser",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '10%', width: '10%',
caption: $translate.instant('Operater') caption: $translate.instant('Operater')
}, { }, {
dataField: "errorMsg", dataField: "createTime",
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '15%', dataType : "date",
width: '10%',
caption: $translate.instant('OperateTime') caption: $translate.instant('OperateTime')
} }
], ],
...@@ -142,7 +143,7 @@ ...@@ -142,7 +143,7 @@
} }
} }
}; };
// getProcessLog(); getProcessLog();
}; };
var getProcessLog = function () { var getProcessLog = function () {
......
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