Commit d0455ac6 authored by gary's avatar gary

1、fix bug

parent e2fc00c4
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -406,15 +406,15 @@ public class DataInitTest extends CommonIT { ...@@ -406,15 +406,15 @@ public class DataInitTest extends CommonIT {
*/ */
String input = ""; String input = "";
try { try {
// File targetFile = new File("src/main/resources/orgImport/ddOrgJson.json"); File targetFile = new File("src/main/resources/orgImport/ddOrgJson2.json");
File targetFile = new File("src/main/resources/orgImport/failedJson.json"); // File targetFile = new File("src/main/resources/orgImport/failedJson.json");
input = FileUtils.readFileToString(targetFile, "UTF-8"); input = FileUtils.readFileToString(targetFile, "UTF-8");
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
// DDSyncOrgInfo ddSyncOrgInfo = JSONObject.parseObject(input,DDSyncOrgInfo.class); DDSyncOrgInfo ddSyncOrgInfo = JSONObject.parseObject(input,DDSyncOrgInfo.class);
// List<OrgSyncData> orgSyncDatas = ddSyncOrgInfo.getData(); List<OrgSyncData> orgSyncDatas = ddSyncOrgInfo.getData();
List<OrgSyncData> orgSyncDatas = JSONArray.parseArray(input,OrgSyncData.class); // List<OrgSyncData> orgSyncDatas = JSONArray.parseArray(input,OrgSyncData.class);
orgSyncDatas.forEach(osd -> { orgSyncDatas.forEach(osd -> {
OrganizationExample example = new OrganizationExample(); OrganizationExample example = new OrganizationExample();
example.createCriteria().andNameEqualTo(osd.getNameCN()); example.createCriteria().andNameEqualTo(osd.getNameCN());
...@@ -442,11 +442,6 @@ public class DataInitTest extends CommonIT { ...@@ -442,11 +442,6 @@ public class DataInitTest extends CommonIT {
@Test @Test
public void testOrg(){ public void testOrg(){
/**
* 1、taxPayNums http 滴滴oa接口同步机构的信息
* 2、逐条update,记录更新失败或未更新上的taxPayNum
* 3、失败的再次处理
*/
String input = ""; String input = "";
try { try {
// File targetFile = new File("src/main/resources/orgImport/ddOrgJson.json"); // File targetFile = new File("src/main/resources/orgImport/ddOrgJson.json");
......
...@@ -208,7 +208,7 @@ public class AccountController { ...@@ -208,7 +208,7 @@ public class AccountController {
response.addCookie(ddTicketCookie); response.addCookie(ddTicketCookie);
response.addCookie(ddJumptoCookie); response.addCookie(ddJumptoCookie);
// todo 这里写死为DD的登出地址了 // todo 这里写死为DD的登出地址了
response.sendRedirect(" http://mis.diditaxi.com.cn/auth/ldap/logout?app_id=2500"); response.sendRedirect("http://mis.diditaxi.com.cn/auth/ldap/logout?app_id=2500");
} catch (Exception e) { } catch (Exception e) {
logger.error("登出失败", e); logger.error("登出失败", e);
} }
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
var periodStr = $scope.UploadPeriodTime; var periodStr = $scope.UploadPeriodTime;
dataImportService.callExtractFinancialData($scope.checkedCompanyCodeList,periodStr,$scope.checkedFileCodeList).success(function (data) { dataImportService.callExtractFinancialData($scope.checkedCompanyCodeList,periodStr,$scope.checkedFileCodeList).success(function (data) {
if (data) { if (data) {
getFinancialDataStatus();
} }
}); });
}; };
...@@ -123,11 +123,11 @@ ...@@ -123,11 +123,11 @@
} }
}; };
var loadImportATStatusInfoDatagrid = function () { var loadExtractFinancialInfoDatagrid = function () {
$scope.importATStatusGridOptions = { $scope.extractFinancialGridOptions = {
bindingOptions: { bindingOptions: {
dataSource: 'ImportATStatusGridSource' dataSource: 'extractFinancialGridSource'
}, },
showBorders: true, showBorders: true,
columns: [{ columns: [{
...@@ -221,11 +221,11 @@ ...@@ -221,11 +221,11 @@
}; };
var getFinancialDataStatus = function () { var getFinancialDataStatus = function () {
vatImportService.displayImportLog(constant.importFileType.ExtractFinancialData).success(function (data) { vatImportService.displayImportLog($scope.pagingOptions,constant.importFileType.ExtractFinancialData).success(function (data) {
if (data) { if (data) {
$scope.ImportATStatusGridSource = data; $scope.extractFinancialGridSource = data;
for (var i = 1; i <= $scope.ImportATStatusGridSource.length; i++) { for (var i = 1; i <= $scope.extractFinancialGridSource.length; i++) {
$scope.ImportATStatusGridSource[i - 1].index = i; $scope.extractFinancialGridSource[i - 1].index = i;
} }
} }
}); });
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
checkUserOrganizationPermissionList(); checkUserOrganizationPermissionList();
getUserPermission(); getUserPermission();
initCompanyList(); initCompanyList();
loadImportATStatusInfoDatagrid(); loadExtractFinancialInfoDatagrid();
initDatePicker(); initDatePicker();
$timeout(function () { $timeout(function () {
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importATStatusGridContainer" dx-data-grid="importATStatusGridOptions" <div id="extractFinancialGridContainer" dx-data-grid="extractFinancialGridOptions"
style="margin-top: 30px;"> style="margin-top: 30px;">
</div> </div>
</div> </div>
......
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
} }
} }
.importATStatusGridContainer { .extractFinancialGridContainer {
height: calc(~'100% - 30px'); height: calc(~'100% - 30px');
overflow: hidden; overflow: hidden;
position: absolute; position: absolute;
......
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