Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-sunac-report
sunac_report
Commits
46d7cded
Commit
46d7cded
authored
Aug 22, 2019
by
sunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可用范围 xml文件
parent
362cb994
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
CtBbtcTypeAreaDao.xml
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
+80
-0
No files found.
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
0 → 100644
View file @
46d7cded
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ejweb.modules.report.dao.CtBbtcTypeAreaDao"
>
<sql
id=
"ctBbtcTypeAreaColumns"
>
a.id AS "id",
b.label AS "group",
c.name AS "area",
a.parent_id AS "parentId",
d.name AS "typeName"
</sql>
<sql
id=
"ctBbtcTypeAreaJoins"
>
LEFT JOIN ct_bbtc_sys_dict b on b.id = a.group_name
LEFT JOIN CT_BBTC_REGION c on c.id = a.area
LEFT JOIN CT_BBTC_BUS_TYPE d on d.id = a.parent_id
</sql>
<select
id=
"get"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
SELECT
<include
refid=
"ctBbtcTypeAreaColumns"
/>
FROM CT_BBTC_TYPE_AREA a
<include
refid=
"ctBbtcTypeAreaJoins"
/>
WHERE a.id = #{id}
</select>
<select
id=
"getByAreaId"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
SELECT
<include
refid=
"ctBbtcTypeAreaColumns"
/>
FROM CT_BBTC_TYPE_AREA a
<include
refid=
"ctBbtcTypeAreaJoins"
/>
WHERE a.area = #{area} AND a.group_name=#{group}
</select>
<select
id=
"findList"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
SELECT
<include
refid=
"ctBbtcTypeAreaColumns"
/>
FROM CT_BBTC_TYPE_AREA a
<include
refid=
"ctBbtcTypeAreaJoins"
/>
</select>
<select
id=
"findAllList"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
SELECT
<include
refid=
"ctBbtcTypeAreaColumns"
/>
FROM CT_BBTC_TYPE_AREA a
<include
refid=
"ctBbtcTypeAreaJoins"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO CT_BBTC_TYPE_AREA(
id,
group_name,
area,
parent_id
) VALUES (
#{id},
#{group},
#{area},
#{parentId}
)
</insert>
<update
id=
"update"
>
UPDATE CT_BBTC_TYPE_AREA SET
group_name = #{group},
area = #{area},
parent_id = #{parentId}
WHERE id = #{id}
</update>
<update
id=
"delete"
>
DELETE FROM CT_BBTC_TYPE_AREA
WHERE id = #{id}
</update>
</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