Commit 163c68c9 authored by zhkwei's avatar zhkwei

CIT数据处理及查看报表fixbug

parent 566191aa
...@@ -1244,33 +1244,35 @@ public class CitReportServiceImpl extends BaseService { ...@@ -1244,33 +1244,35 @@ public class CitReportServiceImpl extends BaseService {
cellData.setFormulaExp(data.getAmount().toString()); cellData.setFormulaExp(data.getAmount().toString());
} }
cellData.setData(sumValue); cellData.setData(sumValue);
periodCellDataMapper.updateByPrimaryKeySelective(cellData); cellData.setUpdateTime(new Date());
int i = periodCellDataMapper.updateByPrimaryKeySelective(cellData);
/*kevin insert */ // TODO: 3/21/2019 需要验证 /*kevin insert */ // TODO: 3/21/2019 需要验证
// PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample(); if(sumValue !=null){
// PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria(); PeriodCellTemplateConfigExample example = new PeriodCellTemplateConfigExample();
// criteria.andCellTemplateIdEqualTo(Long.parseLong(data.getCellTemplateId())); PeriodCellTemplateConfigExample.Criteria criteria = example.createCriteria();
// criteria.andProjectIdEqualTo(data.getProjectId()); criteria.andCellTemplateIdEqualTo(Long.parseLong(data.getCellTemplateId()));
// PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig(); criteria.andProjectIdEqualTo(data.getProjectId());
// periodCellTemplateConfig.setParsedFormula(sumValue); PeriodCellTemplateConfig periodCellTemplateConfig = new PeriodCellTemplateConfig();
// periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example); periodCellTemplateConfig.setParsedFormula(sumValue);
// //更改选中行相关数据 periodCellTemplateConfigMapper.updateByExampleSelective(periodCellTemplateConfig, example);
// CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust(); //更改选中行相关数据
// citJournalEntryAdjust.setIsSelect("1"); CitJournalEntryAdjust citJournalEntryAdjust = new CitJournalEntryAdjust();
// CitJournalEntryAdjustExample example1 = new CitJournalEntryAdjustExample(); citJournalEntryAdjust.setIsSelect("1");
// CitJournalEntryAdjustExample.Criteria criteria1 = example1.createCriteria(); CitJournalEntryAdjustExample example1 = new CitJournalEntryAdjustExample();
// criteria1.andProjectIdEqualTo(data.getProjectId()); CitJournalEntryAdjustExample.Criteria criteria1 = example1.createCriteria();
// criteria1.andSubjectCodeEqualTo(data.getAccountCode()); criteria1.andProjectIdEqualTo(data.getProjectId());
// citJournalEntryAdjustMapper.updateByExample(citJournalEntryAdjust, example1); criteria1.andSubjectCodeEqualTo(data.getAccountCode());
// citJournalEntryAdjustMapper.updateByExampleSelective(citJournalEntryAdjust, example1);
// JournalEntry journalEntry = new JournalEntry();
// journalEntry.setIsSelect("1"); JournalEntry journalEntry = new JournalEntry();
// JournalEntryExample example2 = new JournalEntryExample(); journalEntry.setIsSelect("1");
// JournalEntryExample.Criteria criteria2 = example2.createCriteria(); JournalEntryExample example2 = new JournalEntryExample();
// criteria2.andProjectIdEqualTo(data.getProjectId()); JournalEntryExample.Criteria criteria2 = example2.createCriteria();
// criteria2.andSegment3EqualTo(data.getAccountCode()); criteria2.andProjectIdEqualTo(data.getProjectId());
// journalEntryMapper.updateByExample(journalEntry, example2); criteria2.andSegment3EqualTo(data.getAccountCode());
journalEntryMapper.updateByExampleSelective(journalEntry, example2);
}
} }
List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId()); List<DataSourceExtendDto> dataSourceExtendDtos = periodDataSourceMapper.getManualDataSource(data.getCellId());
......
...@@ -923,6 +923,9 @@ ...@@ -923,6 +923,9 @@
<if test="record.updateTime != null"> <if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.isSelect != null">
is_select = #{record.isSelect,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
......
...@@ -929,6 +929,9 @@ ...@@ -929,6 +929,9 @@
<if test="record.taskId != null"> <if test="record.taskId != null">
task_id = #{record.taskId,jdbcType=VARCHAR}, task_id = #{record.taskId,jdbcType=VARCHAR},
</if> </if>
<if test="record.isSelect != null">
is_select = #{record.isSelect,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
......
...@@ -897,7 +897,8 @@ ...@@ -897,7 +897,8 @@
}; };
$scope.exportReportTreeOptions = { $scope.exportReportTreeOptions = {
dataSource: [{id: '0', templateId: '0', name: '纳税申报表', items: [], expanded: true}], dataSource: [{id: '0', templateId: '0', name: '纳税申报表', items: [], expanded: true},
{id: '1', templateId: '1', name: '工作底稿', items: [], expanded: true}],
displayExpr: 'name', displayExpr: 'name',
keyExpr: 'id', keyExpr: 'id',
selectionMode: 'Multiple', selectionMode: 'Multiple',
...@@ -916,7 +917,7 @@ ...@@ -916,7 +917,7 @@
$scope.openExportPop = function (evenType) { $scope.openExportPop = function (evenType) {
$scope.evenType = evenType; $scope.evenType = evenType;
var grp = _.find($scope.$parent.$parent.groups, function (g) { var grp = _.find($scope.$parent.$parent.groups, function (g) {
return g.name == 'TaxReturnType' || g.name == 'WorkingPaperType'; return g.name == 'TaxReturnType';
}); });
if (!grp || !grp.children) { if (!grp || !grp.children) {
...@@ -928,6 +929,19 @@ ...@@ -928,6 +929,19 @@
return {id: item.reportId, templateId: item.id, name: item.name, parentId: '0'}; return {id: item.reportId, templateId: item.id, name: item.name, parentId: '0'};
}); });
var grp2 = _.find($scope.$parent.$parent.groups, function (g) {
return g.name == 'WorkingPaperType'
});
if (!grp2 || !grp2.children) {
return;
}
$scope.exportReportTreeOptions.dataSource[1].items = [];
$scope.exportReportTreeOptions.dataSource[1].items = _.map(grp2.children, function (item) {
return {id: item.reportId, templateId: item.id, name: item.name, parentId: '0'};
});
var parentElem = angular.element($('#exportReportFilesContainer')); var parentElem = angular.element($('#exportReportFilesContainer'));
$scope.exportReportInstance = $uibModal.open({ $scope.exportReportInstance = $uibModal.open({
ariaLabelledBy: 'modal-title', ariaLabelledBy: 'modal-title',
...@@ -958,7 +972,7 @@ ...@@ -958,7 +972,7 @@
//批量导出EXCEL //批量导出EXCEL
$scope.export = function () { $scope.export = function () {
debugger;
var grp = _.find($scope.$parent.$parent.groups, function (g) { var grp = _.find($scope.$parent.$parent.groups, function (g) {
return g.name == 'TaxReturnType'; return g.name == 'TaxReturnType';
}); });
...@@ -967,6 +981,14 @@ ...@@ -967,6 +981,14 @@
return; return;
} }
var grp2 = _.find($scope.$parent.$parent.groups, function (g) {
return g.name == 'WorkingPaperType'
});
if (!grp2 || !grp2.children) {
return;
}
if (!$scope.selectedReportIds || $scope.selectedReportIds.length == 0) { if (!$scope.selectedReportIds || $scope.selectedReportIds.length == 0) {
SweetAlert.warning($translate.instant('ExportReportRequiredCheck')); SweetAlert.warning($translate.instant('ExportReportRequiredCheck'));
return; return;
...@@ -978,6 +1000,10 @@ ...@@ -978,6 +1000,10 @@
item.orderIndex = orderIndex; item.orderIndex = orderIndex;
orderIndex++; orderIndex++;
}); });
_.each(grp2.children, function (item) {
item.orderIndex = orderIndex;
orderIndex++;
});
var reportArray = $scope.selectedReportIds; var reportArray = $scope.selectedReportIds;
...@@ -995,9 +1021,12 @@ ...@@ -995,9 +1021,12 @@
angular.forEach(reportArray, function (currentVal) { angular.forEach(reportArray, function (currentVal) {
var node = _.first(_.where(grp.children, {reportId: currentVal})); var node = _.first(_.where(grp.children, {reportId: currentVal}));
if (!node) {
node = _.first(_.where(grp2.children, {reportId: currentVal}));
if (!node) { if (!node) {
return; return;
} }
}
var reportPromiss = citReportService.getReportData(node.reportId).success(function (reportData) { var reportPromiss = citReportService.getReportData(node.reportId).success(function (reportData) {
if (reportData && reportData.data && reportData.data.cellData) { if (reportData && reportData.data && reportData.data.cellData) {
......
...@@ -1442,7 +1442,14 @@ constant.GroupTypeList = [ ...@@ -1442,7 +1442,14 @@ constant.GroupTypeList = [
{code: 4, type: "教育费附加"}, {code: 4, type: "教育费附加"},
{code: 5, type: "地方教育费附加"}, {code: 5, type: "地方教育费附加"},
{code: 6, type: "个人所得税"}, {code: 6, type: "个人所得税"},
{code: 7, type: "国际税"} {code: 7, type: "水利建设基金"},
{code: 8, type: "文化事业建设费"},
{code: 9, type: "房产税"},
{code: 10, type: "城建土地使用税"},
{code: 11, type: "工会经费"},
{code: 12, type: "残疾人就业保障基金"},
{code: 13, type: "代扣代缴税费"},
{code: 14, type: "国际税"}
]; ];
constant.InvoiceTypeList = [ constant.InvoiceTypeList = [
......
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