Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
zhangshaowu
/
pipi-helper
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a608dec0
authored
Oct 15, 2022
by
liushuangwu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
departMentName
1 parent
c2422c65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
3 deletions
src/main/java/com/pipihelper/project/feishu/entity/Pain.java
src/main/java/com/pipihelper/project/feishu/service/ChatMessageService.java
src/main/resources/mybatis/PainMapper.xml
src/main/java/com/pipihelper/project/feishu/entity/Pain.java
View file @
a608dec
...
...
@@ -16,4 +16,5 @@ public class Pain {
private
String
timeRange
;
private
Integer
floor
;
private
String
messageId
;
private
String
departMentName
;
//部门名
}
src/main/java/com/pipihelper/project/feishu/service/ChatMessageService.java
0 → 100644
View file @
a608dec
package
com
.
pipihelper
.
project
.
feishu
.
service
;
import
com.pipihelper.project.feishu.dao.ChatMessageDao
;
import
com.pipihelper.project.feishu.entity.ChatMessage
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
ChatMessageService
{
@Autowired
private
ChatMessageDao
chatMessageDao
;
public
ChatMessage
findById
(
Integer
id
)
{
return
chatMessageDao
.
findById
(
id
);
}
public
void
deleteById
(
Integer
id
)
{
chatMessageDao
.
deleteById
(
id
);
}
public
void
create
(
ChatMessage
chatMessage
)
{
chatMessageDao
.
create
(
chatMessage
);
}
public
void
update
(
ChatMessage
chatMessage
)
{
chatMessageDao
.
update
(
chatMessage
);
}
public
List
<
ChatMessage
>
findAll
()
{
return
chatMessageDao
.
findAll
();
}
public
List
<
ChatMessage
>
findListChatAndType
(
String
chatId
,
Integer
type
)
{
return
chatMessageDao
.
findListChatAndType
(
chatId
,
type
);
}
}
src/main/resources/mybatis/PainMapper.xml
View file @
a608dec
...
...
@@ -11,6 +11,7 @@
<result
column=
"floor"
property=
"floor"
/>
<result
column=
"message_id"
property=
"messageId"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"depart_ment_name"
property=
"departMentName"
/>
<result
column=
"index"
property=
"index"
/>
</resultMap>
...
...
@@ -19,7 +20,7 @@
</resultMap>-->
<sql
id=
"Base_Column_List"
>
id,open_id,start_time,end_time,status,floor,message_id,name
id,open_id,start_time,end_time,status,floor,message_id,name
,depart_ment_name
</sql>
<select
id=
"findById"
parameterType=
"java.lang.Integer"
resultMap=
"PainResultMap"
>
...
...
@@ -87,8 +88,8 @@
<insert
id=
"create"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.pipihelper.project.feishu.entity.Pain"
>
insert into t_pain (open_id, start_time, end_time, status, floor,message_id,name)
values (#{openId}, #{startTime}, #{endTime}, #{status},#{floor},#{messageId},#{name})
insert into t_pain (open_id, start_time, end_time, status, floor,message_id,name
,depart_ment_name
)
values (#{openId}, #{startTime}, #{endTime}, #{status},#{floor},#{messageId},#{name}
,#{departMentName}
)
</insert>
<update
id=
"waitPain"
parameterType=
"com.pipihelper.project.feishu.entity.Pain"
>
...
...
@@ -125,6 +126,9 @@
<if
test=
"name != null"
>
name = #{name},
</if>
<if
test=
"departMentName != null"
>
depart_ment_name = #{departMentName},
</if>
</set>
<where>
id = #{id}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment