Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
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
姚本章
jz-dmp-service
Commits
8c0cdf1e
Commit
8c0cdf1e
authored
Dec 22, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e340e546
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
DmpProjectMapper.xml
src/main/resources/mapper/dmp/DmpProjectMapper.xml
+14
-14
No files found.
src/main/resources/mapper/dmp/DmpProjectMapper.xml
View file @
8c0cdf1e
<?xml version="1.0" encoding="UTF-8" ?>
<?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" >
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"com.jz.dmp.
web.ui.modules.dmp.repository
.DmpProjectDao"
>
<mapper
namespace=
"com.jz.dmp.
modules.dao
.DmpProjectDao"
>
<sql
id=
"FIND_ALL_COLUMN"
>
<sql
id=
"FIND_ALL_COLUMN"
>
id,owner_id,production_id,data_warehouse_id,name,display_name,project_desc,publish_target_id,is_enable_scheduler,is_edit_task_code,is_enable_select,dw_name,dw_access_type,dw_is_enable_acl,dw_is_enable_access_obj,dw_is_enable_auth_obj,dw_is_protect_data,data_status,create_user_id,create_time,update_user_id,update_time,impala_jdbc_url,impala_master_fqdn
id,owner_id,production_id,data_warehouse_id,name,display_name,project_desc,publish_target_id,is_enable_scheduler,is_edit_task_code,is_enable_select,dw_name,dw_access_type,dw_is_enable_acl,dw_is_enable_access_obj,dw_is_enable_auth_obj,dw_is_protect_data,data_status,create_user_id,create_time,update_user_id,update_time,impala_jdbc_url,impala_master_fqdn
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<!-- 模块共有接口实现 -->
<!-- 模块共有接口实现 -->
<insert
id=
"insert"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
<insert
id=
"insert"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
INSERT INTO dmp_project( owner_id, production_id, data_warehouse_id, name, display_name, project_desc, publish_target_id, is_enable_scheduler, is_edit_task_code, is_enable_select, dw_name, dw_access_type, dw_is_enable_acl, dw_is_enable_access_obj, dw_is_enable_auth_obj, dw_is_protect_data, data_status, create_user_id, create_time, update_user_id, update_time)
INSERT INTO dmp_project( owner_id, production_id, data_warehouse_id, name, display_name, project_desc, publish_target_id, is_enable_scheduler, is_edit_task_code, is_enable_select, dw_name, dw_access_type, dw_is_enable_acl, dw_is_enable_access_obj, dw_is_enable_auth_obj, dw_is_protect_data, data_status, create_user_id, create_time, update_user_id, update_time)
VALUES( #{ownerId}, #{productionId}, #{dataWarehouseId}, #{name}, #{displayName}, #{projectDesc}, #{publishTargetId}, #{isEnableScheduler}, #{isEditTaskCode}, #{isEnableSelect}, #{dwName}, #{dwAccessType}, #{dwIsEnableAcl}, #{dwIsEnableAccessObj}, #{dwIsEnableAuthObj}, #{dwIsProtectData}, #{dataStatus}, #{createUserId}, #{createTime}, #{updateUserId}, #{updateTime})
VALUES( #{ownerId}, #{productionId}, #{dataWarehouseId}, #{name}, #{displayName}, #{projectDesc}, #{publishTargetId}, #{isEnableScheduler}, #{isEditTaskCode}, #{isEnableSelect}, #{dwName}, #{dwAccessType}, #{dwIsEnableAcl}, #{dwIsEnableAccessObj}, #{dwIsEnableAuthObj}, #{dwIsProtectData}, #{dataStatus}, #{createUserId}, #{createTime}, #{updateUserId}, #{updateTime})
</insert>
</insert>
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
UPDATE dmp_project SET data_status = '1' WHERE id =#{id}
UPDATE dmp_project SET data_status = '1' WHERE id =#{id}
</update>
</update>
<update
id=
"update"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
<update
id=
"update"
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
UPDATE dmp_project SET
UPDATE dmp_project SET
<if
test=
"dataStatus != null"
>
data_status = #{dataStatus}
</if><if
test=
"ownerId != null"
>
,owner_id = #{ownerId}
</if><if
test=
"productionId != null"
>
,production_id = #{productionId}
</if><if
test=
"dataWarehouseId != null"
>
,data_warehouse_id = #{dataWarehouseId}
</if><if
test=
"name != null"
>
,name = #{name}
</if><if
test=
"displayName != null"
>
,display_name = #{displayName}
</if><if
test=
"projectDesc != null"
>
,project_desc = #{projectDesc}
</if><if
test=
"publishTargetId != null"
>
,publish_target_id = #{publishTargetId}
</if><if
test=
"isEnableScheduler != null"
>
,is_enable_scheduler = #{isEnableScheduler}
</if><if
test=
"isEditTaskCode != null"
>
,is_edit_task_code = #{isEditTaskCode}
</if><if
test=
"isEnableSelect != null"
>
,is_enable_select = #{isEnableSelect}
</if><if
test=
"dwName != null"
>
,dw_name = #{dwName}
</if><if
test=
"dwAccessType != null"
>
,dw_access_type = #{dwAccessType}
</if><if
test=
"dwIsEnableAcl != null"
>
,dw_is_enable_acl = #{dwIsEnableAcl}
</if><if
test=
"dwIsEnableAccessObj != null"
>
,dw_is_enable_access_obj = #{dwIsEnableAccessObj}
</if><if
test=
"dwIsEnableAuthObj != null"
>
,dw_is_enable_auth_obj = #{dwIsEnableAuthObj}
</if><if
test=
"dwIsProtectData != null"
>
,dw_is_protect_data = #{dwIsProtectData}
</if><if
test=
"createUserId != null"
>
,create_user_id = #{createUserId}
</if><if
test=
"createTime != null"
>
,create_time = #{createTime}
</if><if
test=
"updateUserId != null"
>
,update_user_id = #{updateUserId}
</if><if
test=
"updateTime != null"
>
,update_time = #{updateTime}
</if>
<if
test=
"dataStatus != null"
>
data_status = #{dataStatus}
</if><if
test=
"ownerId != null"
>
,owner_id = #{ownerId}
</if><if
test=
"productionId != null"
>
,production_id = #{productionId}
</if><if
test=
"dataWarehouseId != null"
>
,data_warehouse_id = #{dataWarehouseId}
</if><if
test=
"name != null"
>
,name = #{name}
</if><if
test=
"displayName != null"
>
,display_name = #{displayName}
</if><if
test=
"projectDesc != null"
>
,project_desc = #{projectDesc}
</if><if
test=
"publishTargetId != null"
>
,publish_target_id = #{publishTargetId}
</if><if
test=
"isEnableScheduler != null"
>
,is_enable_scheduler = #{isEnableScheduler}
</if><if
test=
"isEditTaskCode != null"
>
,is_edit_task_code = #{isEditTaskCode}
</if><if
test=
"isEnableSelect != null"
>
,is_enable_select = #{isEnableSelect}
</if><if
test=
"dwName != null"
>
,dw_name = #{dwName}
</if><if
test=
"dwAccessType != null"
>
,dw_access_type = #{dwAccessType}
</if><if
test=
"dwIsEnableAcl != null"
>
,dw_is_enable_acl = #{dwIsEnableAcl}
</if><if
test=
"dwIsEnableAccessObj != null"
>
,dw_is_enable_access_obj = #{dwIsEnableAccessObj}
</if><if
test=
"dwIsEnableAuthObj != null"
>
,dw_is_enable_auth_obj = #{dwIsEnableAuthObj}
</if><if
test=
"dwIsProtectData != null"
>
,dw_is_protect_data = #{dwIsProtectData}
</if><if
test=
"createUserId != null"
>
,create_user_id = #{createUserId}
</if><if
test=
"createTime != null"
>
,create_time = #{createTime}
</if><if
test=
"updateUserId != null"
>
,update_user_id = #{updateUserId}
</if><if
test=
"updateTime != null"
>
,update_time = #{updateTime}
</if>
WHERE id = #{id}
WHERE id = #{id}
</update>
</update>
<select
id=
"get"
parameterType=
"java.lang.Long"
resultType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
<select
id=
"get"
parameterType=
"java.lang.Long"
resultType=
"com.jz.dmp.
modules.model
.DmpProject"
>
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE id = #{id}
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE id = #{id}
</select>
</select>
...
@@ -63,19 +63,19 @@
...
@@ -63,19 +63,19 @@
FROM dmp_project WHERE data_status = '1' and id = #{id}
FROM dmp_project WHERE data_status = '1' and id = #{id}
</select>
</select>
<select
id=
"findList"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain.DmpProject"
resultType=
"com.jz.dmp.web.ui.modules.dmp.repository.domain
.DmpProject"
>
<select
id=
"findList"
parameterType=
"com.jz.dmp.
modules.model.DmpProject"
resultType=
"com.jz.dmp.modules.model
.DmpProject"
>
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE 1=1
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE 1=1
<if
test=
"ownerId != null"
>
AND owner_id = #{ownerId}
</if><if
test=
"productionId != null"
>
AND production_id = #{productionId}
</if><if
test=
"dataWarehouseId != null"
>
AND data_warehouse_id = #{dataWarehouseId}
</if><if
test=
"name != null"
>
AND name = #{name}
</if><if
test=
"displayName != null"
>
AND display_name = #{displayName}
</if><if
test=
"projectDesc != null"
>
AND project_desc = #{projectDesc}
</if><if
test=
"publishTargetId != null"
>
AND publish_target_id = #{publishTargetId}
</if><if
test=
"isEnableScheduler != null"
>
AND is_enable_scheduler = #{isEnableScheduler}
</if><if
test=
"isEditTaskCode != null"
>
AND is_edit_task_code = #{isEditTaskCode}
</if><if
test=
"isEnableSelect != null"
>
AND is_enable_select = #{isEnableSelect}
</if><if
test=
"dwName != null"
>
AND dw_name = #{dwName}
</if><if
test=
"dwAccessType != null"
>
AND dw_access_type = #{dwAccessType}
</if><if
test=
"dwIsEnableAcl != null"
>
AND dw_is_enable_acl = #{dwIsEnableAcl}
</if><if
test=
"dwIsEnableAccessObj != null"
>
AND dw_is_enable_access_obj = #{dwIsEnableAccessObj}
</if><if
test=
"dwIsEnableAuthObj != null"
>
AND dw_is_enable_auth_obj = #{dwIsEnableAuthObj}
</if><if
test=
"dwIsProtectData != null"
>
AND dw_is_protect_data = #{dwIsProtectData}
</if><if
test=
"dataStatus != null"
>
AND data_status = #{dataStatus}
</if>
<if
test=
"ownerId != null"
>
AND owner_id = #{ownerId}
</if><if
test=
"productionId != null"
>
AND production_id = #{productionId}
</if><if
test=
"dataWarehouseId != null"
>
AND data_warehouse_id = #{dataWarehouseId}
</if><if
test=
"name != null"
>
AND name = #{name}
</if><if
test=
"displayName != null"
>
AND display_name = #{displayName}
</if><if
test=
"projectDesc != null"
>
AND project_desc = #{projectDesc}
</if><if
test=
"publishTargetId != null"
>
AND publish_target_id = #{publishTargetId}
</if><if
test=
"isEnableScheduler != null"
>
AND is_enable_scheduler = #{isEnableScheduler}
</if><if
test=
"isEditTaskCode != null"
>
AND is_edit_task_code = #{isEditTaskCode}
</if><if
test=
"isEnableSelect != null"
>
AND is_enable_select = #{isEnableSelect}
</if><if
test=
"dwName != null"
>
AND dw_name = #{dwName}
</if><if
test=
"dwAccessType != null"
>
AND dw_access_type = #{dwAccessType}
</if><if
test=
"dwIsEnableAcl != null"
>
AND dw_is_enable_acl = #{dwIsEnableAcl}
</if><if
test=
"dwIsEnableAccessObj != null"
>
AND dw_is_enable_access_obj = #{dwIsEnableAccessObj}
</if><if
test=
"dwIsEnableAuthObj != null"
>
AND dw_is_enable_auth_obj = #{dwIsEnableAuthObj}
</if><if
test=
"dwIsProtectData != null"
>
AND dw_is_protect_data = #{dwIsProtectData}
</if><if
test=
"dataStatus != null"
>
AND data_status = #{dataStatus}
</if>
</select>
</select>
<select
id=
"findAllList"
resultType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
<select
id=
"findAllList"
resultType=
"com.jz.dmp.
modules.model
.DmpProject"
>
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE data_status = '1'
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE data_status = '1'
</select>
</select>
<!-- 模块内新增添加在下面 -->
<!-- 模块内新增添加在下面 -->
<select
id=
"getExampleQuery"
parameterType=
"java.util.Map"
<select
id=
"getExampleQuery"
parameterType=
"java.util.Map"
resultType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
resultType=
"com.jz.dmp.
modules.model
.DmpProject"
>
SELECT
SELECT
<include
refid=
"FIND_ALL_COLUMN"
/>
<include
refid=
"FIND_ALL_COLUMN"
/>
FROM dmp_project WHERE 1=1
FROM dmp_project WHERE 1=1
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
</select>
</select>
<select
id=
"getProjectPage1"
resultType=
"java.util.Map"
<select
id=
"getProjectPage1"
resultType=
"java.util.Map"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
select
select
p.id as id,
p.id as id,
p.name as name,
p.name as name,
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
</select>
</select>
<select
id=
"getProjectPageBak"
resultType=
"java.util.Map"
<select
id=
"getProjectPageBak"
resultType=
"java.util.Map"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
select
select
p.id as id,
p.id as id,
p.name as name,
p.name as name,
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
<select
id=
"getProjectPage"
resultType=
"java.util.Map"
<select
id=
"getProjectPage"
resultType=
"java.util.Map"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
select
select
p.id as id, p.name as name, p.display_name as displayName, ifnull(date_format(p.create_time, '%Y-%m-%d %H:%i:%S'), '-') as
p.id as id, p.name as name, p.display_name as displayName, ifnull(date_format(p.create_time, '%Y-%m-%d %H:%i:%S'), '-') as
createTime, p.owner_id as ownerId, p.project_desc as projectDesc, p.is_enable_scheduler as isEnableScheduler, p.is_enable_select as
createTime, p.owner_id as ownerId, p.project_desc as projectDesc, p.is_enable_scheduler as isEnableScheduler, p.is_enable_select as
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
</select>
</select>
<select
id=
"getHeaderProjectList"
resultType=
"java.util.Map"
<select
id=
"getHeaderProjectList"
resultType=
"java.util.Map"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProject"
>
parameterType=
"com.jz.dmp.
modules.model
.DmpProject"
>
select
select
p.id as id,
p.id as id,
p.name as name,
p.name as name,
...
@@ -235,7 +235,7 @@
...
@@ -235,7 +235,7 @@
and type = '1'
and type = '1'
</select>
</select>
<insert
id=
"insertProjectSystemInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProjectSystemInfo"
>
<insert
id=
"insertProjectSystemInfo"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.jz.dmp.
modules.model
.DmpProjectSystemInfo"
>
INSERT INTO dmp_project_system_info (
INSERT INTO dmp_project_system_info (
data_status
data_status
, create_user_id
, create_user_id
...
@@ -345,7 +345,7 @@
...
@@ -345,7 +345,7 @@
)
)
</insert>
</insert>
<update
id=
"updateProjectSystemInfo"
parameterType=
"com.jz.dmp.
web.ui.modules.dmp.repository.domain
.DmpProjectSystemInfo"
>
<update
id=
"updateProjectSystemInfo"
parameterType=
"com.jz.dmp.
modules.model
.DmpProjectSystemInfo"
>
UPDATE dmp_project_system_info SET
UPDATE dmp_project_system_info SET
data_status = #{dataStatus}
data_status = #{dataStatus}
,create_user_id = #{createUserId}
,create_user_id = #{createUserId}
...
@@ -403,7 +403,7 @@
...
@@ -403,7 +403,7 @@
<if
test=
"id != null"
>
AND id = #{id}
</if>
<if
test=
"id != null"
>
AND id = #{id}
</if>
</update>
</update>
<select
id=
"getProjectSystemInfo"
parameterType=
"java.lang.Long"
resultType=
"
com.jz.dmp.web.ui.modules.dmp.repository.domain.D
mpProjectSystemInfo"
>
<select
id=
"getProjectSystemInfo"
parameterType=
"java.lang.Long"
resultType=
"
d
mpProjectSystemInfo"
>
SELECT
SELECT
ID,
ID,
PROJECT_ID,
PROJECT_ID,
...
...
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