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
f656474d
Commit
f656474d
authored
Apr 18, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
81420c55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
ProjectMapper.java
...dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
+3
-0
ProjectExtendsMapper.xml
...ces/pwc/taxtech/atms/dao/extends/ProjectExtendsMapper.xml
+26
-28
No files found.
atms-dao/src/main/java/pwc/taxtech/atms/dao/ProjectMapper.java
View file @
f656474d
...
...
@@ -259,4 +259,6 @@ public interface ProjectMapper extends MyMapper {
* @return
*/
public
List
<
TemplateQueryDto
>
getTemplateCode
(
@Param
(
"type"
)
String
type
,
@Param
(
"name"
)
String
name
);
int
insertOnWhere
(
Project
record
);
}
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/ProjectExtendsMapper.xml
View file @
f656474d
...
...
@@ -47,7 +47,32 @@
and o.parent_id = #{orgId,jdbcType=VARCHAR}
</select>
<insert
id=
"insertOnWhere"
parameterType=
"pwc.taxtech.atms.entity.Project"
>
<select
id=
"getTemplateCode"
resultType=
"pwc.taxtech.atms.entity.TemplateQueryDto"
>
SELECT
*
FROM
(SELECT
t.code,
t.name,
p.`pay_tax_type`
FROM
template t
LEFT JOIN template_group p
ON p.id = t.template_group_id) m
WHERE 1 = 1
<if
test=
"name != null and name != '' "
>
AND m.name = #{name}
</if>
<if
test=
"type != null and type != '' "
>
AND m.pay_tax_type = #{type}
</if>
</select>
<insert
id=
"insertOnWhere"
parameterType=
"pwc.taxtech.atms.entity.Project"
>
insert into project (id, code, name,
year, client_code, is_active,
create_time, update_time, region_id,
...
...
@@ -74,33 +99,7 @@
is_active = 1
)
<<<<<<
< HEAD
</insert>
=======
<select
id=
"getTemplateCode"
resultType=
"pwc.taxtech.atms.entity.TemplateQueryDto"
>
>>>>>>> 0e707ae17266bb0035246f93c27c44ccbf687b27
SELECT
*
FROM
(SELECT
t.code,
t.name,
p.`pay_tax_type`
FROM
template t
LEFT JOIN template_group p
ON p.id = t.template_group_id) m
WHERE 1 = 1
<if
test=
"name != null and name != '' "
>
AND m.name = #{name}
</if>
<if
test=
"type != null and type != '' "
>
AND m.pay_tax_type = #{type}
</if>
</select>
</mapper>
\ No newline at end of file
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