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
28fc699e
Commit
28fc699e
authored
Apr 25, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
7ce4524e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
48 deletions
+48
-48
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+11
-16
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+1
-1
tax-document-list.html
...axDocumentManage/tax-document-list/tax-document-list.html
+36
-31
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
28fc699e
...
...
@@ -357,29 +357,24 @@ public class ReportServiceImpl extends BaseService {
invoiceRecordMapper
.
clearRevenueCof
(
true
,
true
,
delExample
);
}
Map
<
String
,
Long
>
map
=
new
HashMap
<>();
//
Map<String, Long> map = new HashMap<>();
for
(
RevenueTypeMapping
mapping
:
mappingList
)
{
if
(!
map
.
containsKey
(
mapping
.
getContent
()))
{
RevenueConfigExample
configExample
=
new
RevenueConfigExample
();
configExample
.
createCriteria
().
andNameEqualTo
(
mapping
.
getRevenueTypeName
()).
andStatusEqualTo
(
0
).
andOrgIdEqualTo
(
mapping
.
getOrgId
()).
andStartDateLessThanOrEqualTo
(
queryDate
).
andEndDateGreaterThanOrEqualTo
(
queryDate
);
List
<
RevenueConfig
>
configs
=
revenueConfigMapper
.
selectByExample
(
configExample
);
if
(
CollectionUtils
.
isNotEmpty
(
configs
))
{
map
.
put
(
mapping
.
getContent
(),
configs
.
get
(
0
).
getId
());
if
(
CollectionUtils
.
isNotEmpty
(
configs
)){
InvoiceRecord
destRecord
=
new
InvoiceRecord
();
destRecord
.
setRevenueCofId
(
configs
.
get
(
0
).
getId
());
InvoiceRecordExample
recordExample
=
new
InvoiceRecordExample
();
recordExample
.
createCriteria
().
andProjectIdEqualTo
(
projectId
)
.
andOrganizationIdEqualTo
(
mapping
.
getOrgId
()).
andBillingContentEqualTo
(
mapping
.
getContent
())
.
andTaxRateEqualTo
(
mapping
.
getTaxRate
())
.
andDepartmentEqualTo
(
mapping
.
getOuName
())
.
andPeriodEqualTo
(
Integer
.
valueOf
(
queryDate
.
replace
(
"-"
,
""
)));
invoiceRecordMapper
.
updateByExampleSelective
(
destRecord
,
recordExample
);
}
}
if
(
map
.
containsKey
(
mapping
.
getContent
()))
{
InvoiceRecord
destRecord
=
new
InvoiceRecord
();
destRecord
.
setRevenueCofId
(
map
.
get
(
mapping
.
getContent
()));
InvoiceRecordExample
recordExample
=
new
InvoiceRecordExample
();
recordExample
.
createCriteria
().
andProjectIdEqualTo
(
projectId
)
.
andOrganizationIdEqualTo
(
mapping
.
getOrgId
()).
andBillingContentEqualTo
(
mapping
.
getContent
())
.
andTaxRateEqualTo
(
mapping
.
getTaxRate
())
.
andDepartmentEqualTo
(
mapping
.
getOuName
())
.
andPeriodEqualTo
(
Integer
.
valueOf
(
queryDate
.
replace
(
"-"
,
""
)));
invoiceRecordMapper
.
updateByExampleSelective
(
destRecord
,
recordExample
);
}
}
}
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
28fc699e
...
...
@@ -319,7 +319,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
],
onCellClick
:
function
(
e
)
{
//单元格点击— e.columnIndex=0 排除复选框列
if
(
e
.
columnIndex
>
0
&&
e
.
data
)
{
if
(
e
.
column
.
dataField
!=
""
&&
e
.
data
)
{
$
(
"input[name='dataGridCheckBox']"
).
each
(
function
(
index
,
item
)
{
if
((
item
.
dataset
)
&&
(
item
.
dataset
.
id
==
e
.
data
.
id
))
{
if
(
item
.
checked
)
{
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.html
View file @
28fc699e
...
...
@@ -696,24 +696,24 @@
</div>
<div
class=
"modal-body"
>
<
div
ng-if=
"isCreatePop"
class=
"col-sm-6 form-group"
>
<
label
class=
"col-sm-3 control-label edit-panel-left-part"
>
<
span
class=
"required-tip"
>
*
</span
>
{{'Document Path'|translate}}
<
/label
>
<
div
class=
"col-sm-11"
style=
"width:61.67%"
>
<
input
class=
"form-control"
title=
"{{editFieldModel.fileNativePath}}"
placeholder=
"{{'Please Select' | translate}}"
readonly
ng-model=
"editFieldModel.fileNativePath"
required
/
>
<
input
id=
"uploadFilePlugin"
type=
"file"
style=
"display:none"
nv-file-select
uploader=
"uploader"
filters=
"fileTypeFilter"
>
<
/div
>
<
div
class=
"DTL-special-external-btn"
>
<
a
href=
"javascript:void(0)"
ng-click=
"uploadFile()"
><i
class=
"fa fa-upload"
></i></a
>
<
/div
>
<
/div
>
<
!--<div ng-if="isCreatePop" class="col-sm-6 form-group">--
>
<
!--<label class="col-sm-3 control-label edit-panel-left-part">--
>
<
!--<span class="required-tip"> * </span>--
>
<!--{{'Document Path'|translate}}-->
<
!--</label>--
>
<
!--<div class="col-sm-11" style="width:61.67%">--
>
<
!--<input class="form-control" title="{{editFieldModel.fileNativePath}}"-->
<!--placeholder="{{'Please Select' | translate}}"-->
<!--readonly-->
<!--ng-model="editFieldModel.fileNativePath"-->
<!--required/>--
>
<
!--<input id="uploadFilePlugin" type="file" style="display:none" nv-file-select-->
<!--uploader="uploader" filters="fileTypeFilter">--
>
<
!--</div>--
>
<
!--<div class="DTL-special-external-btn">--
>
<
!--<a href="javascript:void(0)" ng-click="uploadFile()"><i class="fa fa-upload"></i></a>--
>
<
!--</div>--
>
<
!--</div>--
>
<!--取消上传时的预览功能-->
<!--<div ng-if="isCreatePop && uploader.queue.length" class="col-sm-6 form-group">
...
...
@@ -734,6 +734,11 @@
ng-model=
"editFieldModel.fileName"
required
/>
</div>
<div
class=
"DTL-special-external-btn"
ng-if=
"isCreatePop"
>
<input
id=
"uploadFilePlugin"
type=
"file"
style=
"display:none"
nv-file-select
uploader=
"uploader"
>
<a
href=
"javascript:void(0)"
ng-click=
"uploadFile()"
><i
class=
"fa fa-upload"
></i></a>
</div>
</div>
<div
class=
"col-sm-6 form-group"
>
<label
class=
"col-sm-3 control-label edit-panel-left-part"
>
...
...
@@ -950,19 +955,19 @@
<div
class=
"TDL-multi-upload-content"
>
<ul>
<li
ng-repeat=
"editFieldItem in multiUploadErrorItems"
ng-show=
"editFieldItem.iShow"
>
<
div
class=
"col-sm-6 form-group"
>
<
label
class=
"col-sm-3 control-label edit-panel-left-part"
>
<
span
class=
"required-tip"
>
*
</span
>
{{'Document Path'|translate}}
<
/label
>
<
div
class=
"col-sm-11"
style=
"width:61.67%"
>
<
input
class=
"form-control"
title=
"{{editFieldItem.fileNativePath}}"
placeholder=
"{{'Please Select' | translate}}"
ng-class=
"{'upload-fail-mark':!editFieldItem.fileNativePath && editFieldItem.fileNativePath != 0}"
ng-model=
"editFieldItem.fileNativePath"
/
>
<!--
<input id="{{multiUploadFilePlugin}}" type="file" style="display:none" nv-file-select uploader="uploader" filters="fileTypeFilter">
-->
<
/div
>
<
/div
>
<
!--<div class="col-sm-6 form-group">--
>
<
!--<label class="col-sm-3 control-label edit-panel-left-part">--
>
<
!--<span class="required-tip"> * </span>--
>
<!--{{'Document Path'|translate}}-->
<
!--</label>--
>
<
!--<div class="col-sm-11" style="width:61.67%">--
>
<
!--<input class="form-control" title="{{editFieldItem.fileNativePath}}"-->
<!--placeholder="{{'Please Select' | translate}}"-->
<!--ng-class="{'upload-fail-mark':!editFieldItem.fileNativePath && editFieldItem.fileNativePath != 0}"-->
<!--ng-model="editFieldItem.fileNativePath"/>--
>
<!--
<!–<input id="{{multiUploadFilePlugin}}" type="file" style="display:none" nv-file-select uploader="uploader" filters="fileTypeFilter">–>
-->
<
!--</div>--
>
<
!--</div>--
>
<div
style=
"clear:both"
></div>
<!--档案名称-->
...
...
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