Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
2117a2b0
Commit
2117a2b0
authored
Dec 05, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
群
parent
cca6cd2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
80 additions
and
0 deletions
+80
-0
GroupChatHmRelationMapper.xml
.../main/resources/mapper/chat/GroupChatHmRelationMapper.xml
+80
-0
No files found.
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatHmRelationMapper.xml
0 → 100644
View file @
2117a2b0
<?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.gic.haoban.manage.service.dao.mapper.chat.GroupChatHmRelationMapper"
>
<resultMap
type=
"com.gic.haoban.manage.service.entity.chat.TabGroupChatHmRelation"
id=
"result-map-tabHaobanGroupChatHmRelation"
>
<result
column=
"relation_id"
property=
"relationId"
/>
<result
column=
"wx_enterprise_id"
property=
"wxEnterpriseId"
/>
<result
column=
"enterprise_id"
property=
"enterpriseId"
/>
<result
column=
"chat_hm_id"
property=
"chatHmId"
/>
<result
column=
"group_chat_id"
property=
"groupChatId"
/>
<result
column=
"delete_flag"
property=
"deleteFlag"
/>
<result
column=
"status_flag"
property=
"statusFlag"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"update_time"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
relation_id,
wx_enterprise_id,
enterprise_id,
chat_hm_id,
group_chat_id,
delete_flag,
status_flag,
create_time,
update_time
</sql>
<!-- ===================== 新增 ======================== -->
<insert
id=
"insert"
parameterType=
"com.gic.haoban.manage.service.entity.chat.TabGroupChatHmRelation"
>
<![CDATA[
INSERT INTO tab_haoban_group_chat_hm_relation(
relation_id,
wx_enterprise_id,
enterprise_id,
chat_hm_id,
group_chat_id,
delete_flag,
status_flag,
create_time,
update_time
)VALUES(
#{relationId},
#{wxEnterpriseId},
#{enterpriseId},
#{chatHmId},
#{groupChatId},
0,
1,
now(),
now()
)
]]>
</insert>
<!-- =====================删除==================== -->
<delete
id=
"deleteById"
>
UPDATE tab_haoban_group_chat_hm_relation SET delete_flag = 1 WHERE
where chat_hm_id = #{chatHmId} and group_chat_id= #{groupChatId}
</delete>
<!-- ==================更新 ========== -->
<update
id=
"updateStatus"
>
<![CDATA[
UPDATE tab_haoban_group_chat_hm_relation SET
status_flag=#{statusFlag},
update_time=now()
where chat_hm_id = #{chatHmId} and group_chat_id= #{groupChatId}
]]>
</update>
<select
id=
"listByChatHmId"
resultMap=
"result-map-tabHaobanGroupChatHmRelation"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_group_chat_hm_relation where chat_hm_id = #{chatHmId} and delete_flag = 0
</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