Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
535f55bf
Commit
535f55bf
authored
Nov 01, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间类型
parent
be8498f0
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1795 additions
and
613 deletions
+1795
-613
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysAiAssistantController.java
...om/wwdz/ch/admin/controller/SysAiAssistantController.java
+32
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysAiAssistantServiceImpl.java
...ava/com/wwdz/ch/admin/impl/SysAiAssistantServiceImpl.java
+24
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysAiAssistantService.java
...java/com/wwdz/ch/admin/service/SysAiAssistantService.java
+9
-0
ch-admin-api/src/test/java/com/wwdz/ch/admin/impl/SysIMServiceImplTest.java
...est/java/com/wwdz/ch/admin/impl/SysIMServiceImplTest.java
+41
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/AiAssistantDao.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/AiAssistantDao.java
+2
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
+4
-599
ch-dao/src/main/java/com/wwdz/ch/db/domain/Conversation.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Conversation.java
+266
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/ConversationExample.java
.../main/java/com/wwdz/ch/db/domain/ConversationExample.java
+993
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/ImRecord.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/ImRecord.java
+14
-3
ch-dao/src/main/java/com/wwdz/ch/db/impl/AiAssistantDaoImpl.java
...src/main/java/com/wwdz/ch/db/impl/AiAssistantDaoImpl.java
+6
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ConversationMapper.java
...c/main/java/com/wwdz/ch/db/mapper/ConversationMapper.java
+69
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ConversationMapper.xml
...in/resources/com/wwdz/ch/db/mapper/ConversationMapper.xml
+306
-0
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ImRecordMapper.xml
...c/main/resources/com/wwdz/ch/db/mapper/ImRecordMapper.xml
+29
-11
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/controller/SysAiAssistantController.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.admin.controller
;
import
com.alibaba.fastjson.JSON
;
import
com.wwdz.ch.admin.service.SysAiAssistantService
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.AiAssistantRequestDto
;
import
io.swagger.annotations.ApiOperation
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/admin/sysAiAssistant"
)
public
class
SysAiAssistantController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SysAiAssistantController
.
class
);
@Autowired
SysAiAssistantService
sysAiAssistantService
;
@ApiOperation
(
value
=
"ai机器人"
)
@PostMapping
(
"/find"
)
public
Result
find
(
@RequestBody
AiAssistantRequestDto
dto
)
{
logger
.
info
(
"【请求开始】ai机器人列表,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
return
sysAiAssistantService
.
find
(
dto
);
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysAiAssistantServiceImpl.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.admin.impl
;
import
com.wwdz.ch.admin.service.SysAiAssistantService
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.AiAssistantDao
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.dto.request.AiAssistantRequestDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
SysAiAssistantServiceImpl
implements
SysAiAssistantService
{
@Autowired
AiAssistantDao
aiAssistantDao
;
@Override
public
Result
find
(
AiAssistantRequestDto
aiAssistantRequestDto
)
{
List
<
AiAssistant
>
list
=
aiAssistantDao
.
find
(
aiAssistantRequestDto
);
return
Result
.
success
(
list
);
}
}
ch-admin-api/src/main/java/com/wwdz/ch/admin/service/SysAiAssistantService.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.admin.service
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dto.request.AiAssistantRequestDto
;
public
interface
SysAiAssistantService
{
Result
find
(
AiAssistantRequestDto
aiAssistantRequestDto
);
}
ch-admin-api/src/test/java/com/wwdz/ch/admin/impl/SysIMServiceImplTest.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.admin.impl
;
import
com.wwdz.ch.admin.service.BidRecordService
;
import
com.wwdz.ch.admin.service.SysIMService
;
import
com.wwdz.ch.core.consts.IMEnum
;
import
com.wwdz.ch.core.entity.im.SendChatMsgRequestDto
;
import
com.wwdz.ch.core.type.Result
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
@SpringBootTest
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
public
class
SysIMServiceImplTest
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
BidRecordServiceImplTest
.
class
);
@Autowired
SysIMService
sysIMService
;
@Test
public
void
sendChatMsg
()
{
SendChatMsgRequestDto
sendChatMsgRequestDto
=
new
SendChatMsgRequestDto
();
sendChatMsgRequestDto
.
setToAccount
(
"251"
);
sendChatMsgRequestDto
.
setFromAccount
(
"ai10000"
);
sendChatMsgRequestDto
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
long
timestamp
=
System
.
currentTimeMillis
();
String
msgContent
=
timestamp
+
" >> 测试消息的数据, 是否可以接收到"
;
// String msgContent = "Hi,欢迎来到老猫的世界";
sendChatMsgRequestDto
.
setMsgContent
(
msgContent
);
sendChatMsgRequestDto
.
setIsRealPersonAnswer
(
1
);
sendChatMsgRequestDto
.
setRealPersonId
(
"257"
);
sysIMService
.
sendChatMsg
(
sendChatMsgRequestDto
);
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/dao/AiAssistantDao.java
View file @
535f55bf
...
...
@@ -6,6 +6,8 @@ import java.util.List;
public
interface
AiAssistantDao
{
List
<
AiAssistant
>
find
(
AiAssistantRequestDto
dto
);
List
<
AiAssistant
>
findList
(
AiAssistantRequestDto
dto
);
AiAssistant
findByCode
(
String
code
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/Admin.java
View file @
535f55bf
...
...
@@ -6,6 +6,7 @@ import lombok.Data;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
@Data
public
class
Admin
implements
Entity
{
...
...
@@ -70,7 +71,7 @@ public class Admin implements Entity {
*
* @mbg.generated
*/
private
LocalDateTim
e
lastLoginTime
;
private
Dat
e
lastLoginTime
;
/**
*
...
...
@@ -88,7 +89,7 @@ public class Admin implements Entity {
*
* @mbg.generated
*/
private
LocalDateTim
e
addTime
;
private
Dat
e
addTime
;
/**
*
...
...
@@ -97,7 +98,7 @@ public class Admin implements Entity {
*
* @mbg.generated
*/
private
LocalDateTim
e
updateTime
;
private
Dat
e
updateTime
;
/**
*
...
...
@@ -144,601 +145,5 @@ public class Admin implements Entity {
*/
private
String
mail
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.id
*
* @return the value of dts_admin.id
*
* @mbg.generated
*/
public
Integer
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.id
*
* @param id the value for dts_admin.id
*
* @mbg.generated
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.username
*
* @return the value of dts_admin.username
*
* @mbg.generated
*/
public
String
getUsername
()
{
return
username
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.username
*
* @param username the value for dts_admin.username
*
* @mbg.generated
*/
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.password
*
* @return the value of dts_admin.password
*
* @mbg.generated
*/
public
String
getPassword
()
{
return
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.password
*
* @param password the value for dts_admin.password
*
* @mbg.generated
*/
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.last_login_ip
*
* @return the value of dts_admin.last_login_ip
*
* @mbg.generated
*/
public
String
getLastLoginIp
()
{
return
lastLoginIp
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.last_login_ip
*
* @param lastLoginIp the value for dts_admin.last_login_ip
*
* @mbg.generated
*/
public
void
setLastLoginIp
(
String
lastLoginIp
)
{
this
.
lastLoginIp
=
lastLoginIp
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.last_login_time
*
* @return the value of dts_admin.last_login_time
*
* @mbg.generated
*/
public
LocalDateTime
getLastLoginTime
()
{
return
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.last_login_time
*
* @param lastLoginTime the value for dts_admin.last_login_time
*
* @mbg.generated
*/
public
void
setLastLoginTime
(
LocalDateTime
lastLoginTime
)
{
this
.
lastLoginTime
=
lastLoginTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.avatar
*
* @return the value of dts_admin.avatar
*
* @mbg.generated
*/
public
String
getAvatar
()
{
return
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.avatar
*
* @param avatar the value for dts_admin.avatar
*
* @mbg.generated
*/
public
void
setAvatar
(
String
avatar
)
{
this
.
avatar
=
avatar
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.add_time
*
* @return the value of dts_admin.add_time
*
* @mbg.generated
*/
public
LocalDateTime
getAddTime
()
{
return
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.add_time
*
* @param addTime the value for dts_admin.add_time
*
* @mbg.generated
*/
public
void
setAddTime
(
LocalDateTime
addTime
)
{
this
.
addTime
=
addTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.update_time
*
* @return the value of dts_admin.update_time
*
* @mbg.generated
*/
public
LocalDateTime
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.update_time
*
* @param updateTime the value for dts_admin.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
LocalDateTime
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.deleted
*
* @return the value of dts_admin.deleted
*
* @mbg.generated
*/
public
Boolean
getDeleted
()
{
return
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.deleted
*
* @param deleted the value for dts_admin.deleted
*
* @mbg.generated
*/
public
void
setDeleted
(
Boolean
deleted
)
{
this
.
deleted
=
deleted
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.role_ids
*
* @return the value of dts_admin.role_ids
*
* @mbg.generated
*/
public
Integer
[]
getRoleIds
()
{
return
roleIds
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.role_ids
*
* @param roleIds the value for dts_admin.role_ids
*
* @mbg.generated
*/
public
void
setRoleIds
(
Integer
[]
roleIds
)
{
this
.
roleIds
=
roleIds
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.desc
*
* @return the value of dts_admin.desc
*
* @mbg.generated
*/
public
String
getDesc
()
{
return
desc
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.desc
*
* @param desc the value for dts_admin.desc
*
* @mbg.generated
*/
public
void
setDesc
(
String
desc
)
{
this
.
desc
=
desc
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.tel
*
* @return the value of dts_admin.tel
*
* @mbg.generated
*/
public
String
getTel
()
{
return
tel
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.tel
*
* @param tel the value for dts_admin.tel
*
* @mbg.generated
*/
public
void
setTel
(
String
tel
)
{
this
.
tel
=
tel
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column dts_admin.mail
*
* @return the value of dts_admin.mail
*
* @mbg.generated
*/
public
String
getMail
()
{
return
mail
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column dts_admin.mail
*
* @param mail the value for dts_admin.mail
*
* @mbg.generated
*/
public
void
setMail
(
String
mail
)
{
this
.
mail
=
mail
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", username="
).
append
(
username
);
sb
.
append
(
", password="
).
append
(
password
);
sb
.
append
(
", lastLoginIp="
).
append
(
lastLoginIp
);
sb
.
append
(
", lastLoginTime="
).
append
(
lastLoginTime
);
sb
.
append
(
", avatar="
).
append
(
avatar
);
sb
.
append
(
", addTime="
).
append
(
addTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", deleted="
).
append
(
deleted
);
sb
.
append
(
", roleIds="
).
append
(
roleIds
);
sb
.
append
(
", desc="
).
append
(
desc
);
sb
.
append
(
", tel="
).
append
(
tel
);
sb
.
append
(
", mail="
).
append
(
mail
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
Admin
other
=
(
Admin
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getUsername
()
==
null
?
other
.
getUsername
()
==
null
:
this
.
getUsername
().
equals
(
other
.
getUsername
()))
&&
(
this
.
getPassword
()
==
null
?
other
.
getPassword
()
==
null
:
this
.
getPassword
().
equals
(
other
.
getPassword
()))
&&
(
this
.
getLastLoginIp
()
==
null
?
other
.
getLastLoginIp
()
==
null
:
this
.
getLastLoginIp
().
equals
(
other
.
getLastLoginIp
()))
&&
(
this
.
getLastLoginTime
()
==
null
?
other
.
getLastLoginTime
()
==
null
:
this
.
getLastLoginTime
().
equals
(
other
.
getLastLoginTime
()))
&&
(
this
.
getAvatar
()
==
null
?
other
.
getAvatar
()
==
null
:
this
.
getAvatar
().
equals
(
other
.
getAvatar
()))
&&
(
this
.
getAddTime
()
==
null
?
other
.
getAddTime
()
==
null
:
this
.
getAddTime
().
equals
(
other
.
getAddTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getDeleted
()
==
null
?
other
.
getDeleted
()
==
null
:
this
.
getDeleted
().
equals
(
other
.
getDeleted
()))
&&
(
Arrays
.
equals
(
this
.
getRoleIds
(),
other
.
getRoleIds
()))
&&
(
this
.
getDesc
()
==
null
?
other
.
getDesc
()
==
null
:
this
.
getDesc
().
equals
(
other
.
getDesc
()))
&&
(
this
.
getTel
()
==
null
?
other
.
getTel
()
==
null
:
this
.
getTel
().
equals
(
other
.
getTel
()))
&&
(
this
.
getMail
()
==
null
?
other
.
getMail
()
==
null
:
this
.
getMail
().
equals
(
other
.
getMail
()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getUsername
()
==
null
)
?
0
:
getUsername
().
hashCode
());
result
=
prime
*
result
+
((
getPassword
()
==
null
)
?
0
:
getPassword
().
hashCode
());
result
=
prime
*
result
+
((
getLastLoginIp
()
==
null
)
?
0
:
getLastLoginIp
().
hashCode
());
result
=
prime
*
result
+
((
getLastLoginTime
()
==
null
)
?
0
:
getLastLoginTime
().
hashCode
());
result
=
prime
*
result
+
((
getAvatar
()
==
null
)
?
0
:
getAvatar
().
hashCode
());
result
=
prime
*
result
+
((
getAddTime
()
==
null
)
?
0
:
getAddTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getDeleted
()
==
null
)
?
0
:
getDeleted
().
hashCode
());
result
=
prime
*
result
+
(
Arrays
.
hashCode
(
getRoleIds
()));
result
=
prime
*
result
+
((
getDesc
()
==
null
)
?
0
:
getDesc
().
hashCode
());
result
=
prime
*
result
+
((
getTel
()
==
null
)
?
0
:
getTel
().
hashCode
());
result
=
prime
*
result
+
((
getMail
()
==
null
)
?
0
:
getMail
().
hashCode
());
return
result
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
void
andLogicalDeleted
(
boolean
deleted
)
{
setDeleted
(
deleted
?
IS_DELETED
:
NOT_DELETED
);
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
username
(
"username"
,
"username"
,
"VARCHAR"
,
false
),
password
(
"password"
,
"password"
,
"VARCHAR"
,
true
),
lastLoginIp
(
"last_login_ip"
,
"lastLoginIp"
,
"VARCHAR"
,
false
),
lastLoginTime
(
"last_login_time"
,
"lastLoginTime"
,
"TIMESTAMP"
,
false
),
avatar
(
"avatar"
,
"avatar"
,
"VARCHAR"
,
false
),
addTime
(
"add_time"
,
"addTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
deleted
(
"deleted"
,
"deleted"
,
"BIT"
,
false
),
roleIds
(
"role_ids"
,
"roleIds"
,
"VARCHAR"
,
false
),
desc
(
"desc"
,
"desc"
,
"VARCHAR"
,
true
),
tel
(
"tel"
,
"tel"
,
"VARCHAR"
,
false
),
mail
(
"mail"
,
"mail"
,
"VARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/Conversation.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.db.domain
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2023/11/01
*/
@Data
public
class
Conversation
implements
Entity
{
private
Integer
id
;
/**
* 会话id
*/
private
String
chatId
;
/**
* 消息发送账户
*/
private
String
fromAccount
;
/**
* 消息接收账户
*/
private
String
toAccount
;
/**
* 创建时间
*/
private
Date
createTime
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", chatId="
).
append
(
chatId
);
sb
.
append
(
", fromAccount="
).
append
(
fromAccount
);
sb
.
append
(
", toAccount="
).
append
(
toAccount
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
@Override
public
boolean
equals
(
Object
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
that
==
null
)
{
return
false
;
}
if
(
getClass
()
!=
that
.
getClass
())
{
return
false
;
}
Conversation
other
=
(
Conversation
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getChatId
()
==
null
?
other
.
getChatId
()
==
null
:
this
.
getChatId
().
equals
(
other
.
getChatId
()))
&&
(
this
.
getFromAccount
()
==
null
?
other
.
getFromAccount
()
==
null
:
this
.
getFromAccount
().
equals
(
other
.
getFromAccount
()))
&&
(
this
.
getToAccount
()
==
null
?
other
.
getToAccount
()
==
null
:
this
.
getToAccount
().
equals
(
other
.
getToAccount
()))
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getChatId
()
==
null
)
?
0
:
getChatId
().
hashCode
());
result
=
prime
*
result
+
((
getFromAccount
()
==
null
)
?
0
:
getFromAccount
().
hashCode
());
result
=
prime
*
result
+
((
getToAccount
()
==
null
)
?
0
:
getToAccount
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"INTEGER"
,
false
),
chatId
(
"chat_id"
,
"chatId"
,
"VARCHAR"
,
false
),
fromAccount
(
"from_account"
,
"fromAccount"
,
"VARCHAR"
,
false
),
toAccount
(
"to_account"
,
"toAccount"
,
"VARCHAR"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
BEGINNING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
static
final
String
ENDING_DELIMITER
=
"`"
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
column
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
boolean
isColumnNameDelimited
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
javaProperty
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
final
String
jdbcType
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
value
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getValue
()
{
return
this
.
column
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJavaProperty
()
{
return
this
.
javaProperty
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getJdbcType
()
{
return
this
.
jdbcType
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column
(
String
column
,
String
javaProperty
,
String
jdbcType
,
boolean
isColumnNameDelimited
)
{
this
.
column
=
column
;
this
.
javaProperty
=
javaProperty
;
this
.
jdbcType
=
jdbcType
;
this
.
isColumnNameDelimited
=
isColumnNameDelimited
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
desc
()
{
return
this
.
getEscapedColumnName
()
+
" DESC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
asc
()
{
return
this
.
getEscapedColumnName
()
+
" ASC"
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Column
[]
excludes
(
Column
...
excludes
)
{
ArrayList
<
Column
>
columns
=
new
ArrayList
<>(
Arrays
.
asList
(
Column
.
values
()));
if
(
excludes
!=
null
&&
excludes
.
length
>
0
)
{
columns
.
removeAll
(
new
ArrayList
<>(
Arrays
.
asList
(
excludes
)));
}
return
columns
.
toArray
(
new
Column
[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
String
getEscapedColumnName
()
{
if
(
this
.
isColumnNameDelimited
)
{
return
new
StringBuilder
().
append
(
BEGINNING_DELIMITER
).
append
(
this
.
column
).
append
(
ENDING_DELIMITER
).
toString
();
}
else
{
return
this
.
column
;
}
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/ConversationExample.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.db.domain
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
ConversationExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
ConversationExample
()
{
oredCriteria
=
new
ArrayList
<
Criteria
>();
}
public
void
setOrderByClause
(
String
orderByClause
)
{
this
.
orderByClause
=
orderByClause
;
}
public
String
getOrderByClause
()
{
return
orderByClause
;
}
public
void
setDistinct
(
boolean
distinct
)
{
this
.
distinct
=
distinct
;
}
public
boolean
isDistinct
()
{
return
distinct
;
}
public
List
<
Criteria
>
getOredCriteria
()
{
return
oredCriteria
;
}
public
void
or
(
Criteria
criteria
)
{
oredCriteria
.
add
(
criteria
);
}
public
Criteria
or
()
{
Criteria
criteria
=
createCriteriaInternal
();
oredCriteria
.
add
(
criteria
);
return
criteria
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ConversationExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ConversationExample
orderBy
(
String
...
orderByClauses
)
{
StringBuffer
sb
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
orderByClauses
.
length
;
i
++)
{
sb
.
append
(
orderByClauses
[
i
]);
if
(
i
<
orderByClauses
.
length
-
1
)
{
sb
.
append
(
" , "
);
}
}
this
.
setOrderByClause
(
sb
.
toString
());
return
this
;
}
public
Criteria
createCriteria
()
{
Criteria
criteria
=
createCriteriaInternal
();
if
(
oredCriteria
.
size
()
==
0
)
{
oredCriteria
.
add
(
criteria
);
}
return
criteria
;
}
protected
Criteria
createCriteriaInternal
()
{
Criteria
criteria
=
new
Criteria
(
this
);
return
criteria
;
}
public
void
clear
()
{
oredCriteria
.
clear
();
orderByClause
=
null
;
distinct
=
false
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
ConversationExample
example
=
new
ConversationExample
();
return
example
.
createCriteria
();
}
protected
abstract
static
class
GeneratedCriteria
{
protected
List
<
Criterion
>
criteria
;
protected
GeneratedCriteria
()
{
super
();
criteria
=
new
ArrayList
<
Criterion
>();
}
public
boolean
isValid
()
{
return
criteria
.
size
()
>
0
;
}
public
List
<
Criterion
>
getAllCriteria
()
{
return
criteria
;
}
public
List
<
Criterion
>
getCriteria
()
{
return
criteria
;
}
protected
void
addCriterion
(
String
condition
)
{
if
(
condition
==
null
)
{
throw
new
RuntimeException
(
"Value for condition cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
));
}
protected
void
addCriterion
(
String
condition
,
Object
value
,
String
property
)
{
if
(
value
==
null
)
{
throw
new
RuntimeException
(
"Value for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value
));
}
protected
void
addCriterion
(
String
condition
,
Object
value1
,
Object
value2
,
String
property
)
{
if
(
value1
==
null
||
value2
==
null
)
{
throw
new
RuntimeException
(
"Between values for "
+
property
+
" cannot be null"
);
}
criteria
.
add
(
new
Criterion
(
condition
,
value1
,
value2
));
}
public
Criteria
andIdIsNull
()
{
addCriterion
(
"id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdIsNotNull
()
{
addCriterion
(
"id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdEqualTo
(
Integer
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Integer
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Integer
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Integer
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdIsNull
()
{
addCriterion
(
"chat_id is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdIsNotNull
()
{
addCriterion
(
"chat_id is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdEqualTo
(
String
value
)
{
addCriterion
(
"chat_id ="
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdNotEqualTo
(
String
value
)
{
addCriterion
(
"chat_id <>"
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdNotEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdGreaterThan
(
String
value
)
{
addCriterion
(
"chat_id >"
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdGreaterThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"chat_id >="
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdGreaterThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdLessThan
(
String
value
)
{
addCriterion
(
"chat_id <"
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdLessThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"chat_id <="
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andChatIdLessThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"chat_id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdLike
(
String
value
)
{
addCriterion
(
"chat_id like"
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdNotLike
(
String
value
)
{
addCriterion
(
"chat_id not like"
,
value
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdIn
(
List
<
String
>
values
)
{
addCriterion
(
"chat_id in"
,
values
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"chat_id not in"
,
values
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"chat_id between"
,
value1
,
value2
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andChatIdNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"chat_id not between"
,
value1
,
value2
,
"chatId"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountIsNull
()
{
addCriterion
(
"from_account is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountIsNotNull
()
{
addCriterion
(
"from_account is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountEqualTo
(
String
value
)
{
addCriterion
(
"from_account ="
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountNotEqualTo
(
String
value
)
{
addCriterion
(
"from_account <>"
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountNotEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountGreaterThan
(
String
value
)
{
addCriterion
(
"from_account >"
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountGreaterThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"from_account >="
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountGreaterThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountLessThan
(
String
value
)
{
addCriterion
(
"from_account <"
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountLessThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"from_account <="
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountLessThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"from_account <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountLike
(
String
value
)
{
addCriterion
(
"from_account like"
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountNotLike
(
String
value
)
{
addCriterion
(
"from_account not like"
,
value
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountIn
(
List
<
String
>
values
)
{
addCriterion
(
"from_account in"
,
values
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"from_account not in"
,
values
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"from_account between"
,
value1
,
value2
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andFromAccountNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"from_account not between"
,
value1
,
value2
,
"fromAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountIsNull
()
{
addCriterion
(
"to_account is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountIsNotNull
()
{
addCriterion
(
"to_account is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountEqualTo
(
String
value
)
{
addCriterion
(
"to_account ="
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountNotEqualTo
(
String
value
)
{
addCriterion
(
"to_account <>"
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountNotEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountGreaterThan
(
String
value
)
{
addCriterion
(
"to_account >"
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountGreaterThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"to_account >="
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountGreaterThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountLessThan
(
String
value
)
{
addCriterion
(
"to_account <"
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountLessThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"to_account <="
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountLessThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"to_account <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountLike
(
String
value
)
{
addCriterion
(
"to_account like"
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountNotLike
(
String
value
)
{
addCriterion
(
"to_account not like"
,
value
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountIn
(
List
<
String
>
values
)
{
addCriterion
(
"to_account in"
,
values
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"to_account not in"
,
values
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"to_account between"
,
value1
,
value2
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andToAccountNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"to_account not between"
,
value1
,
value2
,
"toAccount"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNull
()
{
addCriterion
(
"create_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIsNotNull
()
{
addCriterion
(
"create_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"create_time ="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <>"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"create_time >"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time >="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThan
(
Date
value
)
{
addCriterion
(
"create_time <"
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"create_time <="
,
value
,
"createTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
Conversation
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"create_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"create_time not in"
,
values
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andCreateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"create_time not between"
,
value1
,
value2
,
"createTime"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
ConversationExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
ConversationExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ConversationExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIf
(
boolean
ifAdd
,
ICriteriaAdd
add
)
{
if
(
ifAdd
)
{
add
.
add
(
this
);
}
return
this
;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
interface
ICriteriaAdd
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria
add
(
Criteria
add
);
}
}
public
static
class
Criterion
{
private
String
condition
;
private
Object
value
;
private
Object
secondValue
;
private
boolean
noValue
;
private
boolean
singleValue
;
private
boolean
betweenValue
;
private
boolean
listValue
;
private
String
typeHandler
;
public
String
getCondition
()
{
return
condition
;
}
public
Object
getValue
()
{
return
value
;
}
public
Object
getSecondValue
()
{
return
secondValue
;
}
public
boolean
isNoValue
()
{
return
noValue
;
}
public
boolean
isSingleValue
()
{
return
singleValue
;
}
public
boolean
isBetweenValue
()
{
return
betweenValue
;
}
public
boolean
isListValue
()
{
return
listValue
;
}
public
String
getTypeHandler
()
{
return
typeHandler
;
}
protected
Criterion
(
String
condition
)
{
super
();
this
.
condition
=
condition
;
this
.
typeHandler
=
null
;
this
.
noValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
typeHandler
=
typeHandler
;
if
(
value
instanceof
List
<?>)
{
this
.
listValue
=
true
;
}
else
{
this
.
singleValue
=
true
;
}
}
protected
Criterion
(
String
condition
,
Object
value
)
{
this
(
condition
,
value
,
null
);
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
,
String
typeHandler
)
{
super
();
this
.
condition
=
condition
;
this
.
value
=
value
;
this
.
secondValue
=
secondValue
;
this
.
typeHandler
=
typeHandler
;
this
.
betweenValue
=
true
;
}
protected
Criterion
(
String
condition
,
Object
value
,
Object
secondValue
)
{
this
(
condition
,
value
,
secondValue
,
null
);
}
}
}
\ No newline at end of file
ch-dao/src/main/java/com/wwdz/ch/db/domain/ImRecord.java
View file @
535f55bf
package
com.wwdz.ch.db.domain
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2023/1
0/23
* @date 2023/1
1/01
*/
@Data
public
class
ImRecord
implements
Entity
{
...
...
@@ -69,6 +71,11 @@ public class ImRecord implements Entity {
*/
private
String
msgContent
;
/**
* 自定义消息数据
*/
private
String
cloudCustomData
;
private
static
final
long
serialVersionUID
=
1L
;
@Override
...
...
@@ -89,6 +96,7 @@ public class ImRecord implements Entity {
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", msgContent="
).
append
(
msgContent
);
sb
.
append
(
", cloudCustomData="
).
append
(
cloudCustomData
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
...
...
@@ -117,7 +125,8 @@ public class ImRecord implements Entity {
&&
(
this
.
getCreateTime
()
==
null
?
other
.
getCreateTime
()
==
null
:
this
.
getCreateTime
().
equals
(
other
.
getCreateTime
()))
&&
(
this
.
getUpdateTime
()
==
null
?
other
.
getUpdateTime
()
==
null
:
this
.
getUpdateTime
().
equals
(
other
.
getUpdateTime
()))
&&
(
this
.
getState
()
==
null
?
other
.
getState
()
==
null
:
this
.
getState
().
equals
(
other
.
getState
()))
&&
(
this
.
getMsgContent
()
==
null
?
other
.
getMsgContent
()
==
null
:
this
.
getMsgContent
().
equals
(
other
.
getMsgContent
()));
&&
(
this
.
getMsgContent
()
==
null
?
other
.
getMsgContent
()
==
null
:
this
.
getMsgContent
().
equals
(
other
.
getMsgContent
()))
&&
(
this
.
getCloudCustomData
()
==
null
?
other
.
getCloudCustomData
()
==
null
:
this
.
getCloudCustomData
().
equals
(
other
.
getCloudCustomData
()));
}
@Override
...
...
@@ -136,6 +145,7 @@ public class ImRecord implements Entity {
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getMsgContent
()
==
null
)
?
0
:
getMsgContent
().
hashCode
());
result
=
prime
*
result
+
((
getCloudCustomData
()
==
null
)
?
0
:
getCloudCustomData
().
hashCode
());
return
result
;
}
...
...
@@ -158,7 +168,8 @@ public class ImRecord implements Entity {
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
msgContent
(
"msg_content"
,
"msgContent"
,
"LONGVARCHAR"
,
false
);
msgContent
(
"msg_content"
,
"msgContent"
,
"LONGVARCHAR"
,
false
),
cloudCustomData
(
"cloud_custom_data"
,
"cloudCustomData"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/AiAssistantDaoImpl.java
View file @
535f55bf
...
...
@@ -17,6 +17,12 @@ public class AiAssistantDaoImpl implements AiAssistantDao {
@Autowired
AiAssistantMapper
aiAssistantMapper
;
@Override
public
List
<
AiAssistant
>
find
(
AiAssistantRequestDto
dto
)
{
AiAssistantExample
aiAssistantExample
=
new
AiAssistantExample
();
return
aiAssistantMapper
.
selectByExample
(
aiAssistantExample
);
}
@Override
public
List
<
AiAssistant
>
findList
(
AiAssistantRequestDto
dto
)
{
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ConversationMapper.java
0 → 100644
View file @
535f55bf
package
com.wwdz.ch.db.mapper
;
import
com.wwdz.ch.db.domain.Conversation
;
import
com.wwdz.ch.db.domain.ConversationExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
ConversationMapper
{
long
countByExample
(
ConversationExample
example
);
int
deleteByExample
(
ConversationExample
example
);
int
deleteByPrimaryKey
(
Integer
id
);
int
insert
(
Conversation
record
);
int
insertSelective
(
Conversation
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Conversation
selectOneByExample
(
ConversationExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Conversation
selectOneByExampleSelective
(
@Param
(
"example"
)
ConversationExample
example
,
@Param
(
"selective"
)
Conversation
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
Conversation
>
selectByExampleSelective
(
@Param
(
"example"
)
ConversationExample
example
,
@Param
(
"selective"
)
Conversation
.
Column
...
selective
);
List
<
Conversation
>
selectByExample
(
ConversationExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table conversation
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Conversation
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Integer
id
,
@Param
(
"selective"
)
Conversation
.
Column
...
selective
);
Conversation
selectByPrimaryKey
(
Integer
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
Conversation
record
,
@Param
(
"example"
)
ConversationExample
example
);
int
updateByExample
(
@Param
(
"record"
)
Conversation
record
,
@Param
(
"example"
)
ConversationExample
example
);
int
updateByPrimaryKeySelective
(
Conversation
record
);
int
updateByPrimaryKey
(
Conversation
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ConversationMapper.xml
0 → 100644
View file @
535f55bf
<?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.wwdz.ch.db.mapper.ConversationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.wwdz.ch.db.domain.Conversation"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"chat_id"
jdbcType=
"VARCHAR"
property=
"chatId"
/>
<result
column=
"from_account"
jdbcType=
"VARCHAR"
property=
"fromAccount"
/>
<result
column=
"to_account"
jdbcType=
"VARCHAR"
property=
"toAccount"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, chat_id, from_account, to_account, create_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.wwdz.ch.db.domain.ConversationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if
test=
"example.distinct"
>
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, chat_id, from_account, to_account, create_time
</otherwise>
</choose>
from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from conversation
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKeySelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, chat_id, from_account, to_account, create_time
</otherwise>
</choose>
from conversation
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from conversation
where id = #{id,jdbcType=INTEGER}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.wwdz.ch.db.domain.ConversationExample"
>
delete from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.wwdz.ch.db.domain.Conversation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into conversation (chat_id, from_account, to_account,
create_time)
values (#{chatId,jdbcType=VARCHAR}, #{fromAccount,jdbcType=VARCHAR}, #{toAccount,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.Conversation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into conversation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chatId != null"
>
chat_id,
</if>
<if
test=
"fromAccount != null"
>
from_account,
</if>
<if
test=
"toAccount != null"
>
to_account,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"chatId != null"
>
#{chatId,jdbcType=VARCHAR},
</if>
<if
test=
"fromAccount != null"
>
#{fromAccount,jdbcType=VARCHAR},
</if>
<if
test=
"toAccount != null"
>
#{toAccount,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.ConversationExample"
resultType=
"java.lang.Long"
>
select count(*) from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update conversation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=INTEGER},
</if>
<if
test=
"record.chatId != null"
>
chat_id = #{record.chatId,jdbcType=VARCHAR},
</if>
<if
test=
"record.fromAccount != null"
>
from_account = #{record.fromAccount,jdbcType=VARCHAR},
</if>
<if
test=
"record.toAccount != null"
>
to_account = #{record.toAccount,jdbcType=VARCHAR},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update conversation
set id = #{record.id,jdbcType=INTEGER},
chat_id = #{record.chatId,jdbcType=VARCHAR},
from_account = #{record.fromAccount,jdbcType=VARCHAR},
to_account = #{record.toAccount,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.wwdz.ch.db.domain.Conversation"
>
update conversation
<set>
<if
test=
"chatId != null"
>
chat_id = #{chatId,jdbcType=VARCHAR},
</if>
<if
test=
"fromAccount != null"
>
from_account = #{fromAccount,jdbcType=VARCHAR},
</if>
<if
test=
"toAccount != null"
>
to_account = #{toAccount,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.Conversation"
>
update conversation
set chat_id = #{chatId,jdbcType=VARCHAR},
from_account = #{fromAccount,jdbcType=VARCHAR},
to_account = #{toAccount,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
<select
id=
"selectOneByExample"
parameterType=
"com.wwdz.ch.db.domain.ConversationExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include
refid=
"Base_Column_List"
/>
from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
limit 1
</select>
<select
id=
"selectOneByExampleSelective"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length > 0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, chat_id, from_account, to_account, create_time
</otherwise>
</choose>
from conversation
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
<if
test=
"example.orderByClause != null"
>
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ImRecordMapper.xml
View file @
535f55bf
...
...
@@ -16,6 +16,7 @@
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.wwdz.ch.db.domain.ImRecord"
>
<result
column=
"msg_content"
jdbcType=
"LONGVARCHAR"
property=
"msgContent"
/>
<result
column=
"cloud_custom_data"
jdbcType=
"LONGVARCHAR"
property=
"cloudCustomData"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
...
...
@@ -80,7 +81,7 @@
create_time, update_time, `state`
</sql>
<sql
id=
"Blob_Column_List"
>
msg_content
msg_content
, cloud_custom_data
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"com.wwdz.ch.db.domain.ImRecordExample"
resultMap=
"ResultMapWithBLOBs"
>
select
...
...
@@ -126,14 +127,14 @@
distinct
</if>
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, from_account, to_account, msg_key, msg_time, send_msg_result, msg_type, online_only_flag,
create_time, update_time, `state`, msg_content
create_time, update_time, `state`, msg_content
, cloud_custom_data
</otherwise>
</choose>
from im_record
...
...
@@ -160,14 +161,14 @@
-->
select
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, from_account, to_account, msg_key, msg_time, send_msg_result, msg_type, online_only_flag,
create_time, update_time, `state`, msg_content
create_time, update_time, `state`, msg_content
, cloud_custom_data
</otherwise>
</choose>
from im_record
...
...
@@ -190,11 +191,13 @@
insert into im_record (from_account, to_account, msg_key,
msg_time, send_msg_result, msg_type,
online_only_flag, create_time, update_time,
`state`, msg_content)
`state`, msg_content, cloud_custom_data
)
values (#{fromAccount,jdbcType=VARCHAR}, #{toAccount,jdbcType=VARCHAR}, #{msgKey,jdbcType=VARCHAR},
#{msgTime,jdbcType=TIMESTAMP}, #{sendMsgResult,jdbcType=INTEGER}, #{msgType,jdbcType=INTEGER},
#{onlineOnlyFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{state,jdbcType=INTEGER}, #{msgContent,jdbcType=LONGVARCHAR})
#{state,jdbcType=INTEGER}, #{msgContent,jdbcType=LONGVARCHAR}, #{cloudCustomData,jdbcType=LONGVARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.wwdz.ch.db.domain.ImRecord"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
...
...
@@ -235,6 +238,9 @@
<if
test=
"msgContent != null"
>
msg_content,
</if>
<if
test=
"cloudCustomData != null"
>
cloud_custom_data,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fromAccount != null"
>
...
...
@@ -270,6 +276,9 @@
<if
test=
"msgContent != null"
>
#{msgContent,jdbcType=LONGVARCHAR},
</if>
<if
test=
"cloudCustomData != null"
>
#{cloudCustomData,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.wwdz.ch.db.domain.ImRecordExample"
resultType=
"java.lang.Long"
>
...
...
@@ -317,6 +326,9 @@
<if
test=
"record.msgContent != null"
>
msg_content = #{record.msgContent,jdbcType=LONGVARCHAR},
</if>
<if
test=
"record.cloudCustomData != null"
>
cloud_custom_data = #{record.cloudCustomData,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
...
@@ -335,7 +347,8 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
`state` = #{record.state,jdbcType=INTEGER},
msg_content = #{record.msgContent,jdbcType=LONGVARCHAR}
msg_content = #{record.msgContent,jdbcType=LONGVARCHAR},
cloud_custom_data = #{record.cloudCustomData,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
...
...
@@ -393,6 +406,9 @@
<if
test=
"msgContent != null"
>
msg_content = #{msgContent,jdbcType=LONGVARCHAR},
</if>
<if
test=
"cloudCustomData != null"
>
cloud_custom_data = #{cloudCustomData,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
...
...
@@ -408,7 +424,8 @@
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`state` = #{state,jdbcType=INTEGER},
msg_content = #{msgContent,jdbcType=LONGVARCHAR}
msg_content = #{msgContent,jdbcType=LONGVARCHAR},
cloud_custom_data = #{cloudCustomData,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.wwdz.ch.db.domain.ImRecord"
>
...
...
@@ -472,14 +489,14 @@
select
'true' as QUERYID,
<choose>
<when
test=
"selective != null and selective.length
>
0"
>
<when
test=
"selective != null and selective.length
>
0"
>
<foreach
collection=
"selective"
item=
"column"
separator=
","
>
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, from_account, to_account, msg_key, msg_time, send_msg_result, msg_type, online_only_flag,
create_time, update_time, `state`, msg_content
create_time, update_time, `state`, msg_content
, cloud_custom_data
</otherwise>
</choose>
from im_record
...
...
@@ -491,4 +508,5 @@
</if>
limit 1
</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