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
7735b088
Commit
7735b088
authored
Feb 27, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收入明细功能
parent
ce3ea281
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
12 deletions
+42
-12
RevenueConfController.java
...va/pwc/taxtech/atms/controller/RevenueConfController.java
+6
-0
RevenueConfService.java
...ava/pwc/taxtech/atms/service/impl/RevenueConfService.java
+6
-0
TrialBalanceFinalExtendsMapper.xml
...h/atms/vat/dao/extends/TrialBalanceFinalExtendsMapper.xml
+2
-2
vat-revenue-detail.ctrl.js
...t/reduction/vat-revenue-detail/vat-revenue-detail.ctrl.js
+26
-8
vat-revenue-detail.html
.../vat/reduction/vat-revenue-detail/vat-revenue-detail.html
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/RevenueConfController.java
View file @
7735b088
...
...
@@ -13,6 +13,7 @@ import pwc.taxtech.atms.service.impl.RevenueConfService;
import
pwc.taxtech.atms.vat.entity.RevenueConfig
;
import
javax.annotation.Resource
;
import
java.util.List
;
@RestController
@RequestMapping
(
value
=
"api/v1/revenueConf"
)
...
...
@@ -26,6 +27,11 @@ public class RevenueConfController extends BaseController {
return
new
CamelPagingResultDto
<>(
revenueConfService
.
queryPage
(
param
));
}
@PostMapping
(
"queryAll"
)
public
List
<
RevenueConfResult
>
queryAll
(
@RequestBody
RevenueConfParam
param
)
{
return
revenueConfService
.
queryAll
(
param
);
}
@PostMapping
(
"add"
)
public
ApiResultDto
addConf
(
@RequestBody
RevConfAddDto
addDto
)
{
revenueConfService
.
addConfig
(
addDto
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RevenueConfService.java
View file @
7735b088
...
...
@@ -47,6 +47,12 @@ public class RevenueConfService extends BaseService {
return
pageInfo
;
}
public
List
<
RevenueConfResult
>
queryAll
(
RevenueConfParam
param
)
{
RevenueConfigExample
example
=
new
RevenueConfigExample
();
example
.
createCriteria
().
andOrgIdEqualTo
(
param
.
getOrgId
()).
andStartDateLessThanOrEqualTo
(
param
.
getStartDate
()).
andEndDateGreaterThanOrEqualTo
(
param
.
getEndDate
());
return
revenueConfigMapper
.
selectByExample
(
example
).
stream
()
.
map
(
o
->
beanUtil
.
copyProperties
(
o
,
new
RevenueConfResult
())).
collect
(
Collectors
.
toList
());
}
/**
* 新增配置
*
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/TrialBalanceFinalExtendsMapper.xml
View file @
7735b088
...
...
@@ -24,7 +24,7 @@
when tbf.segment3 like '4002%' and rc.id is null then 1
when tbf.segment3 like '4010%' and rc.id is null then 1
when tbf.segment3 like '8002%' and rc.id is null then 1
<![CDATA[WHEN rc.id IS NOT NULL and
rc.start_date > #{queryDate} and rc.end_date < #{queryDate}
then 1]]>
<![CDATA[WHEN rc.id IS NOT NULL and
(rc.start_date > #{queryDate} or rc.end_date < #{queryDate})
then 1]]>
<![CDATA[WHEN rc.id IS NOT NULL and rc.start_date <= #{queryDate} and rc.end_date >= #{queryDate} THEN 2]]>
else 3 end as isEmpty
from trial_balance_final as tbf
...
...
@@ -66,7 +66,7 @@
and rc.revenue_type = #{category}
</if>
<if
test=
"taxOn != null"
>
and rc.tax_
rat
e = #{taxOn}
and rc.tax_
typ
e = #{taxOn}
</if>
) as detail
where
...
...
atms-web/src/main/webapp/app/vat/reduction/vat-revenue-detail/vat-revenue-detail.ctrl.js
View file @
7735b088
...
...
@@ -12,7 +12,14 @@
dataField
:
'serialNo'
,
caption
:
$translate
.
instant
(
'RevDetailColSerialNo'
),
fixed
:
true
,
allowHeaderFiltering
:
true
allowHeaderFiltering
:
true
,
cellTemplate
:
function
(
container
,
options
)
{
try
{
$
(
"<span>"
+
(
options
.
rowIndex
+
1
)
+
"</span>"
)
.
appendTo
(
container
);
}
catch
(
e
)
{
$log
.
error
(
e
);
}
}
},
{
dataField
:
'subject'
,
...
...
@@ -75,10 +82,10 @@
allowHeaderFiltering
:
true
,
cellTemplate
:
function
(
container
,
options
)
{
try
{
if
(
options
.
data
.
type
==
null
)
{
$
(
'<i class="fa fa-exclamation-
triangle
"></i> '
)
$
(
'<i class="fa fa-exclamation-
circle fa-1x" style="color: yellow" aria-hidden="true
"></i> '
)
.
appendTo
(
container
);
}
else
{
$
(
"<span>"
+
options
.
data
.
type
+
"</span>"
)
$
(
"<span>"
+
options
.
data
.
type
+
"</span>"
)
.
appendTo
(
container
);
}
...
...
@@ -96,16 +103,18 @@
cellTemplate
:
function
(
container
,
options
)
{
try
{
if
(
options
.
data
.
category
==
null
)
{
$
(
'<i class="fa fa-exclamation-
triangle
"></i> '
)
$
(
'<i class="fa fa-exclamation-
circle fa-1x" style="color: yellow" aria-hidden="true
"></i> '
)
.
appendTo
(
container
);
}
else
{
switch
(
options
.
data
.
category
)
{
case
"0"
:
$
(
"<span>货物及加工修理修配劳务</span>"
)
.
appendTo
(
container
);
break
;
case
"1"
:
$
(
"<span>服务、不动产和无形资产</span>"
)
.
appendTo
(
container
);
break
;
}
}
...
...
@@ -122,22 +131,26 @@
cellTemplate
:
function
(
container
,
options
)
{
try
{
if
(
options
.
data
.
taxOn
==
null
)
{
$
(
'<i class="fa fa-exclamation-
triangle
"></i> '
)
$
(
'<i class="fa fa-exclamation-
circle fa-1x" style="color: yellow" aria-hidden="true
"></i> '
)
.
appendTo
(
container
);
}
else
{
switch
(
options
.
data
.
taxOn
)
{
case
"0"
:
$
(
"<span>一般计税</span>"
)
.
appendTo
(
container
);
break
;
case
"1"
:
$
(
"<span>简易计税</span>"
)
.
appendTo
(
container
);
break
;
case
"2"
:
$
(
"<span>免抵退税</span>"
)
.
appendTo
(
container
);
break
;
case
"3"
:
$
(
"<span>免税</span>"
)
.
appendTo
(
container
);
break
;
}
}
...
...
@@ -191,10 +204,15 @@
};
$scope
.
revenueType
=
[];
$scope
.
getRevenueType
=
function
()
{
$http
.
post
(
'/revenueConf/queryPage'
,
{
pageInfo
:
$scope
.
pagingOptions
},
apiConfig
.
createVat
())
var
month
=
vatSessionService
.
month
<
10
?
(
"0"
+
vatSessionService
.
month
)
:
vatSessionService
.
month
;
$http
.
post
(
'/revenueConf/queryAll'
,
{
startDate
:
vatSessionService
.
year
+
"-"
+
month
,
endDate
:
vatSessionService
.
year
+
"-"
+
month
,
orgId
:
vatSessionService
.
project
.
organizationID
},
apiConfig
.
createVat
())
.
success
(
function
(
res
)
{
if
(
res
&&
res
.
list
)
{
angular
.
forEach
(
res
.
list
,
function
(
d
)
{
if
(
res
)
{
angular
.
forEach
(
res
,
function
(
d
)
{
$scope
.
revenueType
.
push
({
'key'
:
d
.
name
,
'val'
:
d
.
name
});
})
}
else
{
...
...
atms-web/src/main/webapp/app/vat/reduction/vat-revenue-detail/vat-revenue-detail.html
View file @
7735b088
...
...
@@ -45,7 +45,7 @@
</td>
<td><span
class=
"lbl-name"
>
{{'RevSearchProfitCenterName' | translate }}:
</span></td>
<td>
<input
class=
"form-control"
name=
"name"
ng-model=
"searchParam.
c
enterName"
maxlength=
"20"
>
<input
class=
"form-control"
name=
"name"
ng-model=
"searchParam.
profitC
enterName"
maxlength=
"20"
>
</td>
<td><span
class=
"lbl-name"
>
{{'RevSearchTaxOn' | translate }}:
</span></td>
<td>
...
...
@@ -99,7 +99,7 @@
<div
class=
"page-footer"
>
<ack-pagination
page-options=
"pagingOptions"
refresh-table=
"refresh
Config
Grid()"
></ack-pagination>
refresh-table=
"refreshGrid()"
></ack-pagination>
</div>
</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