Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
fbeb6d31
Commit
fbeb6d31
authored
Mar 05, 2019
by
kevin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#
parent
e1fe75cf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
19 deletions
+27
-19
CitPreviewDataController.java
...pwc/taxtech/atms/controller/CitPreviewDataController.java
+5
-1
CitPreviewDataServiceImpl.java
.../taxtech/atms/service/impl/CitPreviewDataServiceImpl.java
+1
-0
invoice_record.xlsx
...src/main/resources/vat_excel_template/invoice_record.xlsx
+0
-0
EbsApiServiceImplTest.java
.../pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
+1
-1
CitEAMADisposalExtendsMapper.xml
...taxtech/atms/dao/extends/CitEAMADisposalExtendsMapper.xml
+3
-3
cit-preview-eamDisposal-list.ctrl.js
...iew-eamDisposal-list/cit-preview-eamDisposal-list.ctrl.js
+12
-9
cit-preview-eamDisposal-list.html
...review-eamDisposal-list/cit-preview-eamDisposal-list.html
+1
-1
vat-preview-eamDisposal-search.html
...view-eamDisposal-list/vat-preview-eamDisposal-search.html
+3
-3
common.svc.js
...-web/src/main/webapp/app/common/webservices/common.svc.js
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/CitPreviewDataController.java
View file @
fbeb6d31
...
...
@@ -26,6 +26,10 @@ import java.util.UUID;
import
static
javax
.
servlet
.
http
.
HttpServletResponse
.
SC_NO_CONTENT
;
import
static
javax
.
servlet
.
http
.
HttpServletResponse
.
SC_OK
;
/**
* authoer kevin
* version 1.0
*/
@Controller
@RequestMapping
(
"api/v1/citPreviewDataController"
)
public
class
CitPreviewDataController
extends
BaseController
{
...
...
@@ -45,7 +49,7 @@ public class CitPreviewDataController extends BaseController {
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
)
{
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd hh:MM:ss"
);
String
format
=
simpleDateFormat
.
format
(
new
Date
());
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitPreviewDataServiceImpl.java
View file @
fbeb6d31
...
...
@@ -93,6 +93,7 @@ public class CitPreviewDataServiceImpl extends BaseService {
ExcelUtil
.
exportExcel
(
header
,
list
,
response
);
return
list
.
size
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
logger
.
error
(
"EAM资产处理金额记录表: %s"
,
e
.
getMessage
());
return
0
;
}
...
...
atms-api/src/main/resources/vat_excel_template/invoice_record.xlsx
View file @
fbeb6d31
No preview for this file type
atms-api/src/test/java/pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
View file @
fbeb6d31
...
...
@@ -31,7 +31,7 @@ public class EbsApiServiceImplTest extends CommonIT {
}
@Test
public
void
queryRemoteServerThenUpdateOrg
(){
List
<
OrganizationQueryDto
>
items
=
Lists
.
new
ArrayList
();
List
<
OrganizationQueryDto
>
items
=
new
ArrayList
();
for
(
int
i
=
0
;
i
<
2
;
i
++){
OrganizationQueryDto
dto
=
new
OrganizationQueryDto
();
dto
.
setTaxPayerNumber
(
"sadsafsdf3232"
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitEAMADisposalExtendsMapper.xml
View file @
fbeb6d31
...
...
@@ -3,13 +3,13 @@
<mapper
namespace=
"pwc.taxtech.atms.dao.CitEAMAssetsDisposalMapper"
>
<sql
id=
"QueryCondition"
>
1 = 1
<if
test=
"@com.github.pagehelper.util.StringUtil@isNotEmpty(citEAMAssetsDisposal.
orgI
d)"
>
<if
test=
"@com.github.pagehelper.util.StringUtil@isNotEmpty(citEAMAssetsDisposal.
perio
d)"
>
AND period= #{citEAMAssetsDisposal.period,jdbcType=VARCHAR}
</if>
<if
test=
"citEAMAssetsDisposal.
periodStar
t!=null"
>
<if
test=
"citEAMAssetsDisposal.
compensationSaleAmoun
t!=null"
>
AND compensation_sale_amount
>
= #{citEAMAssetsDisposal.compensationSaleAmount,jdbcType=INTEGER}
</if>
<if
test=
"citEAMAssetsDisposal.
periodEnd
!=null"
>
<if
test=
"citEAMAssetsDisposal.
assetLabelNumber
!=null"
>
AND asset_label_number
<
= #{citEAMAssetsDisposal.assetLabelNumber,jdbcType=INTEGER}
</if>
</sql>
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-eamDisposal-list/cit-preview-eamDisposal-list.ctrl.js
View file @
fbeb6d31
...
...
@@ -57,12 +57,12 @@
function
initAssetResultDxGrid
()
{
var
dupColumns
=
[
{
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
(
'source'
),
dataField
:
"source"
,
width
:
200
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'assetLabelNumber'
),
dataField
:
"assetLabelNumber"
,
width
:
200
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'compensationSaleAmount'
),
dataField
:
"compensationSaleAmount"
,
width
:
200
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'createdBy'
),
dataField
:
"createBy"
,
width
:
200
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'createTime'
),
dataField
:
"createTime"
,
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
:
'15%'
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'assetLabelNumber'
),
dataField
:
"assetLabelNumber"
,
width
:
'15%'
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'compensationSaleAmount'
),
dataField
:
"compensationSaleAmount"
,
width
:
'15%'
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'createdBy'
),
dataField
:
"createBy"
,
width
:
'15%'
,
allowEditing
:
false
,
fixed
:
true
},
{
caption
:
$translate
.
instant
(
'createTime'
),
dataField
:
"createTime"
,
width
:
'15%'
,
allowEditing
:
false
,
fixed
:
true
}
];
$scope
.
assetsResultGridOptions
=
{
...
...
@@ -117,7 +117,7 @@
return
;
}
vatExportService
.
exportToExcel
(
data
,
status
,
headers
,
'EAM资产处置金额记录表.xls'
);
}).
error
(
function
()
{
}).
error
(
function
(
error
)
{
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
});
}
...
...
@@ -129,7 +129,7 @@
$scope
.
queryParams
.
assetLabelNumber
=
""
;
}
$scope
.
doSearch
=
function
()
{
refreshConfigGrid
();
$scope
.
refreshConfigGrid
();
}
var
initListData
=
function
(){
...
...
@@ -163,7 +163,7 @@
(
function
initialize
()
{
$
(
'#input-invoice-period-picker'
).
focus
(
function
()
{
$
(
'.filter-button'
).
popover
(
"hide"
);
$
(
'.filter-button'
).
popover
(
"hide"
);
});
//初始化month-picker
$
(
'#input-invoice-period-picker'
).
rangePicker
({
...
...
@@ -182,6 +182,9 @@
totalItems
:
0
,
//总数据
pageSize
:
20
,
//每页多少条数据
};
/* $scope.$watch('queryParams.pagingOptions',function (newValue, oldValue) {
$scope.pagingOptions = newValue;
});*/
initAssetResultDxGrid
();
initListData
();
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-eamDisposal-list/cit-preview-eamDisposal-list.html
View file @
fbeb6d31
...
...
@@ -21,7 +21,7 @@
<div
id=
"gridContainer"
dx-data-grid=
"assetsResultGridOptions"
></div>
<div
class=
"page-footer"
>
<ack-pagination
page-options=
"pagingOptions"
<ack-pagination
page-options=
"
queryParams.
pagingOptions"
refresh-table=
"refreshConfigGrid()"
></ack-pagination>
</div>
</div>
...
...
atms-web/src/main/webapp/app/cit/preview/cit-preview-eamDisposal-list/vat-preview-eamDisposal-search.html
View file @
fbeb6d31
...
...
@@ -6,19 +6,19 @@
<tr>
<td>
<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>
</tr>
<tr>
<td>
<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>
</tr>
<tr>
<td>
<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>
</tr>
</table>
...
...
atms-web/src/main/webapp/app/common/webservices/common.svc.js
View file @
fbeb6d31
...
...
@@ -358,7 +358,7 @@ webservices.factory('commonWebService', ['$http', 'apiConfig', 'loginContext', '
},
_index
:
function
(
data
)
{
var
index
=
1
;
for
(
var
i
of
data
){
for
(
var
i
in
data
){
i
.
index
=
index
;
index
++
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment