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
cc42cd8a
Commit
cc42cd8a
authored
Mar 09, 2021
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
0ee7d414
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
DmpDevelopTaskMapper.xml
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
+3
-2
DmpSyncingDatasourceMapper.xml
src/main/resources/mapper/dmp/DmpSyncingDatasourceMapper.xml
+1
-0
OfflineSynchMapper.xml
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
+0
-1
No files found.
src/main/resources/mapper/dmp/DmpDevelopTaskMapper.xml
View file @
cc42cd8a
...
@@ -170,8 +170,8 @@
...
@@ -170,8 +170,8 @@
t1.name as taskName,
t1.name as taskName,
t1.type,
t1.type,
t1.create_user_id as createUserId,
t1.create_user_id as createUserId,
date_format(t
1
.create_time,'%Y-%m-%d %H:%i:%s') as createTime,
date_format(t
2
.create_time,'%Y-%m-%d %H:%i:%s') as createTime,
date_format(t
1
.update_time,'%Y-%m-%d %H:%i:%s') as updateTime,
date_format(t
2
.update_time,'%Y-%m-%d %H:%i:%s') as updateTime,
t3.real_name as userName
t3.real_name as userName
from
from
dmp_navigation_tree t1
dmp_navigation_tree t1
...
@@ -182,6 +182,7 @@
...
@@ -182,6 +182,7 @@
<if
test=
"taskId != null and taskId != ''"
>
and t2.id =#{taskId}
</if>
<if
test=
"taskId != null and taskId != ''"
>
and t2.id =#{taskId}
</if>
<if
test=
"treeIdOrName != null and treeIdOrName != ''"
>
and t1.name like concat('%',#{treeIdOrName},'%')
</if>
<if
test=
"treeIdOrName != null and treeIdOrName != ''"
>
and t1.name like concat('%',#{treeIdOrName},'%')
</if>
<if
test=
"taskType != null and taskType!= ''"
>
and t1.type=#{taskType}
</if>
<if
test=
"taskType != null and taskType!= ''"
>
and t1.type=#{taskType}
</if>
order by t2.create_time desc
</select>
</select>
<select
id=
"findList"
resultMap=
"DmpDevelopTaskResultMap"
>
<select
id=
"findList"
resultMap=
"DmpDevelopTaskResultMap"
>
...
...
src/main/resources/mapper/dmp/DmpSyncingDatasourceMapper.xml
View file @
cc42cd8a
...
@@ -302,6 +302,7 @@
...
@@ -302,6 +302,7 @@
and a.project_id = #{projectId}
and a.project_id = #{projectId}
<if
test=
"datasourceTypeId != null and datasourceTypeId !=''"
>
and a.datasource_type = #{datasourceTypeId}
</if>
<if
test=
"datasourceTypeId != null and datasourceTypeId !=''"
>
and a.datasource_type = #{datasourceTypeId}
</if>
<if
test=
"datasourceName != null and datasourceName !=''"
>
and a.datasource_name like CONCAT('%',#{datasourceName},'%')
</if>
<if
test=
"datasourceName != null and datasourceName !=''"
>
and a.datasource_name like CONCAT('%',#{datasourceName},'%')
</if>
order by a.create_time desc
</select>
</select>
<!--批量删除-->
<!--批量删除-->
...
...
src/main/resources/mapper/dmp/OfflineSynchMapper.xml
View file @
cc42cd8a
...
@@ -179,7 +179,6 @@
...
@@ -179,7 +179,6 @@
FROM dmp_develop_task ddt
FROM dmp_develop_task ddt
INNER join dmp_navigation_tree dnt ON ddt.TREE_ID = dnt.ID
INNER join dmp_navigation_tree dnt ON ddt.TREE_ID = dnt.ID
left join dmp_member t3 on ddt.create_user_id=t3.user_id
left join dmp_member t3 on ddt.create_user_id=t3.user_id
left join dmp_syncing_datasource dsd ON instr(script,concat('"targetDbConnection":"',dsd.datasource_name,'"'))>0
WHERE ddt.data_status ='1' and dnt.TYPE ='01' and dnt.IS_LEVEL ='1'
WHERE ddt.data_status ='1' and dnt.TYPE ='01' and dnt.IS_LEVEL ='1'
and dnt.PROJECT_ID =#{projectId}
and dnt.PROJECT_ID =#{projectId}
<if
test=
"treeName != null and treeName != ''"
>
dnt.NAME like concat('%',#{treeName},'%')
</if>
<if
test=
"treeName != null and treeName != ''"
>
dnt.NAME like concat('%',#{treeName},'%')
</if>
...
...
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