Commit fbeb6d31 authored by kevin's avatar kevin

#

parent e1fe75cf
...@@ -26,6 +26,10 @@ import java.util.UUID; ...@@ -26,6 +26,10 @@ import java.util.UUID;
import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT; import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT;
import static javax.servlet.http.HttpServletResponse.SC_OK; import static javax.servlet.http.HttpServletResponse.SC_OK;
/**
* authoer kevin
* version 1.0
*/
@Controller @Controller
@RequestMapping("api/v1/citPreviewDataController") @RequestMapping("api/v1/citPreviewDataController")
public class CitPreviewDataController extends BaseController { public class CitPreviewDataController extends BaseController {
...@@ -45,7 +49,7 @@ public class CitPreviewDataController extends BaseController { ...@@ -45,7 +49,7 @@ public class CitPreviewDataController extends BaseController {
return new CamelPagingResultDto<>(citPreviewDataService.getCitPreviewEamDisposalDataList(citSalaryDataDto)); return new CamelPagingResultDto<>(citPreviewDataService.getCitPreviewEamDisposalDataList(citSalaryDataDto));
} }
@RequestMapping(value = "exportDataEAM/get", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "exportDataEAM", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public void exportDataEAM(@RequestBody CitEAMAssetsDisposal citEAMAssetsDisposal, HttpServletResponse response) { public void exportDataEAM(@RequestBody CitEAMAssetsDisposal citEAMAssetsDisposal, HttpServletResponse response) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd hh:MM:ss"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd hh:MM:ss");
String format = simpleDateFormat.format(new Date()); String format = simpleDateFormat.format(new Date());
......
...@@ -93,6 +93,7 @@ public class CitPreviewDataServiceImpl extends BaseService { ...@@ -93,6 +93,7 @@ public class CitPreviewDataServiceImpl extends BaseService {
ExcelUtil.exportExcel(header, list, response); ExcelUtil.exportExcel(header, list, response);
return list.size(); return list.size();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
logger.error("EAM资产处理金额记录表: %s", e.getMessage()); logger.error("EAM资产处理金额记录表: %s", e.getMessage());
return 0; return 0;
} }
......
...@@ -31,7 +31,7 @@ public class EbsApiServiceImplTest extends CommonIT { ...@@ -31,7 +31,7 @@ public class EbsApiServiceImplTest extends CommonIT {
} }
@Test @Test
public void queryRemoteServerThenUpdateOrg(){ public void queryRemoteServerThenUpdateOrg(){
List<OrganizationQueryDto> items = Lists.newArrayList(); List<OrganizationQueryDto> items = new ArrayList();
for(int i=0;i<2;i++){ for(int i=0;i<2;i++){
OrganizationQueryDto dto = new OrganizationQueryDto(); OrganizationQueryDto dto = new OrganizationQueryDto();
dto.setTaxPayerNumber("sadsafsdf3232"); dto.setTaxPayerNumber("sadsafsdf3232");
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<mapper namespace="pwc.taxtech.atms.dao.CitEAMAssetsDisposalMapper"> <mapper namespace="pwc.taxtech.atms.dao.CitEAMAssetsDisposalMapper">
<sql id="QueryCondition"> <sql id="QueryCondition">
1 = 1 1 = 1
<if test="@com.github.pagehelper.util.StringUtil@isNotEmpty(citEAMAssetsDisposal.orgId)"> <if test="@com.github.pagehelper.util.StringUtil@isNotEmpty(citEAMAssetsDisposal.period)">
AND period= #{citEAMAssetsDisposal.period,jdbcType=VARCHAR} AND period= #{citEAMAssetsDisposal.period,jdbcType=VARCHAR}
</if> </if>
<if test="citEAMAssetsDisposal.periodStart!=null"> <if test="citEAMAssetsDisposal.compensationSaleAmount!=null">
AND compensation_sale_amount &gt;= #{citEAMAssetsDisposal.compensationSaleAmount,jdbcType=INTEGER} AND compensation_sale_amount &gt;= #{citEAMAssetsDisposal.compensationSaleAmount,jdbcType=INTEGER}
</if> </if>
<if test="citEAMAssetsDisposal.periodEnd!=null"> <if test="citEAMAssetsDisposal.assetLabelNumber!=null">
AND asset_label_number &lt;= #{citEAMAssetsDisposal.assetLabelNumber,jdbcType=INTEGER} AND asset_label_number &lt;= #{citEAMAssetsDisposal.assetLabelNumber,jdbcType=INTEGER}
</if> </if>
</sql> </sql>
......
...@@ -57,12 +57,12 @@ ...@@ -57,12 +57,12 @@
function initAssetResultDxGrid() { function initAssetResultDxGrid() {
var dupColumns = [ var dupColumns = [
{ caption: $translate.instant('ImportErrorPopUpNoCol'), dataField: "index", width: 50, allowEditing: false, fixed: true }, { caption: $translate.instant('ImportErrorPopUpNoCol'), dataField: "index", width: 50, allowEditing: false, fixed: true },
{ caption: $translate.instant('period'), dataField: "period", width: 200, allowEditing: false, fixed: true }, { caption: $translate.instant('period'), dataField: "period", width: '15%', allowEditing: false, fixed: true },
{ caption: $translate.instant('source'), dataField: "source", width: 200, allowEditing: false, fixed: true }, { caption: $translate.instant('source'), dataField: "source", width: '15%', allowEditing: false, fixed: true },
{ caption: $translate.instant('assetLabelNumber'), dataField: "assetLabelNumber", width: 200, allowEditing: false, fixed: true }, { caption: $translate.instant('assetLabelNumber'), dataField: "assetLabelNumber", width: '15%', allowEditing: false, fixed: true },
{ caption: $translate.instant('compensationSaleAmount'), dataField: "compensationSaleAmount", width: 200, allowEditing: false, fixed: true }, { caption: $translate.instant('compensationSaleAmount'), dataField: "compensationSaleAmount", width: '15%', allowEditing: false, fixed: true },
{ caption: $translate.instant('createdBy'), dataField: "createBy", width: 200, allowEditing: false, fixed: true }, { caption: $translate.instant('createdBy'), dataField: "createBy", width: '15%', allowEditing: false, fixed: true },
{ caption: $translate.instant('createTime'), dataField: "createTime", width: 200, allowEditing: false, fixed: true } { caption: $translate.instant('createTime'), dataField: "createTime", width: '15%', allowEditing: false, fixed: true }
]; ];
$scope.assetsResultGridOptions = { $scope.assetsResultGridOptions = {
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
return; return;
} }
vatExportService.exportToExcel(data, status, headers, 'EAM资产处置金额记录表.xls'); vatExportService.exportToExcel(data, status, headers, 'EAM资产处置金额记录表.xls');
}).error(function () { }).error(function (error) {
SweetAlert.error($translate.instant('PleaseContactAdministrator')); SweetAlert.error($translate.instant('PleaseContactAdministrator'));
}); });
} }
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
$scope.queryParams.assetLabelNumber = ""; $scope.queryParams.assetLabelNumber = "";
} }
$scope.doSearch = function () { $scope.doSearch = function () {
refreshConfigGrid(); $scope.refreshConfigGrid();
} }
var initListData = function(){ var initListData = function(){
...@@ -182,6 +182,9 @@ ...@@ -182,6 +182,9 @@
totalItems: 0, //总数据 totalItems: 0, //总数据
pageSize: 20, //每页多少条数据 pageSize: 20, //每页多少条数据
}; };
/* $scope.$watch('queryParams.pagingOptions',function (newValue, oldValue) {
$scope.pagingOptions = newValue;
});*/
initAssetResultDxGrid(); initAssetResultDxGrid();
initListData(); initListData();
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div id="gridContainer" dx-data-grid="assetsResultGridOptions"></div> <div id="gridContainer" dx-data-grid="assetsResultGridOptions"></div>
<div class="page-footer"> <div class="page-footer">
<ack-pagination page-options="pagingOptions" <ack-pagination page-options="queryParams.pagingOptions"
refresh-table="refreshConfigGrid()"></ack-pagination> refresh-table="refreshConfigGrid()"></ack-pagination>
</div> </div>
</div> </div>
......
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
<tr> <tr>
<td> <td>
<span translate="period"></span> <span translate="period"></span>
<input class="form-control input-width-middle" type="text" id="segment3" ng-model="queryParams.period" /> <input class="form-control input-width-middle" placeholder="{{'period' | translate}}" type="text" id="segment3" ng-model="queryParams.period" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<span translate="compensationSaleAmount"></span> <span translate="compensationSaleAmount"></span>
<input class="form-control input-width-middle" type="text" id="segment3Name" ng-model="queryParams.compensationSaleAmount" /> <input class="form-control input-width-middle" type="text" placeholder="{{'compensationSaleAmount' | translate}}"id="segment3Name" ng-model="queryParams.compensationSaleAmount" />
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
<span translate="assetLabelNumber"></span> <span translate="assetLabelNumber"></span>
<input class="form-control input-width-middle" type="text" id="segment5" ng-model="queryParams.assetLabelNumber" /> <input class="form-control input-width-middle" type="text" placeholder="{{'assetLabelNumber' | translate}}" id="segment5" ng-model="queryParams.assetLabelNumber" />
</td> </td>
</tr> </tr>
</table> </table>
......
...@@ -358,7 +358,7 @@ webservices.factory('commonWebService', ['$http', 'apiConfig', 'loginContext', ' ...@@ -358,7 +358,7 @@ webservices.factory('commonWebService', ['$http', 'apiConfig', 'loginContext', '
}, },
_index :function (data) { _index :function (data) {
var index = 1; var index = 1;
for(var i of data){ for(var i in data){
i.index = index; i.index = index;
index++; index++;
} }
......
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