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
0d550166
Commit
0d550166
authored
Oct 23, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai会话保存消息记录
parent
62940cc7
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2360 additions
and
3 deletions
+2360
-3
ch-core/src/main/java/com/wwdz/ch/core/consts/IMEnum.java
ch-core/src/main/java/com/wwdz/ch/core/consts/IMEnum.java
+38
-0
ch-dao/src/main/java/com/wwdz/ch/db/dao/ImRecordDao.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/ImRecordDao.java
+9
-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
+327
-0
ch-dao/src/main/java/com/wwdz/ch/db/domain/ImRecordExample.java
.../src/main/java/com/wwdz/ch/db/domain/ImRecordExample.java
+1785
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/ImRecordDaoImpl.java
...ao/src/main/java/com/wwdz/ch/db/impl/ImRecordDaoImpl.java
+20
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ImRecordMapper.java
...o/src/main/java/com/wwdz/ch/db/mapper/ImRecordMapper.java
+84
-0
ch-dao/src/main/resources/generatorConfig_new.xml
ch-dao/src/main/resources/generatorConfig_new.xml
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
...rc/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
+11
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImRecordServiceImpl.java
...rc/main/java/com/wwdz/ch/wx/impl/ImRecordServiceImpl.java
+31
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
...-api/src/main/java/com/wwdz/ch/wx/impl/ImServiceImpl.java
+44
-2
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/ImRecordService.java
...src/main/java/com/wwdz/ch/wx/service/ImRecordService.java
+9
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/consts/IMEnum.java
View file @
0d550166
...
...
@@ -81,4 +81,42 @@ public class IMEnum {
return
des
;
}
}
/**
* 消息状态
*/
public
enum
MsgStateEnum
{
UNREAD
(
1
,
"未读"
),
READED
(
2
,
"已读"
),
REVOKE
(
3
,
"撤回"
),
FAILED
(
10
,
"发送失败"
),
;
private
int
code
;
private
String
des
;
MsgStateEnum
(
int
code
,
String
des
)
{
this
.
code
=
code
;
this
.
des
=
des
;
}
public
static
String
getNameByCode
(
int
code
)
{
for
(
IMEnum
.
MsgStateEnum
msgStateEnum
:
IMEnum
.
MsgStateEnum
.
values
())
{
if
(
code
==
msgStateEnum
.
getCode
())
{
return
msgStateEnum
.
getDes
();
}
}
return
null
;
}
public
int
getCode
()
{
return
code
;
}
public
String
getDes
()
{
return
des
;
}
}
}
ch-dao/src/main/java/com/wwdz/ch/db/dao/ImRecordDao.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.db.dao
;
import
com.wwdz.ch.db.domain.ImRecord
;
public
interface
ImRecordDao
{
boolean
create
(
ImRecord
imRecord
);
}
ch-dao/src/main/java/com/wwdz/ch/db/domain/ImRecord.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.db.domain
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
* @author shiyu
* @date 2023/10/23
*/
@Data
public
class
ImRecord
implements
Entity
{
private
Long
id
;
/**
* 发送者
*/
private
String
fromAccount
;
/**
* 接收者
*/
private
String
toAccount
;
/**
* 消息的唯一标识
*/
private
String
msgKey
;
/**
* 消息发送时间
*/
private
Date
msgTime
;
/**
* 消息下发结果
*/
private
Integer
sendMsgResult
;
/**
* 消息类型
*/
private
Integer
msgType
;
/**
* 是否仅发送给在线用户标识,1代表仅发送给在线用户,否则为0;
*/
private
Integer
onlineOnlyFlag
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
/**
* 消息状态
*/
private
Integer
state
;
/**
* 消息内容
*/
private
String
msgContent
;
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
(
", fromAccount="
).
append
(
fromAccount
);
sb
.
append
(
", toAccount="
).
append
(
toAccount
);
sb
.
append
(
", msgKey="
).
append
(
msgKey
);
sb
.
append
(
", msgTime="
).
append
(
msgTime
);
sb
.
append
(
", sendMsgResult="
).
append
(
sendMsgResult
);
sb
.
append
(
", msgType="
).
append
(
msgType
);
sb
.
append
(
", onlineOnlyFlag="
).
append
(
onlineOnlyFlag
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", state="
).
append
(
state
);
sb
.
append
(
", msgContent="
).
append
(
msgContent
);
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
;
}
ImRecord
other
=
(
ImRecord
)
that
;
return
(
this
.
getId
()
==
null
?
other
.
getId
()
==
null
:
this
.
getId
().
equals
(
other
.
getId
()))
&&
(
this
.
getFromAccount
()
==
null
?
other
.
getFromAccount
()
==
null
:
this
.
getFromAccount
().
equals
(
other
.
getFromAccount
()))
&&
(
this
.
getToAccount
()
==
null
?
other
.
getToAccount
()
==
null
:
this
.
getToAccount
().
equals
(
other
.
getToAccount
()))
&&
(
this
.
getMsgKey
()
==
null
?
other
.
getMsgKey
()
==
null
:
this
.
getMsgKey
().
equals
(
other
.
getMsgKey
()))
&&
(
this
.
getMsgTime
()
==
null
?
other
.
getMsgTime
()
==
null
:
this
.
getMsgTime
().
equals
(
other
.
getMsgTime
()))
&&
(
this
.
getSendMsgResult
()
==
null
?
other
.
getSendMsgResult
()
==
null
:
this
.
getSendMsgResult
().
equals
(
other
.
getSendMsgResult
()))
&&
(
this
.
getMsgType
()
==
null
?
other
.
getMsgType
()
==
null
:
this
.
getMsgType
().
equals
(
other
.
getMsgType
()))
&&
(
this
.
getOnlineOnlyFlag
()
==
null
?
other
.
getOnlineOnlyFlag
()
==
null
:
this
.
getOnlineOnlyFlag
().
equals
(
other
.
getOnlineOnlyFlag
()))
&&
(
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
()));
}
@Override
public
int
hashCode
()
{
final
int
prime
=
31
;
int
result
=
1
;
result
=
prime
*
result
+
((
getId
()
==
null
)
?
0
:
getId
().
hashCode
());
result
=
prime
*
result
+
((
getFromAccount
()
==
null
)
?
0
:
getFromAccount
().
hashCode
());
result
=
prime
*
result
+
((
getToAccount
()
==
null
)
?
0
:
getToAccount
().
hashCode
());
result
=
prime
*
result
+
((
getMsgKey
()
==
null
)
?
0
:
getMsgKey
().
hashCode
());
result
=
prime
*
result
+
((
getMsgTime
()
==
null
)
?
0
:
getMsgTime
().
hashCode
());
result
=
prime
*
result
+
((
getSendMsgResult
()
==
null
)
?
0
:
getSendMsgResult
().
hashCode
());
result
=
prime
*
result
+
((
getMsgType
()
==
null
)
?
0
:
getMsgType
().
hashCode
());
result
=
prime
*
result
+
((
getOnlineOnlyFlag
()
==
null
)
?
0
:
getOnlineOnlyFlag
().
hashCode
());
result
=
prime
*
result
+
((
getCreateTime
()
==
null
)
?
0
:
getCreateTime
().
hashCode
());
result
=
prime
*
result
+
((
getUpdateTime
()
==
null
)
?
0
:
getUpdateTime
().
hashCode
());
result
=
prime
*
result
+
((
getState
()
==
null
)
?
0
:
getState
().
hashCode
());
result
=
prime
*
result
+
((
getMsgContent
()
==
null
)
?
0
:
getMsgContent
().
hashCode
());
return
result
;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
enum
Column
{
id
(
"id"
,
"id"
,
"BIGINT"
,
false
),
fromAccount
(
"from_account"
,
"fromAccount"
,
"VARCHAR"
,
false
),
toAccount
(
"to_account"
,
"toAccount"
,
"VARCHAR"
,
false
),
msgKey
(
"msg_key"
,
"msgKey"
,
"VARCHAR"
,
false
),
msgTime
(
"msg_time"
,
"msgTime"
,
"TIMESTAMP"
,
false
),
sendMsgResult
(
"send_msg_result"
,
"sendMsgResult"
,
"INTEGER"
,
false
),
msgType
(
"msg_type"
,
"msgType"
,
"INTEGER"
,
false
),
onlineOnlyFlag
(
"online_only_flag"
,
"onlineOnlyFlag"
,
"INTEGER"
,
false
),
createTime
(
"create_time"
,
"createTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
msgContent
(
"msg_content"
,
"msgContent"
,
"LONGVARCHAR"
,
false
);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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 im_record
*
* @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/ImRecordExample.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.db.domain
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
public
class
ImRecordExample
{
protected
String
orderByClause
;
protected
boolean
distinct
;
protected
List
<
Criteria
>
oredCriteria
;
public
ImRecordExample
()
{
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ImRecordExample
orderBy
(
String
orderByClause
)
{
this
.
setOrderByClause
(
orderByClause
);
return
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ImRecordExample
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
static
Criteria
newAndCreateCriteria
()
{
ImRecordExample
example
=
new
ImRecordExample
();
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
(
Long
value
)
{
addCriterion
(
"id ="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotEqualTo
(
Long
value
)
{
addCriterion
(
"id <>"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThan
(
Long
value
)
{
addCriterion
(
"id >"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdGreaterThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id >="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThan
(
Long
value
)
{
addCriterion
(
"id <"
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdLessThanOrEqualTo
(
Long
value
)
{
addCriterion
(
"id <="
,
value
,
"id"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andIdLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"id <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andIdIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotIn
(
List
<
Long
>
values
)
{
addCriterion
(
"id not in"
,
values
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id between"
,
value1
,
value2
,
"id"
);
return
(
Criteria
)
this
;
}
public
Criteria
andIdNotBetween
(
Long
value1
,
Long
value2
)
{
addCriterion
(
"id not between"
,
value1
,
value2
,
"id"
);
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountNotEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountGreaterThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountGreaterThanOrEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountLessThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andFromAccountLessThanOrEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountNotEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountGreaterThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountGreaterThanOrEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountLessThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andToAccountLessThanOrEqualToColumn
(
ImRecord
.
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
andMsgKeyIsNull
()
{
addCriterion
(
"msg_key is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyIsNotNull
()
{
addCriterion
(
"msg_key is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyEqualTo
(
String
value
)
{
addCriterion
(
"msg_key ="
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyNotEqualTo
(
String
value
)
{
addCriterion
(
"msg_key <>"
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyGreaterThan
(
String
value
)
{
addCriterion
(
"msg_key >"
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyGreaterThanOrEqualTo
(
String
value
)
{
addCriterion
(
"msg_key >="
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyLessThan
(
String
value
)
{
addCriterion
(
"msg_key <"
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyLessThanOrEqualTo
(
String
value
)
{
addCriterion
(
"msg_key <="
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgKeyLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_key <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyLike
(
String
value
)
{
addCriterion
(
"msg_key like"
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyNotLike
(
String
value
)
{
addCriterion
(
"msg_key not like"
,
value
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyIn
(
List
<
String
>
values
)
{
addCriterion
(
"msg_key in"
,
values
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyNotIn
(
List
<
String
>
values
)
{
addCriterion
(
"msg_key not in"
,
values
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"msg_key between"
,
value1
,
value2
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgKeyNotBetween
(
String
value1
,
String
value2
)
{
addCriterion
(
"msg_key not between"
,
value1
,
value2
,
"msgKey"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeIsNull
()
{
addCriterion
(
"msg_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeIsNotNull
()
{
addCriterion
(
"msg_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeEqualTo
(
Date
value
)
{
addCriterion
(
"msg_time ="
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"msg_time <>"
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"msg_time >"
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"msg_time >="
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeLessThan
(
Date
value
)
{
addCriterion
(
"msg_time <"
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"msg_time <="
,
value
,
"msgTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTimeLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"msg_time in"
,
values
,
"msgTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"msg_time not in"
,
values
,
"msgTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"msg_time between"
,
value1
,
value2
,
"msgTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"msg_time not between"
,
value1
,
value2
,
"msgTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultIsNull
()
{
addCriterion
(
"send_msg_result is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultIsNotNull
()
{
addCriterion
(
"send_msg_result is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultEqualTo
(
Integer
value
)
{
addCriterion
(
"send_msg_result ="
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultNotEqualTo
(
Integer
value
)
{
addCriterion
(
"send_msg_result <>"
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultGreaterThan
(
Integer
value
)
{
addCriterion
(
"send_msg_result >"
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"send_msg_result >="
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultLessThan
(
Integer
value
)
{
addCriterion
(
"send_msg_result <"
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"send_msg_result <="
,
value
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andSendMsgResultLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"send_msg_result <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"send_msg_result in"
,
values
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"send_msg_result not in"
,
values
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"send_msg_result between"
,
value1
,
value2
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andSendMsgResultNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"send_msg_result not between"
,
value1
,
value2
,
"sendMsgResult"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeIsNull
()
{
addCriterion
(
"msg_type is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeIsNotNull
()
{
addCriterion
(
"msg_type is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeEqualTo
(
Integer
value
)
{
addCriterion
(
"msg_type ="
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeNotEqualTo
(
Integer
value
)
{
addCriterion
(
"msg_type <>"
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeGreaterThan
(
Integer
value
)
{
addCriterion
(
"msg_type >"
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"msg_type >="
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeLessThan
(
Integer
value
)
{
addCriterion
(
"msg_type <"
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"msg_type <="
,
value
,
"msgType"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andMsgTypeLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"msg_type <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"msg_type in"
,
values
,
"msgType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"msg_type not in"
,
values
,
"msgType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"msg_type between"
,
value1
,
value2
,
"msgType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andMsgTypeNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"msg_type not between"
,
value1
,
value2
,
"msgType"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagIsNull
()
{
addCriterion
(
"online_only_flag is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagIsNotNull
()
{
addCriterion
(
"online_only_flag is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagEqualTo
(
Integer
value
)
{
addCriterion
(
"online_only_flag ="
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagNotEqualTo
(
Integer
value
)
{
addCriterion
(
"online_only_flag <>"
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagGreaterThan
(
Integer
value
)
{
addCriterion
(
"online_only_flag >"
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"online_only_flag >="
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagLessThan
(
Integer
value
)
{
addCriterion
(
"online_only_flag <"
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"online_only_flag <="
,
value
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andOnlineOnlyFlagLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"online_only_flag <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"online_only_flag in"
,
values
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"online_only_flag not in"
,
values
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"online_only_flag between"
,
value1
,
value2
,
"onlineOnlyFlag"
);
return
(
Criteria
)
this
;
}
public
Criteria
andOnlineOnlyFlagNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"online_only_flag not between"
,
value1
,
value2
,
"onlineOnlyFlag"
);
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeNotEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeGreaterThanOrEqualToColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanColumn
(
ImRecord
.
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 im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andCreateTimeLessThanOrEqualToColumn
(
ImRecord
.
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
Criteria
andUpdateTimeIsNull
()
{
addCriterion
(
"update_time is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIsNotNull
()
{
addCriterion
(
"update_time is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeEqualTo
(
Date
value
)
{
addCriterion
(
"update_time ="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <>"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"update_time >"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time >="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThan
(
Date
value
)
{
addCriterion
(
"update_time <"
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"update_time <="
,
value
,
"updateTime"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andUpdateTimeLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"update_time <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"update_time not in"
,
values
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andUpdateTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"update_time not between"
,
value1
,
value2
,
"updateTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNull
()
{
addCriterion
(
"`state` is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateIsNotNull
()
{
addCriterion
(
"`state` is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` ="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` = "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <>"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateNotEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <> "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThan
(
Integer
value
)
{
addCriterion
(
"`state` >"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` > "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` >="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateGreaterThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` >= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThan
(
Integer
value
)
{
addCriterion
(
"`state` <"
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` < "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"`state` <="
,
value
,
"state"
);
return
(
Criteria
)
this
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
Criteria
andStateLessThanOrEqualToColumn
(
ImRecord
.
Column
column
)
{
addCriterion
(
new
StringBuilder
(
"`state` <= "
).
append
(
column
.
getEscapedColumnName
()).
toString
());
return
(
Criteria
)
this
;
}
public
Criteria
andStateIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"`state` not in"
,
values
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
public
Criteria
andStateNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"`state` not between"
,
value1
,
value2
,
"state"
);
return
(
Criteria
)
this
;
}
}
public
static
class
Criteria
extends
GeneratedCriteria
{
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private
ImRecordExample
example
;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected
Criteria
(
ImRecordExample
example
)
{
super
();
this
.
example
=
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public
ImRecordExample
example
()
{
return
this
.
example
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @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 im_record
*
* @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 im_record
*
* @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/impl/ImRecordDaoImpl.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.db.impl
;
import
com.wwdz.ch.db.dao.ImRecordDao
;
import
com.wwdz.ch.db.domain.ImRecord
;
import
com.wwdz.ch.db.mapper.ImRecordMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Repository
;
@Repository
public
class
ImRecordDaoImpl
implements
ImRecordDao
{
@Autowired
ImRecordMapper
imRecordMapper
;
@Override
public
boolean
create
(
ImRecord
imRecord
)
{
return
imRecordMapper
.
insert
(
imRecord
)
>
0
;
}
}
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ImRecordMapper.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.db.mapper
;
import
com.wwdz.ch.db.domain.ImRecord
;
import
com.wwdz.ch.db.domain.ImRecordExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
ImRecordMapper
{
long
countByExample
(
ImRecordExample
example
);
int
deleteByExample
(
ImRecordExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
ImRecord
record
);
int
insertSelective
(
ImRecord
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ImRecord
selectOneByExample
(
ImRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ImRecord
selectOneByExampleSelective
(
@Param
(
"example"
)
ImRecordExample
example
,
@Param
(
"selective"
)
ImRecord
.
Column
...
selective
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ImRecord
selectOneByExampleWithBLOBs
(
ImRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List
<
ImRecord
>
selectByExampleSelective
(
@Param
(
"example"
)
ImRecordExample
example
,
@Param
(
"selective"
)
ImRecord
.
Column
...
selective
);
List
<
ImRecord
>
selectByExampleWithBLOBs
(
ImRecordExample
example
);
List
<
ImRecord
>
selectByExample
(
ImRecordExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table im_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
ImRecord
selectByPrimaryKeySelective
(
@Param
(
"id"
)
Long
id
,
@Param
(
"selective"
)
ImRecord
.
Column
...
selective
);
ImRecord
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
ImRecord
record
,
@Param
(
"example"
)
ImRecordExample
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
ImRecord
record
,
@Param
(
"example"
)
ImRecordExample
example
);
int
updateByExample
(
@Param
(
"record"
)
ImRecord
record
,
@Param
(
"example"
)
ImRecordExample
example
);
int
updateByPrimaryKeySelective
(
ImRecord
record
);
int
updateByPrimaryKeyWithBLOBs
(
ImRecord
record
);
int
updateByPrimaryKey
(
ImRecord
record
);
}
\ No newline at end of file
ch-dao/src/main/resources/generatorConfig_new.xml
View file @
0d550166
...
...
@@ -72,7 +72,7 @@
<javaClientGenerator
type=
"XMLMAPPER"
targetPackage=
"com.wwdz.ch.db.mapper"
targetProject=
"ch-dao/src/main/java"
/>
<table
tableName=
"
ai_assistant
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<table
tableName=
"
im_record
"
enableCountByExample=
"true"
enableUpdateByExample=
"true"
enableDeleteByExample=
"true"
enableSelectByExample=
"true"
selectByExampleQueryId=
"true"
>
<generatedKey
column=
"id"
sqlStatement=
"Mysql"
identity=
"true"
/>
</table>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/api/IMCallbackController.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.wx.api
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
"/imCallback"
)
public
class
IMCallbackController
{
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
0d550166
...
...
@@ -40,6 +40,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
.
excludePathPatterns
(
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/wx/user/loginByWx"
,
"/wx/user/loginByMobile"
,
"/wx/user/loginRegCaptcha"
,
"/wx/user/updateRegCaptcha"
,
"/wx/user/login"
,
"/wx/user/fillCode"
,
"/officialAccountCallback/**"
,
"/imCallback/**"
,
"/wx/officialAccount/**"
,
"/wx/item/**"
,
"/wx/aiAssistant/**"
,
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/ImRecordServiceImpl.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.wx.impl
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.dao.ImRecordDao
;
import
com.wwdz.ch.db.domain.ImRecord
;
import
com.wwdz.ch.wx.service.ImRecordService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
ImRecordServiceImpl
implements
ImRecordService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ImRecordServiceImpl
.
class
);
@Autowired
ImRecordDao
imRecordDao
;
@Override
public
Result
create
(
ImRecord
imRecord
)
{
try
{
imRecordDao
.
create
(
imRecord
);
return
Result
.
success
();
}
catch
(
Exception
e
)
{
logger
.
info
(
"保存聊天消息error : {}"
,
e
);
}
return
Result
.
failed
();
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/I
M
ServiceImpl.java
→
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/I
m
ServiceImpl.java
View file @
0d550166
...
...
@@ -9,14 +9,19 @@ import com.wwdz.ch.core.type.Result;
import
com.wwdz.ch.core.util.IMUtil
;
import
com.wwdz.ch.core.util.RedisUtils
;
import
com.wwdz.ch.db.dao.AiAssistantDao
;
import
com.wwdz.ch.db.dao.ImRecordDao
;
import
com.wwdz.ch.db.domain.AiAssistant
;
import
com.wwdz.ch.db.domain.ImRecord
;
import
com.wwdz.ch.wx.api.ChatApi
;
import
com.wwdz.ch.wx.service.IMService
;
import
com.wwdz.ch.wx.service.ImRecordService
;
import
com.xxdxxs.utils.JsonUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -25,9 +30,9 @@ import java.util.concurrent.TimeUnit;
* 会话
*/
@Service
public
class
I
M
ServiceImpl
implements
IMService
{
public
class
I
m
ServiceImpl
implements
IMService
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
I
M
ServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
I
m
ServiceImpl
.
class
);
@Autowired
ConversationApi
conversationApi
;
...
...
@@ -47,6 +52,9 @@ public class IMServiceImpl implements IMService {
@Autowired
RedisUtils
redisUtils
;
@Autowired
ImRecordService
imRecordService
;
/**
* 新增ai会话,发送默认打招呼的消息
* @param dto
...
...
@@ -112,6 +120,25 @@ public class IMServiceImpl implements IMService {
if
(!
askResult
.
getSuccess
())
{
return
askResult
;
}
//保存提问的消息记录
ImRecord
imRecord
=
new
ImRecord
();
imRecord
.
setFromAccount
(
dto
.
getFromAccount
());
imRecord
.
setToAccount
(
dto
.
getToAccount
());
imRecord
.
setMsgType
(
dto
.
getMsgType
());
//0:成功
imRecord
.
setSendMsgResult
(
0
);
if
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
()
==
dto
.
getMsgType
())
{
imRecord
.
setMsgContent
(
dto
.
getMsgContent
().
toString
());
}
Date
now
=
new
Date
();
imRecord
.
setMsgTime
(
now
);
imRecord
.
setOnlineOnlyFlag
(
0
);
imRecord
.
setCreateTime
(
now
);
imRecord
.
setUpdateTime
(
now
);
imRecord
.
setState
(
IMEnum
.
MsgStateEnum
.
READED
.
getCode
());
imRecordService
.
create
(
imRecord
);
logger
.
info
(
"=========== userid:{}, 提问ai的消息发送成功 =========="
,
dto
.
getFromAccount
());
if
(
dto
.
getMsgType
()
==
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
())
{
String
question
=
(
String
)
dto
.
getMsgContent
();
...
...
@@ -134,6 +161,21 @@ public class IMServiceImpl implements IMService {
logger
.
info
(
"=============== 发送问题的ai答复消息失败 ============="
);
return
answerResult
;
}
//保存ai回答的消息记录
ImRecord
answerImRecord
=
new
ImRecord
();
answerImRecord
.
setFromAccount
(
dto
.
getToAccount
());
answerImRecord
.
setToAccount
(
dto
.
getFromAccount
());
answerImRecord
.
setMsgType
(
IMEnum
.
MsgTypeEnum
.
TIMTextElem
.
getCode
());
answerImRecord
.
setMsgContent
(
answer
);
answerImRecord
.
setOnlineOnlyFlag
(
0
);
Date
answerTime
=
new
Date
();
answerImRecord
.
setSendMsgResult
(
0
);
answerImRecord
.
setMsgTime
(
answerTime
);
answerImRecord
.
setCreateTime
(
answerTime
);
answerImRecord
.
setUpdateTime
(
answerTime
);
answerImRecord
.
setState
(
IMEnum
.
MsgStateEnum
.
READED
.
getCode
());
imRecordService
.
create
(
answerImRecord
);
}
else
{
return
Result
.
failed
(
"目前尚不支持除文本外的消息发送"
);
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/ImRecordService.java
0 → 100644
View file @
0d550166
package
com.wwdz.ch.wx.service
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.db.domain.ImRecord
;
public
interface
ImRecordService
{
Result
create
(
ImRecord
imRecord
);
}
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