Commit eb6c0ce2 authored by eddie.woo's avatar eddie.woo

1.机构权限bug;2.BS、PL预览bug

parent 35a53741
...@@ -95,7 +95,7 @@ public class OrganizationController { ...@@ -95,7 +95,7 @@ public class OrganizationController {
public @ResponseBody public @ResponseBody
List<OrgSelectDto> getOrgSimpleList() { List<OrgSelectDto> getOrgSimpleList() {
logger.info("GET /api/v1/org/getOrgListByUserId"); logger.info("GET /api/v1/org/getOrgListByUserId");
return organizationService.getOrgSimpleList(); return organizationService.getMyOrgList();
} }
// @ApiOperation(value = "纳税人识别号唯一性验证") // @ApiOperation(value = "纳税人识别号唯一性验证")
......
...@@ -27,6 +27,7 @@ import javax.servlet.http.HttpServletResponse; ...@@ -27,6 +27,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.OutputStream; import java.io.OutputStream;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
/** /**
* @Auther: Gary J Li * @Auther: Gary J Li
...@@ -98,7 +99,7 @@ public class DataPreviewSerivceImpl extends BaseService { ...@@ -98,7 +99,7 @@ public class DataPreviewSerivceImpl extends BaseService {
ProfitLossStatementCondition condition = beanUtil.copyProperties(param, new ProfitLossStatementCondition()); ProfitLossStatementCondition condition = beanUtil.copyProperties(param, new ProfitLossStatementCondition());
Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize()); Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize());
List<ProfitLossStatement> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition); List<ProfitLossStatementPrc> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition);
List<ProfitLossStatementDto> profitLossDtos = Lists.newArrayList(); List<ProfitLossStatementDto> profitLossDtos = Lists.newArrayList();
profitLossStatements.forEach(pl -> { profitLossStatements.forEach(pl -> {
...@@ -196,10 +197,10 @@ public class DataPreviewSerivceImpl extends BaseService { ...@@ -196,10 +197,10 @@ public class DataPreviewSerivceImpl extends BaseService {
BalanceSheetCondition condition = beanUtil.copyProperties(param, new BalanceSheetCondition()); BalanceSheetCondition condition = beanUtil.copyProperties(param, new BalanceSheetCondition());
Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize()); Page page = PageHelper.startPage(condition.getPageInfo().getPageIndex(), condition.getPageInfo().getPageSize());
List<BalanceSheet> balanceSheets = balanceSheetPrcMapper.selectByCondition(condition); List<BalanceSheetPrc> bsPrcList = balanceSheetPrcMapper.selectByCondition(condition);
List<BalanceSheetDto> balanceSheetDtos = Lists.newArrayList(); List<BalanceSheetDto> balanceSheetDtos = Lists.newArrayList();
balanceSheets.forEach(bs -> { bsPrcList.forEach(bs -> {
BalanceSheetDto balanceSheetDto = new BalanceSheetDto(); BalanceSheetDto balanceSheetDto = new BalanceSheetDto();
beanUtil.copyProperties(bs, balanceSheetDto); beanUtil.copyProperties(bs, balanceSheetDto);
balanceSheetDtos.add(balanceSheetDto); balanceSheetDtos.add(balanceSheetDto);
...@@ -343,7 +344,7 @@ public class DataPreviewSerivceImpl extends BaseService { ...@@ -343,7 +344,7 @@ public class DataPreviewSerivceImpl extends BaseService {
ProfitLossStatementCondition condition = new ProfitLossStatementCondition(); ProfitLossStatementCondition condition = new ProfitLossStatementCondition();
beanUtil.copyProperties(param, condition); beanUtil.copyProperties(param, condition);
List<ProfitLossStatement> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition); List<ProfitLossStatementPrc> profitLossStatements = profitLossStatementPrcMapper.selectByCondition(condition);
Map<String, String> header = generalPLHeader(); Map<String, String> header = generalPLHeader();
List<ProfitLossStatementExportDto> cellList = new ArrayList<>(); List<ProfitLossStatementExportDto> cellList = new ArrayList<>();
profitLossStatements.forEach(pl -> { profitLossStatements.forEach(pl -> {
...@@ -384,7 +385,7 @@ public class DataPreviewSerivceImpl extends BaseService { ...@@ -384,7 +385,7 @@ public class DataPreviewSerivceImpl extends BaseService {
try { try {
BalanceSheetCondition condition = new BalanceSheetCondition(); BalanceSheetCondition condition = new BalanceSheetCondition();
beanUtil.copyProperties(param, condition); beanUtil.copyProperties(param, condition);
List<BalanceSheet> balanceSheets = balanceSheetPrcMapper.selectByCondition(condition); List<BalanceSheetPrc> balanceSheets = balanceSheetPrcMapper.selectByCondition(condition);
Map<String, String> header = generalBSHeader(); Map<String, String> header = generalBSHeader();
List<BalanceSheetExportDto> cellList = new ArrayList<>(); List<BalanceSheetExportDto> cellList = new ArrayList<>();
balanceSheets.forEach(bs -> { balanceSheets.forEach(bs -> {
......
...@@ -108,7 +108,7 @@ public interface BalanceSheetPrcMapper extends MyVatMapper { ...@@ -108,7 +108,7 @@ public interface BalanceSheetPrcMapper extends MyVatMapper {
*/ */
int updateByPrimaryKey(BalanceSheetPrc record); int updateByPrimaryKey(BalanceSheetPrc record);
List<BalanceSheet> selectByCondition(@Param("bsCondition") BalanceSheetCondition condition); List<BalanceSheetPrc> selectByCondition(@Param("bsCondition") BalanceSheetCondition condition);
int insertBatch(List<BalanceSheet> bls); int insertBatch(List<BalanceSheet> bls);
} }
\ No newline at end of file
...@@ -108,7 +108,7 @@ public interface ProfitLossStatementPrcMapper extends MyVatMapper { ...@@ -108,7 +108,7 @@ public interface ProfitLossStatementPrcMapper extends MyVatMapper {
*/ */
int updateByPrimaryKey(ProfitLossStatementPrc record); int updateByPrimaryKey(ProfitLossStatementPrc record);
List<ProfitLossStatement> selectByCondition(@Param("plCondition") ProfitLossStatementCondition condition); List<ProfitLossStatementPrc> selectByCondition(@Param("plCondition") ProfitLossStatementCondition condition);
int insertBatch(List<ProfitLossStatement> pls); int insertBatch(List<ProfitLossStatement> pls);
} }
\ No newline at end of file
...@@ -2973,13 +2973,14 @@ ...@@ -2973,13 +2973,14 @@
// } // }
// }); // });
if ($scope.templateCode === 'BS001' || $scope.templateCode === 'PL001') { // if ($scope.templateCode === 'BS001' || $scope.templateCode === 'PL001') {
//show cell detail panel // //show cell detail panel
$scope.isBSPL = true; // $scope.isBSPL = true;
$scope.moduleid = enums.vatModuleEnum.Report_BSPL; // $scope.moduleid = enums.vatModuleEnum.Report_BSPL;
} else { // } else {
$scope.isBSPL = false; // $scope.isBSPL = false;
} // }
$scope.isBSPL = false;
//load cell data //load cell data
loadCellData(getActualPeriod()); loadCellData(getActualPeriod());
......
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