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
7d9aa4d2
Commit
7d9aa4d2
authored
Sep 30, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed SQL issue
parent
a391b98a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
TemplateController.java
.../java/pwc/taxtech/atms/controller/TemplateController.java
+2
-2
TemplateServiceImpl.java
...va/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
+3
-1
TemplateExtendsMapper.xml
...es/pwc/taxtech/atms/dao/extends/TemplateExtendsMapper.xml
+2
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TemplateController.java
View file @
7d9aa4d2
...
...
@@ -156,9 +156,9 @@ public class TemplateController extends BaseController {
}
@RequestMapping
(
value
=
"getGroupTemplateByGroupI
d
"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"getGroupTemplateByGroupI
D
"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
OperationResultDto
<
List
<
TemplateByGroupDto
>>
getGroupTemplateByGroupId
(
@RequestParam
Long
templateGroupId
,
@RequestParam
String
projectId
)
{
OperationResultDto
<
List
<
TemplateByGroupDto
>>
getGroupTemplateByGroupId
(
@RequestParam
(
name
=
"templateGroupID"
)
Long
templateGroupId
,
@RequestParam
(
name
=
"projectID"
)
String
projectId
)
{
OperationResultDto
resultDto
=
new
OperationResultDto
();
if
(
templateGroupId
==
null
||
templateGroupId
.
equals
(
"undefined"
)
||
StringUtils
.
isBlank
(
projectId
)
||
projectId
.
equals
(
"undefined"
))
{
resultDto
.
setResult
(
false
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateServiceImpl.java
View file @
7d9aa4d2
...
...
@@ -238,7 +238,9 @@ public class TemplateServiceImpl extends AbstractService implements TemplateServ
TemplateExample
example
=
new
TemplateExample
();
List
<
Long
>
ids
=
new
ArrayList
<>();
ids
.
add
(
templateGroupId
);
ids
.
add
(
bspl
);
if
(!
bspl
.
equals
(
null
))
{
ids
.
add
(
bspl
);
}
example
.
createCriteria
().
andTemplateGroupIdIn
(
ids
);
example
.
setOrderByClause
(
" order_index"
);
List
<
Template
>
templates
=
templateMapper
.
selectByExample
(
example
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/TemplateExtendsMapper.xml
View file @
7d9aa4d2
...
...
@@ -122,7 +122,7 @@
A.NAME,
A.CODE
FROM
T
AX_ADMIN.T
EMPLATE A
TEMPLATE A
WHERE
A.TEMPLATE_GROUP_ID = #{templateGroupID,jdbcType=VARCHAR}
AND A.IS_ACTIVE_ASSOCIATION = 1
...
...
@@ -137,7 +137,7 @@
B.PERIOD,
B.TEMPLATE_ID
FROM
REPORT b
PERIOD_
REPORT b
WHERE
b.PERIOD = #{period,jdbcType=INTEGER}
AND B.PROJECT_ID = #{projectId,jdbcType=VARCHAR}
...
...
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